469037c77dea7ba6c4baabf6c57da92c7e3e7e3d
[gnulib.git] / ChangeLog
1 2011-09-16  Eric Blake  <eblake@redhat.com>
2
3         fdatasync: new module
4         * modules/fsync (Description): Document difference to fdatasync.
5         * modules/fdatasync: New module.
6         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
7         * lib/fdatasync.c (fdatasync): Likewise.
8         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9         defaults.
10         * modules/unistd (Makefile.am): Set witnesses.
11         * lib/unistd.in.h (fdatasync): Declare.
12         * MODULES.html.sh: Document it.
13         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14         * modules/fdatasync-tests: New test.
15         * tests/test-fdatasync.c: Likewise.
16
17 2011-09-16  Eric Blake  <eblake@redhat.com>
18
19         test-fsync: enhance tests
20         * modules/fsync-tests (Depends-on): Add errno, for mingw.
21         * tests/test-fsync.c (main): Enhance test.
22
23 2011-09-15  Bruno Haible  <bruno@clisp.org>
24
25         Support for MSVC compiler: Ensure ssize_t gets defined.
26         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
27         * doc/posix-headers/stdio.texi: Likewise.
28         * modules/stdio (Depends-on): Add ssize_t.
29         * modules/sys_socket (Depends-on): Likewise.
30         * modules/sys_types (Depends-on): Likewise.
31         * modules/sys_uio (Depends-on): Likewise.
32         * modules/unistd (Depends-on): Likewise.
33         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
34         * tests/test-sys_types.c: Check that ssize_t is defined.
35
36 2011-09-14  Bruno Haible  <bruno@clisp.org>
37
38         Avoid using #, the m4 comment starter character, near brackets.
39         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
40         delimiter character in sed expressions.
41         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42         Suggested by Eric Blake.
43
44         Properly quote AC_CHECK_DECLS' 4th argument.
45         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
46         argument.
47         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
51         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
53         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
54         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
55         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
56         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
58         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
59         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
60         * m4/isinf.m4 (gl_ISINF): Likewise.
61         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
65         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
66         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
67         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
68         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
69         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
70         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
71         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
72         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
73         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
74         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
75         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76         Reported by Eric Blake.
77
78         Properly quote AC_CHECK_DECL's 4th argument.
79         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
80         argument.
81         * m4/argp.m4 (gl_ARGP): Likewise.
82         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
83         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
84         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
85         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
86         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
87         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
88         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
89         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
90         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
91         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
92         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
93         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
94         Reported by Eric Blake.
95
96 2011-09-14  Eric Blake  <eblake@redhat.com>
97
98         opendir: avoid compile warning
99         * lib/opendir.c (includes): Always include errno.h.
100         Reported by Tatsuro MATSUOKA.
101
102 2011-09-14  Jim Meyering  <meyering@redhat.com>
103
104         maint.mk: sc_tight_scope: propagate failure from sub-make
105         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
106         Reported by Martin von Gagern.
107
108 2011-09-13  Bruno Haible  <bruno@clisp.org>
109
110         tempname: Support for MSVC.
111         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
112         MSVC.
113         * modules/tempname (Depends-on): Add fcntl-h.
114
115 2011-09-13  Bruno Haible  <bruno@clisp.org>
116
117         sys_time: Support for MSVC.
118         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
119         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
120         include <winsock2.h>.
121         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
122         function declarations that collide with POSIX.
123         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
124         (Makefile.am): Substitute HAVE_WINSOCK2_H.
125
126 2011-09-13  Bruno Haible  <bruno@clisp.org>
127
128         stat: Support for MSVC.
129         * lib/stat.c: Include pathmax.h.
130         * modules/stat (Depends-on): Add pathmax.
131
132         pathmax: Support for native Windows.
133         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
134
135 2011-09-12  Bruno Haible  <bruno@clisp.org>
136
137         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
138         * lib/dirent.in.h (struct dirent): New type.
139         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
140         DT_WHT): New macros.
141         (DIR): New type.
142         (opendir, closedir): Declare only if the module 'opendir' is enabled.
143         (readdir, rewinddir): New declarations.
144         * lib/dirent-private.h: New file.
145         * lib/opendir.c: New file.
146         * lib/readdir.c: New file.
147         * lib/rewinddir.c: New file.
148         * lib/closedir.c: New file.
149         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
150         * m4/opendir.m4: New file.
151         * m4/readdir.m4: New file.
152         * m4/rewinddir.m4: New file.
153         * m4/closedir.m4: New file.
154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
155         REPLACE_CLOSEDIR here.
156         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
157         readdir, rewinddir are declared.
158         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
159         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
160         HAVE_REWINDDIR, HAVE_CLOSEDIR.
161         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
162         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
163         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
164         * modules/opendir: New file.
165         * modules/readdir: New file.
166         * modules/rewinddir: New file.
167         * modules/closedir: New file.
168         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
169         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
170         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
171         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
172         * NEWS: Mention the 'fchdir' change.
173
174 2011-09-11  Bruno Haible  <bruno@clisp.org>
175
176         asm-underscore.m4: Support for MSVC.
177         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
178         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
179
180 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
181
182         Doc about crypt functions.
183         * doc/posix-functions/crypt.texi: Expand range of glibc versions
184         needing for _GNU_SOURCE to get crypt.
185         * doc/posix-functions/encrypt.texi: Likewise.
186         * doc/posix-functions/setkey.texi: Likewise.
187
188 2011-09-11  Bruno Haible  <bruno@clisp.org>
189
190         doc: Update regarding MSVC 9.
191         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
192         tested".
193         * doc/posix-functions/*.texi: Update with info about MSVC 9.
194         * doc/posix-headers/*.texi: Likewise.
195         * doc/pastposix-functions/*.texi: Likewise.
196         * doc/glibc-functions/*.texi: Likewise.
197         * doc/glibc-headers/*.texi: Likewise.
198
199 2011-09-11  Bruno Haible  <bruno@clisp.org>
200
201         unistd et al.: Don't assume <unistd.h> exists.
202         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
203         does not exist.
204         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
205         exist. But include <stdlib.h>.
206         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
207         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
208         symlink() does not exist.
209         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
210         include <io.h> instead.
211         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
212         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
213         include <direct.h> instead.
214         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
216         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
217         <io.h> instead.
218         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
219         correctly if the system does not have hard links.
220         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
221         <direct.h> instead.
222         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
223         it when looking for function declarations.
224         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
225         <direct.h> and <io.h> instead.
226         * doc/posix-headers/unistd.texi: More details about MSVC problem.
227
228 2011-09-11  Bruno Haible  <bruno@clisp.org>
229
230         strcase: Support for MSVC.
231         * modules/strcase (Status, Notice): Remove obsoletion mark.
232         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
233         * doc/posix-functions/strncasecmp.texi: Likewise.
234
235         strings: Don't assume <strings.h> exists.
236         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
237         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
238         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
239         * doc/posix-headers/strings.texi: Mention the MSVC problem.
240
241 2011-09-11  Bruno Haible  <bruno@clisp.org>
242
243         dirent: Don't assume <dirent.h> exists.
244         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
245         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
246         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
247         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
248
249 2011-09-11  Bruno Haible  <bruno@clisp.org>
250
251         Fix wint_t on MSVC.
252         * lib/wchar.in.h (wint_t): On MSVC, override it.
253         * lib/wctype.in.h (wint_t): Likewise.
254         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
255         MSVC.
256         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
257         * doc/posix-headers/wctype.texi: Likewise.
258
259 2011-09-11  Bruno Haible  <bruno@clisp.org>
260
261         sys_types: Fix typo.
262         * lib/sys_types.in.h: Fix typo in comment.
263         Reported by Paul Eggert.
264
265         Support for MSVC compiler: Ensure size_t gets defined.
266         * modules/strings (Depends-on): Add 'sys_types'.
267         * modules/sys_uio (Depends-on): Likewise.
268         * lib/sys_uio.in.h: Update comment.
269
270         C++ tests for module 'sys_types'.
271         * modules/sys_types-c++-tests: New file.
272         * tests/test-sys_types-c++.cc: New file.
273
274         Tests for module 'sys_types'.
275         * modules/sys_types-tests: New file.
276         * tests/test-sys_types.c: New file.
277
278         New module 'sys_types'.
279         * lib/sys_types.in.h: New file.
280         * m4/sys_types_h.m4: New file.
281         * modules/sys_types: New file.
282         * doc/posix-headers/sys_types.texi: Mention the new module and the
283         size_t problem on MSVC 9.
284
285 2011-09-11  Bruno Haible  <bruno@clisp.org>
286
287         Support for MSVC compiler: Avoid division by a literal 0.
288         * lib/math.in.h (NAN): Define through a function call also on MSVC.
289         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
290         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
291         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
292         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
293         * tests/infinity.h: New file.
294         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
295         on MSVC.
296         * tests/test-ceilf1.c: Include infinity.h.
297         (main): Use Infinityf.
298         * tests/test-ceil1.c: Include infinity.h.
299         (main): Use Infinityd.
300         * tests/test-ceill.c: Include infinity.h.
301         (main): Use Infinityl.
302         * tests/test-dprintf-posix.c: Include infinity.h.
303         (test_function): Use Infinityd.
304         * tests/test-floorf1.c: Include infinity.h.
305         (main): Use Infinityf.
306         * tests/test-floor1.c: Include infinity.h.
307         (main): Use Infinityd.
308         * tests/test-floorl.c: Include infinity.h.
309         (main): Use Infinityl.
310         * tests/test-fprintf-posix.c: Include infinity.h.
311         (test_function): Use Infinityd.
312         * tests/test-frexp.c: Include infinity.h.
313         (main): Use Infinityd.
314         * tests/test-frexpl.c: Include infinity.h.
315         (main): Use Infinityl.
316         * tests/test-isfinite.c: Include infinity.h.
317         (test_isfinitef): Use Infinityf.
318         (test_isfinited): Use Infinityd.
319         (test_isfinitel): Use Infinityl.
320         * tests/test-isinf.c: Include infinity.h.
321         (test_isinff): Use Infinityf.
322         (test_isinfd): Use Infinityd.
323         (test_isinfl): Use Infinityl.
324         * tests/test-isnan.c: Include infinity.h.
325         (test_float): Use Infinityf.
326         (test_double): Use Infinityd.
327         (test_long_double): Use Infinityl.
328         * tests/test-isnanf.h: Include infinity.h.
329         (main): Use Infinityf.
330         * tests/test-isnand.h: Include infinity.h.
331         (main): Use Infinityd.
332         * tests/test-isnanl.h: Include infinity.h.
333         (main): Use Infinityl.
334         * tests/test-ldexpl.c: Include infinity.h.
335         (main): Use Infinityl.
336         * tests/test-printf-posix.h: Include infinity.h.
337         (test_function): Use Infinityd.
338         * tests/test-roundf1.c: Include infinity.h.
339         (main): Use Infinityf.
340         * tests/test-round1.c: Include infinity.h.
341         (main): Use Infinityd.
342         * tests/test-roundl.c: Include infinity.h.
343         (main): Use Infinityl.
344         * tests/test-signbit.c: Include infinity.h.
345         (test_signbitf): Use Infinityf.
346         (test_signbitd): Use Infinityd.
347         (test_signbitl): Use Infinityl.
348         * tests/test-snprintf-posix.h: Include infinity.h.
349         (test_function): Use Infinityd, Infinityl.
350         * tests/test-sprintf-posix.h: Include infinity.h.
351         (test_function): Use Infinityd, Infinityl.
352         * tests/test-truncf1.c: Include infinity.h.
353         (main): Use Infinityf.
354         * tests/test-trunc1.c: Include infinity.h.
355         (main): Use Infinityd.
356         * tests/test-truncl.c: Include infinity.h.
357         (main): Use Infinityl.
358         * tests/test-vasnprintf-posix.c: Include infinity.h.
359         (test_function): Use Infinityd, Infinityl.
360         * tests/test-vasprintf-posix.c: Include infinity.h.
361         (test_function): Use Infinityd, Infinityl.
362         * modules/ceilf-tests (Files): Add tests/infinity.h.
363         * modules/ceil-tests (Files): Likewise.
364         * modules/ceill-tests (Files): Likewise.
365         * modules/dprintf-posix-tests (Files): Likewise.
366         * modules/floorf-tests (Files): Likewise.
367         * modules/floor-tests (Files): Likewise.
368         * modules/floorl-tests (Files): Likewise.
369         * modules/fprintf-posix-tests (Files): Likewise.
370         * modules/frexp-tests (Files): Likewise.
371         * modules/frexp-nolibm-tests (Files): Likewise.
372         * modules/frexpl-tests (Files): Likewise.
373         * modules/frexpl-nolibm-tests (Files): Likewise.
374         * modules/isfinite-tests (Files): Likewise.
375         * modules/isinf-tests (Files): Likewise.
376         * modules/isnan-tests (Files): Likewise.
377         * modules/isnanf-tests (Files): Likewise.
378         * modules/isnanf-nolibm-tests (Files): Likewise.
379         * modules/isnand-tests (Files): Likewise.
380         * modules/isnand-nolibm-tests (Files): Likewise.
381         * modules/isnanl-tests (Files): Likewise.
382         * modules/isnanl-nolibm-tests (Files): Likewise.
383         * modules/ldexpl-tests (Files): Likewise.
384         * modules/printf-posix-tests (Files): Likewise.
385         * modules/roundf-tests (Files): Likewise.
386         * modules/round-tests (Files): Likewise.
387         * modules/roundl-tests (Files): Likewise.
388         * modules/signbit-tests (Files): Likewise.
389         * modules/snprintf-posix-tests (Files): Likewise.
390         * modules/sprintf-posix-tests (Files): Likewise.
391         * modules/truncf-tests (Files): Likewise.
392         * modules/trunc-tests (Files): Likewise.
393         * modules/truncl-tests (Files): Likewise.
394         * modules/vasnprintf-posix-tests (Files): Likewise.
395         * modules/vasprintf-posix-tests (Files): Likewise.
396         * modules/vdprintf-posix-tests (Files): Likewise.
397         * modules/vfprintf-posix-tests (Files): Likewise.
398         * modules/vprintf-posix-tests (Files): Likewise.
399         * modules/vsnprintf-posix-tests (Files): Likewise.
400         * modules/vsprintf-posix-tests (Files): Likewise.
401         * modules/xprintf-posix-tests (Files): Likewise.
402
403 2011-09-11  Bruno Haible  <bruno@clisp.org>
404
405         Ensure pid_t gets defined.
406         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
407         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
408         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
409         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
410         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
411         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
412         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
413         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
414         * tests/test-fcntl-h.c: Check that pid_t is defined.
415         * tests/test-sched.c: Likewise.
416         * tests/test-termios.c: Likewise.
417         * tests/test-time.c: Likewise.
418         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
419         * doc/posix-headers/signal.texi: Likewise.
420         * doc/posix-headers/sys_types.texi: Likewise.
421         * doc/posix-headers/time.texi: Likewise.
422
423 2011-09-11  Bruno Haible  <bruno@clisp.org>
424
425         acl: Fix compilation on Solaris 10 (older version).
426         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
427         of ACE_EVERYONE.
428         * lib/set-mode-acl.c (qset_acl): Likewise.
429         Reported by Christian Jullien <eligis@orange.fr>.
430
431 2011-09-10  Bruno Haible  <bruno@clisp.org>
432
433         iconv, unsetenv: Add support for MSVC compiler.
434         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
435         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
436
437 2011-09-10  Bruno Haible  <bruno@clisp.org>
438
439         *printf: Add support for MSVC compiler.
440         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
441         handles the exception caused by the %n directive. When cross-compiling,
442         guess no on native Windows.
443         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
444         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
445         emulate it through vsnprintf.
446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
447         * doc/posix-functions/dprintf.texi: Update documentation regarding
448         MSVC 9.
449         * doc/posix-functions/fprintf.texi: Likewise.
450         * doc/posix-functions/printf.texi: Likewise.
451         * doc/posix-functions/snprintf.texi: Likewise.
452         * doc/posix-functions/sprintf.texi: Likewise.
453         * doc/posix-functions/swprintf.texi: Likewise.
454         * doc/posix-functions/vdprintf.texi: Likewise.
455         * doc/posix-functions/vfprintf.texi: Likewise.
456         * doc/posix-functions/vprintf.texi: Likewise.
457         * doc/posix-functions/vsnprintf.texi: Likewise.
458         * doc/posix-functions/vsprintf.texi: Likewise.
459         * doc/glibc-functions/asprintf.texi: Likewise.
460         * doc/glibc-functions/obstack_printf.texi: Likewise.
461         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
462         * doc/glibc-functions/vasprintf.texi: Likewise.
463
464 2011-09-10  Bruno Haible  <bruno@clisp.org>
465
466         nocrash: Add support for native Windows.
467         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
468
469 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
470             Bruno Haible  <bruno@clisp.org>
471
472         absolute-header, include-next: Add support for MSVC compiler.
473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
474         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
475         directory separator in #line directives.
476         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
477         recognize also backslash as directory separator in #line directives.
478
479 2011-09-08  Jim Meyering  <meyering@redhat.com>
480
481         maint.mk: mark the post-release commit log with "maint: " prefix
482         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
483         one-line commit-log summary.
484
485 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
486             Bruno Haible  <bruno@clisp.org>
487
488         Doc about crypt functions.
489         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
490         systems.
491         * doc/posix-functions/encrypt.texi: Likewise.
492         * doc/posix-functions/setkey.texi: Likewise.
493
494 2011-09-08  Simon Josefsson  <simon@josefsson.org>
495
496         * lib/gc.h: Fix copyright header.
497
498 2011-09-07  Bruno Haible  <bruno@clisp.org>
499
500         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
501         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
502         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
503
504 2011-09-07  Bruno Haible  <bruno@clisp.org>
505
506         openat: Work around compilation error with OSF/1 5.1 DTK cc.
507         * lib/fopen.c: Use different syntax for include of <stdio.h>.
508         * lib/freopen.c: Likewise.
509         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
510         * lib/lstat.c: Likewise.
511         * lib/stat.c: Likewise.
512         * lib/open.c: Use different syntax for include of <fcntl.h>.
513         * lib/openat.c: Include fcntl.h again, explicitly.
514
515 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
516
517         parse-datetime: document the newly accepted format
518         * doc/parse-datetime.texi (Combined date and time of day items):
519         New section.
520
521 2011-09-06  Bruno Haible  <bruno@clisp.org>
522
523         acl: Fix a test failure on newer Solaris 10 with ZFS.
524         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
525         ENOSYS as no ACL.
526         Reported by Jim Meyering.
527
528 2011-09-06  Bruno Haible  <bruno@clisp.org>
529
530         acl: Update for AIX >= 5.3 with NFS.
531         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
532         ENOSYS as no ACL.
533
534         acl: Fix a test failure on AIX >= 5.3 with NFS.
535         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
536         as no ACL.
537
538 2011-09-06  Bruno Haible  <bruno@clisp.org>
539
540         acl: Fix a test failure on IRIX 6.5 with NFS.
541         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
542         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
543         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
544         * lib/copy-acl.c (qcopy_acl): Likewise.
545
546 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
547
548         openat: port to AIX 7.1 with large files
549         AIX 7.1 does a "#define openat open64at" if large files are in use,
550         so we can't simply #undef openat.  Use the orig_openat trick (similar
551         to orig_open in lib/open.c) to work around the problem.  Problem
552         reported by Kevin Brott for GNU tar, in the thread containing
553         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
554         * lib/openat.c (__need_system_fcntl_h): Define first.
555         Include <fcntl.h> and <sys/types.h> before undefining.
556         (orig_openat) [HAVE_OPENAT]: New inline function.
557         (openat) [HAVE_OPENAT]: Do not undef.
558         (rpl_openat): Use orig_openat, not openat.
559
560 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
561             Bruno Haible  <bruno@clisp.org>
562
563         acl: Avoid errors on NonStop Kernel.
564         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
565         ENOTSUP errors.
566
567 2011-09-05  Bruno Haible  <bruno@clisp.org>
568
569         acl: Clean up Solaris code.
570         * lib/acl-internal.h: Remove no-op #if.
571         * lib/file-has-acl.c: Likewise.
572         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
573         * lib/copy-acl.c (qcopy_acl): Likewise.
574
575 2011-09-05  Bruno Haible  <bruno@clisp.org>
576
577         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
578         binaries built on the original Solaris 10.
579         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
580         trivial.
581
582 2011-09-05  Bruno Haible  <bruno@clisp.org>
583
584         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
585         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
586         10.
587         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
588         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
589         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
590         instead of acl_get, facl_get, acl_set, facl_set.
591
592 2011-09-05  Bruno Haible  <bruno@clisp.org>
593
594         copy-file: Try unit tests on more file systems.
595         * tests/test-copy-file-1.sh: New file.
596         * tests/test-copy-file-2.sh: New file.
597         * modules/copy-file-tests (Files): Add them.
598         (Makefile.am): Add them to TESTS.
599
600         acl: Try unit tests on more file systems.
601         * tests/test-file-has-acl-1.sh: New file.
602         * tests/test-file-has-acl-2.sh: New file.
603         * tests/test-set-mode-acl-1.sh: New file.
604         * tests/test-set-mode-acl-2.sh: New file.
605         * tests/test-copy-acl-1.sh: New file.
606         * tests/test-copy-acl-2.sh: New file.
607         * modules/acl-tests (Files): Add them.
608         (Makefile.am): Add them to TESTS.
609
610 2011-09-04  Bruno Haible  <bruno@clisp.org>
611
612         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
613         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
614         10.
615         (OLD_ALLOW, OLD_DENY): New macros.
616         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
617         ACE_ACCESS_ALLOWED_ACE_TYPE.
618         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
619         ACE_ACCESS_DENIED_ACE_TYPE.
620         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
621         (NEW_ACE_EXECUTE): Fix value.
622         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
623         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
624         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
625         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
626         NEW_ACE_SYNCHRONIZE): New macros.
627         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
628         instead of acl_fromtext, acl_set, facl_set.
629         Fixes a coreutils/tests/cp/perm failure.
630
631 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
632
633         openat: test for fstatat (..., 0) bug
634         Further testing with tar suggests that fstatat (..., 0)
635         does not work in general, on AIX 7.1; see
636         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
637         So, give up entirely on AIX 7.1's fstatat, and fall back on our
638         replacement fstatat (which is what older AIX releases were using
639         anyway).
640         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
641         use is now changed to orig_fstatat.  This was probably the right
642         thing to do anyway.
643         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
644         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
645         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
646         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
647         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
648         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
649         if the bug is found.
650
651         openat: test for fstatat (AT_FDCWD, ..., 0) bug
652         This tests for another fstatat bug on AIX 7.1:
653         fstatat (AT_FDCWD, ..., 0) does not work.  See
654         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
655         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
656         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
657         (rpl_fstatat): Adjust so that it works around either (or both)
658         bugs if present.
659         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
660
661 2011-09-03  Karl Berry  <karl@gnu.org>
662
663         * doc/regex.texi (Character Class Operators): Avoid literal ":"
664         in index entries.
665
666 2011-09-02  Bruno Haible  <bruno@clisp.org>
667
668         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
669         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
670         values of AR, ARFLAGS, RANLIB.
671         Reported by John W. Eaton <jwe@gnu.org> for Octave.
672
673 2011-09-02  Bruno Haible  <bruno@clisp.org>
674
675         Find 'ar' program that fits with --host argument.
676         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
677
678 2011-09-02  Bruno Haible  <bruno@clisp.org>
679
680         tests: init.sh: Support any non-GNU diff.
681         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
682         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
683         Solaris 8.
684
685 2011-09-02  Bruno Haible  <bruno@clisp.org>
686
687         tests: init.sh: work also with any non-GNU diff that supports -u
688         * tests/init.sh: Relax check for diff -u support.
689         Rather than checking for GNU diff via --version, simply check
690         for support for -u itself.  Useful at least on OpenBSD 4.9,
691         AIX 7.1, IRIX 6.5, and Solaris 10.
692
693 2011-09-01  Bruno Haible  <bruno@clisp.org>
694
695         strtoimax, strtoumax: Document problem on HP-UX 11.
696         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
697         * doc/posix-functions/strtoumax.texi: Likewise.
698
699 2011-09-01  Bruno Haible  <bruno@clisp.org>
700
701         strtoumax: Avoid link error on OSF/1 with DTK cc.
702         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
703         defined as a function.
704         * modules/strtoumax (Depends-on, configure.ac): Test only whether
705         strtoumax is defined, not whether it is declared.
706
707 2011-09-01  Bruno Haible  <bruno@clisp.org>
708
709         strtoimax: Avoid link error on OSF/1 with DTK cc.
710         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
711         defined as a function.
712         * modules/strtoimax (Depends-on, configure.ac): Test only whether
713         strtoimax is defined, not whether it is declared.
714
715 2011-09-01  Bruno Haible  <bruno@clisp.org>
716
717         imaxdiv: Avoid link error on OSF/1 with DTK cc.
718         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
719         as a function.
720         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
721         whether it is declared.
722
723 2011-09-01  Bruno Haible  <bruno@clisp.org>
724
725         imaxabs: Avoid link error on OSF/1 with DTK cc.
726         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
727         as a function.
728         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
729         whether it is declared.
730
731 2011-09-01  Bruno Haible  <bruno@clisp.org>
732
733         Tests for module 'strtoumax'.
734         * modules/strtoumax-tests: New file.
735         * tests/test-strtoumax.c: New file.
736
737         Tests for module 'strtoimax'.
738         * modules/strtoimax-tests: New file.
739         * tests/test-strtoimax.c: New file.
740
741         Tests for module 'imaxdiv'.
742         * modules/imaxdiv-tests: New file.
743         * tests/test-imaxdiv.c: New file.
744
745         Tests for module 'imaxabs'.
746         * modules/imaxabs-tests: New file.
747         * tests/test-imaxabs.c: New file.
748
749 2011-09-01  Bruno Haible  <bruno@clisp.org>
750
751         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
753         pthread_create.
754
755 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
756
757         openat: work around AIX 7.1 fstatat issue
758         This should fix the problem that was not properly fixed
759         in the previous change, dated 2011-08-30.
760         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
761         __need_system_stat_h defined.
762         (orig_fstatat) [HAVE_FSTATAT]: New function.
763         (rpl_fstatat): Go back to the old way of doing things,
764         except call orig_fstatat instead of fstatat.
765         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
766         Remove unnecessary check whether fstatat fills in st_size etc.
767
768 2011-09-01  Bruno Haible  <bruno@clisp.org>
769
770         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
771         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
772         just include the system's header.
773
774 2011-08-31  Jim Meyering  <meyering@redhat.com>
775
776         tests: avoid spurious assertion failure in test-float.c on ppc64
777         * tests/test-float.c (test_long_double): Comment out an assertion,
778         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
779         with gcc-4.4.4.
780
781         maint: indent with spaces, not TABs
782         I need to get in the habit of running gnulib's "make check".
783         Both of these would have been caught.
784         * m4/largefile.m4: Indent with spaces, not TABs.
785         * lib/parse-datetime.y (iso_8601_time): Likewise.
786         Spotted by Pádraig Brady.
787
788         test-parse-datetime.c: accommodate a relatively strict gcc warning
789         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
790         to avoid a warning from gcc's -Werror=missing-declarations.
791         Insert a few spaces-before-funcall-parenthesis.
792
793 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
794
795         parse-datetime: accept ISO 8601 date and time rep with "T" separator
796         The parser now accepts ISO 8601 date-time strings with "T" as the
797         separator.  It has long parsed dates like "2004-02-29 16:21:42"
798         with a space between the date and time strings.  Now it also parses
799         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
800         variants like "2004-02-29T16:21:42.333-07:00"
801         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
802         of day representation using the 'T' separator character.
803         * doc/parse-datetime.texi (General date syntax): replace use of
804         deprecated --iso-8601 option with --rfc-3339 in example of date
805         command output formats that can be parsed.
806         * tests/test-parse-datetime.c (tm_diff): New function, taken from
807         lib/parse-datetime.y.
808         (gmt_offset): New function.
809         (main): Add additional test cases to validate ISO8601 extended
810         date and time of day parsing.
811
812 2011-08-31  Bruno Haible  <bruno@clisp.org>
813
814         freopen: Documentation.
815         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
816         name.
817         Reported by Claudio Bley <claudio.bley@gmail.com>.
818
819 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
820
821         freopen: Don't crash if the filename argument is NULL.
822         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
823         NULL.
824
825 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
826
827         openat: work around AIX 7.1 fstatat bug
828         Problem reported by Kevin Brott for GNU tar, in the thread containing
829         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
830         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
831         FSTATAT_ST_SIZE_ETC_BROKEN.
832         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
833         rpl_fstatat.
834         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
835         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
836         AC_CHECK_FUNCS_ONCE for fstatat.
837         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
838         fchmodat, mkdirat, openat and unlinkat.
839
840 2011-08-30  Bruno Haible  <bruno@clisp.org>
841
842         Avoid endless recursions if config.h includes some header files.
843         * lib/fopen.c (__need_FILE): Define already before including config.h.
844         * lib/freopen.c (__need_FILE): Likewise.
845         * lib/open.c (__need_system_fcntl_h): Likewise.
846         * lib/stat.c (__need_system_sys_stat_h): Likewise.
847         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
848         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
849
850 2011-08-25  Karl Berry  <karl@gnu.org>
851
852         * config/srclist.txt (ylwrap): new try.
853         * build-aux/ylwrap: new file.
854
855 2011-08-23  Bruno Haible  <bruno@clisp.org>
856
857         tmpdir: Use a good default directory on native Windows.
858         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
859         (P_tmpdir): Default to _P_tmpdir on native Windows.
860         (path_search): On native Windows, try the value returned by GetTempPath
861         before trying P_tmpdir.
862         * modules/tmpdir (Depends-on): Add pathmax.
863         Suggested by John Darrington <john@darrington.wattle.id.au>.
864
865 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
866
867         doc: fix typo in README-release
868         * top/README-release: Capitalize first word of a sentence.
869
870 2011-08-19  Jim Meyering  <meyering@redhat.com>
871
872         fts: do not exhaust memory when processing million-entry directories
873         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
874         directory would require about 256*N bytes of memory.  Thus, it was
875         easy to construct a directory too large to be processed by any of
876         those tools.  With this change, fts' maximum memory utilization is
877         now limited to around 30MB.
878         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
879         (fts_read): When we've processed the final entry (i.e., when
880         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
881         using the parent entry to read any remaining entries.  Dispatch
882         depending on what fts_build returns:
883         - NULL+stop, aka failure: stop
884         - NULL otherwise: move up in the dir hierarchy
885         - non-NULL: handle this new entry
886         (fts_build): Declare and use new local, continue_readdir.
887         Prepare to be called from fts_read, when the entries
888         from a partially-read directory have just been exhausted.
889         In that case, we'll skip the opendir and instead use the parent's
890         fts_dirp and derive dir_fd from that.
891         Finally, in the readdir loop, if we read max_entries entries,
892         exit the loop ensuring *not* to call closedir.  This is required
893         so that fts_dirp can be reused on a subsequent call.
894         Prompted by Ben England's report of memory exhaustion in find
895         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
896
897         maint: fts: move decl of `dp' down into while loop; split a long line
898         * lib/fts.c (fts_build): No semantic change.
899
900         fts: add/use new struct member, fts_dirp
901         We are about to use this to manage any directory with
902         too many entries to read all of them into memory at once.
903         To do that, we'll need to save the DIR* pointer in each
904         affected FTSENT struct.
905         * lib/fts_.h: Include <dirent.h>.
906         (struct FTSENT) [fts_dirp]: New member.
907         * lib/fts.c (closedir_and_clear): Define.
908         Use it in place of closedir so that we are sure to
909         clear the new fts_dirp member when done with it.
910         (fts_alloc): Initialize the new member.
911         (fts_lfree): Free, if needed.
912
913         maint: fts: give __opendir2 a new parameter and rename
914         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
915         than surreptitiously using sole caller's "dir_fd".
916         (fts_opendir): Rename from __opendir2.
917
918         maint: fts.c: remove __opendir2's now-unused parameter, oflag
919         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
920
921         maint: fts.c: correct off-by-one indentation
922         * lib/fts.c (fts_build): Correct indentation, change style
923         of a couple of block comments, and bracing style.
924
925         maint: fts.c: move __opendir2 #define "up" out of function body
926         * lib/fts.c (__opendir2): Move "up".  No semantic change.
927
928         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
929         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
930         out for a long time and besides was useful only on BSD systems.
931
932 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
933
934         regex: port to Stratus OpenVOS
935         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
936         define to empty, rather than attempting nonportable optimizations.
937         Problem reported by Paul Green in:
938         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
939         and fix suggested by Eric Blake in:
940         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
941
942 2011-08-17  Eric Blake  <eblake@redhat.com>
943
944         getcwd: fix test failures on mingw
945         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
946         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
947         test if long directory cannot be created, and allow mingw errno.
948
949         getcwd-lgpl: fix m4 to match relaxed test for BSD
950         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
951         (gl_FUNC_GETCWD_SIGNATURE): New macro.
952         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
953         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
954         signature problem.
955
956         getcwd: fix compilation on mingw64
957         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
958         getcwd.
959         Reported by Marc-André Lureau.
960
961         pipe2: silence compiler warning
962         * lib/pipe2.c (pipe2): Hide label if it is not used.
963
964 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
965
966         relocatable-prog: fix link error
967         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
968         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
969         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
970         into modules/relocatable-lib without noticing that
971         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
972         also needs to build relocatable.c.
973
974 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
975
976         getaddrinfo: fix sh typo in gai_strerrorA decl checking
977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
978         shell code: it contained a 'break' that was not in a loop.
979         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
980         via a shell-language loop; this may have been true in old Autoconf
981         versions, but it's not true in Autoconf 2.68.  I found this bug
982         when testing coreutils git on Solaris 8, whose shell complains
983         about the syntax error.
984
985 2011-08-12  Simon Josefsson  <simon@josefsson.org>
986
987         * lib/base64.c: Fix comment to reference RFC 4648.
988         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
989         <gvtulder@gmail.com>.
990
991 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
992
993         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
994
995         po/Makefile.in.in: fix make -q problem
996         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
997         rule, since there's no file named 'check-macro-version' and its
998         use as a file breaks make -q.
999         (all): Don't depend on check-macro-version.
1000         (CHECK_MACRO_VERSION): New macro.
1001         (stamp-po): Use it.
1002
1003         configmake: fix make -q problem
1004         * modules/configmake (configmake.h): Update configmake.h's time stamp
1005         even if the file does not change.  Otherwise, 'make -q' fails.
1006         Problem reported by Simon Josefsson in
1007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1008
1009 2011-08-11  Jim Meyering  <meyering@redhat.com>
1010
1011         git-version-gen: correct the advice in a comment
1012         * build-aux/git-version-gen: Correct comment.
1013         Don't recommend to list .tarball-version in .gitignore.
1014
1015 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         base64: fix off-by-one buffer size bug
1018         Problem and (trivial) fix reported by Gijs van Tulder in
1019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1020         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1021         * tests/test-base64.c (main): Catch the bug.
1022
1023 2011-08-10  Eric Blake  <eblake@redhat.com>
1024
1025         closein: correct comments
1026         * lib/closein.c (close_stdin): Improve comments.
1027
1028 2011-08-09  Bruno Haible  <bruno@clisp.org>
1029
1030         More tests for 'fseeko'.
1031         * tests/test-fseeko3.c: New file, from Eric Blake.
1032         * tests/test-fseeko3.sh: New file.
1033         * modules/fseeko-tests (Files): Add them.
1034         (TESTS): Add test-fseeko3.sh.
1035         (check_PROGRAMS): Add test-fseeko3.
1036
1037 2011-08-09  Eric Blake  <eblake@redhat.com>
1038
1039         fseeko: remove unneeded hack
1040         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1041
1042         fseeko: fix bug on glibc
1043         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1044         Reported by John W. Eaton.
1045
1046 2011-08-08  Bruno Haible  <bruno@clisp.org>
1047
1048         unictype/base: Fix interoperability with preinstalled libunistring.
1049         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1050         Reported by Simon Josefsson.
1051
1052 2011-08-08  Bruno Haible  <bruno@clisp.org>
1053
1054         iswblank: Detect declaration correctly.
1055         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1056         AC_CHECK_DECLS invocation.
1057
1058 2011-08-08  Bruno Haible  <bruno@clisp.org>
1059
1060         tcgetsid: Detect declaration correctly.
1061         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1062         AC_CHECK_DECLS invocation.
1063         Reported by Simon Josefsson.
1064
1065 2011-08-08  Eric Blake  <eblake@redhat.com>
1066
1067         largefile: fix typo that regressed large file support
1068         * modules/largefile (configure.ac-early): Fix section name.
1069
1070 2011-08-06  Karl Berry  <karl@gnu.org>
1071
1072         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1073         a separate module.
1074
1075 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1076
1077         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1078         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1079         get prototype for free.
1080
1081 2011-08-04  Bruno Haible  <bruno@clisp.org>
1082
1083         Tests for module 'pathmax'.
1084         * modules/pathmax-tests: New file.
1085         * tests/test-pathmax.c: New file.
1086
1087         canonicalize-lgpl: Support larger filenames on the Hurd.
1088         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1089         Reported by Paul Eggert.
1090
1091         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1092         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1093         * lib/chdir-long.h: Include pathmax.h.
1094         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1095         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1096         (PATH_MAX): Remove code that is done by pathmax.h.
1097         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1098         * lib/tmpfile.c: Add a comment.
1099         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1100         * modules/chdir-long (Depends-on): Add pathmax.
1101         * modules/getcwd (Depends-on): Add pathmax.
1102         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1103         is not defined.
1104         * doc/posix-headers/limits.texi: Mention the pathmax module.
1105         * NEWS: Mention the change.
1106
1107 2011-08-02  Bruno Haible  <bruno@clisp.org>
1108
1109         pthread_sigmask: Actually use results of gl_THREADLIB.
1110         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1111         gl_THREADLIB, not gl_[]THREADLIB.
1112         Reported by Eric Blake.
1113
1114 2011-08-02  Jim Meyering  <meyering@redhat.com>
1115
1116         maint.mk: relax the default _gl_TS_function_match regexp
1117         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1118         space between function name and "(" in an "extern" declaration.
1119         That would fail to match a decl with no space there: extern void foo();
1120
1121 2011-07-31  Iain Nicol  <iain@thenicols.net>
1122
1123         git-version-gen: document that EXTRA_DIST must include .version
1124         * build-aux/git-version-gen: In the how-to-use comment, document
1125         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1126         will fail when run from an unpacked distribution tarball.
1127
1128 2011-08-01  Bruno Haible  <bruno@clisp.org>
1129
1130         wctype-h: Fix last change.
1131         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1132         REPLACE_TOWLOWER to 0.
1133         Reported by Sam Steingold <sds@gnu.org>.
1134
1135 2011-07-31  Bruno Haible  <bruno@clisp.org>
1136
1137         frexpl: Update autoconf test.
1138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1139         according to changes of 2011-06-20.
1140
1141 2011-07-31  Bruno Haible  <bruno@clisp.org>
1142
1143         sys_utsname: Add support for Minix.
1144         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1145         <sys/utsname.h>.
1146         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1147         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1148
1149 2011-07-31  Bruno Haible  <bruno@clisp.org>
1150
1151         strings: Add support for Minix.
1152         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1153         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1154         * doc/posix-headers/strings.texi: Document the Minix problem.
1155
1156 2011-07-31  Bruno Haible  <bruno@clisp.org>
1157
1158         wctype-h: Add support for Minix.
1159         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1160         REPLACE_TOWLOWER.
1161         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1162         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1163         REPLACE_ISWCNTRL.
1164
1165 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1166
1167         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1168         This is a performance improvement for 64-bit hosts: it causes the
1169         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1170
1171 2011-07-31  Bruno Haible  <bruno@clisp.org>
1172
1173         stdioext: Add support for Minix.
1174         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1175         * lib/fpurge.c (fpurge): Likewise.
1176         * lib/freadahead.c (freadahead): Likewise.
1177         * lib/freadable.c (freadable): Likewise.
1178         * lib/freading.c (freading): Likewise.
1179         * lib/freadptr.c (freadptr): Likewise.
1180         * lib/freadseek.c (freadptrinc): Likewise.
1181         * lib/fseeko.c (rpl_fseeko): Likewise.
1182         * lib/fseterr.c (fseterr): Likewise.
1183         * lib/fwritable.c (fwritable): Likewise.
1184         * lib/fwriting.c (fwriting): Likewise.
1185         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1186         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1187
1188 2011-07-31  Bruno Haible  <bruno@clisp.org>
1189
1190         errno: Port to Minix.
1191         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1192         ECONNABORTED are defined.
1193         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1194         GNULIB_defined_ECONNABORTED): New macros.
1195         * lib/strerror-override.h (strerror_override): Test also
1196         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1197         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1198         ECONNABORTED.
1199         * doc/posix-headers/errno.texi: Mention the Minix problem.
1200
1201 2011-07-31  Bruno Haible  <bruno@clisp.org>
1202
1203         Work around declaration collisions on Minix.
1204         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1205         defined, set REPLACE_MBSINIT.
1206         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1207         defined, set REPLACE_MBRTOWC.
1208         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1209         set REPLACE_MBRLEN.
1210         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1211         defined, set REPLACE_MBSRTOWCS.
1212         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1213         defined, set REPLACE_WCRTOMB.
1214         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1215         defined, set REPLACE_WCSRTOMBS.
1216
1217 2011-07-31  Bruno Haible  <bruno@clisp.org>
1218
1219         Add support for Minix with ACK compiler.
1220         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1221         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1222         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1223
1224 2011-07-31  Bruno Haible  <bruno@clisp.org>
1225
1226         Documentation about Minix.
1227         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1228         * doc/glibc-headers/*.texi: Likewise.
1229         * doc/posix-functions/*.texi: Likewise.
1230         * doc/glibc-functions/*.texi: Likewise.
1231
1232 2011-07-31  Bruno Haible  <bruno@clisp.org>
1233
1234         snippet/warn-on-use: Fix indentation.
1235         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1236
1237 2011-07-25  Jim Meyering  <meyering@redhat.com>
1238
1239         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1240         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1241         commands.
1242
1243 2011-07-27  Jim Meyering  <meyering@redhat.com>
1244
1245         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1246         * top/maint.mk (gl_extract_significant_defines_): Now that
1247         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1248         gnulib/lib/signal.in.h, and now that we recommend to
1249         define-if-undefined those two symbols in application code,
1250         we must filter them out of the "significant" list.
1251         This avoids a "make syntax-check" failure in coreutils.
1252
1253 2011-07-26  Eric Blake  <eblake@redhat.com>
1254
1255         warnings: add comments about previous patch
1256         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1257         * m4/include_next.m4: Likewise.
1258         * m4/warn-on-use.m4: Likewise.
1259         * m4/warnings.m4: Likewise, and simplify use.
1260         Suggested by Stefano Lattarini.
1261
1262         include-next, warnings: support older autoconf
1263         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1264         AS_VAR_PUSHDEF in a way that works with older autoconf.
1265         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1266         Reported by Daniel P. Berrange.
1267
1268 2011-07-25  Bruno Haible  <bruno@clisp.org>
1269
1270         fseek, ftell: Fix doc.
1271         * doc/posix-functions/fseek.texi: Reword statement about
1272         AC_SYS_LARGEFILE.
1273         * doc/posix-functions/ftell.texi: Likewise.
1274
1275 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1276             Bruno Haible  <bruno@clisp.org>
1277
1278         Add dependencies to the 'largefile' module.
1279         * modules/fopen (Depends-on): Add 'largefile'.
1280         * modules/freopen (Depends-on): Likewise.
1281         * modules/fseeko (Depends-on): Likewise.
1282         * modules/ftello (Depends-on): Likewise.
1283         * modules/glob (Depends-on): Likewise.
1284         * modules/lseek (Depends-on): Likewise.
1285         * modules/lstat (Depends-on): Likewise.
1286         * modules/mkostemp (Depends-on): Likewise.
1287         * modules/mkostemps (Depends-on): Likewise.
1288         * modules/mkstemp (Depends-on): Likewise.
1289         * modules/mkstemps (Depends-on): Likewise.
1290         * modules/open (Depends-on): Likewise.
1291         * modules/openat (Depends-on): Likewise.
1292         * modules/pread (Depends-on): Likewise.
1293         * modules/pwrite (Depends-on): Likewise.
1294         * modules/scandir (Depends-on): Likewise.
1295         * modules/stat (Depends-on): Likewise.
1296         * modules/tmpfile (Depends-on): Likewise.
1297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1298         since the containing module now depends on the largefile module.
1299         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1300         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1301         off_t is fixed by gnulib.
1302         * doc/posix-functions/freopen.texi: Likewise.
1303         * doc/posix-functions/fseeko.texi: Likewise.
1304         * doc/posix-functions/fstatat.texi: Likewise.
1305         * doc/posix-functions/ftello.texi: Likewise.
1306         * doc/posix-functions/glob.texi: Likewise.
1307         * doc/posix-functions/lseek.texi: Likewise.
1308         * doc/posix-functions/lstat.texi: Likewise.
1309         * doc/posix-functions/mkstemp.texi: Likewise.
1310         * doc/posix-functions/open.texi: Likewise.
1311         * doc/posix-functions/openat.texi: Likewise.
1312         * doc/posix-functions/pread.texi: Likewise.
1313         * doc/posix-functions/pwrite.texi: Likewise.
1314         * doc/posix-functions/scandir.texi: Likewise.
1315         * doc/posix-functions/stat.texi: Likewise.
1316         * doc/posix-functions/tmpfile.texi: Likewise.
1317         * doc/glibc-functions/mkostemp.texi: Likewise.
1318         * doc/glibc-functions/mkostemps.texi: Likewise.
1319         * doc/glibc-functions/mkstemps.texi: Likewise.
1320
1321 2011-07-25  Bruno Haible  <bruno@clisp.org>
1322
1323         fcntl: Move AC_LIBOBJ invocation to module description.
1324         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1325         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1326
1327         fcntl: Remove call-in from fchdir.m4.
1328         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1330
1331         dup3: Remove potential call-in from fchdir.m4.
1332         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1334
1335         dup2: Move AC_LIBOBJ invocation to module description.
1336         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1337         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1338         Don't invoke AC_LIBOBJ.
1339         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1340
1341         dup2: Remove call-in from fchdir.m4.
1342         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1344
1345         fclose: Move AC_LIBOBJ invocation to module description.
1346         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1347         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1348         to 1.
1349         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1350
1351         fclose: Remove call-in from close.m4.
1352         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1353         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1354
1355         close: Move AC_LIBOBJ invocation to module description.
1356         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1357         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1358         1.
1359         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1360
1361         close: Remove call-in from fchdir.m4.
1362         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1364
1365         open: Move AC_LIBOBJ invocation to module description.
1366         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1367         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1368         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1369
1370         open: Remove call-in from fchdir.m4.
1371         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1373
1374         fchdir: Start to remove gl_REPLACE_* idiom.
1375         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1376         (gl_FUNC_FCHDIR): Invoke it.
1377
1378 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1379
1380         * lib/ftell.c (ftell): Comment out cast.
1381
1382         close: use gl_REPLACE_FCLOSE only if defined
1383         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1384         is defined.  The close module doesn't depend on the fclose module
1385         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1387         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1388
1389 2011-07-24  Jim Meyering  <meyering@redhat.com>
1390
1391         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1392         * tests/test-select.h (test_function): Declare as "static".
1393
1394 2011-07-24  Bruno Haible  <bruno@clisp.org>
1395
1396         doc: Mention the effects of AC_SYS_LARGEFILE.
1397         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1398         on this function.
1399         * doc/posix-functions/aio_error.texi: Likewise.
1400         * doc/posix-functions/aio_fsync.texi: Likewise.
1401         * doc/posix-functions/aio_read.texi: Likewise.
1402         * doc/posix-functions/aio_return.texi: Likewise.
1403         * doc/posix-functions/aio_suspend.texi: Likewise.
1404         * doc/posix-functions/aio_write.texi: Likewise.
1405         * doc/posix-functions/fgetpos.texi: Likewise.
1406         * doc/posix-functions/fopen.texi: Likewise.
1407         * doc/posix-functions/freopen.texi: Likewise.
1408         * doc/posix-functions/fsetpos.texi: Likewise.
1409         * doc/posix-functions/fstatvfs.texi: Likewise.
1410         * doc/posix-functions/ftruncate.texi: Likewise.
1411         * doc/posix-functions/ftw.texi: Likewise.
1412         * doc/posix-functions/getrlimit.texi: Likewise.
1413         * doc/posix-functions/glob.texi: Likewise.
1414         * doc/posix-functions/lio_listio.texi: Likewise.
1415         * doc/posix-functions/lockf.texi: Likewise.
1416         * doc/posix-functions/mkstemp.texi: Likewise.
1417         * doc/posix-functions/mmap.texi: Likewise.
1418         * doc/posix-functions/nftw.texi: Likewise.
1419         * doc/posix-functions/openat.texi: Likewise.
1420         * doc/posix-functions/opendir.texi: Likewise.
1421         * doc/posix-functions/posix_fadvise.texi: Likewise.
1422         * doc/posix-functions/posix_fallocate.texi: Likewise.
1423         * doc/posix-functions/pread.texi: Likewise.
1424         * doc/posix-functions/pwrite.texi: Likewise.
1425         * doc/posix-functions/readdir.texi: Likewise.
1426         * doc/posix-functions/readdir_r.texi: Likewise.
1427         * doc/posix-functions/rewinddir.texi: Likewise.
1428         * doc/posix-functions/scandir.texi: Likewise.
1429         * doc/posix-functions/seekdir.texi: Likewise.
1430         * doc/posix-functions/setrlimit.texi: Likewise.
1431         * doc/posix-functions/statvfs.texi: Likewise.
1432         * doc/posix-functions/telldir.texi: Likewise.
1433         * doc/posix-functions/tmpfile.texi: Likewise.
1434         * doc/posix-functions/truncate.texi: Likewise.
1435         * doc/glibc-functions/fallocate.texi: Likewise.
1436         * doc/glibc-functions/fstatfs.texi: Likewise.
1437         * doc/glibc-functions/fts_children.texi: Likewise.
1438         * doc/glibc-functions/fts_read.texi: Likewise.
1439         * doc/glibc-functions/getdirentries.texi: Likewise.
1440         * doc/glibc-functions/mkostemp.texi: Likewise.
1441         * doc/glibc-functions/mkostemps.texi: Likewise.
1442         * doc/glibc-functions/mkstemps.texi: Likewise.
1443         * doc/glibc-functions/preadv.texi: Likewise.
1444         * doc/glibc-functions/pwritev.texi: Likewise.
1445         * doc/glibc-functions/sendfile.texi: Likewise.
1446         * doc/glibc-functions/statfs.texi: Likewise.
1447
1448 2011-07-24  Bruno Haible  <bruno@clisp.org>
1449
1450         doc: Fix typo.
1451         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1452
1453 2011-07-24  Bruno Haible  <bruno@clisp.org>
1454
1455         doc: Mention fsusage.
1456         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1457
1458 2011-07-24  Bruno Haible  <bruno@clisp.org>
1459
1460         doc: Mention new glibc headers and functions.
1461         * doc/glibc-headers/gshadow.texi: New file.
1462         * doc/glibc-functions/endsgent.texi: New file.
1463         * doc/glibc-functions/fgetsgent.texi: New file.
1464         * doc/glibc-functions/fgetsgent_r.texi: New file.
1465         * doc/glibc-functions/getsgent.texi: New file.
1466         * doc/glibc-functions/getsgent_r.texi: New file.
1467         * doc/glibc-functions/getsgnam.texi: New file.
1468         * doc/glibc-functions/getsgnam_r.texi: New file.
1469         * doc/glibc-functions/putsgent.texi: New file.
1470         * doc/glibc-functions/setsgent.texi: New file.
1471         * doc/glibc-functions/sgetsgent.texi: New file.
1472         * doc/glibc-functions/sgetsgent_r.texi: New file.
1473         * doc/glibc-functions/malloc_info.texi: New file.
1474         * doc/glibc-functions/preadv.texi: New file.
1475         * doc/glibc-functions/pwritev.texi: New file.
1476         * doc/glibc-functions/register_printf_modifier.texi: New file.
1477         * doc/glibc-functions/register_printf_specifier.texi: New file.
1478         * doc/glibc-functions/register_printf_type.texi: New file.
1479         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1480         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1481         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1482         * doc/glibc-functions/pthread_getname_np.texi: New file.
1483         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1484         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1485         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1486         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1487         * doc/glibc-functions/pthread_setname_np.texi: New file.
1488         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1489         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1490         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1491         * doc/glibc-functions/qsort_r.texi: New file.
1492         * doc/glibc-functions/quick_exit.texi: New file.
1493         * doc/glibc-functions/syncfs.texi: New file.
1494         * doc/gnulib.texi: Include them.
1495         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1496         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1497         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1498         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1499         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1500         * doc/glibc-functions/execvpe.texi: Likewise.
1501
1502 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1503
1504         ftell: don't include <unistd.h>
1505         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1506         guaranteed to define off_t, and the ftell module depends on the
1507         stdio module.
1508
1509         ftell: do not assume wraparound signed arithmetic
1510         * lib/ftell.c: Include <limits.h>.
1511         (ftell): Don't assume wraparound signed arithmetic.
1512
1513 2011-07-24  Bruno Haible  <bruno@clisp.org>
1514
1515         close: No longer depend on module 'fclose'.
1516         * modules/close (Depends-on): Remove fclose.
1517         * NEWS: Mention the change.
1518         Suggested by Sam Steingold <sds@gnu.org>.
1519
1520 2011-07-24  Bruno Haible  <bruno@clisp.org>
1521
1522         fsusage: Enable large volume support on AIX >= 5.2.
1523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1524         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1525         instead of STAT_STATVFS.
1526         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1527
1528         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1529         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1530         f_blocks field only on MacOS X.
1531
1532         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1534         * modules/fsusage (Depends-on): Add largefile.
1535
1536 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1537
1538         * README: Modernize discussion of signed integers.
1539         Assuming overflow wraparound is no longer safe.
1540         Mention ones' complement and signed magnitude.
1541
1542 2011-07-22  Bruno Haible  <bruno@clisp.org>
1543
1544         select tests, pselect tests: Refactor.
1545         * tests/test-select.h: New file, extracted from tests/test-select.c.
1546         (select_fn): New type.
1547         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1548         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1549         test_pipe): Add my_select argument.
1550         (test_function): Renamed from main. Add my_select argument.
1551         * tests/test-select.c: Move most code to tests/test-select.h. Include
1552         test-select.h.
1553         * modules/select-tests (Files): Add tests/test-select.h.
1554         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1555         (my_select, main): New functions.
1556         * modules/pselect-tests (Files): Add tests/test-select.h,
1557         tests/macros.h, tests/signature.h.
1558         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1559         (configure.ac): Check for <sys/wait.h>.
1560
1561 2011-07-22  Bruno Haible  <bruno@clisp.org>
1562
1563         sys_select tests: Check the signature of FD_*.
1564         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1565         signature tests from here...
1566         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1567         here.
1568         * modules/sys_select-tests (Files): Add tests/signature.h.
1569
1570 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1571
1572         largefile: new module, replacing large-inode
1573         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1574         * MODULES.html.sh: Add largefile, remove large-inode.
1575         * modules/largefile, m4/largefile.m4: New files.
1576         * modules/large-inode, m4/large-inode.m4: Remove.
1577
1578         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1580         implementations that use only 32 bits to count blocks.
1581         On typical hosts with 1024-byte blocks, this fails with file
1582         systems as small as 4 TiB.  Problem reported by Herb Wartens
1583         <http://debbugs.gnu.org/9140> and this should also fix a similar
1584         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1585
1586         large-inode: New module
1587         * MODULES.html.sh: Add it.
1588         * modules/large-inode, m4/large-inode.m4: New files.
1589
1590         extensions: Enable extensions on MacOS X 10.5 and later.
1591         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1592
1593 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1594
1595         file-has-acl: use acl_extended_file_nofollow if available
1596         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1597         (acl_extended_file): New macro.
1598         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1599         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1600
1601 2011-07-21  Bruno Haible  <bruno@clisp.org>
1602
1603         Declare system functions in a way that works with C++.
1604         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1605         declare fdopendir as extern "C".
1606         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1607         declare frexpl as extern "C".
1608         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1609         declare gai_strerror as extern "C".
1610         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1611         programs, declare gai_strerror as extern "C".
1612         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1613         declare getlogin_r as extern "C".
1614         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1615         as extern "C".
1616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1617         declare ldexpl as extern "C".
1618         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1619         as extern "C".
1620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1621         program, declare getmntinfo as extern "C".
1622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1623         stpncpy as extern "C".
1624         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1625         program, declare __xpg_strerror_r as extern "C".
1626         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1627         strndup as extern "C".
1628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1629         declare memset and bzero as extern "C".
1630         Reported by Sam Steingold <sds@gnu.org>.
1631
1632 2011-07-12  Jim Meyering  <meyering@redhat.com>
1633
1634         maint.mk: prohibit inclusion of "verify.h" without use
1635         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1636
1637 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1638
1639         timer-time: A new module to check for timer_settime()
1640         * m4/timer_time.m4: Check for the posix function.
1641         * modules/timer-time: Add the new module.
1642         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1643         Mention it.
1644
1645 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1646             Bruno Haible  <bruno@clisp.org>
1647
1648         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1649         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1650         not defined, assume POSIX threads and look for pthread_sigmask in
1651         $LIBS, without changing $CPPFLAGS.
1652
1653 2011-07-19  Bruno Haible  <bruno@clisp.org>
1654
1655         strstr: Update cross-compilation guess.
1656         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1657         CPUs, guess no, in view of glibc
1658         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1659         Suggested by Eric Blake. Reported by Reuben Thomas.
1660
1661 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1662
1663         getopt-gnu: suppress core dumps from detection code
1664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1665         to suppress core dumps that may well occur on glibc systems.
1666         * modules/getopt-gnu: Depend on nocrash.
1667
1668 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1669
1670         pthread_sigmask: ensure usleep is declared
1671         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1672         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1673
1674 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1675
1676         doc: Document NonStop portability issues.
1677         * doc/posix-functions/sigaction.texi (sigaction):
1678         * doc/posix-headers/signal.texi (signal.h):
1679         Document NonStop.  See Joachim Schmitz in
1680         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1681
1682 2011-07-15  Bruno Haible  <bruno@clisp.org>
1683
1684         ffsl, ffsll: Avoid unportable behaviour.
1685         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1686
1687 2011-07-15  Bruno Haible  <bruno@clisp.org>
1688
1689         ffs: More tests.
1690         * tests/test-ffs.c (NBITS): New macro.
1691         (main): Add more tests.
1692         * tests/test-ffsl.c (NBITS): New macro.
1693         (main): Add more tests.
1694         * tests/test-ffsll.c (NBITS): New macro.
1695         (main): Add more tests.
1696
1697 2011-07-15  Eric Blake  <eblake@redhat.com>
1698
1699         ffsl, ffsll: new modules
1700         * modules/ffsl: New file.
1701         * modules/ffsll: Likewise.
1702         * m4/ffsl.m4: Likewise.
1703         * m4/ffsll.m4: Likewise.
1704         * lib/ffsl.c: Likewise.
1705         * lib/ffsl.h: Likewise.
1706         * lib/ffsll.c: Likewise.
1707         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1708         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1709         * modules/string (Makefile.am): Substitute witnesses.
1710         * lib/strings.in.h (ffsl, ffsll): Declare.
1711         * modules/ffsl-tests: New test file.
1712         * modules/ffsll-tests: Likewise.
1713         * tests/test-ffsl.c: Likewise.
1714         * tests/test-ffsll.c: Likewise.
1715         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1716         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1717         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1718
1719         ffs: fix m4 prerequisite
1720         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1721
1722         ffs: avoid undefined behavior
1723         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1724         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1725         Reported by Bruno Haible.
1726
1727 2011-07-12  Bruno Haible  <bruno@clisp.org>
1728
1729         pthread_sigmask: Rely on module 'threadlib'.
1730         * modules/pthread_sigmask (Depends-on): Add threadlib.
1731         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1732         is defined.
1733
1734 2011-07-12  Bruno Haible  <bruno@clisp.org>
1735
1736         regex: Depend on module 'strcase'.
1737         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1738
1739 2011-07-12  Jim Meyering  <meyering@redhat.com>
1740
1741         warn-on-use: fix typo in file name
1742         * modules/snippet/warn-on-use (Files): Correct file name:
1743         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1744
1745 2011-07-12  Bruno Haible  <bruno@clisp.org>
1746
1747         strings: Document module.
1748         * doc/posix-headers/strings.texi: Mention module 'strings'.
1749
1750 2011-07-12  Bruno Haible  <bruno@clisp.org>
1751
1752         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1753         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1754         (Files, Makefile.am): Update.
1755         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1756         * modules/stdlib (Depends-on): Update.
1757
1758 2011-07-12  Bruno Haible  <bruno@clisp.org>
1759
1760         * NEWS: Mention the changes.
1761
1762         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1763         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1764         (Files, Makefile.am): Update.
1765         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1766         * modules/arpa_inet (Depends-on): Update.
1767         * modules/ctype (Depends-on): Update.
1768         * modules/dirent (Depends-on): Update.
1769         * modules/fcntl-h (Depends-on): Update.
1770         * modules/glob (Depends-on): Update.
1771         * modules/iconv-h (Depends-on): Update.
1772         * modules/inttypes-incomplete (Depends-on): Update.
1773         * modules/langinfo (Depends-on): Update.
1774         * modules/locale (Depends-on): Update.
1775         * modules/math (Depends-on): Update.
1776         * modules/netdb (Depends-on): Update.
1777         * modules/poll-h (Depends-on): Update.
1778         * modules/pty (Depends-on): Update.
1779         * modules/search (Depends-on): Update.
1780         * modules/signal (Depends-on): Update.
1781         * modules/spawn (Depends-on): Update.
1782         * modules/stdio (Depends-on): Update.
1783         * modules/stdlib (Depends-on): Update.
1784         * modules/string (Depends-on): Update.
1785         * modules/strings (Depends-on): Update.
1786         * modules/sys_file (Depends-on): Update.
1787         * modules/sys_ioctl (Depends-on): Update.
1788         * modules/sys_select (Depends-on): Update.
1789         * modules/sys_socket (Depends-on): Update.
1790         * modules/sys_stat (Depends-on): Update.
1791         * modules/sys_time (Depends-on): Update.
1792         * modules/sys_times (Depends-on): Update.
1793         * modules/sys_utsname (Depends-on): Update.
1794         * modules/sys_wait (Depends-on): Update.
1795         * modules/termios (Depends-on): Update.
1796         * modules/time (Depends-on): Update.
1797         * modules/unistd (Depends-on): Update.
1798         * modules/wchar (Depends-on): Update.
1799         * modules/wctype-h (Depends-on): Update.
1800         * MODULES.html.sh (Support for building libraries and executables):
1801         Update.
1802
1803         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1804         * modules/snippet/unused-parameter: Renamed from
1805         modules/unused-parameter.
1806         (Files, Makefile.am): Update.
1807         * build-aux/snippet/unused-parameter.h: Renamed from
1808         build-aux/unused-parameter.h.
1809         * modules/selinux-h (Depends-on): Update.
1810         * modules/unistr/base (Depends-on): Update.
1811         * MODULES.html.sh (Core language properties): Update.
1812
1813         Rename module 'link-warning' to 'snippet/link-warning'.
1814         * modules/snippet/link-warning: Renamed from modules/link-warning.
1815         (Files, Makefile.am): Update.
1816         * build-aux/snippet/link-warning.h: Renamed from
1817         build-aux/link-warning.h.
1818         * MODULES.html.sh (Support for building libraries and executables):
1819         Update.
1820
1821         Rename module 'c++defs' to 'snippet/c++defs'.
1822         * modules/snippet/c++defs: Renamed from modules/c++defs.
1823         (Files, Makefile.am): Update.
1824         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1825         * modules/arpa_inet (Depends-on): Update.
1826         * modules/ctype (Depends-on): Update.
1827         * modules/dirent (Depends-on): Update.
1828         * modules/fcntl-h (Depends-on): Update.
1829         * modules/glob (Depends-on): Update.
1830         * modules/iconv-h (Depends-on): Update.
1831         * modules/langinfo (Depends-on): Update.
1832         * modules/locale (Depends-on): Update.
1833         * modules/math (Depends-on): Update.
1834         * modules/netdb (Depends-on): Update.
1835         * modules/poll-h (Depends-on): Update.
1836         * modules/pty (Depends-on): Update.
1837         * modules/search (Depends-on): Update.
1838         * modules/signal (Depends-on): Update.
1839         * modules/spawn (Depends-on): Update.
1840         * modules/stdio (Depends-on): Update.
1841         * modules/stdlib (Depends-on): Update.
1842         * modules/string (Depends-on): Update.
1843         * modules/strings (Depends-on): Update.
1844         * modules/sys_ioctl (Depends-on): Update.
1845         * modules/sys_select (Depends-on): Update.
1846         * modules/sys_socket (Depends-on): Update.
1847         * modules/sys_stat (Depends-on): Update.
1848         * modules/sys_time (Depends-on): Update.
1849         * modules/sys_wait (Depends-on): Update.
1850         * modules/termios (Depends-on): Update.
1851         * modules/time (Depends-on): Update.
1852         * modules/unistd (Depends-on): Update.
1853         * modules/wchar (Depends-on): Update.
1854         * modules/wctype-h (Depends-on): Update.
1855
1856         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1857         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1858         (Files, Makefile.am): Update.
1859         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1860         * modules/argv-iter (Depends-on): Update.
1861         * modules/arpa_inet (Depends-on): Update.
1862         * modules/dirent (Depends-on): Update.
1863         * modules/fcntl-h (Depends-on): Update.
1864         * modules/fnmatch (Depends-on): Update.
1865         * modules/getopt-posix (Depends-on): Update.
1866         * modules/glob (Depends-on): Update.
1867         * modules/iconv-h (Depends-on): Update.
1868         * modules/inttypes-incomplete (Depends-on): Update.
1869         * modules/locale (Depends-on): Update.
1870         * modules/math (Depends-on): Update.
1871         * modules/netdb (Depends-on): Update.
1872         * modules/search (Depends-on): Update.
1873         * modules/signal (Depends-on): Update.
1874         * modules/spawn (Depends-on): Update.
1875         * modules/stdio (Depends-on): Update.
1876         * modules/stdlib (Depends-on): Update.
1877         * modules/string (Depends-on): Update.
1878         * modules/strings (Depends-on): Update.
1879         * modules/sys_socket (Depends-on): Update.
1880         * modules/sys_stat (Depends-on): Update.
1881         * modules/sys_time (Depends-on): Update.
1882         * modules/sys_times (Depends-on): Update.
1883         * modules/sys_utsname (Depends-on): Update.
1884         * modules/time (Depends-on): Update.
1885         * modules/unistd (Depends-on): Update.
1886         * modules/wchar (Depends-on): Update.
1887         * MODULES.html.sh (Support for building libraries and executables):
1888         Update.
1889
1890 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1891
1892         Improvements on _Noreturn and related modules.
1893
1894         modules/_Exit-tests: test _Noreturn too
1895         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1896         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1897         (main): Use them.
1898
1899         stdnoreturn, stdnoreturn-tests: remove modules
1900         They're not needed here and a bit premature for use elsewhere.  See
1901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1902         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1903         * tests/test-stdnoreturn.c: Remove files.
1904         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1905         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1906         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1907         and using noreturn.
1908         * modules/openat, modules/sigpipe-die, modules/xalloc:
1909         * modules/xmemdup0, modules/xstrtol:
1910         Remove dependency on stdnoreturn.
1911
1912         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1913         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1914         Reparenthesize to avoid GCC warning.
1915         Support Microsoft's syntax.
1916         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1917
1918         _Noreturn-tests: remove module
1919         * modules/_Noreturn-tests: Remove.
1920         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1921         * tests/test-_Noreturn.c: Remove.
1922         * tests/test-stdnoreturn.c: Merge from the old
1923         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1924
1925 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         _Noreturn, stdnoreturn, and related modules.
1928
1929         * top/maint.mk: Adjust to new noreturn support.
1930         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1931         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1932
1933         xalloc: use stdnoreturn.h
1934         * lib/xalloc.h: Include <stdnoreturn.h>.
1935         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1936         * modules/xalloc (Depends-on): Add stdnoreturn.
1937
1938         xstrtol: use stdnoreturn.h
1939         * lib/xstrtol.h: Include <stdnoreturn.h>.
1940         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1941         * modules/xstrtol (Depends-on): Add stdnoreturn.
1942
1943         xmemdup0: use stdnoreturn.h
1944         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1945         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1946         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1947
1948         sigpipe-die: use stdnoreturn.h
1949         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1950         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1951         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1952
1953         openat: use stdnoreturn.h
1954         * lib/openat.h: Include <stdnoreturn.h>.
1955         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1956         * modules/openat (Depends-on): Add stdnoreturn.
1957
1958         * lib/openat-die.c (openat_save_fail): Modernize comment.
1959
1960         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1961
1962         * lib/glthread/thread.h: Modernize comment.
1963
1964         obstack: use _Noreturn
1965         * lib/obstack.c (__attribute__): Remove macro.
1966         (print_and_abort): Use _Noreturn.
1967
1968         c-stack: use _Noreturn
1969         * lib/c-stack.c (die, overflow_handler, segv_handler):
1970         Use _Noreturn rather than __attribute__((noreturn)).
1971
1972         argmatch-tests, exclude_tests: use _Noreturn
1973         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1974         Remove.
1975         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1976
1977         stdlib: use _Noreturn
1978         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1979         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1980         * modules/stdlib (Depends-on): Add _Noreturn.
1981         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1982
1983         stdnoreturn-tests: new module
1984         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1985
1986         stdnoreturn: new module
1987         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1988         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1989
1990         _Noreturn-tests: new module
1991         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1992
1993         _Noreturn: new module
1994         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1995         New section, mentioning it.
1996         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1997
1998         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1999
2000 2011-07-11  Eric Blake  <eblake@redhat.com>
2001
2002         ffs: new module
2003         * modules/ffs: New file.
2004         * m4/ffs.m4: Likewise.
2005         * lib/ffs.c: Likewise.
2006         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2007         * modules/strings (Makefile.am): Substitute witness.
2008         (Depends-on): Add c++defs.
2009         * lib/strings.in.h (ffs): Declare.
2010         * modules/ffs-tests: New test file.
2011         * tests/test-ffs.c: Test new module.
2012         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2013         * doc/posix-functions/ffs.texi (ffs): Likewise.
2014
2015         regex: avoid compiler warning
2016         * lib/regex.c (includes): Include <strings.h>, for use of
2017         strcasecmp in regcomp.c.
2018         Reported by Joachim Schmitz.
2019
2020 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2021
2022         stdint: respect system's intmax_t if INTMAX_MAX
2023         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2024         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2025         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2026         long but int64_t is long long, and where we will clash with the
2027         system intmax_t if we override it.  See
2028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2029         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2030         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2031         similarly for UINTMAX_C.
2032
2033 2011-07-08  Bruno Haible  <bruno@clisp.org>
2034
2035         pthread_sigmask tests: Avoid a compiler warning.
2036         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2037         non-zero.
2038
2039         sigprocmask tests: A better way to avoid a compiler warning.
2040         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2041         (main): Complain if system() returns non-zero.
2042         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2043
2044 2011-07-08  Bruno Haible  <bruno@clisp.org>
2045
2046         pthread_sigmask: Work around IRIX bug.
2047         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2048         bug.
2049         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2050         there may be unblocked pending signals.
2051         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2052
2053 2011-07-08  Bruno Haible  <bruno@clisp.org>
2054
2055         pthread_sigmask: Work around Cygwin bug.
2056         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2057         bug.
2058         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2059         the system's pthread_sigmask function.
2060         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2061
2062 2011-07-08  Bruno Haible  <bruno@clisp.org>
2063
2064         pthread_sigmask: Work around bug in single-threaded implementation.
2065         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2066         FreeBSD, HP-UX, Solaris bug.
2067         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2068         * lib/pthread_sigmask.c: Include <stddef.h>.
2069         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2070         the system's pthread_sigmask function.
2071         * modules/pthread_sigmask (configure.ac): Invoke
2072         gl_PREREQ_PTHREAD_SIGMASK.
2073         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2074         HP-UX, Solaris.
2075
2076 2011-07-08  Eric Blake  <eblake@redhat.com>
2077
2078         test-sigprocmask: avoid compiler warning
2079         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2080         * tests/test-sigprocmask.c (main): Use it to silence warning.
2081         Reported by Jim Meyering.
2082
2083         test-snprintf: avoid compiler warning
2084         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2085         * tests/test-vsnprintf.c (main): Likewise.
2086         Reported by Jim Meyering.
2087
2088 2011-07-08  Bruno Haible  <bruno@clisp.org>
2089
2090         Tests for module 'pthread_sigmask'.
2091         * modules/pthread_sigmask-tests: New file.
2092         * tests/test-pthread_sigmask1.c: New file, based on
2093         tests/test-sigprocmask.c.
2094         * tests/test-pthread_sigmask2.c: New file.
2095
2096 2011-07-08  Jim Meyering  <meyering@redhat.com>
2097
2098         test-getopt.h: avoid warning about an unused variable
2099         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2100
2101 2011-07-07  Jim Meyering  <meyering@redhat.com>
2102
2103         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2104         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2105         now that it no longer contains leading TABs.
2106         Remove unused "url=FIXME" statement.
2107
2108 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2112         When gl_THREADLIB is not in use, assume that the POSIX sematics
2113         are desired.  This is better for Emacs, which uses POSIX semantics
2114         on GNUish and/or POSIXish platforms, and does not use threads at
2115         all otherwise.
2116
2117         pthread_sigmask: fix typo when testing for libraries
2118         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2119         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2120
2121 2011-07-08  Eric Blake  <eblake@redhat.com>
2122
2123         fts: introduce FTS_NOATIME
2124         * lib/fts_.h (FTS_NOATIME): New bit flag.
2125         (FTS_OPTIONMASK): Adjust.
2126         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2127         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2128
2129 2011-07-08  Bruno Haible  <bruno@clisp.org>
2130
2131         Tests for module 'thread'.
2132         * modules/thread-tests: New file.
2133         * tests/test-thread_self.c: New file.
2134         * tests/test-thread_create.cc: New file.
2135
2136 2011-07-08  Bruno Haible  <bruno@clisp.org>
2137
2138         thread: Avoid gcc warnings when using gl_thread_self().
2139         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2140         'void *'.
2141         (gl_thread_self_pointer): Update.
2142
2143 2011-07-07  Bruno Haible  <bruno@clisp.org>
2144
2145         signal-c++-tests: Check declaration of pthread_sigmask.
2146         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2147         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2148         $(LIB_PTHREAD_SIGMASK).
2149
2150 2011-07-07  Bruno Haible  <bruno@clisp.org>
2151
2152         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2153         * lib/signal.in.h (pthread_sigmask): Override if
2154         REPLACE_PTHREAD_SIGMASK is 1.
2155         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2156         REPLACE_PTHREAD_SIGMASK.
2157         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2158         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2159         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2160         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2161         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2162
2163 2011-07-07  Bruno Haible  <bruno@clisp.org>
2164
2165         pthread_sigmask: Ensure declaration in <signal.h>.
2166         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2167         include <pthread.h>.
2168         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2169         problem.
2170
2171 2011-07-07  Bruno Haible  <bruno@clisp.org>
2172
2173         pthread_sigmask: Document the module.
2174         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2175
2176 2011-07-07  Bruno Haible  <bruno@clisp.org>
2177
2178         pthread_sigmask: Follow gnulib conventions.
2179         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2180         gl_PTHREAD_SIGMASK.
2181         * modules/pthread_sigmask (configure.ac): Update.
2182
2183 2011-07-07  Bruno Haible  <bruno@clisp.org>
2184
2185         pthread_sigmask: Make declaration C++ safe.
2186         * lib/signal.in.h: In two special conditions, just do an #include_next.
2187         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2188         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2189         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2190         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2191         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2192         not REPLACE_PTHREAD_MASK.
2193         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2194         not REPLACE_PTHREAD_MASK.
2195         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2196
2197 2011-07-07  Bruno Haible  <bruno@clisp.org>
2198
2199         pthread_sigmask: Fix return value.
2200         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2201         * lib/pthread_sigmask.c: New file.
2202         * modules/pthread_sigmask (Files): Add it.
2203         (configure.ac): Invoke AC_LIBOBJ.
2204
2205 2011-07-07  Eric Blake  <eblake@redhat.com>
2206
2207         getopt: more portable argv creation
2208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2209         const, use char arrays rather than strings.
2210         Suggested by Paul Eggert.
2211
2212 2011-07-07  Bruno Haible  <bruno@clisp.org>
2213
2214         Tests for module 'sigprocmask'.
2215         * modules/sigprocmask-tests: New file.
2216         * tests/test-sigprocmask.c: New file.
2217
2218 2011-07-07  Bruno Haible  <bruno@clisp.org>
2219
2220         float tests: Tweak.
2221         * tests/test-float.c (main): Tweak skip message.
2222
2223 2011-07-07  Eric Blake  <eblake@redhat.com>
2224
2225         getopt: avoid compiler warning during configure
2226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2227         assigning string literals to non-const pointer.
2228
2229         getopt-gnu: avoid crash in glibc getopt
2230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2231         * tests/test-getopt.h (test_getopt): Enhance test.
2232         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2233         * doc/posix-functions/getopt.texi (getopt): Document it.
2234         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2235         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2236         Likewise.
2237
2238 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2239
2240         getopt: handle W; without long options in getopt [BZ #12922]
2241         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2242         but no long options are defined, just return 'W'.
2243
2244 2011-07-07  Bruno Haible  <bruno@clisp.org>
2245
2246         Avoid literal tabs.
2247         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2248         variable containing a tab instead of a literal tab.
2249         Reported by Jim Meyering.
2250
2251 2011-07-07  Bruno Haible  <bruno@clisp.org>
2252
2253         Comments.
2254         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2255
2256 2011-07-06  Bruno Haible  <bruno@clisp.org>
2257
2258         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2259         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2260         <winsock2.h>.
2261         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2262         lib/sys_socket.in.h.
2263         (close, gethostname): Hide declarations from <winsock2.h>.
2264         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2265         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2266         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2267         (select): Don't override if gnulib's <sys/select.h> was already
2268         included.
2269         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2270         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2271         setsockopt, shutdown, select): Tweak indentation.
2272
2273 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2274
2275         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2276         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2277         in an application that does not use the sys_select module.
2278
2279 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2280
2281         poll: do not return 0 on timeout=-1
2282         * lib/poll.c: Loop with yield if no events occured
2283
2284 2011-07-06  Eric Blake  <eblake@redhat.com>
2285
2286         pthread_sigmask: always replace when not using pthread
2287         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2288         replacement when using some threading other than pthread.  Fix
2289         logic bug.
2290
2291 2011-07-06  Bruno Haible  <bruno@clisp.org>
2292
2293         Comments.
2294         * m4/printf.m4: Update comments about mingw.
2295
2296 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2297
2298         sys_select: define sigset_t more portably
2299         * lib/sys_select.in.h: Always include <sys/types.h>, since
2300         we now need sigset_t and mingw defines it there.
2301         Include <signal.h> before split inclusion guard, to avoid
2302         mishaps on Solaris, whose <signal.h> eventually includes us.
2303         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2304         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2305         which come from ...
2306         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2307         gl_CHECK_TYPE_SIGSET_T.
2308         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2309         does the real work.
2310         * modules/sys_select (Depends-on): Add 'signal'.
2311
2312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2313         Suggested by Bruno Haible.
2314
2315         pselect: Use pthread_sigmask, not sigprocmask.
2316         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2317         multithreaded apps better than sigprocmask does.
2318         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2319         sigprocmask directly.
2320
2321 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2322
2323         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2324         Don't #undef,  since we don't need any underlying pselect.
2325         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2326         (Depends-on): Add select.
2327         (Link): Add $(LIBSOCKET).
2328         These changes suggested by Bruno Haible.
2329
2330         pselect: document better
2331         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2332         * doc/posix-functions/pselect.texi (pselect): Document new module.
2333
2334         pthread_sigmask: new module
2335         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2336         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2337         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2338         This is done only as a macro; I don't know how well that'll
2339         work for C++.  Move <sys/types.h> include before the include_next,
2340         to avoid mishap on Solaris.
2341         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2342         * modules/signal (Makefile.am): Substitute the check's results.
2343         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2344
2345         test-pselect: new module
2346         * modules/pselect-tests, tests/test-pselect.c: New files.
2347         * tests/test-select.c, tests/test-sys_select-c++.cc:
2348         If TEST_PSELECT is defined, test pselect instead of testing select.
2349
2350         * tests/test-sys_select.c (sigset_t): Test for it, too.
2351         Suggested by Bruno Haible.
2352
2353 2011-07-05  Eric Blake  <eblake@redhat.com>
2354
2355         snprintf: guarantee %1$d, for libintl
2356         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2357         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2358         * doc/posix-functions/snprintf.texi (snprintf): Update.
2359         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2360         * tests/test-snprintf.c (main): Enhance test.
2361         * tests/test-vsnprintf.c (main): Likewise.
2362
2363 2011-07-05  Jim Meyering  <meyering@redhat.com>
2364
2365         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2366         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2367         per Bruno's request, to accommodate this idiom (no space after "#")
2368         even when the function is inside an #if block:
2369         char *
2370         gets (char *s)
2371         #undef gets
2372         {
2373           ...
2374         }
2375
2376 2011-07-04  Jim Meyering  <meyering@redhat.com>
2377
2378         maint: indent with spaces, not TABs, and add a rule to check this
2379         * tests/test-userspec.c: Indent with spaces, not TABs.
2380         * tests/test-argp.c: Likewise.
2381         * tests/test-c-stack2.sh: Likewise.
2382         * tests/test-parse-duration.sh: Likewise
2383         * m4/strtod.m4: Likewise.
2384         * m4/alloca.m4: Likewise.
2385         * m4/pselect.m4: Likewise.
2386         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2387
2388 2011-07-03  Jim Meyering  <meyering@redhat.com>
2389
2390         maint.mk: correct omissions in prohibit_argmatch_without_use check
2391         This rule would mistakenly report that argmatch.h is included without
2392         use even when both the argmatch and invalid_arg macro were used.
2393         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2394         of argmatch and invalid_arg.
2395
2396 2011-07-03  Bruno Haible  <bruno@clisp.org>
2397
2398         Comments about EINTR.
2399         * lib/safe-read.h: Explain the purpose of this module.
2400         * lib/safe-write.h: Likewise.
2401         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2402         module.
2403         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2404         module.
2405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2406
2407 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         xnanosleep: Rewrite to use new dtotimespec module.
2410         It has the conversion code that used to be in xnanosleep.
2411         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2412         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2413         (TIME_T_MAX): Remove.
2414         (xnanosleep): Rewrite in terms of dtotimespec.
2415         * modules/xnanosleep (Depends-on): Add dtotimespec.
2416         Remove intprops, stdbool.
2417
2418         timespec-add, timespec-sub: new modules
2419         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2420         * lib/timespec-add.c, lib/timespec-sub.c:
2421         * modules/timespec-add, modules/timespec-sub: New files.
2422
2423         dtotimespec: new module
2424         * lib/timespec.h (dtotimespec): New decl.
2425         * lib/dtotimespec.c, modules/dtotimespec: New files.
2426
2427         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2428
2429         pselect: new module
2430         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2431         (pselect): New decls.
2432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2433         since the standard pselect decl uses 'restrict'.
2434         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2435         HAVE_PSELECT, REPLACE_PSELECT.
2436         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2437         HAVE_PSELECT, REPLACE_PSELECT.
2438         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2439
2440         sys_select: don't depend on sys_socket
2441         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2443         This fix works on GNU and GNU-like platforms, but has not been tested
2444         on native Windows.
2445         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2446         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2447         gl_HEADER_SYS_SOCKET.
2448         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2449         gl_PREREQ_SYS_H_WINSOCK2.
2450
2451 2011-06-29  Eric Blake  <eblake@redhat.com>
2452
2453         pipe2: fix C89 compile problem
2454         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2455         Reported by Bruno Haible.
2456
2457         pipe, pipe2: don't corrupt fd on error
2458         * lib/pipe.c (pipe): Leave fd unchanged on error.
2459         * lib/pipe2.c (pipe2): Likewise.
2460         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2461         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2462
2463 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2464
2465         mmap-anon: do not use regular expressions inadvertently
2466         * m4/mmap-anon.m4: Remove trailing period from strings sought
2467         in the output.
2468
2469 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2470
2471         nanosleep: fix integer overflow problem
2472         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2473         arithmetic wraps around on overflow.
2474
2475         nanosleep: simplify carrying
2476         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2477         first call to the underyling nanosleep, not for the last one.
2478         This doesn't fix any bugs, but it simplifies the computation of
2479         the remaining delay.  Found while auditing integer overflow issues.
2480
2481         dup2: remove test for existence of fcntl
2482         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2483         "#if HAVE_FCNTL", in the configure-time test program.
2484         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2485         and therefore speeds up "configure" a bit.  Found while
2486         adding the dup2 module to Emacs.
2487
2488 2011-06-24  Eric Blake  <eblake@redhat.com>
2489
2490         maint.mk: enhance useless header checks
2491         * top/maint.mk (_sc_header_without_use): Check both include
2492         styles.
2493         (sc_prohibit_assert_without_use)
2494         (sc_prohibit_close_stream_without_use)
2495         (sc_prohibit_getopt_without_use)
2496         (sc_prohibit_quotearg_without_use)
2497         (sc_prohibit_quote_without_use)
2498         (sc_prohibit_long_options_without_use)
2499         (sc_prohibit_inttostr_without_use)
2500         (sc_prohibit_ignore_value_without_use)
2501         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2502         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2503         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2504         (sc_prohibit_hash_pjw_without_use)
2505         (sc_prohibit_safe_read_without_use)
2506         (sc_prohibit_argmatch_without_use)
2507         (sc_prohibit_canonicalize_without_use)
2508         (sc_prohibit_root_dev_ino_without_use)
2509         (sc_prohibit_openat_without_use)
2510         (sc_prohibit_c_ctype_without_use)
2511         (sc_prohibit_signal_without_use)
2512         (sc_prohibit_stdio--_without_use)
2513         (sc_prohibit_stdio-safer_without_use)
2514         (sc_prohibit_strings_without_use)
2515         (sc_prohibit_intprops_without_use)
2516         (sc_prohibit_stddef_without_use)
2517         (sc_prohibit_xfreopen_without_use): Update clients.
2518
2519 2011-06-24  Jim Meyering  <meyering@redhat.com>
2520
2521         syntax-check: keep one maint.mk rule in sync with its header
2522         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2523         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2524         I prefer to avoid temporary files here, so use <(...), but that
2525         is not supported by /bin/sh, so...
2526         (SHELL): Define to /bin/bash.
2527
2528 2011-06-24  Eric Blake  <eblake@redhat.com>
2529
2530         maint.mk: update sc_prohibit_intprops_without_use
2531         * top/maint.mk (_intprops_names): Match recent changes.
2532
2533 2011-06-24  Bruno Haible  <bruno@clisp.org>
2534
2535         strerror-override: No-op tweak.
2536         * lib/strerror-override.h (strerror_override): Reorder conditions,
2537         for consistency with lib/strerror-override.c.
2538
2539 2011-06-23  Eric Blake  <eblake@redhat.com>
2540
2541         maint.mk: test further PATH_MAX issues
2542         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2543         (sc_prohibit_path_max_allocation): ...and also test alloca.
2544         Suggested by Jim Meyering.
2545
2546 2011-06-22  Eric Blake  <eblake@redhat.com>
2547
2548         maint.mk: add syntax-check to avoid char[PATH_MAX]
2549         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2550
2551         stat: be robust to PATH_MAX definition
2552         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2553         * modules/stat (Depends-on): Add verify.
2554
2555         link: work around IRIX bug
2556         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2557         * lib/link.c (rpl_link): Work around it.
2558         * tests/test-link.h (test_link): Enhance test.
2559         * doc/posix-functions/link.texi (link): Document the bug.
2560
2561         getopt: silence clang warning
2562         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2563         dereference.
2564         Reported by Gustavo Martin Domato.
2565
2566 2011-06-22  Jim Meyering  <meyering@redhat.com>
2567
2568         bootstrap: do not insert a blank line into each .gitignore file
2569         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2570
2571 2011-06-21  Eric Blake  <eblake@redhat.com>
2572
2573         perror: test for output mismatch
2574         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2575         perror on IRIX.
2576
2577         strerror_r: fix OpenBSD behavior on out-of-range
2578         * lib/strerror_r.c (strerror_r): Always use maximal string.
2579         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2580
2581         strerror_r: fix OpenBSD behavior on 0
2582         * lib/strerror-override.c (strerror_override): Also override 0
2583         when needed.
2584         * lib/strerror-override.h (strerror_override): Likewise.
2585         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2586         earlier.
2587         * lib/strerror_r.c (strerror_r): Likewise.
2588         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2589         behavior...
2590         (gl_FUNC_STRERROR_0): ...into new macro.
2591         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2592         is overridden.
2593         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2594         * modules/strerror-override (Files): Add strerror.m4.
2595         (configure.ac): Also provide override for 0 when needed.
2596         * doc/posix-functions/strerror.texi (strerror): Document this.
2597         * doc/posix-functions/perror.texi (perror): Likewise.
2598
2599         perror: adjust array size
2600         * modules/perror (Depends-on): Add strerror-override.
2601         * lib/perror.c (perror): Use it to avoid magic number.
2602
2603         strerror-override: reduce size
2604         * lib/strerror-override.c (strerror_override): Use fewer lines.
2605
2606 2011-06-20  Bruno Haible  <bruno@clisp.org>
2607
2608         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2609         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2610
2611 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2612
2613         alloca: port to compilers that can optimize like GCC 4.6.0
2614         * lib/alloca.c (find_stack_direction): New signature, taken from
2615         Autoconf git.  This works with GCC 4.6.0.  This code should never
2616         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2617         be used with other compilers that optimize as well as GCC 4.6.0 does.
2618         (alloca): Adjust to new signature.
2619         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2620         New macro, which patches Autoconf in a similar way.
2621
2622         c-stack: stop worrying about stack direction
2623         * lib/c-stack.c (find_stack_direction): Remove.
2624         (segv_handler): Don't worry about stack direction growth, as it's
2625         too much of a pain to configure this correctly, given how compilers
2626         are optimizing-away our stack-growth detection code.  Instead, assume
2627         that any access to just before or just after the stack is OK.
2628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2629         Don't require AC_FUNC_ALLOCA; no longer needed.
2630
2631 2011-06-20  Eric Blake  <eblake@redhat.com>
2632
2633         test-stat: don't allocate PATH_MAX bytes
2634         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2635         PATH_MAX-sized buffer.
2636         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2637         * modules/stat-tests (Depends-on): Likewise.
2638         * tests/test-fstatat.c (includes): Drop pathmax.h.
2639         * tests/test-stat.c (includes): Likewise.
2640         Reported by Bruno Haible.
2641
2642 2011-06-20  Bruno Haible  <bruno@clisp.org>
2643
2644         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2645         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2646         * lib/float.c: New file.
2647         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2648         REPLACE_FLOAT_LDBL.
2649         * modules/float (Files): Add lib/float.c.
2650         (configure.ac): Invoke AC_LIBOBJ.
2651         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2652
2653 2011-06-20  Bruno Haible  <bruno@clisp.org>
2654
2655         Tests for module 'float'.
2656         * modules/float-tests: New file.
2657         * tests/test-float.c: New file.
2658
2659 2011-06-19  Bruno Haible  <bruno@clisp.org>
2660
2661         isinf: Coding style.
2662         * lib/isinf.c: Use GNU coding style.
2663
2664 2011-06-19  Bruno Haible  <bruno@clisp.org>
2665
2666         linkat test: Avoid test failure on AIX 7.1.
2667         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2668         * tests/test-link.h (test_link): Likewise.
2669
2670 2011-06-19  Bruno Haible  <bruno@clisp.org>
2671
2672         pread test: Avoid test failure on OpenBSD 4.9.
2673         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2674
2675 2011-06-19  Bruno Haible  <bruno@clisp.org>
2676
2677         sprintf-posix: Fix test failure on AIX 7.1.
2678         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2679         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2680         on AIX.
2681         * doc/posix-functions/fprintf.texi: Likewise.
2682         * doc/posix-functions/printf.texi: Likewise.
2683         * doc/posix-functions/snprintf.texi: Likewise.
2684         * doc/posix-functions/sprintf.texi: Likewise.
2685         * doc/posix-functions/vdprintf.texi: Likewise.
2686         * doc/posix-functions/vfprintf.texi: Likewise.
2687         * doc/posix-functions/vprintf.texi: Likewise.
2688         * doc/posix-functions/vsnprintf.texi: Likewise.
2689         * doc/posix-functions/vsprintf.texi: Likewise.
2690
2691 2011-06-19  Bruno Haible  <bruno@clisp.org>
2692
2693         roundl-ieee: Fix test failure on AIX 7.1.
2694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2695         * doc/posix-functions/roundl.texi: Mention problem with negative
2696         arguments.
2697
2698 2011-06-19  Bruno Haible  <bruno@clisp.org>
2699
2700         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2701         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2702         * doc/posix-functions/round.texi: Mention problem with negative
2703         arguments.
2704         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2705
2706 2011-06-19  Bruno Haible  <bruno@clisp.org>
2707
2708         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2710         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2711         * doc/posix-functions/roundf.texi: Mention problem with negative
2712         arguments.
2713         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2714
2715 2011-06-19  Bruno Haible  <bruno@clisp.org>
2716
2717         ceilf-ieee: Work around bug on MacOS X 10.5.
2718         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2719
2720         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2721         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2722         IEEE compliant, avoid compiler optimizations.
2723         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2724         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2725         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2726         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2727         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2728         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2731         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2732         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2733
2734 2011-06-19  Bruno Haible  <bruno@clisp.org>
2735
2736         ceilf-ieee: Work around bug on AIX 7.1.
2737         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2738         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2739
2740 2011-06-19  Bruno Haible  <bruno@clisp.org>
2741
2742         ceil-ieee: Work around bug on AIX 7.1.
2743         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2744         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2745
2746 2011-06-18  Bruno Haible  <bruno@clisp.org>
2747
2748         fsync test: Avoid test failure on MacOS X and AIX.
2749         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2750         EINVAL.
2751
2752 2011-06-18  Bruno Haible  <bruno@clisp.org>
2753
2754         openat, fdopendir tests: Fix link errors.
2755         * modules/openat-tests (Depends-on): Add progname.
2756         * modules/fdopendir-tests (Depends-on): Likewise.
2757         * tests/test-fchownat.c: Include progname.h.
2758         (main): Call set_program_name.
2759         * tests/test-fstatat.c: Include progname.h.
2760         (main): Call set_program_name.
2761         * tests/test-mkdirat.c: Include progname.h.
2762         (main): Call set_program_name.
2763         * tests/test-openat.c: Include progname.h.
2764         (main): Call set_program_name.
2765         * tests/test-unlinkat.c: Include progname.h.
2766         (main): Call set_program_name.
2767         * tests/test-fdopendir.c: Include progname.h.
2768         (main): Call set_program_name.
2769
2770 2011-06-18  Bruno Haible  <bruno@clisp.org>
2771
2772         Doc update.
2773         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2774         HP-UX.
2775         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2776
2777 2011-06-18  Bruno Haible  <bruno@clisp.org>
2778
2779         getcwd tests: Avoid compilation error on HP-UX 11.31.
2780         * modules/getcwd-tests (Depends-on): Add pathmax.
2781         * tests/test-getcwd.c: Include pathmax.h.
2782
2783 2011-06-18  Bruno Haible  <bruno@clisp.org>
2784
2785         isfinite, isinf: Fix link error on AIX 6 and 7.
2786         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2787         needed, also test the macro with a 'float' argument.
2788         * m4/isinf.m4 (gl_ISINF): Likewise.
2789
2790 2011-06-18  Bruno Haible  <bruno@clisp.org>
2791
2792         getloadavg: Don't clobber LIBS. Regression from previous commit.
2793         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2794         AC_CHECK_LIB from here...
2795         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2796         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2797         gl_func_getloadavg_done.
2798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2799
2800 2011-06-18  Bruno Haible  <bruno@clisp.org>
2801
2802         clean-temp: Improve documentation.
2803         * lib/clean-temp.h: Explain better how to use this module.
2804         Reported by John Darrington <john@darrington.wattle.id.au>.
2805
2806 2011-06-17  Bruno Haible  <bruno@clisp.org>
2807
2808         pread, pwrite: Avoid cc warning on AIX.
2809         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2810         (pwrite): Likewise.
2811
2812 2011-06-17  Bruno Haible  <bruno@clisp.org>
2813
2814         spawn-pipe tests: Fix link error.
2815         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2817
2818 2011-06-17  Bruno Haible  <bruno@clisp.org>
2819
2820         Tests: Remove unnecessary dependency.
2821         * modules/canonicalize-tests (Depends-on): Remove progname.
2822         * modules/chown-tests (Depends-on): Likewise.
2823         * modules/dirname-tests (Depends-on): Likewise.
2824         * modules/fdopendir-tests (Depends-on): Likewise.
2825         * modules/fdutimensat-tests (Depends-on): Likewise.
2826         * modules/hash-tests (Depends-on): Likewise.
2827         * modules/lchown-tests (Depends-on): Likewise.
2828         * modules/linkat-tests (Depends-on): Likewise.
2829         * modules/renameat-tests (Depends-on): Likewise.
2830         * modules/spawn-pipe-tests (Depends-on): Likewise.
2831         * modules/utimensat-tests (Depends-on): Likewise.
2832
2833 2011-06-17  Bruno Haible  <bruno@clisp.org>
2834
2835         spawn-pipe tests: Fix link error.
2836         * tests/test-spawn-pipe-child.c: Undefine fflush.
2837
2838 2011-06-17  Bruno Haible  <bruno@clisp.org>
2839
2840         Fix tests link errors.
2841         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2842         * modules/chown-tests (Makefile.am): Don't link test-chown with
2843         LIBINTL.
2844         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2845         LIBINTL.
2846         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2847         LIBINTL.
2848         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2849         LIBINTL.
2850
2851 2011-06-16  Bruno Haible  <bruno@clisp.org>
2852
2853         crypto/gc-sha1: Fix recent regression.
2854         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2855         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2856
2857         crypto/gc-md5: Fix recent regression.
2858         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2859
2860         crypto/gc-md4: Fix recent regression.
2861         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2862         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2863
2864         crypto/gc-arctwo: Fix recent regression.
2865         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2866         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2867
2868         crypto/gc-rijndael: Fix recent regression.
2869         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2870         (configure.ac): Invoke AC_LIBOBJ here.
2871         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2873
2874         crypto/gc-hmac-sha1: Fix recent regression.
2875         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2876         (configure.ac): Invoke AC_LIBOBJ here.
2877         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2879
2880         crypto/gc-hmac-md5: Fix recent regression.
2881         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2882         (configure.ac): Invoke AC_LIBOBJ here.
2883         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2885
2886         crypto/gc-des: Fix recent regression.
2887         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2888         (configure.ac): Invoke AC_LIBOBJ here.
2889         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2891
2892         crypto/gc-arcfour: Fix recent regression.
2893         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2894         (configure.ac): Invoke AC_LIBOBJ here.
2895         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2896         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2897
2898 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2899
2900         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2901         After the 2011-05-21 change, this macro requires
2902         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2903         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2904
2905 2011-06-16  Bruno Haible  <bruno@clisp.org>
2906
2907         fprintftime: Move AC_LIBOBJ invocations to module description.
2908         * m4/fprintftime.m4: Remove file.
2909         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2910         (configure.ac): Remove gl_FPRINTFTIME call.
2911         (Makefile.am): Augment lib_SOURCES.
2912         Reported by Jim Meyering.
2913
2914 2011-06-16  Bruno Haible  <bruno@clisp.org>
2915
2916         tmpfile-safer: Finish 2011-05-23 commit.
2917         * m4/stdio-safer.m4: Really remove file.
2918         Reported by Jim Meyering.
2919
2920 2011-06-16  Bruno Haible  <bruno@clisp.org>
2921
2922         syntax-check: Fix typo.
2923         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2924         printf-posix.m4.
2925         Reported by Jim Meyering.
2926
2927 2011-06-13  Jim Meyering  <meyering@redhat.com>
2928
2929         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2930         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2931
2932 2011-05-23  Bruno Haible  <bruno@clisp.org>
2933
2934         yesno: Move AC_LIBOBJ invocations to module description.
2935         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2936         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2937
2938 2011-05-23  Bruno Haible  <bruno@clisp.org>
2939
2940         xstrtol: Move AC_LIBOBJ invocations to module description.
2941         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2942         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2943
2944 2011-05-23  Bruno Haible  <bruno@clisp.org>
2945
2946         xstrtold: Move AC_LIBOBJ invocations to module description.
2947         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2948         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2949
2950 2011-05-23  Bruno Haible  <bruno@clisp.org>
2951
2952         xstrtod: Move AC_LIBOBJ invocations to module description.
2953         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2954         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2955
2956 2011-05-23  Bruno Haible  <bruno@clisp.org>
2957
2958         xnanosleep: Move AC_LIBOBJ invocations to module description.
2959         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2960         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2961
2962 2011-05-23  Bruno Haible  <bruno@clisp.org>
2963
2964         xgetcwd: Move AC_LIBOBJ invocations to module description.
2965         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2966         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2967
2968 2011-05-23  Bruno Haible  <bruno@clisp.org>
2969
2970         xalloc: Move AC_LIBOBJ invocations to module description.
2971         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2972         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2973
2974 2011-05-23  Bruno Haible  <bruno@clisp.org>
2975
2976         write-any-file: Move AC_LIBOBJ invocations to module description.
2977         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2978         invocation.
2979         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2980
2981 2011-05-23  Bruno Haible  <bruno@clisp.org>
2982
2983         utimens: Move AC_LIBOBJ invocations to module description.
2984         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2985         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2986
2987 2011-05-23  Bruno Haible  <bruno@clisp.org>
2988
2989         utimecmp: Move AC_LIBOBJ invocations to module description.
2990         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2991         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2992
2993 2011-05-23  Bruno Haible  <bruno@clisp.org>
2994
2995         userspec: Move AC_LIBOBJ invocations to module description.
2996         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2997         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2998
2999 2011-05-23  Bruno Haible  <bruno@clisp.org>
3000
3001         unlinkdir: Move AC_LIBOBJ invocations to module description.
3002         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3003         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3004
3005 2011-05-23  Bruno Haible  <bruno@clisp.org>
3006
3007         unistd-safer: Move AC_LIBOBJ invocations to module description.
3008         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3009         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3010
3011 2011-05-23  Bruno Haible  <bruno@clisp.org>
3012
3013         tempname: Move AC_LIBOBJ invocations to module description.
3014         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3015         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3016
3017 2011-05-23  Bruno Haible  <bruno@clisp.org>
3018
3019         strftime: Move AC_LIBOBJ invocations to module description.
3020         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3021         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3022
3023 2011-05-23  Bruno Haible  <bruno@clisp.org>
3024
3025         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3026         * m4/stdlib-safer.m4: Remove file.
3027         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3028         (configure.ac): Remove gl_STDLIB_SAFER call.
3029         (Makefile.am): Augment lib_SOURCES.
3030
3031 2011-05-23  Bruno Haible  <bruno@clisp.org>
3032
3033         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3034         * m4/stdio-safer.m4: Remove file.
3035         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3036         (configure.ac): Remove gl_TMPFILE_SAFER call.
3037         (Makefile.am): Augment lib_SOURCES.
3038
3039 2011-05-23  Bruno Haible  <bruno@clisp.org>
3040
3041         popen-safer: Move AC_LIBOBJ invocations to module description.
3042         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3043         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3044         (configure.ac): Remove gl_POPEN_SAFER call.
3045         (Makefile.am): Augment lib_SOURCES.
3046
3047 2011-05-23  Bruno Haible  <bruno@clisp.org>
3048
3049         freopen-safer: Move AC_LIBOBJ invocations to module description.
3050         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3051         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3052         (configure.ac): Remove gl_FREOPEN_SAFER call.
3053         (Makefile.am): Augment lib_SOURCES.
3054
3055 2011-05-23  Bruno Haible  <bruno@clisp.org>
3056
3057         fopen-safer: Move AC_LIBOBJ invocations to module description.
3058         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3059         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3060         (configure.ac): Remove gl_FOPEN_SAFER call.
3061         (Makefile.am): Augment lib_SOURCES.
3062
3063 2011-05-23  Bruno Haible  <bruno@clisp.org>
3064
3065         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3066         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3067         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3068
3069 2011-05-23  Bruno Haible  <bruno@clisp.org>
3070
3071         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3072         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3073         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3074
3075 2011-05-23  Bruno Haible  <bruno@clisp.org>
3076
3077         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3078         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3079         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3080
3081 2011-05-23  Bruno Haible  <bruno@clisp.org>
3082
3083         settime: Move AC_LIBOBJ invocations to module description.
3084         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3085         * modules/settime (Makefile.am): Augment lib_SOURCES.
3086
3087 2011-05-23  Bruno Haible  <bruno@clisp.org>
3088
3089         savedir: Move AC_LIBOBJ invocations to module description.
3090         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3091         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3092
3093 2011-05-23  Bruno Haible  <bruno@clisp.org>
3094
3095         save-cwd: Move AC_LIBOBJ invocations to module description.
3096         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3097         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3098
3099 2011-05-23  Bruno Haible  <bruno@clisp.org>
3100
3101         same: Move AC_LIBOBJ invocations to module description.
3102         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3103         * modules/same (Makefile.am): Augment lib_SOURCES.
3104
3105 2011-05-23  Bruno Haible  <bruno@clisp.org>
3106
3107         safe-write: Move AC_LIBOBJ invocations to module description.
3108         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3109         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3110         instead of gl_SAFE_WRITE.
3111         (Makefile.am): Augment lib_SOURCES.
3112
3113 2011-05-23  Bruno Haible  <bruno@clisp.org>
3114
3115         safe-read: Move AC_LIBOBJ invocations to module description.
3116         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3117         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3118         of gl_SAFE_READ.
3119         (Makefile.am): Augment lib_SOURCES.
3120
3121 2011-05-23  Bruno Haible  <bruno@clisp.org>
3122
3123         safe-alloc: Move AC_LIBOBJ invocations to module description.
3124         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3125         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3126
3127 2011-05-23  Bruno Haible  <bruno@clisp.org>
3128
3129         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3130         * m4/rijndael.m4: Remove file.
3131         * modules/crypto/rijndael (Files): Remove it.
3132         (configure.ac): Remove gl_RIJNDAEL call.
3133         (Makefile.am): Augment lib_SOURCES.
3134
3135 2011-05-23  Bruno Haible  <bruno@clisp.org>
3136
3137         readtokens: Move AC_LIBOBJ invocations to module description.
3138         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3139         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3140
3141 2011-05-23  Bruno Haible  <bruno@clisp.org>
3142
3143         read-file: Move AC_LIBOBJ invocations to module description.
3144         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3145         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3146         of gl_FUNC_READ_FILE.
3147         (Makefile.am): Augment lib_SOURCES.
3148
3149 2011-05-23  Bruno Haible  <bruno@clisp.org>
3150
3151         quotearg: Move AC_LIBOBJ invocations to module description.
3152         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3153         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3154
3155 2011-05-23  Bruno Haible  <bruno@clisp.org>
3156
3157         quote: Move AC_LIBOBJ invocations to module description.
3158         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3159         * modules/quote (Makefile.am): Augment lib_SOURCES.
3160
3161 2011-05-23  Bruno Haible  <bruno@clisp.org>
3162
3163         posixver: Move AC_LIBOBJ invocations to module description.
3164         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3165         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3166
3167 2011-05-23  Bruno Haible  <bruno@clisp.org>
3168
3169         posixtm: Move AC_LIBOBJ invocations to module description.
3170         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3171         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3172
3173 2011-05-23  Bruno Haible  <bruno@clisp.org>
3174
3175         physmem: Move AC_LIBOBJ invocations to module description.
3176         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3177         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3178
3179 2011-05-23  Bruno Haible  <bruno@clisp.org>
3180
3181         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3182         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3183         invocation.
3184         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3185
3186 2011-05-23  Bruno Haible  <bruno@clisp.org>
3187
3188         mpsort: Move AC_LIBOBJ invocations to module description.
3189         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3190         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3191
3192 2011-05-23  Bruno Haible  <bruno@clisp.org>
3193
3194         modechange: Move AC_LIBOBJ invocations to module description.
3195         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3196         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3197
3198 2011-05-23  Bruno Haible  <bruno@clisp.org>
3199
3200         mkdir-p: Move AC_LIBOBJ invocations to module description.
3201         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3202         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3203
3204 2011-05-23  Bruno Haible  <bruno@clisp.org>
3205
3206         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3207         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3208         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3209
3210 2011-05-23  Bruno Haible  <bruno@clisp.org>
3211
3212         mgetgroups: Move AC_LIBOBJ invocations to module description.
3213         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3214         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3215
3216 2011-05-23  Bruno Haible  <bruno@clisp.org>
3217
3218         memxor: Move AC_LIBOBJ invocations to module description.
3219         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3220         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3221
3222 2011-05-23  Bruno Haible  <bruno@clisp.org>
3223
3224         memcoll: Move AC_LIBOBJ invocations to module description.
3225         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3226         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3227
3228 2011-05-23  Bruno Haible  <bruno@clisp.org>
3229
3230         memcasecmp: Move AC_LIBOBJ invocations to module description.
3231         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3232         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3233
3234 2011-05-23  Bruno Haible  <bruno@clisp.org>
3235
3236         crypto/md5: Move AC_LIBOBJ invocations to module description.
3237         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3238         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3239
3240 2011-05-23  Bruno Haible  <bruno@clisp.org>
3241
3242         crypto/md4: Move AC_LIBOBJ invocations to module description.
3243         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3244         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3245
3246 2011-05-23  Bruno Haible  <bruno@clisp.org>
3247
3248         crypto/md2: Move AC_LIBOBJ invocations to module description.
3249         * m4/md2.m4: Remove file.
3250         * modules/crypto/md2 (Files): Remove it.
3251         (configure.ac): Remove gl_MD2 call.
3252         (Makefile.am): Augment lib_SOURCES.
3253
3254 2011-05-23  Bruno Haible  <bruno@clisp.org>
3255
3256         long-options: Move AC_LIBOBJ invocations to module description.
3257         * m4/long-options.m4: Remove file.
3258         * modules/long-options (Files): Remove it.
3259         (configure.ac): Remove gl_LONG_OPTIONS call.
3260         (Makefile.am): Augment lib_SOURCES.
3261
3262 2011-05-23  Bruno Haible  <bruno@clisp.org>
3263
3264         i-ring: Move AC_LIBOBJ invocations to module description.
3265         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3266         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3267
3268 2011-05-23  Bruno Haible  <bruno@clisp.org>
3269
3270         idcache: Move AC_LIBOBJ invocations to module description.
3271         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3272         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3273
3274 2011-05-23  Bruno Haible  <bruno@clisp.org>
3275
3276         human: Move AC_LIBOBJ invocations to module description.
3277         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3278         * modules/human (Makefile.am): Augment lib_SOURCES.
3279
3280 2011-05-23  Bruno Haible  <bruno@clisp.org>
3281
3282         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3283         * m4/hmac-sha1.m4: Remove file.
3284         * modules/crypto/hmac-sha1 (Files): Remove it.
3285         (configure.ac): Remove gl_HMAC_SHA1 call.
3286         (Makefile.am): Augment lib_SOURCES.
3287
3288 2011-05-23  Bruno Haible  <bruno@clisp.org>
3289
3290         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3291         * m4/hmac-md5.m4: Remove file.
3292         * modules/crypto/hmac-md5 (Files): Remove it.
3293         (configure.ac): Remove gl_HMAC_MD5 call.
3294         (Makefile.am): Augment lib_SOURCES.
3295
3296 2011-05-23  Bruno Haible  <bruno@clisp.org>
3297
3298         hash: Move AC_LIBOBJ invocations to module description.
3299         * m4/hash.m4: Remove file.
3300         * modules/hash (Files): Remove it.
3301         (configure.ac): Remove gl_HASH call.
3302         (Makefile.am): Augment lib_SOURCES.
3303
3304 2011-05-23  Bruno Haible  <bruno@clisp.org>
3305
3306         hard-locale: Move AC_LIBOBJ invocations to module description.
3307         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3308         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3309
3310 2011-05-23  Bruno Haible  <bruno@clisp.org>
3311
3312         getugroups: Move AC_LIBOBJ invocations to module description.
3313         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3314         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3315
3316 2011-05-23  Bruno Haible  <bruno@clisp.org>
3317
3318         gettime: Move AC_LIBOBJ invocations to module description.
3319         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3320         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3321
3322 2011-05-23  Bruno Haible  <bruno@clisp.org>
3323
3324         getndelim2: Move AC_LIBOBJ invocations to module description.
3325         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3326         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3327
3328 2011-05-23  Bruno Haible  <bruno@clisp.org>
3329
3330         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3331         * m4/gc-pbkdf2-sha1.m4: Remove file.
3332         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3333         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3334         (Makefile.am): Augment lib_SOURCES.
3335
3336 2011-05-23  Bruno Haible  <bruno@clisp.org>
3337
3338         fts: Move AC_LIBOBJ invocations to module description.
3339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3340         * modules/fts (configure.ac): ... to here.
3341
3342 2011-05-23  Bruno Haible  <bruno@clisp.org>
3343
3344         file-type: Move AC_LIBOBJ invocations to module description.
3345         * m4/file-type.m4: Remove file.
3346         * modules/file-type (Files): Remove it.
3347         (configure.ac): Remove gl_FILE_TYPE call.
3348         (Makefile.am): Augment lib_SOURCES.
3349
3350 2011-05-23  Bruno Haible  <bruno@clisp.org>
3351
3352         filenamecat*: Respect rules for use of AC_LIBOBJ.
3353         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3354         Remove AC_LIBOBJ invocation.
3355         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3356         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3357
3358 2011-05-23  Bruno Haible  <bruno@clisp.org>
3359
3360         filemode: Move AC_LIBOBJ invocations to module description.
3361         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3362         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3363
3364 2011-05-23  Bruno Haible  <bruno@clisp.org>
3365
3366         openat-safer: Move AC_LIBOBJ invocations to module description.
3367         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3368         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3369
3370 2011-05-23  Bruno Haible  <bruno@clisp.org>
3371
3372         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3373         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3374         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3375
3376 2011-05-23  Bruno Haible  <bruno@clisp.org>
3377
3378         exclude: Move AC_LIBOBJ invocations to module description.
3379         * m4/exclude.m4: Remove file.
3380         * modules/exclude (Files): Remove it.
3381         (configure.ac): Remove gl_EXCLUDE call.
3382         (Makefile.am): Augment lib_SOURCES.
3383
3384 2011-05-23  Bruno Haible  <bruno@clisp.org>
3385
3386         dirname*: Respect rules for use of AC_LIBOBJ.
3387         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3388         invocations.
3389         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3390         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3391
3392 2011-05-23  Bruno Haible  <bruno@clisp.org>
3393
3394         dirent-safer: Move AC_LIBOBJ invocations to module description.
3395         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3396         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3397
3398 2011-05-23  Bruno Haible  <bruno@clisp.org>
3399
3400         crypto/des: Move AC_LIBOBJ invocations to module description.
3401         * m4/des.m4: Remove file.
3402         * modules/crypto/des (Files): Remove it.
3403         (configure.ac): Remove gl_DES call.
3404         (Makefile.am): Augment lib_SOURCES.
3405
3406 2011-05-23  Bruno Haible  <bruno@clisp.org>
3407
3408         cycle-check: Move AC_LIBOBJ invocations to module description.
3409         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3410         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3411
3412 2011-05-23  Bruno Haible  <bruno@clisp.org>
3413
3414         c-strtold: Move AC_LIBOBJ invocations to module description.
3415         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3416         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3417
3418 2011-05-23  Bruno Haible  <bruno@clisp.org>
3419
3420         c-strtod: Move AC_LIBOBJ invocations to module description.
3421         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3422         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3423
3424 2011-05-23  Bruno Haible  <bruno@clisp.org>
3425
3426         crc: Move AC_LIBOBJ invocations to module description.
3427         * m4/crc.m4: Remove file.
3428         * modules/crc (Files): Remove it.
3429         (configure.ac): Remove gl_CRC call.
3430         (Makefile.am): Augment lib_SOURCES.
3431
3432 2011-05-23  Bruno Haible  <bruno@clisp.org>
3433
3434         close-stream: Move AC_LIBOBJ invocations to module description.
3435         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3436         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3437
3438 2011-05-23  Bruno Haible  <bruno@clisp.org>
3439
3440         closeout: Move AC_LIBOBJ invocations to module description.
3441         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3442         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3443
3444 2011-05-23  Bruno Haible  <bruno@clisp.org>
3445
3446         closein: Move AC_LIBOBJ invocations to module description.
3447         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3448         * modules/closein (Makefile.am): Augment lib_SOURCES.
3449
3450 2011-05-23  Bruno Haible  <bruno@clisp.org>
3451
3452         cloexec: Move AC_LIBOBJ invocations to module description.
3453         * m4/cloexec.m4: Remove file.
3454         * modules/cloexec (Files): Remove it.
3455         (configure.ac): Remove gl_CLOEXEC call.
3456         (Makefile.am): Augment lib_SOURCES.
3457
3458 2011-05-23  Bruno Haible  <bruno@clisp.org>
3459
3460         check-version: Move AC_LIBOBJ invocations to module description.
3461         * m4/check-version.m4: Remove file.
3462         * modules/check-version (Files): Remove it.
3463         (configure.ac): Remove gl_CHECK_VERSION call.
3464         (Makefile.am): Augment lib_SOURCES.
3465
3466 2011-05-23  Bruno Haible  <bruno@clisp.org>
3467
3468         chdir-safer: Move AC_LIBOBJ invocations to module description.
3469         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3470         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3471
3472 2011-05-23  Bruno Haible  <bruno@clisp.org>
3473
3474         canonicalize: Move AC_LIBOBJ invocations to module description.
3475         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3476         AC_LIBOBJ invocation.
3477         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3478
3479 2011-05-23  Bruno Haible  <bruno@clisp.org>
3480
3481         canon-host: Move AC_LIBOBJ invocations to module description.
3482         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3483         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3484         instead of gl_CANON_HOST.
3485         (Makefile.am): Augment lib_SOURCES.
3486
3487 2011-05-23  Bruno Haible  <bruno@clisp.org>
3488
3489         backupfile: Move AC_LIBOBJ invocations to module description.
3490         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3491         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3492
3493 2011-05-23  Bruno Haible  <bruno@clisp.org>
3494
3495         argmatch: Move AC_LIBOBJ invocations to module description.
3496         * m4/argmatch.m4: Remove file.
3497         * modules/argmatch (Files): Remove it.
3498         (configure.ac): Remove gl_ARGMATCH call.
3499         (Makefile.am): Augment lib_SOURCES.
3500
3501 2011-05-23  Bruno Haible  <bruno@clisp.org>
3502
3503         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3504         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3505         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3506
3507 2011-05-23  Bruno Haible  <bruno@clisp.org>
3508
3509         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3510         * m4/arcfour.m4: Remove file.
3511         * modules/crypto/arcfour (Files): Remove it.
3512         (configure.ac): Remove gl_ARCFOUR call.
3513         (Makefile.am): Augment lib_SOURCES.
3514
3515 2011-05-22  Bruno Haible  <bruno@clisp.org>
3516
3517         write: Move AC_LIBOBJ invocations to module description.
3518         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3519         * modules/write (configure.ac): ... to here.
3520
3521 2011-05-22  Bruno Haible  <bruno@clisp.org>
3522
3523         wmemset: Move AC_LIBOBJ invocations to module description.
3524         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3525         here...
3526         * modules/wmemset (configure.ac): ... to here.
3527
3528 2011-05-22  Bruno Haible  <bruno@clisp.org>
3529
3530         wmemmove: Move AC_LIBOBJ invocations to module description.
3531         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3532         here...
3533         * modules/wmemmove (configure.ac): ... to here.
3534
3535 2011-05-22  Bruno Haible  <bruno@clisp.org>
3536
3537         wmemcpy: Move AC_LIBOBJ invocations to module description.
3538         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3539         here...
3540         * modules/wmemcpy (configure.ac): ... to here.
3541
3542 2011-05-22  Bruno Haible  <bruno@clisp.org>
3543
3544         wmemcmp: Move AC_LIBOBJ invocations to module description.
3545         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3546         here...
3547         * modules/wmemcmp (configure.ac): ... to here.
3548
3549 2011-05-22  Bruno Haible  <bruno@clisp.org>
3550
3551         wmemchr: Move AC_LIBOBJ invocations to module description.
3552         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3553         here...
3554         * modules/wmemchr (configure.ac): ... to here.
3555
3556 2011-05-22  Bruno Haible  <bruno@clisp.org>
3557
3558         wcswidth: Move AC_LIBOBJ invocations to module description.
3559         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3560         here...
3561         * modules/wcswidth (configure.ac): ... to here.
3562
3563 2011-05-22  Bruno Haible  <bruno@clisp.org>
3564
3565         wcwidth: Respect rules for use of AC_LIBOBJ.
3566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3567         invocation from here...
3568         * modules/wcwidth (configure.ac): ... to here.
3569         (Depends-on): Update conditions.
3570
3571 2011-05-22  Bruno Haible  <bruno@clisp.org>
3572
3573         wctype: Move AC_LIBOBJ invocations to module description.
3574         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3575         invocation from here...
3576         * modules/wctype (configure.ac): ... to here.
3577         (Depends-on): Update conditions.
3578
3579 2011-05-22  Bruno Haible  <bruno@clisp.org>
3580
3581         wctrans: Move AC_LIBOBJ invocations to module description.
3582         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3583         invocation from here...
3584         * modules/wctrans (configure.ac): ... to here.
3585
3586 2011-05-22  Bruno Haible  <bruno@clisp.org>
3587
3588         wctomb: Move AC_LIBOBJ invocations to module description.
3589         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3590         invocations from here...
3591         * modules/wctomb (configure.ac): ... to here.
3592
3593 2011-05-22  Bruno Haible  <bruno@clisp.org>
3594
3595         wctob: Move AC_LIBOBJ invocations to module description.
3596         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3597         gl_PREREQ_WCTOB invocations from here...
3598         * modules/wctob (configure.ac): ... to here.
3599         (Depends-on): Update conditions.
3600
3601 2011-05-22  Bruno Haible  <bruno@clisp.org>
3602
3603         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3604         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3605         here...
3606         * modules/wcsxfrm (configure.ac): ... to here.
3607
3608 2011-05-22  Bruno Haible  <bruno@clisp.org>
3609
3610         wcstok: Move AC_LIBOBJ invocations to module description.
3611         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3612         * modules/wcstok (configure.ac): ... to here.
3613
3614 2011-05-22  Bruno Haible  <bruno@clisp.org>
3615
3616         wcsstr: Move AC_LIBOBJ invocations to module description.
3617         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3618         * modules/wcsstr (configure.ac): ... to here.
3619
3620 2011-05-22  Bruno Haible  <bruno@clisp.org>
3621
3622         wcsspn: Move AC_LIBOBJ invocations to module description.
3623         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3624         * modules/wcsspn (configure.ac): ... to here.
3625
3626 2011-05-22  Bruno Haible  <bruno@clisp.org>
3627
3628         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3629         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3630         gl_PREREQ_WCSRTOMBS invocations from here...
3631         * modules/wcsrtombs (configure.ac): ... to here.
3632
3633 2011-05-22  Bruno Haible  <bruno@clisp.org>
3634
3635         wcsrchr: Move AC_LIBOBJ invocations to module description.
3636         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3637         here...
3638         * modules/wcsrchr (configure.ac): ... to here.
3639
3640 2011-05-22  Bruno Haible  <bruno@clisp.org>
3641
3642         wcspbrk: Move AC_LIBOBJ invocations to module description.
3643         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3644         here...
3645         * modules/wcspbrk (configure.ac): ... to here.
3646
3647 2011-05-22  Bruno Haible  <bruno@clisp.org>
3648
3649         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3650         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3651         gl_PREREQ_WCSNRTOMBS invocations from here...
3652         * modules/wcsnrtombs (configure.ac): ... to here.
3653
3654 2011-05-22  Bruno Haible  <bruno@clisp.org>
3655
3656         wcsnlen: Move AC_LIBOBJ invocations to module description.
3657         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3658         here...
3659         * modules/wcsnlen (configure.ac): ... to here.
3660
3661 2011-05-22  Bruno Haible  <bruno@clisp.org>
3662
3663         wcsncpy: Move AC_LIBOBJ invocations to module description.
3664         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3665         here...
3666         * modules/wcsncpy (configure.ac): ... to here.
3667
3668 2011-05-22  Bruno Haible  <bruno@clisp.org>
3669
3670         wcsncmp: Move AC_LIBOBJ invocations to module description.
3671         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3672         here...
3673         * modules/wcsncmp (configure.ac): ... to here.
3674
3675 2011-05-22  Bruno Haible  <bruno@clisp.org>
3676
3677         wcsncat: Move AC_LIBOBJ invocations to module description.
3678         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3679         here...
3680         * modules/wcsncat (configure.ac): ... to here.
3681
3682 2011-05-22  Bruno Haible  <bruno@clisp.org>
3683
3684         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3685         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3686         from here...
3687         * modules/wcsncasecmp (configure.ac): ... to here.
3688
3689 2011-05-22  Bruno Haible  <bruno@clisp.org>
3690
3691         wcslen: Move AC_LIBOBJ invocations to module description.
3692         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3693         * modules/wcslen (configure.ac): ... to here.
3694
3695 2011-05-22  Bruno Haible  <bruno@clisp.org>
3696
3697         wcsdup: Move AC_LIBOBJ invocations to module description.
3698         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3699         * modules/wcsdup (configure.ac): ... to here.
3700
3701 2011-05-22  Bruno Haible  <bruno@clisp.org>
3702
3703         wcscspn: Move AC_LIBOBJ invocations to module description.
3704         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3705         here...
3706         * modules/wcscspn (configure.ac): ... to here.
3707
3708 2011-05-22  Bruno Haible  <bruno@clisp.org>
3709
3710         wcscpy: Move AC_LIBOBJ invocations to module description.
3711         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3712         * modules/wcscpy (configure.ac): ... to here.
3713
3714 2011-05-22  Bruno Haible  <bruno@clisp.org>
3715
3716         wcscoll: Move AC_LIBOBJ invocations to module description.
3717         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3718         here...
3719         * modules/wcscoll (configure.ac): ... to here.
3720
3721 2011-05-22  Bruno Haible  <bruno@clisp.org>
3722
3723         wcscmp: Move AC_LIBOBJ invocations to module description.
3724         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3725         * modules/wcscmp (configure.ac): ... to here.
3726
3727 2011-05-22  Bruno Haible  <bruno@clisp.org>
3728
3729         wcschr: Move AC_LIBOBJ invocations to module description.
3730         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3731         * modules/wcschr (configure.ac): ... to here.
3732
3733 2011-05-22  Bruno Haible  <bruno@clisp.org>
3734
3735         wcscat: Move AC_LIBOBJ invocations to module description.
3736         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3737         * modules/wcscat (configure.ac): ... to here.
3738
3739 2011-05-22  Bruno Haible  <bruno@clisp.org>
3740
3741         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3742         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3743         here...
3744         * modules/wcscasecmp (configure.ac): ... to here.
3745
3746 2011-05-22  Bruno Haible  <bruno@clisp.org>
3747
3748         wcrtomb: Move AC_LIBOBJ invocations to module description.
3749         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3750         invocations from here...
3751         * modules/wcrtomb (configure.ac): ... to here.
3752
3753 2011-05-22  Bruno Haible  <bruno@clisp.org>
3754
3755         wcpncpy: Move AC_LIBOBJ invocations to module description.
3756         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3757         here...
3758         * modules/wcpncpy (configure.ac): ... to here.
3759
3760 2011-05-22  Bruno Haible  <bruno@clisp.org>
3761
3762         wcpcpy: Move AC_LIBOBJ invocations to module description.
3763         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3764         * modules/wcpcpy (configure.ac): ... to here.
3765
3766 2011-05-22  Bruno Haible  <bruno@clisp.org>
3767
3768         waitpid: Move AC_LIBOBJ invocations to module description.
3769         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3770         invocation from here...
3771         * modules/waitpid (configure.ac): ... to here.
3772
3773 2011-05-22  Bruno Haible  <bruno@clisp.org>
3774
3775         utimensat: Move AC_LIBOBJ invocations to module description.
3776         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3777         here...
3778         * modules/utimensat (configure.ac): ... to here.
3779
3780 2011-05-22  Bruno Haible  <bruno@clisp.org>
3781
3782         usleep: Move AC_LIBOBJ invocations to module description.
3783         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3784         here...
3785         * modules/usleep (configure.ac): ... to here.
3786
3787 2011-05-22  Bruno Haible  <bruno@clisp.org>
3788
3789         unlockpt: Move AC_LIBOBJ invocations to module description.
3790         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3791         gl_PREREQ_UNLOCKPT invocations from here...
3792         * modules/unlockpt (configure.ac): ... to here.
3793
3794 2011-05-22  Bruno Haible  <bruno@clisp.org>
3795
3796         unlink: Respect rules for use of AC_LIBOBJ.
3797         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3798         * modules/unlink (configure.ac): ... to here.
3799
3800 2011-05-22  Bruno Haible  <bruno@clisp.org>
3801
3802         uname: Move AC_LIBOBJ invocations to module description.
3803         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3805         here...
3806         * modules/uname (configure.ac): ... to here.
3807
3808 2011-05-22  Bruno Haible  <bruno@clisp.org>
3809
3810         ttyname_r: Move AC_LIBOBJ invocations to module description.
3811         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3812         gl_PREREQ_TTYNAME_R invocations from here...
3813         * modules/ttyname_r (configure.ac): ... to here.
3814
3815 2011-05-22  Bruno Haible  <bruno@clisp.org>
3816
3817         tsearch: Move AC_LIBOBJ invocations to module description.
3818         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3819         invocations from here...
3820         * modules/tsearch (configure.ac): ... to here.
3821
3822 2011-05-22  Bruno Haible  <bruno@clisp.org>
3823
3824         towctrans: Move AC_LIBOBJ invocations to module description.
3825         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3826         AC_LIBOBJ invocation from here...
3827         * modules/towctrans (configure.ac): ... to here.
3828
3829 2011-05-22  Bruno Haible  <bruno@clisp.org>
3830
3831         tmpfile: Move AC_LIBOBJ invocations to module description.
3832         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3833         invocations from here...
3834         * modules/tmpfile (configure.ac): ... to here.
3835
3836 2011-05-22  Bruno Haible  <bruno@clisp.org>
3837
3838         times: Move AC_LIBOBJ invocations to module description.
3839         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3840         * modules/times (configure.ac): ... to here.
3841
3842 2011-05-22  Bruno Haible  <bruno@clisp.org>
3843
3844         time_r: Move AC_LIBOBJ invocations to module description.
3845         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3846         invocations from here...
3847         * modules/time_r (configure.ac): ... to here.
3848
3849 2011-05-22  Bruno Haible  <bruno@clisp.org>
3850
3851         timegm: Move AC_LIBOBJ invocations to module description.
3852         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3853         invocations from here...
3854         * modules/timegm (configure.ac): ... to here.
3855
3856 2011-05-22  Bruno Haible  <bruno@clisp.org>
3857
3858         tcgetsid: Move AC_LIBOBJ invocations to module description.
3859         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3860         and gl_PREREQ_TCGETSID invocations from here...
3861         * modules/tcgetsid (configure.ac): ... to here.
3862         (Depends-on): Update conditions.
3863
3864 2011-05-22  Bruno Haible  <bruno@clisp.org>
3865
3866         symlinkat: Move AC_LIBOBJ invocations to module description.
3867         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3868         here...
3869         * modules/symlinkat (configure.ac): ... to here.
3870
3871 2011-05-22  Bruno Haible  <bruno@clisp.org>
3872
3873         symlink: Move AC_LIBOBJ invocations to module description.
3874         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3875         here...
3876         * modules/symlink (configure.ac): ... to here.
3877
3878 2011-05-22  Bruno Haible  <bruno@clisp.org>
3879
3880         strverscmp: Move AC_LIBOBJ invocations to module description.
3881         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3883         from here...
3884         * modules/strverscmp (configure.ac): ... to here.
3885
3886 2011-05-22  Bruno Haible  <bruno@clisp.org>
3887
3888         strtok_r: Move AC_LIBOBJ invocations to module description.
3889         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3890         and gl_PREREQ_STRTOK_R invocations from here...
3891         * modules/strtok_r (configure.ac): ... to here.
3892         (Depends-on): Update conditions.
3893
3894 2011-05-22  Bruno Haible  <bruno@clisp.org>
3895
3896         strtoumax: Move AC_LIBOBJ invocations to module description.
3897         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3899         from here...
3900         * modules/strtoumax (configure.ac): ... to here.
3901
3902 2011-05-22  Bruno Haible  <bruno@clisp.org>
3903
3904         strtoimax: Move AC_LIBOBJ invocations to module description.
3905         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3907         from here...
3908         * modules/strtoimax (configure.ac): ... to here.
3909
3910 2011-05-22  Bruno Haible  <bruno@clisp.org>
3911
3912         strtoull: Move AC_LIBOBJ invocations to module description.
3913         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3915         from here...
3916         * modules/strtoull (configure.ac): ... to here.
3917
3918 2011-05-22  Bruno Haible  <bruno@clisp.org>
3919
3920         strtoll: Move AC_LIBOBJ invocations to module description.
3921         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3922         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3923         here...
3924         * modules/strtoll (configure.ac): ... to here.
3925
3926 2011-05-22  Bruno Haible  <bruno@clisp.org>
3927
3928         strtoul: Move AC_LIBOBJ invocations to module description.
3929         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3930         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3931         * modules/strtoul (configure.ac): ... to here.
3932
3933 2011-05-22  Bruno Haible  <bruno@clisp.org>
3934
3935         strtol: Move AC_LIBOBJ invocations to module description.
3936         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3937         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3938         * modules/strtol (configure.ac): ... to here.
3939
3940 2011-05-22  Bruno Haible  <bruno@clisp.org>
3941
3942         strtod: Move AC_LIBOBJ invocations to module description.
3943         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3944         invocations from here...
3945         * modules/strtod (configure.ac): ... to here.
3946
3947 2011-05-22  Bruno Haible  <bruno@clisp.org>
3948
3949         strstr*: Move AC_LIBOBJ invocations to module description.
3950         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3951         invocations from here...
3952         * modules/strstr-simple (configure.ac): ... to here.
3953         * modules/strstr (configure.ac): ... and here.
3954
3955 2011-05-22  Bruno Haible  <bruno@clisp.org>
3956
3957         strsignal: Move AC_LIBOBJ invocations to module description.
3958         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3959         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3960         * modules/strsignal (configure.ac): ... to here.
3961         (Depends-on): Update conditions.
3962
3963 2011-05-22  Bruno Haible  <bruno@clisp.org>
3964
3965         strsep: Move AC_LIBOBJ invocations to module description.
3966         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3967         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3968         here...
3969         * modules/strsep (configure.ac): ... to here.
3970
3971 2011-05-22  Bruno Haible  <bruno@clisp.org>
3972
3973         strptime: Move AC_LIBOBJ invocations to module description.
3974         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3975         gl_PREREQ_STRPTIME invocations from here...
3976         * modules/strptime (configure.ac): ... to here.
3977
3978 2011-05-22  Bruno Haible  <bruno@clisp.org>
3979
3980         strpbrk: Move AC_LIBOBJ invocations to module description.
3981         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3983         here...
3984         * modules/strpbrk (configure.ac): ... to here.
3985
3986 2011-05-22  Bruno Haible  <bruno@clisp.org>
3987
3988         strnlen: Move AC_LIBOBJ invocations to module description.
3989         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3990         invocations from here...
3991         * modules/strnlen (configure.ac): ... to here.
3992
3993 2011-05-22  Bruno Haible  <bruno@clisp.org>
3994
3995         strndup: Move AC_LIBOBJ invocations to module description.
3996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3997         invocations from here...
3998         * modules/strndup (configure.ac): ... to here.
3999         (Depends-on): Update conditions.
4000
4001 2011-05-22  Bruno Haible  <bruno@clisp.org>
4002
4003         strncat: Move AC_LIBOBJ invocations to module description.
4004         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4005         invocations from here...
4006         * modules/strncat (configure.ac): ... to here.
4007
4008 2011-05-22  Bruno Haible  <bruno@clisp.org>
4009
4010         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4011         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4012         invocations from here...
4013         * modules/strdup (configure.ac): ... to here.
4014         * modules/strdup-posix (configure.ac): ... and here.
4015
4016 2011-05-22  Bruno Haible  <bruno@clisp.org>
4017
4018         strcspn: Move AC_LIBOBJ invocations to module description.
4019         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4020         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4021         here...
4022         * modules/strcspn (configure.ac): ... to here.
4023
4024 2011-05-22  Bruno Haible  <bruno@clisp.org>
4025
4026         strchrnul: Move AC_LIBOBJ invocations to module description.
4027         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4028         gl_PREREQ_STRCHRNUL invocations from here...
4029         * modules/strchrnul (configure.ac): ... to here.
4030
4031 2011-05-22  Bruno Haible  <bruno@clisp.org>
4032
4033         strcasestr*: Move AC_LIBOBJ invocations to module description.
4034         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4035         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4036         * modules/strcasestr-simple (configure.ac): ... to here.
4037         * modules/strcasestr (configure.ac): ... and here.
4038
4039 2011-05-22  Bruno Haible  <bruno@clisp.org>
4040
4041         strcase: Move AC_LIBOBJ invocations to module description.
4042         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4043         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4044         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4045         gl_PREREQ_STRNCASECMP invocations from here...
4046         * modules/strcase (configure.ac): ... to here.
4047
4048 2011-05-22  Bruno Haible  <bruno@clisp.org>
4049
4050         stpncpy: Move AC_LIBOBJ invocations to module description.
4051         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4052         here...
4053         * modules/stpncpy (configure.ac): ... to here.
4054
4055 2011-05-22  Bruno Haible  <bruno@clisp.org>
4056
4057         stpcpy: Move AC_LIBOBJ invocations to module description.
4058         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4059         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4060         here...
4061         * modules/stpcpy (configure.ac): ... to here.
4062
4063 2011-05-21  Bruno Haible  <bruno@clisp.org>
4064
4065         stat: Move AC_LIBOBJ invocations to module description.
4066         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4067         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4068         here...
4069         * modules/stat (configure.ac): ... to here.
4070
4071 2011-05-21  Bruno Haible  <bruno@clisp.org>
4072
4073         sleep: Move AC_LIBOBJ invocations to module description.
4074         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4075         * modules/sleep (configure.ac): ... to here.
4076
4077 2011-05-21  Bruno Haible  <bruno@clisp.org>
4078
4079         signbit: Move AC_LIBOBJ invocations to module description.
4080         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4081         * modules/signbit (configure.ac): ... to here.
4082
4083 2011-05-21  Bruno Haible  <bruno@clisp.org>
4084
4085         sigprocmask: Move AC_LIBOBJ invocations to module description.
4086         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4087         gl_PREREQ_SIGPROMASK invocations from here...
4088         * modules/sigprocmask (configure.ac): ... to here.
4089
4090 2011-05-21  Bruno Haible  <bruno@clisp.org>
4091
4092         sigaction: Move AC_LIBOBJ invocations to module description.
4093         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4094         gl_PREREQ_SIGACTION invocations from here...
4095         * modules/sigaction (configure.ac): ... to here.
4096
4097 2011-05-21  Bruno Haible  <bruno@clisp.org>
4098
4099         sig2str: Move AC_LIBOBJ invocations to module description.
4100         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4101         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4102         here...
4103         * modules/sig2str (configure.ac): ... to here.
4104
4105 2011-05-21  Bruno Haible  <bruno@clisp.org>
4106
4107         setlocale: Move AC_LIBOBJ invocations to module description.
4108         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4109         gl_PREREQ_SETLOCALE invocations from here...
4110         * modules/setlocale (configure.ac): ... to here.
4111
4112 2011-05-21  Bruno Haible  <bruno@clisp.org>
4113
4114         unsetenv: Move AC_LIBOBJ invocations to module description.
4115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4116         and gl_PREREQ_UNSETENV invocations from here...
4117         * modules/unsetenv (configure.ac): ... to here.
4118         (Depends-on): Update.
4119
4120 2011-05-21  Bruno Haible  <bruno@clisp.org>
4121
4122         setenv: Move AC_LIBOBJ invocations to module description.
4123         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4124         here...
4125         * modules/setenv (configure.ac): ... to here.
4126
4127 2011-05-21  Bruno Haible  <bruno@clisp.org>
4128
4129         selinux-h: Move AC_LIBOBJ invocations to module description.
4130         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4131         AC_LIBOBJ invocation from here...
4132         * modules/selinux-h (configure.ac): ... to here.
4133
4134 2011-05-21  Bruno Haible  <bruno@clisp.org>
4135
4136         select: Respect rules for use of AC_LIBOBJ.
4137         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4138         here...
4139         * modules/select (configure.ac): ... to here.
4140
4141 2011-05-21  Bruno Haible  <bruno@clisp.org>
4142
4143         scandir: Move AC_LIBOBJ invocations to module description.
4144         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4145         invocations from here...
4146         * modules/scandir (configure.ac): ... to here.
4147
4148 2011-05-21  Bruno Haible  <bruno@clisp.org>
4149
4150         rpmatch: Move AC_LIBOBJ invocations to module description.
4151         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4153         here...
4154         * modules/rpmatch (configure.ac): ... to here.
4155
4156 2011-05-21  Bruno Haible  <bruno@clisp.org>
4157
4158         rmdir: Respect rules for use of AC_LIBOBJ.
4159         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4160         * modules/rmdir (configure.ac): ... to here.
4161
4162 2011-05-21  Bruno Haible  <bruno@clisp.org>
4163
4164         renameat: Move AC_LIBOBJ invocations to module description.
4165         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4166         here...
4167         * modules/renameat (configure.ac): ... to here.
4168
4169 2011-05-21  Bruno Haible  <bruno@clisp.org>
4170
4171         rename: Respect rules for use of AC_LIBOBJ.
4172         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4173         here...
4174         * modules/rename (configure.ac): ... to here.
4175
4176 2011-05-21  Bruno Haible  <bruno@clisp.org>
4177
4178         remove: Move AC_LIBOBJ invocations to module description.
4179         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4180         here...
4181         * modules/remove (configure.ac): ... to here.
4182
4183 2011-05-21  Bruno Haible  <bruno@clisp.org>
4184
4185         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4186         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4187         macro.
4188         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4189         * modules/relocatable-lib (configure.ac): ... to here.
4190         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4191         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4192
4193 2011-05-21  Bruno Haible  <bruno@clisp.org>
4194
4195         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4196         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4197         here...
4198         * modules/relocatable-prog (configure.ac): ... to here.
4199
4200 2011-05-21  Bruno Haible  <bruno@clisp.org>
4201
4202         regex: Move AC_LIBOBJ invocations to module description.
4203         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4204         invocations from here...
4205         * modules/regex (configure.ac): ... to here.
4206
4207 2011-05-21  Bruno Haible  <bruno@clisp.org>
4208
4209         realloc-*: Move AC_LIBOBJ invocations to module description.
4210         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4211         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4212         AC_LIBOBJ invocations from here...
4213         * modules/realloc-gnu (configure.ac): ... to here.
4214         * modules/realloc-posix (configure.ac): ... and here.
4215
4216 2011-05-21  Bruno Haible  <bruno@clisp.org>
4217
4218         readutmp: Move AC_LIBOBJ invocations to module description.
4219         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4220         * modules/readutmp (configure.ac): ... to here.
4221
4222 2011-05-21  Bruno Haible  <bruno@clisp.org>
4223
4224         readlinkat: Move AC_LIBOBJ invocations to module description.
4225         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4226         here...
4227         * modules/readlinkat (configure.ac): ... to here.
4228
4229 2011-05-21  Bruno Haible  <bruno@clisp.org>
4230
4231         readlink: Move AC_LIBOBJ invocations to module description.
4232         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4233         gl_PREREQ_READLINK invocations from here...
4234         * modules/readlink (configure.ac): ... to here.
4235
4236 2011-05-21  Bruno Haible  <bruno@clisp.org>
4237
4238         readline: Move AC_LIBOBJ invocations to module description.
4239         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4240         gl_PREREQ_READLINE invocations from here...
4241         * modules/readline (configure.ac): ... to here.
4242
4243 2011-05-21  Bruno Haible  <bruno@clisp.org>
4244
4245         read: Move AC_LIBOBJ invocations to module description.
4246         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4247         * modules/read (configure.ac): ... to here.
4248
4249 2011-05-21  Bruno Haible  <bruno@clisp.org>
4250
4251         rawmemchr: Move AC_LIBOBJ invocations to module description.
4252         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4254         from here...
4255         * modules/rawmemchr (configure.ac): ... to here.
4256
4257 2011-05-21  Bruno Haible  <bruno@clisp.org>
4258
4259         random_r: Move AC_LIBOBJ invocations to module description.
4260         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4261         gl_PREREQ_RANDOM_R invocations from here...
4262         * modules/random_r (configure.ac): ... to here.
4263
4264 2011-05-21  Bruno Haible  <bruno@clisp.org>
4265
4266         pwrite: Move AC_LIBOBJ invocations to module description.
4267         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4268         * modules/pwrite (configure.ac): ... to here.
4269
4270 2011-05-21  Bruno Haible  <bruno@clisp.org>
4271
4272         putenv: Move AC_LIBOBJ invocations to module description.
4273         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4274         * modules/putenv (configure.ac): ... to here.
4275
4276 2011-05-21  Bruno Haible  <bruno@clisp.org>
4277
4278         login_tty: Move AC_LIBOBJ invocations to module description.
4279         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4280         * modules/login_tty (configure.ac): ... to here.
4281
4282 2011-05-21  Bruno Haible  <bruno@clisp.org>
4283
4284         openpty: Move AC_LIBOBJ invocations to module description.
4285         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4286         * modules/openpty (configure.ac): ... to here.
4287
4288 2011-05-21  Bruno Haible  <bruno@clisp.org>
4289
4290         forkpty: Move AC_LIBOBJ invocations to module description.
4291         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4292         * modules/forkpty (configure.ac): ... to here.
4293
4294 2011-05-21  Bruno Haible  <bruno@clisp.org>
4295
4296         ptsname: Move AC_LIBOBJ invocations to module description.
4297         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4298         invocations from here...
4299         * modules/ptsname (configure.ac): ... to here.
4300
4301 2011-05-21  Bruno Haible  <bruno@clisp.org>
4302
4303         pread: Move AC_LIBOBJ invocations to module description.
4304         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4305         * modules/pread (configure.ac): ... to here.
4306
4307 2011-05-21  Bruno Haible  <bruno@clisp.org>
4308
4309         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4310         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4311         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4312         * modules/posix_spawn (configure.ac): ... to here.
4313         * modules/posix_spawnp (configure.ac): ... and here.
4314
4315 2011-05-21  Bruno Haible  <bruno@clisp.org>
4316
4317         popen: Move AC_LIBOBJ invocations to module description.
4318         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4319         invocations from here...
4320         * modules/popen (configure.ac): ... to here.
4321
4322 2011-05-21  Bruno Haible  <bruno@clisp.org>
4323
4324         poll: Move AC_LIBOBJ invocations to module description.
4325         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4326         invocations from here...
4327         * modules/poll (configure.ac): ... to here.
4328
4329 2011-05-21  Bruno Haible  <bruno@clisp.org>
4330
4331         pipe-posix: Move AC_LIBOBJ invocations to module description.
4332         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4333         * modules/pipe-posix (configure.ac): ... to here.
4334
4335 2011-05-21  Bruno Haible  <bruno@clisp.org>
4336
4337         openat: Respect rules for use of AC_LIBOBJ.
4338         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4339         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4340         * modules/openat (configure.ac): ... to here.
4341
4342 2011-05-21  Bruno Haible  <bruno@clisp.org>
4343
4344         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4345         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4346         invocation from here...
4347         * modules/obstack-printf (configure.ac): ... to here.
4348         * modules/obstack-printf-posix (configure.ac): ... and here.
4349
4350 2011-05-21  Bruno Haible  <bruno@clisp.org>
4351
4352         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4353         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4354         from here...
4355         * modules/nl_langinfo (configure.ac): ... to here.
4356
4357 2011-05-21  Bruno Haible  <bruno@clisp.org>
4358
4359         nanosleep: Move AC_LIBOBJ invocations to module description.
4360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4361         gl_PREREQ_NANOSLEEP invocations from here...
4362         * modules/nanosleep (configure.ac): ... to here.
4363
4364 2011-05-21  Bruno Haible  <bruno@clisp.org>
4365
4366         mountlist: Move AC_LIBOBJ invocations to module description.
4367         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4368         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4369         * modules/mountlist (configure.ac): ... to here.
4370
4371 2011-05-21  Bruno Haible  <bruno@clisp.org>
4372
4373         mktime: Respect rules for use of AC_LIBOBJ.
4374         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4375         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4376         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4377         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4378         * modules/mktime (configure.ac): ... to here.
4379         * modules/mktime-internal (configure.ac): ... and here.
4380         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4381
4382 2011-05-21  Bruno Haible  <bruno@clisp.org>
4383
4384         mkstemps: Move AC_LIBOBJ invocations to module description.
4385         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4386         here...
4387         * modules/mkstemps (configure.ac): ... to here.
4388
4389 2011-05-21  Bruno Haible  <bruno@clisp.org>
4390
4391         mkstemp: Move AC_LIBOBJ invocations to module description.
4392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4393         gl_PREREQ_MKSTEMP invocations from here...
4394         * modules/mkstemp (configure.ac): ... to here.
4395
4396 2011-05-21  Bruno Haible  <bruno@clisp.org>
4397
4398         mkostemps: Move AC_LIBOBJ invocations to module description.
4399         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4400         here...
4401         * modules/mkostemps (configure.ac): ... to here.
4402
4403 2011-05-21  Bruno Haible  <bruno@clisp.org>
4404
4405         mkostemp: Move AC_LIBOBJ invocations to module description.
4406         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4407         gl_PREREQ_MKOSTEMP invocations from here...
4408         * modules/mkostemp (configure.ac): ... to here.
4409
4410 2011-05-21  Bruno Haible  <bruno@clisp.org>
4411
4412         mknod: Move AC_LIBOBJ invocations to module description.
4413         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4414         * modules/mknod (configure.ac): ... to here.
4415
4416 2011-05-21  Bruno Haible  <bruno@clisp.org>
4417
4418         mkfifoat: Move AC_LIBOBJ invocations to module description.
4419         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4420         here...
4421         * modules/mkfifoat (configure.ac): ... to here.
4422
4423 2011-05-21  Bruno Haible  <bruno@clisp.org>
4424
4425         mkfifo: Respect rules for use of AC_LIBOBJ.
4426         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4427         here...
4428         * modules/mkfifo (configure.ac): ... to here.
4429
4430 2011-05-21  Bruno Haible  <bruno@clisp.org>
4431
4432         mkdtemp: Move AC_LIBOBJ invocations to module description.
4433         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4434         invocations from here...
4435         * modules/mkdtemp (configure.ac): ... to here.
4436
4437 2011-05-21  Bruno Haible  <bruno@clisp.org>
4438
4439         mkdir: Move AC_LIBOBJ invocations to module description.
4440         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4441         * modules/mkdir (configure.ac): ... to here.
4442
4443 2011-05-21  Bruno Haible  <bruno@clisp.org>
4444
4445         memset: Move AC_LIBOBJ invocations to module description.
4446         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4448         here...
4449         * modules/memset (configure.ac): ... to here.
4450
4451 2011-05-21  Bruno Haible  <bruno@clisp.org>
4452
4453         memrchr: Move AC_LIBOBJ invocations to module description.
4454         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4456         here...
4457         * modules/memrchr (configure.ac): ... to here.
4458
4459 2011-05-21  Bruno Haible  <bruno@clisp.org>
4460
4461         mempcpy: Move AC_LIBOBJ invocations to module description.
4462         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4464         here...
4465         * modules/mempcpy (configure.ac): ... to here.
4466
4467 2011-05-21  Bruno Haible  <bruno@clisp.org>
4468
4469         memmove: Move AC_LIBOBJ invocations to module description.
4470         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4471         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4472         here...
4473         * modules/memmove (configure.ac): ... to here.
4474
4475 2011-05-21  Bruno Haible  <bruno@clisp.org>
4476
4477         memmem*: Move AC_LIBOBJ invocations to module description.
4478         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4479         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4480         here...
4481         (gl_FUNC_MEMMEM): ... and here...
4482         * modules/memmem-simple (configure.ac): ... to here.
4483         * modules/memmem (configure.ac): ... and here.
4484
4485 2011-05-21  Bruno Haible  <bruno@clisp.org>
4486
4487         memcpy: Move AC_LIBOBJ invocations to module description.
4488         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4490         here...
4491         * modules/memcpy (configure.ac): ... to here.
4492
4493 2011-05-21  Bruno Haible  <bruno@clisp.org>
4494
4495         memcmp: Simplify autoconf macro.
4496         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4497         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4498         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4499
4500 2011-05-21  Bruno Haible  <bruno@clisp.org>
4501
4502         memcmp: Move AC_LIBOBJ invocations to module description.
4503         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4504         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4505         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4506         * modules/memcmp (configure.ac): ... to here.
4507         (Depends-on): Update conditions.
4508
4509 2011-05-21  Bruno Haible  <bruno@clisp.org>
4510
4511         memchr: Respect rules for use of AC_LIBOBJ.
4512         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4513         invocations from here...
4514         * modules/memchr (configure.ac): ... to here.
4515
4516 2011-05-21  Bruno Haible  <bruno@clisp.org>
4517
4518         mbtowc: Move AC_LIBOBJ invocations to module description.
4519         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4520         invocations from here...
4521         * modules/mbtowc (configure.ac): ... to here.
4522
4523 2011-05-21  Bruno Haible  <bruno@clisp.org>
4524
4525         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4526         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4527         gl_PREREQ_MBSRTOWCS invocations from here...
4528         * modules/mbsrtowcs (configure.ac): ... to here.
4529
4530 2011-05-21  Bruno Haible  <bruno@clisp.org>
4531
4532         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4533         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4534         gl_PREREQ_MBSNRTOWCS invocations from here...
4535         * modules/mbsnrtowcs (configure.ac): ... to here.
4536
4537 2011-05-21  Bruno Haible  <bruno@clisp.org>
4538
4539         mbsinit: Move AC_LIBOBJ invocations to module description.
4540         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4541         invocations from here...
4542         * modules/mbsinit (configure.ac): ... to here.
4543
4544 2011-05-21  Bruno Haible  <bruno@clisp.org>
4545
4546         mbrlen: Move AC_LIBOBJ invocations to module description.
4547         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4548         invocations from here...
4549         * modules/mbrlen (configure.ac): ... to here.
4550
4551 2011-05-21  Bruno Haible  <bruno@clisp.org>
4552
4553         mbrtowc: Respect rules for use of AC_LIBOBJ.
4554         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4555         invocations from here...
4556         * modules/mbrtowc (configure.ac): ... to here.
4557
4558 2011-05-21  Bruno Haible  <bruno@clisp.org>
4559
4560         malloc-*: Move AC_LIBOBJ invocations to module description.
4561         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4562         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4563         AC_LIBOBJ invocations from here...
4564         * modules/malloc-gnu (configure.ac): ... to here.
4565         * modules/malloc-posix (configure.ac): ... and here.
4566
4567 2011-05-21  Bruno Haible  <bruno@clisp.org>
4568
4569         lstat, openat: Respect rules for use of AC_LIBOBJ.
4570         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4571         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4572         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4573         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4574         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4575         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4576         here.
4577         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4578
4579 2011-05-21  Bruno Haible  <bruno@clisp.org>
4580
4581         lseek: Move AC_LIBOBJ invocations to module description.
4582         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4583         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4584         * modules/lseek (configure.ac): ... to here.
4585
4586 2011-05-21  Bruno Haible  <bruno@clisp.org>
4587
4588         linkat: Move AC_LIBOBJ invocations to module description.
4589         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4590         here...
4591         * modules/linkat (configure.ac): ... to here.
4592
4593 2011-05-21  Bruno Haible  <bruno@clisp.org>
4594
4595         link: Respect rules for use of AC_LIBOBJ.
4596         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4597         * modules/link (configure.ac): ... to here.
4598
4599 2011-05-21  Bruno Haible  <bruno@clisp.org>
4600
4601         lchown: Move AC_LIBOBJ invocations to module description.
4602         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4603         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4604         * modules/lchown (configure.ac): ... to here.
4605
4606 2011-05-21  Bruno Haible  <bruno@clisp.org>
4607
4608         iswctype: Move AC_LIBOBJ invocations to module description.
4609         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4610         here...
4611         * modules/iswctype (configure.ac): ... to here.
4612
4613 2011-05-21  Bruno Haible  <bruno@clisp.org>
4614
4615         iswblank: Move AC_LIBOBJ invocations to module description.
4616         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4617         here...
4618         * modules/iswblank (configure.ac): ... to here.
4619
4620 2011-05-21  Bruno Haible  <bruno@clisp.org>
4621
4622         atanl: Move AC_LIBOBJ invocations to module description.
4623         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4624         * modules/atanl (configure.ac): ... to here.
4625
4626 2011-05-21  Bruno Haible  <bruno@clisp.org>
4627
4628         acosl: Move AC_LIBOBJ invocations to module description.
4629         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4630         * modules/acosl (configure.ac): ... to here.
4631
4632 2011-05-21  Bruno Haible  <bruno@clisp.org>
4633
4634         asinl: Respect rules for use of AC_LIBOBJ.
4635         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4636         * modules/asinl (configure.ac): ... to here.
4637
4638 2011-05-21  Bruno Haible  <bruno@clisp.org>
4639
4640         tanl: Move AC_LIBOBJ invocations to module description.
4641         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4642         * modules/tanl (configure.ac): ... to here.
4643
4644 2011-05-21  Bruno Haible  <bruno@clisp.org>
4645
4646         cosl: Move AC_LIBOBJ invocations to module description.
4647         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4648         * modules/cosl (configure.ac): ... to here.
4649
4650 2011-05-21  Bruno Haible  <bruno@clisp.org>
4651
4652         sinl: Move AC_LIBOBJ invocations to module description.
4653         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4654         * modules/sinl (configure.ac): ... to here.
4655
4656 2011-05-21  Bruno Haible  <bruno@clisp.org>
4657
4658         logl: Move AC_LIBOBJ invocations to module description.
4659         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4660         * modules/logl (configure.ac): ... to here.
4661
4662 2011-05-21  Bruno Haible  <bruno@clisp.org>
4663
4664         expl: Move AC_LIBOBJ invocations to module description.
4665         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4666         * modules/expl (configure.ac): ... to here.
4667
4668 2011-05-21  Bruno Haible  <bruno@clisp.org>
4669
4670         roundl: Move AC_LIBOBJ invocations to module description.
4671         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4672         * modules/roundl (configure.ac): ... to here.
4673
4674 2011-05-21  Bruno Haible  <bruno@clisp.org>
4675
4676         round: Move AC_LIBOBJ invocations to module description.
4677         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4678         * modules/round (configure.ac): ... to here.
4679
4680 2011-05-21  Bruno Haible  <bruno@clisp.org>
4681
4682         roundf: Move AC_LIBOBJ invocations to module description.
4683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4684         * modules/roundf (configure.ac): ... to here.
4685
4686 2011-05-21  Bruno Haible  <bruno@clisp.org>
4687
4688         truncl: Move AC_LIBOBJ invocations to module description.
4689         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4690         * modules/truncl (configure.ac): ... to here.
4691
4692 2011-05-21  Bruno Haible  <bruno@clisp.org>
4693
4694         trunc: Move AC_LIBOBJ invocations to module description.
4695         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4696         * modules/trunc (configure.ac): ... to here.
4697
4698 2011-05-21  Bruno Haible  <bruno@clisp.org>
4699
4700         truncf: Move AC_LIBOBJ invocations to module description.
4701         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4702         * modules/truncf (configure.ac): ... to here.
4703
4704 2011-05-21  Bruno Haible  <bruno@clisp.org>
4705
4706         ceill: Move AC_LIBOBJ invocations to module description.
4707         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4708         * modules/ceill (configure.ac): ... to here.
4709
4710 2011-05-21  Bruno Haible  <bruno@clisp.org>
4711
4712         ceil: Move AC_LIBOBJ invocations to module description.
4713         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4714         * modules/ceil (configure.ac): ... to here.
4715
4716 2011-05-21  Bruno Haible  <bruno@clisp.org>
4717
4718         ceilf: Move AC_LIBOBJ invocations to module description.
4719         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4720         * modules/ceilf (configure.ac): ... to here.
4721
4722 2011-05-21  Bruno Haible  <bruno@clisp.org>
4723
4724         floorl: Respect rules for use of AC_LIBOBJ.
4725         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4726         * modules/floorl (configure.ac): ... to here.
4727
4728 2011-05-21  Bruno Haible  <bruno@clisp.org>
4729
4730         floor: Respect rules for use of AC_LIBOBJ.
4731         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4732         * modules/floor (configure.ac): ... to here.
4733
4734 2011-05-21  Bruno Haible  <bruno@clisp.org>
4735
4736         floorf: Move AC_LIBOBJ invocations to module description.
4737         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4738         * modules/floorf (configure.ac): ... to here.
4739
4740 2011-05-20  Bruno Haible  <bruno@clisp.org>
4741
4742         sqrtl: Respect rules for use of AC_LIBOBJ.
4743         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4744         * modules/sqrtl (configure.ac): ... to here.
4745
4746 2011-05-20  Bruno Haible  <bruno@clisp.org>
4747
4748         ldexpl: Respect rules for use of AC_LIBOBJ.
4749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4750         * modules/ldexpl (configure.ac): ... to here.
4751
4752 2011-05-20  Bruno Haible  <bruno@clisp.org>
4753
4754         frexpl*: Respect rules for use of AC_LIBOBJ.
4755         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4756         invocation from here...
4757         * modules/frexpl (configure.ac): ... to here.
4758         * modules/frexpl-nolibm (configure.ac): ... and here.
4759
4760 2011-05-20  Bruno Haible  <bruno@clisp.org>
4761
4762         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4763         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4764         invocation from here...
4765         * modules/frexp (configure.ac): ... to here.
4766         * modules/frexp-nolibm (configure.ac): ... and here.
4767
4768 2011-05-20  Bruno Haible  <bruno@clisp.org>
4769
4770         isnan: Respect rules for use of AC_LIBOBJ.
4771         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4772         invocations here.
4773         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4774         REPLACE_ISNAN.
4775         * modules/isnand (configure.ac): Likewise.
4776         * modules/isnanl (configure.ac): Likewise.
4777
4778 2011-05-20  Bruno Haible  <bruno@clisp.org>
4779
4780         isnanl*: Respect rules for use of AC_LIBOBJ.
4781         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4782         invocation from here...
4783         * modules/isnanl (configure.ac): ... to here.
4784         * modules/isnanl-nolibm (configure.ac): ... and here.
4785
4786 2011-05-20  Bruno Haible  <bruno@clisp.org>
4787
4788         isnand*: Move AC_LIBOBJ invocations to module description.
4789         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4790         invocation from here...
4791         * modules/isnand (configure.ac): ... to here.
4792         * modules/isnand-nolibm (configure.ac): ... and here.
4793
4794 2011-05-20  Bruno Haible  <bruno@clisp.org>
4795
4796         isnanf*: Move AC_LIBOBJ invocations to module description.
4797         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4798         invocation from here...
4799         * modules/isnanf (configure.ac): ... to here.
4800         * modules/isnanf-nolibm (configure.ac): ... and here.
4801
4802 2011-05-20  Bruno Haible  <bruno@clisp.org>
4803
4804         isnan*: Separate the AC_LIBOBJ invocations.
4805         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4806         AC_LIBOBJ invocation.
4807         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4808         here.
4809         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4810         AC_LIBOBJ invocation.
4811         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4812         here.
4813         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4814         AC_LIBOBJ invocation.
4815         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4816         here.
4817         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4818
4819 2011-05-08  Bruno Haible  <bruno@clisp.org>
4820
4821         isinf: Move AC_LIBOBJ invocations to module description.
4822         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4823         * modules/isinf (configure.ac): ... to here.
4824
4825 2011-05-08  Bruno Haible  <bruno@clisp.org>
4826
4827         isfinite: Move AC_LIBOBJ invocations to module description.
4828         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4829         * modules/isfinite (configure.ac): ... to here.
4830
4831 2011-05-08  Bruno Haible  <bruno@clisp.org>
4832
4833         isblank: Move AC_LIBOBJ invocations to module description.
4834         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4835         here...
4836         * modules/isblank (configure.ac): ... to here.
4837
4838 2011-05-08  Bruno Haible  <bruno@clisp.org>
4839
4840         isapipe: Move AC_LIBOBJ invocations to module description.
4841         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4842         gl_PREREQ_ISAPIPE invocations from here...
4843         * modules/isapipe (configure.ac): ... to here.
4844         (Depends-on): Update condition.
4845
4846 2011-05-08  Bruno Haible  <bruno@clisp.org>
4847
4848         ioctl: Move AC_LIBOBJ invocations to module description.
4849         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4850         invocations from here...
4851         * modules/ioctl (configure.ac): ... to here.
4852         (Depends-on): Update condition.
4853
4854 2011-05-08  Bruno Haible  <bruno@clisp.org>
4855
4856         imaxdiv: Move AC_LIBOBJ invocations to module description.
4857         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4858         invocations from here...
4859         * modules/imaxdiv (configure.ac): ... to here.
4860
4861 2011-05-08  Bruno Haible  <bruno@clisp.org>
4862
4863         imaxabs: Move AC_LIBOBJ invocations to module description.
4864         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4865         invocations from here...
4866         * modules/imaxabs (configure.ac): ... to here.
4867
4868 2011-05-08  Bruno Haible  <bruno@clisp.org>
4869
4870         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4872         AC_LIBOBJ invocations from here...
4873         * modules/getaddrinfo (configure.ac): ... to here.
4874         (Depends-on): Add conditions.
4875
4876 2011-05-08  Bruno Haible  <bruno@clisp.org>
4877
4878         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4879         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4880         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4881         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4882         (gl_PREREQ_INET_PTON): ... from here.
4883         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4884         gl_PREREQ_INET_PTON here.
4885         (Depends-on): Update condition.
4886
4887 2011-05-08  Bruno Haible  <bruno@clisp.org>
4888
4889         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4890         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4891         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4892         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4893         (gl_PREREQ_INET_NTOP): ... from here.
4894         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4895         gl_PREREQ_INET_NTOP here.
4896         (Depends-on): Update condition.
4897
4898 2011-05-08  Bruno Haible  <bruno@clisp.org>
4899
4900         iconv_open: Move AC_LIBOBJ invocations to module description.
4901         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4902         AC_LIBOBJ invocations from here...
4903         * modules/iconv_open (configure.ac): ... to here.
4904
4905 2011-05-08  Bruno Haible  <bruno@clisp.org>
4906
4907         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4908         If module 'iconv_open' is among the main modules and module
4909         'iconv_open-utf' is among the tests dependencies, then
4910         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4911         return the special iconv_t values. Therefore iconv() and iconv_close()
4912         must support these special iconv_t values, already in lib, not only in
4913         tests.
4914         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4916         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4917         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4918         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4919         (Depends-on): Add the dependencies of iconv_open-utf.
4920         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4921         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4922         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4923
4924 2011-05-08  Bruno Haible  <bruno@clisp.org>
4925
4926         group-member: Move AC_LIBOBJ invocations to module description.
4927         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4928         gl_PREREQ_GROUP_MEMBER invocations from here...
4929         * modules/group-member (configure.ac): ... to here.
4930
4931 2011-05-08  Bruno Haible  <bruno@clisp.org>
4932
4933         grantpt: Move AC_LIBOBJ invocations to module description.
4934         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4935         invocations from here...
4936         * modules/grantpt (configure.ac): ... to here.
4937
4938 2011-05-08  Bruno Haible  <bruno@clisp.org>
4939
4940         glob: Move AC_LIBOBJ invocations to module description.
4941         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4942         from here...
4943         * modules/glob (configure.ac): ... to here.
4944
4945 2011-05-08  Bruno Haible  <bruno@clisp.org>
4946
4947         getusershell: Move AC_LIBOBJ invocations to module description.
4948         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4949         Move AC_LIBOBJ invocation from here...
4950         * modules/getusershell (configure.ac): ... to here.
4951         (Depends-on): Update condition.
4952
4953 2011-05-08  Bruno Haible  <bruno@clisp.org>
4954
4955         gettimeofday: Move AC_LIBOBJ invocations to module description.
4956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4957         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4958         gl_PREREQ_GETTIMEOFDAY invocations from here...
4959         * modules/gettimeofday (configure.ac): ... to here.
4960
4961 2011-05-08  Bruno Haible  <bruno@clisp.org>
4962
4963         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4964         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4965         just gl_FUNC_TZSET.
4966         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4967         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4969         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4970
4971 2011-05-08  Bruno Haible  <bruno@clisp.org>
4972
4973         getsubopt: Move AC_LIBOBJ invocations to module description.
4974         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4975         gl_PREREQ_GETSUBOPT invocations from here...
4976         * modules/getsubopt (configure.ac): ... to here.
4977
4978 2011-05-08  Bruno Haible  <bruno@clisp.org>
4979
4980         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4981         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4982         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4983         * modules/getpass-gnu (configure.ac): ... to here.
4984
4985 2011-05-08  Bruno Haible  <bruno@clisp.org>
4986
4987         getpass: Move AC_LIBOBJ invocations to module description.
4988         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4989         gl_PREREQ_GETPASS invocations from here...
4990         * modules/getpass (configure.ac): ... to here.
4991
4992 2011-05-08  Bruno Haible  <bruno@clisp.org>
4993
4994         getpagesize: Move AC_LIBOBJ invocations to module description.
4995         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4996         from here...
4997         * modules/getpagesize (configure.ac): ... to here.
4998
4999 2011-05-08  Bruno Haible  <bruno@clisp.org>
5000
5001         getopt: Move AC_LIBOBJ invocations to module description.
5002         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5003         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5004         invocations from here...
5005         * modules/getopt-gnu (configure.ac): ... to here.
5006         * modules/getopt-posix (configure.ac): ... and here.
5007         (Depends-on): Update condition.
5008
5009 2011-05-08  Bruno Haible  <bruno@clisp.org>
5010
5011         getopt, argp: Respect rules for use of AC_LIBOBJ.
5012         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5013         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5014         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5015         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5016
5017 2011-05-08  Bruno Haible  <bruno@clisp.org>
5018
5019         getlogin_r: Move AC_LIBOBJ invocations to module description.
5020         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5021         gl_PREREQ_GETLOGIN_R invocations from here...
5022         * modules/getlogin_r (configure.ac): ... to here.
5023
5024 2011-05-08  Bruno Haible  <bruno@clisp.org>
5025
5026         getlogin: Move AC_LIBOBJ invocations to module description.
5027         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5028         here...
5029         * modules/getlogin (configure.ac): ... to here.
5030
5031 2011-05-08  Bruno Haible  <bruno@clisp.org>
5032
5033         getloadavg: Move AC_LIBOBJ invocations to module description.
5034         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5035         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5036         * modules/getloadavg (configure.ac): ... to here.
5037
5038 2011-05-08  Bruno Haible  <bruno@clisp.org>
5039
5040         gethrxtime: Move AC_LIBOBJ invocations to module description.
5041         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5042         LIB_GETHRXTIME from here...
5043         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5044         invocations from here...
5045         * modules/gethrxtime (configure.ac): ... to here.
5046
5047 2011-05-08  Bruno Haible  <bruno@clisp.org>
5048
5049         gethostname: Move AC_LIBOBJ invocations to module description.
5050         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5051         gl_PREREQ_GETHOSTNAME invocations from here...
5052         * modules/gethostname (configure.ac): ... to here.
5053
5054 2011-05-08  Bruno Haible  <bruno@clisp.org>
5055
5056         getgroups: Move AC_LIBOBJ invocations to module description.
5057         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5058         here...
5059         * modules/getgroups (configure.ac): ... to here.
5060
5061 2011-05-08  Bruno Haible  <bruno@clisp.org>
5062
5063         getdtablesize: Move AC_LIBOBJ invocations to module description.
5064         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5065         invocation from here...
5066         * modules/getdtablesize (configure.ac): ... to here.
5067
5068 2011-05-08  Bruno Haible  <bruno@clisp.org>
5069
5070         getdomainname: Move AC_LIBOBJ invocations to module description.
5071         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5072         gl_PREREQ_GETDOMAINNAME invocations from here...
5073         * modules/getdomainname (configure.ac): ... to here.
5074
5075 2011-05-08  Bruno Haible  <bruno@clisp.org>
5076
5077         getline: Move AC_LIBOBJ invocations to module description.
5078         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5079         invocations from here...
5080         * modules/getline (configure.ac): ... to here.
5081
5082 2011-05-08  Bruno Haible  <bruno@clisp.org>
5083
5084         getline: Simplify.
5085         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5086         It's already handled through the module dependency.
5087
5088 2011-05-08  Bruno Haible  <bruno@clisp.org>
5089
5090         getdelim: Move AC_LIBOBJ invocations to module description.
5091         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5092         and gl_PREREQ_GETDELIM invocations from here...
5093         * modules/getdelim (configure.ac): ... to here.
5094         (Depends-on): Fix condition.
5095
5096 2011-05-08  Bruno Haible  <bruno@clisp.org>
5097
5098         getcwd: Move AC_LIBOBJ invocations to module description.
5099         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5100         invocations from here...
5101         * modules/getcwd (configure.ac): ... to here.
5102
5103 2011-05-08  Bruno Haible  <bruno@clisp.org>
5104
5105         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5106         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5107         here...
5108         * modules/getcwd-lgpl (configure.ac): ... to here.
5109
5110 2011-05-07  Bruno Haible  <bruno@clisp.org>
5111
5112         crypto/gc: Move AC_LIBOBJ invocations to module description.
5113         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5114         * modules/crypto/gc (configure.ac): ... to here.
5115
5116 2011-05-07  Bruno Haible  <bruno@clisp.org>
5117
5118         fwriting: Move AC_LIBOBJ invocations to module description.
5119         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5120         here...
5121         * modules/fwriting (configure.ac): ... to here.
5122
5123 2011-05-07  Bruno Haible  <bruno@clisp.org>
5124
5125         fwritable: Move AC_LIBOBJ invocations to module description.
5126         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5127         here...
5128         * modules/fwritable (configure.ac): ... to here.
5129
5130 2011-05-07  Bruno Haible  <bruno@clisp.org>
5131
5132         futimens: Move AC_LIBOBJ invocations to module description.
5133         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5134         here...
5135         * modules/futimens (configure.ac): ... to here.
5136
5137 2011-05-07  Bruno Haible  <bruno@clisp.org>
5138
5139         ftruncate: Move AC_LIBOBJ invocations to module description.
5140         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5141         gl_PREREQ_FTRUNCATE invocations from here...
5142         * modules/ftruncate (configure.ac): ... to here.
5143
5144 2011-05-07  Bruno Haible  <bruno@clisp.org>
5145
5146         fsync: Move AC_LIBOBJ invocations to module description.
5147         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5148         invocations from here...
5149         * modules/fsync (configure.ac): ... to here.
5150
5151 2011-05-07  Bruno Haible  <bruno@clisp.org>
5152
5153         fsusage: Move AC_LIBOBJ invocations to module description.
5154         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5155         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5156         * modules/fsusage (configure.ac): ... to here.
5157
5158 2011-05-07  Bruno Haible  <bruno@clisp.org>
5159
5160         freopen: Move AC_LIBOBJ invocations to module description.
5161         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5162         invocations from here...
5163         * modules/freopen (configure.ac): ... to here.
5164
5165 2011-05-07  Bruno Haible  <bruno@clisp.org>
5166
5167         free: Move AC_LIBOBJ invocations to module description.
5168         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5169         invocations from here...
5170         * modules/free (configure.ac): ... to here.
5171
5172 2011-05-07  Bruno Haible  <bruno@clisp.org>
5173
5174         freadable: Move AC_LIBOBJ invocations to module description.
5175         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5176         here...
5177         * modules/freadable (configure.ac): ... to here.
5178
5179 2011-05-07  Bruno Haible  <bruno@clisp.org>
5180
5181         fpurge: Move AC_LIBOBJ invocations to module description.
5182         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5183         invocations from here...
5184         * modules/fpurge (configure.ac): ... to here.
5185
5186 2011-05-07  Bruno Haible  <bruno@clisp.org>
5187
5188         fpending: Move AC_LIBOBJ invocations to module description.
5189         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5190         gl_FUNC_FPENDING.
5191         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5192         invocations from here...
5193         * modules/fpending (configure.ac): ... to here.
5194
5195 2011-05-07  Bruno Haible  <bruno@clisp.org>
5196
5197         fopen: Move AC_LIBOBJ invocations to module description.
5198         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5199         invocations from here...
5200         * modules/fopen (configure.ac): ... to here.
5201
5202 2011-05-07  Bruno Haible  <bruno@clisp.org>
5203
5204         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5205         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5206         gl_FUNC_FNMATCH_POSIX.
5207         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5208         invocations from here...
5209         * modules/fnmatch (configure.ac): ... to here.
5210         * modules/fnmatch-gnu (configure.ac): ... and here.
5211
5212 2011-05-07  Bruno Haible  <bruno@clisp.org>
5213
5214         flock: Move AC_LIBOBJ invocations to module description.
5215         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5216         invocations from here...
5217         * modules/flock (configure.ac): ... to here.
5218
5219 2011-05-07  Bruno Haible  <bruno@clisp.org>
5220
5221         fileblocks: Move AC_LIBOBJ invocations to module description.
5222         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5223         gl_PREREQ_FILEBLOCKS invocations from here...
5224         * modules/fileblocks (configure.ac): ... to here.
5225
5226 2011-05-06  Bruno Haible  <bruno@clisp.org>
5227
5228         fflush: Move AC_LIBOBJ invocations to module description.
5229         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5230         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5231         invocations from here...
5232         * modules/fflush (configure.ac): ... to here.
5233
5234 2011-05-06  Bruno Haible  <bruno@clisp.org>
5235
5236         fdopendir: Move AC_LIBOBJ invocations to module description.
5237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5238         here...
5239         * modules/fdopendir (configure.ac): ... to here.
5240         (Depends-on): Improve conditions.
5241
5242 2011-05-06  Bruno Haible  <bruno@clisp.org>
5243
5244         _Exit: Move AC_LIBOBJ invocations to module description.
5245         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5246         invocations from here...
5247         * modules/_Exit (configure.ac): ... to here.
5248
5249 2011-05-21  Bruno Haible  <bruno@clisp.org>
5250
5251         euidaccess: Respect rules for use of AC_LIBOBJ.
5252         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5254         from here...
5255         * modules/euidaccess (configure.ac): ... to here.
5256
5257 2011-05-06  Bruno Haible  <bruno@clisp.org>
5258
5259         error: Move AC_LIBOBJ invocations to module description.
5260         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5261         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5262         invocations from here...
5263         * modules/error (configure.ac): ... to here.
5264
5265 2011-05-06  Bruno Haible  <bruno@clisp.org>
5266
5267         duplocale: Move AC_LIBOBJ invocations to module description.
5268         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5269         gl_PREREQ_DUPLOCALE invocations from here...
5270         * modules/duplocale (configure.ac): ... to here.
5271
5272 2011-05-05  Bruno Haible  <bruno@clisp.org>
5273
5274         dirfd: Move AC_LIBOBJ invocations to module description.
5275         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5276         gl_FUNC_DIRFD.
5277         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5278         here...
5279         * modules/dirfd (configure.ac): ... to here.
5280         (Depends-on): Fix condition.
5281
5282 2011-05-05  Bruno Haible  <bruno@clisp.org>
5283
5284         chown: Respect rules for use of AC_LIBOBJ.
5285         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5286         * modules/chown (configure.ac): ... to here.
5287
5288 2011-05-05  Bruno Haible  <bruno@clisp.org>
5289
5290         chdir-long: Move AC_LIBOBJ invocations to module description.
5291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5292         gl_PREREQ_CHDIR_LONG invocations from here...
5293         * modules/chdir-long (configure.ac): ... to here.
5294
5295 2011-05-05  Bruno Haible  <bruno@clisp.org>
5296
5297         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5298         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5299         from here...
5300         * modules/canonicalize-lgpl (configure.ac): ... to here.
5301
5302 2011-05-05  Bruno Haible  <bruno@clisp.org>
5303
5304         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5305         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5306         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5307         REPLACE_CALLOC.
5308         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5309         * modules/calloc-gnu (configure.ac): Likewise.
5310
5311 2011-05-05  Bruno Haible  <bruno@clisp.org>
5312
5313         btowc: Move AC_LIBOBJ invocations to module description.
5314         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5315         invocations from here...
5316         * modules/btowc (configure.ac): ... to here.
5317
5318 2011-05-21  Bruno Haible  <bruno@clisp.org>
5319
5320         atexit: Move AC_LIBOBJ invocations to module description.
5321         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5323         here...
5324         * modules/atexit (configure.ac): ... to here.
5325
5326 2011-05-05  Bruno Haible  <bruno@clisp.org>
5327
5328         atoll: Move AC_LIBOBJ invocations to module description.
5329         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5330         invocations from here...
5331         * modules/atoll (configure.ac): ... to here.
5332
5333 2011-05-05  Bruno Haible  <bruno@clisp.org>
5334
5335         argz: Move AC_LIBOBJ invocations to module description.
5336         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5337         * modules/argz (configure.ac): ... to here.
5338
5339 2011-05-05  Bruno Haible  <bruno@clisp.org>
5340
5341         alphasort: Move AC_LIBOBJ invocations to module description.
5342         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5343         gl_PREREQ_ALPHASORT invocations from here...
5344         * modules/alphasort (configure.ac): ... to here.
5345
5346 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5347
5348         verify: new macro verify_expr; verify_true deprecated
5349         * NEWS: Mention this.
5350         * doc/verify.texi (Compile-time Assertions): Document this.
5351         * lib/verify.h (verify_true): Deprecate.
5352         (verify_expr): New macro.
5353         * tests/test-verify.c (function): Test verify_expr.
5354
5355 2011-06-14  Jim Meyering  <meyering@redhat.com>
5356
5357         init.sh: give more portable redirection-related advice in a comment
5358         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5359         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5360         for lots of discussion.  Stefano Lattarini suggested the solution
5361         of putting "9>&2" after the command.  Reported by Bruno Haible.
5362
5363 2011-06-13  Bruno Haible  <bruno@clisp.org>
5364
5365         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5367         'none'.
5368
5369 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5370
5371         ftoastr: use strtof only if HAVE_STRTOF
5372         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5374         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5375         * modules/ftoastr (configure.ac): Check for strtof.
5376
5377 2011-06-13  Bruno Haible  <bruno@clisp.org>
5378
5379         gnulib-tool: Addendum to 2011-06-08 commit.
5380         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5381         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5382
5383 2011-06-13  Bruno Haible  <bruno@clisp.org>
5384
5385         fseeko: Provide a non-inline replacement of fseek().
5386         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5387         * modules/fseeko (Depends-on): Add fseek.
5388         * modules/fseek (License): Change to LGPLv2+.
5389
5390 2011-06-13  Bruno Haible  <bruno@clisp.org>
5391
5392         ftello: Provide a non-inline replacement of ftell().
5393         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5394         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5395         not have ftello() (such as on mingw).
5396         * modules/ftello (Depends-on): Add ftell.
5397         * modules/ftell (License): Change to LGPLv2+.
5398
5399 2011-05-07  Bruno Haible  <bruno@clisp.org>
5400
5401         ftell: Move AC_LIBOBJ invocations to module description.
5402         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5403         * modules/ftell (configure.ac): ... to here.
5404
5405 2011-05-07  Bruno Haible  <bruno@clisp.org>
5406
5407         ftello: Respect rules for use of AC_LIBOBJ.
5408         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5409         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5410         here...
5411         * modules/ftello (configure.ac): ... to here.
5412
5413 2011-05-07  Bruno Haible  <bruno@clisp.org>
5414
5415         fseeko: Simplify.
5416         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5417         (gl_FUNC_FSEEKO): Inline it here.
5418
5419 2011-05-07  Bruno Haible  <bruno@clisp.org>
5420
5421         fseek: Move AC_LIBOBJ invocations to module description.
5422         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5423         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5424         * modules/fseek (configure.ac): ... to here.
5425
5426 2011-05-07  Bruno Haible  <bruno@clisp.org>
5427
5428         fseek: Respect rules for use of AC_LIBOBJ.
5429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5430         here...
5431         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5432
5433 2011-05-07  Bruno Haible  <bruno@clisp.org>
5434
5435         fseeko: Respect rules for use of AC_LIBOBJ.
5436         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5437         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5438         here...
5439         * modules/fseeko (configure.ac): ... to here.
5440
5441 2011-06-13  Bruno Haible  <bruno@clisp.org>
5442
5443         gnulib-tool: Allow comments in the 'Depends-on' section.
5444         * doc/gnulib.texi (Module description): Mention comment syntax in the
5445         Depends-on section.
5446         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5447
5448 2011-06-13  Bruno Haible  <bruno@clisp.org>
5449
5450         file-set.h: guard __attibute__ use, now that it's not always defined
5451         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5452         versions that support it.  This fixes a coreutils build failure with
5453         the vendor cc on HP-UX 11.31.
5454
5455 2011-06-12  Bruno Haible  <bruno@clisp.org>
5456
5457         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5458         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5459         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5460         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5461         (acl, aclsort): New declarations.
5462         (aclv_nontrivial): New declaration.
5463         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5464         (file_has_acl): Read also the second kind of HP-UX ACLs.
5465         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5466         kind of HP-UX ACLs if the first kind fails.
5467         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5468         second kind of HP-UX ACLs.
5469         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5470         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5471         agree.
5472         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5473         hpuxjfs.
5474         Handle hpuxjfs.
5475         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5476         hpuxjfs.
5477         Handle hpuxjfs.
5478         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5479         (func_test_same_acls): Use both lsacl and getacl.
5480         Handle hpuxjfs.
5481         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5482         (func_test_same_acls): Use both lsacl and getacl.
5483         Handle hpuxjfs.
5484
5485 2011-06-12  Bruno Haible  <bruno@clisp.org>
5486
5487         acl: Complete the 2010-08-10 fix.
5488         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5489         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5490         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5491         explicitly.
5492         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5493         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5494
5495 2011-06-12  Bruno Haible  <bruno@clisp.org>
5496
5497         spawn-pipe tests: Comments.
5498         * tests/test-spawn-pipe-child.c (main): Update comment.
5499         Reported by James Youngman <jay@gnu.org>.
5500
5501 2011-06-11  James Youngman  <jay@gnu.org>
5502
5503         New module 'stat-size'.
5504         * modules/stat-size: New module.  Provides macros for accessing
5505         file size information in instances of struct stat.  Depends on the
5506         fileblocks module because it calls st_blocks.
5507         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5508         * doc/gnulib.texi: Include stat-size.texi.
5509         * doc/stat-size.texi: Documentation for this module.
5510         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5511         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5512         AC_STRUCT_ST_BLOCKS.
5513
5514 2011-06-09  Bruno Haible  <bruno@clisp.org>
5515
5516         thread: Support pthreads-win32.
5517         * lib/glthread/thread.h (gl_thread_self): Define differently on
5518         pthreads-win32.
5519         (gl_null_thread): New declaration.
5520         (gl_thread_self_pointer): New macro.
5521         * lib/glthread/thread.c (gl_null_thread): New constant.
5522         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5523         gl_thread_self.
5524         * tests/test-tls.c: Likewise.
5525         Suggested by Paul Eggert. Reported by Eric Blake.
5526
5527 2011-06-09  Bruno Haible  <bruno@clisp.org>
5528
5529         thread: Fix confusion between NULL and 0.
5530         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5531         Reported by Paul Eggert.
5532
5533 2011-06-09  Bruno Haible  <bruno@clisp.org>
5534
5535         spawn-pipe tests: Avoid test failure on HP-UX 11.
5536         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5537         is closed.
5538
5539 2011-06-09  Bruno Haible  <bruno@clisp.org>
5540
5541         acl tests: Fix compilation error on HP-UX 11.
5542         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5543
5544 2011-06-09  Bruno Haible  <bruno@clisp.org>
5545
5546         rmdir: Avoid test failure on HP-UX 10.20.
5547         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5548         EEXIST.
5549
5550 2011-06-08  Eric Blake  <eblake@redhat.com>
5551
5552         perror: fix test on mingw
5553         * modules/perror-tests (Depends-on): Add dup2.
5554
5555         strerror_r-posix: fix on MacOS
5556         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5557         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5558         logic bug.
5559         * lib/strerror_r.c (strerror_r): Fix the bug.
5560         * lib/strerror.c (strerror): Likewise.
5561         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5562         problem.
5563         * doc/posix-functions/strerror.texi (strerror): Likewise.
5564         * doc/posix-functions/perror.texi (perror): Likewise.
5565         * tests/test-strerror.c (main): Enhance test.
5566         * tests/test-strerror_r.c (main): Likewise.
5567
5568 2011-06-08  Bruno Haible  <bruno@clisp.org>
5569
5570         gnulib-tool: Better isolation between different gnulib-tool invocations.
5571         * gnulib-tool: New option --witness-c-macro.
5572         (witness_c_macro): New variable.
5573         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5574         AM_CPPFLAGS define it as a C macro.
5575         (func_emit_tests_Makefile_am): Likewise.
5576         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5577         read it from there.
5578         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5579         m4_define, not AC_DEFUN.
5580         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5581         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5582         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5583         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5584         s|...|...|, to substitute the values of the GNULIB_* module indicator
5585         variables.
5586         * modules/dirent (Makefile.am): Likewise.
5587         * modules/fcntl-h (Makefile.am): Likewise.
5588         * modules/iconv-h (Makefile.am): Likewise.
5589         * modules/langinfo (Makefile.am): Likewise.
5590         * modules/locale (Makefile.am): Likewise.
5591         * modules/math (Makefile.am): Likewise.
5592         * modules/netdb (Makefile.am): Likewise.
5593         * modules/poll-h (Makefile.am): Likewise.
5594         * modules/pty (Makefile.am): Likewise.
5595         * modules/search (Makefile.am): Likewise.
5596         * modules/signal (Makefile.am): Likewise.
5597         * modules/spawn (Makefile.am): Likewise.
5598         * modules/stdio (Makefile.am): Likewise.
5599         * modules/stdlib (Makefile.am): Likewise.
5600         * modules/string (Makefile.am): Likewise.
5601         * modules/sys_ioctl (Makefile.am): Likewise.
5602         * modules/sys_select (Makefile.am): Likewise.
5603         * modules/sys_socket (Makefile.am): Likewise.
5604         * modules/sys_stat (Makefile.am): Likewise.
5605         * modules/sys_times (Makefile.am): Likewise.
5606         * modules/sys_utsname (Makefile.am): Likewise.
5607         * modules/sys_wait (Makefile.am): Likewise.
5608         * modules/termios (Makefile.am): Likewise.
5609         * modules/time (Makefile.am): Likewise.
5610         * modules/unistd (Makefile.am): Likewise.
5611         * modules/wchar (Makefile.am): Likewise.
5612
5613 2011-06-08  Eric Blake  <eblake@redhat.com>
5614
5615         strerror: simplify replacement
5616         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5617         * modules/strerror (configure.ac): No prereqs needed here...
5618         * modules/strerror-override (configure.ac): ...but this needs it.
5619         (Files): Add file for needed prereq macro.
5620
5621 2011-06-08  Bruno Haible  <bruno@clisp.org>
5622
5623         strerror_r-posix: Tweaks.
5624         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5625         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5627         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5628         (gl_FUNC_STRERROR_R): ... to here.
5629         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5630
5631 2011-06-07  Eric Blake  <eblake@redhat.com>
5632
5633         perror: document fixed bugs
5634         * doc/posix-functions/perror.texi (perror): Document recent
5635         patches.
5636
5637 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5638
5639         stat-time: get_stat_birthtime failure is better-defined
5640         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5641         return a timestamp whose tv_sec and tv_nsec values are both -1.
5642         Previously, the spec said only that the tv_nsec value was negative.
5643         This upward-compatible change simplifies GNU tar a bit.
5644
5645 2011-06-07  Eric Blake  <eblake@redhat.com>
5646
5647         strerror_r-posix: work around cygwin 1.7.9
5648         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5649         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5650         bug without replacing strerror_r.
5651         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5652         strerror_r is buggy, but without requiring strerror_r compilation.
5653         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5654
5655         test-perror: relax test to ignore cygwin bug
5656         * tests/test-perror2.c (main): Relax test on requiring detection
5657         of stream errors, and use unbuffered stream.
5658         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5659         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5660         * doc/posix-functions/fputc.texi (fputc): Likewise.
5661         * doc/posix-functions/fputs.texi (fputs): Likewise.
5662         * doc/posix-functions/fputws.texi (fputws): Likewise.
5663         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5664         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5665         * doc/posix-functions/getopt.texi (getopt): Likewise.
5666         * doc/posix-functions/perror.texi (perror): Likewise.
5667         * doc/posix-functions/printf.texi (printf): Likewise.
5668         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5669         * doc/posix-functions/psignal.texi (psignal): Likewise.
5670         * doc/posix-functions/putc.texi (putc): Likewise.
5671         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5672         Likewise.
5673         * doc/posix-functions/putchar.texi (putchar): Likewise.
5674         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5675         Likewise.
5676         * doc/posix-functions/puts.texi (puts): Likewise.
5677         * doc/posix-functions/putwc.texi (putwc): Likewise.
5678         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5679         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5680         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5681         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5682         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5683         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5684         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5685         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5686
5687 2011-05-22  Bruno Haible  <bruno@clisp.org>
5688
5689         strerror: Move AC_LIBOBJ invocations to module description.
5690         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5691         gl_PREREQ_STRERROR invocations from here...
5692         * modules/strerror (configure.ac): ... to here.
5693
5694 2011-05-21  Bruno Haible  <bruno@clisp.org>
5695
5696         perror: Use common idiom.
5697         * modules/perror (configure.ac): Reorder statements.
5698
5699 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5700
5701         tests: fix usage message in 'mktempd_'
5702         * tests/init.sh (mktempd_): In the usage message, use literal
5703         'mktempd_', not '$ME' (which is even undefined), as the name of
5704         the subroutine.
5705
5706 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5707
5708         tests init: new function 'fatal_', for hard errors
5709         Before this patch, the only way offered by tests/init.sh to
5710         properly signal a hard error was the `framework_failure_'
5711         function.  But the error message issued by that function,
5712         as its name would suggest, refers to a set-up failure in the
5713         testsuite, while hard errors can obviously also be due to
5714         other reasons.  The best way to fix this inconsistency is to
5715         introduce a new function with a more general error message.
5716         * tests/init.sh (fatal_): New function.
5717
5718 2011-06-06  Eric Blake  <eblake@redhat.com>
5719
5720         canonicalize-lgpl: use common idiom
5721         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5722         over newer POSIX -Rf.
5723         Reported by Bruno Haible.
5724
5725         canonicalize-lgpl: work around AIX realpath bug
5726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5727         * doc/posix-functions/realpath.texi (realpath): Document it.
5728         Reported by Bruno Haible.
5729
5730         strerror: work around FreeBSD bug
5731         * lib/strerror.c (strerror): Special case 0.
5732         Reported by Bruno Haible.
5733
5734         strerror-override: avoid bloating errno module
5735         * modules/errno (Files, configure.ac): Move replacement strings...
5736         * modules/strerror-override: ...to new module.
5737         * modules/strerror (Depends-on): Add strerror-override.
5738         * modules/strerror_r-posix (Depends-on): Likewise.
5739         * MODULES.html.sh: Document new module.
5740         Reported by Bruno Haible.
5741
5742 2011-06-06  Bruno Haible  <bruno@clisp.org>
5743
5744         spawn-pipe tests: Rename program.
5745         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5746         * tests/test-spawn-pipe-child.c: Update comment.
5747         * tests/test-spawn-pipe.sh: Update.
5748         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5749
5750         spawn-pipe tests: Link the child program only against libc.
5751         * tests/test-spawn-pipe-child.c: New file, extracted from
5752         tests/test-spawn-pipe.c.
5753         (main): Expect only one argument.
5754         (is_open): New function, copied from tests/test-pipe.c.
5755         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5756         (child_main): Remove function.
5757         (test_pipe): Pass only one argument to the child program.
5758         (main): Remove child process code. Expect the child program's name as
5759         first argument.
5760         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5761         argument.
5762         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5763         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5764         test-spawn-pipe-child against no libraries.
5765
5766 2011-06-06  Bruno Haible  <bruno@clisp.org>
5767
5768         careadlinkat: Avoid mismatch between ssize_t and int.
5769         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5770         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5771
5772 2011-06-06  Jim Meyering  <meyering@redhat.com>
5773
5774         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5775         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5776         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5777
5778 2011-06-05  Bruno Haible  <bruno@clisp.org>
5779
5780         ansi-c++-opt: Interoperability with libtool.
5781         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5782         set the variable to "no", not to ":".
5783         * NEWS: Mention the change.
5784
5785 2011-06-05  Bruno Haible  <bruno@clisp.org>
5786
5787         acl: Fix test failure on AIX 7.
5788         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5789         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5790
5791 2011-06-05  Bruno Haible  <bruno@clisp.org>
5792
5793         pipe-filter-ii: Fix test failure on AIX and IRIX.
5794         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5795         with EAGAIN, retry with a smaller buffer size.
5796
5797 2011-06-05  Bruno Haible  <bruno@clisp.org>
5798
5799         localename: Fix link dependencies.
5800         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5801         * modules/localename-tests (Makefile.am): Link test-localename with
5802         $(LIBTHREAD).
5803
5804 2011-06-05  Bruno Haible  <bruno@clisp.org>
5805
5806         error: Avoid gcc warning.
5807         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5808
5809 2011-06-05  Bruno Haible  <bruno@clisp.org>
5810
5811         unsetenv: Avoid gcc warning.
5812         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5813
5814 2011-06-05  Bruno Haible  <bruno@clisp.org>
5815
5816         setenv: Avoid gcc warning.
5817         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5818
5819 2011-06-05  Bruno Haible  <bruno@clisp.org>
5820
5821         sys_select: Ensure memset is declared also on AIX 7.
5822         * lib/sys_select.in.h: Include <string.h> also on AIX.
5823         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5824         self-contained also on AIX 7.1.
5825
5826 2011-06-04  Jim Meyering  <meyering@redhat.com>
5827
5828         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5829         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5830         function name, "error".
5831         (_gl_translatable_diag_func_re): New configurable variable.
5832
5833 2011-06-04  Bruno Haible  <bruno@clisp.org>
5834
5835         getopt: Avoid gcc warning.
5836         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5837
5838 2011-06-04  Bruno Haible  <bruno@clisp.org>
5839
5840         strerror_r: Fix comments.
5841         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5842         commit.
5843
5844 2011-06-04  Bruno Haible  <bruno@clisp.org>
5845
5846         perror: Fix compilation error.
5847         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5848         Undefine fprintf, not sprintf.
5849         * modules/perror (Depends-on): Remove intprops, verify.
5850
5851 2011-06-04  Bruno Haible  <bruno@clisp.org>
5852
5853         setlocale: Enable replacement on Cygwin 1.5.
5854         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5855         Cygwin 1.5.x.
5856         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5857         LC_CTYPE category also exists on Cygwin 1.5.x.
5858
5859 2011-06-04  Bruno Haible  <bruno@clisp.org>
5860
5861         strerror-override: Don't disable symbol renamings.
5862         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5863         * lib/strerror-override.c: Include config.h.
5864         (strerror_override): Don't undefine.
5865
5866 2011-06-03  Bruno Haible  <bruno@clisp.org>
5867
5868         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5869         * lib/localename.h: Update copyright header.
5870         * lib/localename.c: Likewise.
5871         * lib/relocatable.h: Likewise.
5872         * lib/relocatable.c: Likewise.
5873
5874 2011-06-02  Bruno Haible  <bruno@clisp.org>
5875
5876         doc: Fix a module name.
5877         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5878
5879 2011-06-02  Bruno Haible  <bruno@clisp.org>
5880
5881         pipe2: Remove dependency on 'nonblocking' module.
5882         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5883         O_NONBLOCK is defined by gnulib.
5884         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5885         is zero.
5886         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5887         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5888         defined by gnulib.
5889         (get_nonblocking_flag): New function.
5890         (main): Test O_NONBLOCK flag only if it is nonzero.
5891         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5892
5893 2011-06-03  Jim Meyering  <meyering@redhat.com>
5894
5895         maint: three new prohibit-header-without-use rules
5896         Prohibit use of cloexec.h, posixver.h, same.h without use.
5897         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5898         (sc_prohibit_posixver_without_use): Likewise.
5899         (sc_prohibit_same_without_use): Likewise.
5900
5901 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5902
5903         allocator: 'die' routine is now given requested size
5904         * lib/allocator.h (struct allocator.die): New size arg.
5905         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5906         If the actual problem is an ssize_t limitation, not a size_t or
5907         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5908
5909 2011-06-01  Eric Blake  <eblake@redhat.com>
5910
5911         strerror: drop strerror_r dependency
5912         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5913         * lib/strerror-override.c (strerror_override): ...to new file.
5914         * lib/strerror-override.h: Add prototype.
5915         * lib/strerror-impl.h: Delete.
5916         * lib/strerror.c (strerror): New implementation.
5917         * modules/errno (Files): Add new files.
5918         (configure.ac): Compile new file as appropriate.
5919         * modules/strerror (Files): Drop unused file.
5920         (Depends-on): Drop strerror_r-posix.
5921         * MODULES.html.sh: Document strerror_r-posix.
5922         Requested by Sam Steingold.
5923
5924         perror: call strerror_r directly
5925         * modules/perror (Files): Drop strerror-impl.h.
5926         * lib/perror.c (perror): Use our own stack buffer, rather than
5927         calling a wrapper that uses static storage.
5928         * doc/posix-functions/perror.texi (perror): Document a limitation
5929         of our replacement.
5930
5931         strerror_r: fix includes for FreeBSD
5932         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5933         since we use abort on some platforms.
5934         Reported by Matthias Bolte.
5935
5936 2011-05-31  Bruno Haible  <bruno@clisp.org>
5937
5938         Fix link errors in tests: openat-die uses gettext-h.
5939         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5940         against $(LIBINTL).
5941         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5942         against $(LIBINTL).
5943         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5944         $(LIBINTL).
5945         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5946         against $(LIBINTL).
5947         * modules/linkat-tests (Makefile.am): Link test-linkat against
5948         $(LIBINTL).
5949         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5950         $(LIBINTL).
5951         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5952         against $(LIBINTL).
5953         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5954         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5955         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5956         $(LIBINTL).
5957         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5958         $(LIBINTL).
5959         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5960         $(LIBINTL).
5961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5962
5963 2011-05-31  Bruno Haible  <bruno@clisp.org>
5964
5965         Fix link errors in tests: wait-process uses gettext-h.
5966         * modules/nonblocking-pipe-tests (Makefile.am): Set
5967         test_nonblocking_pipe_main_LDADD.
5968         * modules/nonblocking-socket-tests (Makefile.am): Link
5969         test-nonblocking-socket-main against $(LIBINTL).
5970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5971
5972 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5973
5974         assert-h: work around 'verify' incompatibility
5975         * lib/verify.h: Use @...@ directives, not ifdef.
5976         * modules/assert-h (assert.h): Implement the directives.
5977         (assert.h): Substitute the symbol-prefix more consistently.
5978
5979 2011-05-29  Jim Meyering  <meyering@redhat.com>
5980
5981         trim: remove three superfluous assignments
5982         * lib/trim.c (trim2): Remove three superfluous assignments
5983         and correct brace positioning.
5984
5985 2011-05-29  Bruno Haible  <bruno@clisp.org>
5986
5987         wctype-h: Avoid namespace pollution on Solaris 2.6.
5988         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5989         identifiers.
5990         * doc/posix-headers/wctype.texi: Mention the problem.
5991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5992
5993 2011-05-28  Jim Meyering  <meyering@redhat.com>
5994
5995         parse-datetime.y: accommodate -Wstrict-overflow
5996         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5997         placate -Wstrict-overflow.
5998
5999         trim: avoid a warning from -O2 -Wstrict-overflow
6000         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6001
6002 2011-05-29  Bruno Haible  <bruno@clisp.org>
6003
6004         gnulib-tool: Fix bug in yesterday's commit.
6005         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6006         twice.
6007
6008 2011-05-29  Bruno Haible  <bruno@clisp.org>
6009
6010         Allow multiple gnulib generated include files to be combined.
6011         * gnulib-tool (func_compute_include_guard_prefix): New function.
6012         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6013         ${gl_include_guard_prefix} references.
6014         (func_import, func_create_testdir): Invoke
6015         func_compute_include_guard_prefix.
6016         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6017         * lib/ctype.in.h: Likewise.
6018         * lib/dirent.in.h: Likewise.
6019         * lib/errno.in.h: Likewise.
6020         * lib/fcntl.in.h: Likewise.
6021         * lib/float.in.h: Likewise.
6022         * lib/getopt.in.h: Likewise.
6023         * lib/iconv.in.h: Likewise.
6024         * lib/langinfo.in.h: Likewise.
6025         * lib/locale.in.h: Likewise.
6026         * lib/math.in.h: Likewise.
6027         * lib/netdb.in.h: Likewise.
6028         * lib/netinet_in.in.h: Likewise.
6029         * lib/poll.in.h: Likewise.
6030         * lib/pthread.in.h: Likewise.
6031         * lib/pty.in.h: Likewise.
6032         * lib/sched.in.h: Likewise.
6033         * lib/se-selinux.in.h: Likewise.
6034         * lib/search.in.h: Likewise.
6035         * lib/signal.in.h: Likewise.
6036         * lib/spawn.in.h: Likewise.
6037         * lib/stdarg.in.h: Likewise.
6038         * lib/stddef.in.h: Likewise.
6039         * lib/stdint.in.h: Likewise.
6040         * lib/stdio.in.h: Likewise.
6041         * lib/stdlib.in.h: Likewise.
6042         * lib/string.in.h: Likewise.
6043         * lib/strings.in.h: Likewise.
6044         * lib/sys_file.in.h: Likewise.
6045         * lib/sys_ioctl.in.h: Likewise.
6046         * lib/sys_select.in.h: Likewise.
6047         * lib/sys_socket.in.h: Likewise.
6048         * lib/sys_stat.in.h: Likewise.
6049         * lib/sys_time.in.h: Likewise.
6050         * lib/sys_times.in.h: Likewise.
6051         * lib/sys_uio.in.h: Likewise.
6052         * lib/sys_utsname.in.h: Likewise.
6053         * lib/sys_wait.in.h: Likewise.
6054         * lib/sysexits.in.h: Likewise.
6055         * lib/termios.in.h: Likewise.
6056         * lib/time.in.h: Likewise.
6057         * lib/unistd.in.h: Likewise.
6058         * lib/wchar.in.h: Likewise.
6059         * lib/wctype.in.h: Likewise.
6060         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6061         * modules/ctype (Makefile.am): Likewise.
6062         * modules/dirent (Makefile.am): Likewise.
6063         * modules/errno (Makefile.am): Likewise.
6064         * modules/fcntl-h (Makefile.am): Likewise.
6065         * modules/float (Makefile.am): Likewise.
6066         * modules/getopt-posix (Makefile.am): Likewise.
6067         * modules/iconv-h (Makefile.am): Likewise.
6068         * modules/langinfo (Makefile.am): Likewise.
6069         * modules/locale (Makefile.am): Likewise.
6070         * modules/math (Makefile.am): Likewise.
6071         * modules/netdb (Makefile.am): Likewise.
6072         * modules/netinet_in (Makefile.am): Likewise.
6073         * modules/poll-h (Makefile.am): Likewise.
6074         * modules/pthread (Makefile.am): Likewise.
6075         * modules/pty (Makefile.am): Likewise.
6076         * modules/sched (Makefile.am): Likewise.
6077         * modules/search (Makefile.am): Likewise.
6078         * modules/selinux-h (Makefile.am): Likewise.
6079         * modules/signal (Makefile.am): Likewise.
6080         * modules/spawn (Makefile.am): Likewise.
6081         * modules/stdarg (Makefile.am): Likewise.
6082         * modules/stddef (Makefile.am): Likewise.
6083         * modules/stdint (Makefile.am): Likewise.
6084         * modules/stdio (Makefile.am): Likewise.
6085         * modules/stdlib (Makefile.am): Likewise.
6086         * modules/string (Makefile.am): Likewise.
6087         * modules/strings (Makefile.am): Likewise.
6088         * modules/sys_file (Makefile.am): Likewise.
6089         * modules/sys_ioctl (Makefile.am): Likewise.
6090         * modules/sys_select (Makefile.am): Likewise.
6091         * modules/sys_socket (Makefile.am): Likewise.
6092         * modules/sys_stat (Makefile.am): Likewise.
6093         * modules/sys_time (Makefile.am): Likewise.
6094         * modules/sys_times (Makefile.am): Likewise.
6095         * modules/sys_uio (Makefile.am): Likewise.
6096         * modules/sys_utsname (Makefile.am): Likewise.
6097         * modules/sys_wait (Makefile.am): Likewise.
6098         * modules/sysexits (Makefile.am): Likewise.
6099         * modules/termios (Makefile.am): Likewise.
6100         * modules/time (Makefile.am): Likewise.
6101         * modules/unistd (Makefile.am): Likewise.
6102         * modules/wchar (Makefile.am): Likewise.
6103         * modules/wctype-h (Makefile.am): Likewise.
6104         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6105
6106 2011-05-29  Bruno Haible  <bruno@clisp.org>
6107
6108         assert-h: Allow multiple gnulib generated replacements to coexist.
6109         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6110
6111 2011-05-29  Bruno Haible  <bruno@clisp.org>
6112
6113         argp: Allow coexistence with strerror_r-posix module.
6114         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6115         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6116         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6117         not the glibc signature.
6118
6119 2011-05-28  Bruno Haible  <bruno@clisp.org>
6120
6121         gnulib-tool: Alternative structure of testdirs, similar to --import.
6122         * gnulib-tool: New option --single-configure.
6123         (func_usage): Document it.
6124         (single_configure): New variable.
6125         (func_modules_transitive_closure_separately,
6126         func_modules_transitive_closure_separately,
6127         func_determine_use_libtests, func_modules_add_dummy_separately,
6128         func_modules_to_filelist_separately): New functions, extracted from
6129         func_import.
6130         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6131         (func_import): Use the new functions.
6132         (func_create_testdir): Set final_modules. Handle $single_configure =
6133         true case.
6134
6135 2011-05-28  Bruno Haible  <bruno@clisp.org>
6136
6137         getloadavg: Remove an unreliable safety check.
6138         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6139         getloadavg.c is in place.
6140         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6141         Reported by Sam Steingold <sds@gnu.org>.
6142
6143 2011-05-28  Bruno Haible  <bruno@clisp.org>
6144
6145         doc: Cleanup yet another file produced by texinfo.tex.
6146         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6147
6148 2011-05-28  Bruno Haible  <bruno@clisp.org>
6149
6150         Finish the conditional dependencies mechanism.
6151         * gnulib-tool: New option --no-conditional-dependencies.
6152         (func_usage): Document it. Don't mark --conditional-dependencies as
6153         experimental.
6154         (cond_dependencies): The possible values can now be true, false, empty.
6155         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6156         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6157         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6158
6159 2011-05-28  Bruno Haible  <bruno@clisp.org>
6160
6161         doc: Use a recent texinfo.tex.
6162         * doc/Makefile (tex_opts): New variable.
6163         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6164
6165 2011-05-28  Jim Meyering  <meyering@redhat.com>
6166
6167         intprops.h: adjust comment to match code change
6168         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6169         only once, it *may* have side effects.  Also fix an unrelated typo.
6170         (_GL_INT_SIGNED): Likewise.
6171
6172 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6173
6174         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6175
6176 2011-05-26  Bruno Haible  <bruno@clisp.org>
6177
6178         mbsrchr: Avoid collision with system function on Interix.
6179         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6180         Reported by Markus Duft <mduft@gentoo.org>.
6181
6182 2011-05-15  James Youngman  <jay@gnu.org>
6183
6184         getopt: for ambiguous options, enumerate the possibilities.
6185         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6186         the ambiguous options when an ambiguous prefix is given. This was
6187         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6188         glibc change was
6189         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6190
6191 2011-05-25  Eric Blake  <eblake@redhat.com>
6192
6193         getcwd: work around mingw bug
6194         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6195         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6196         Reported by Matthias Bolte.
6197
6198 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6199
6200         test-intprops: disable -Wtype-limits diagnostics
6201         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6202         diagnostics.  Otherwise, the integer overflow macros generate many
6203         diagnostics.  Reported by Jim Meyering in
6204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6205
6206         intprops: shorten, to pacify gcc -Woverlength-strings
6207         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6208         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6209         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6210         likely to run afoul of C compiler limits for string constant lengths.
6211         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6212
6213 2011-05-24  Eric Blake  <eblake@redhat.com>
6214
6215         docs: document recently fixed glibc printf bug
6216         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6217         * doc/posix-functions/printf.texi (printf): Likewise.
6218         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6219         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6220
6221         closein-tests: convert to init.sh
6222         * modules/closein-tests (Files): Add init.sh
6223         * tests/test-closein.sh Use it.
6224
6225         yesno-tests: convert to init.sh
6226         * modules/yesno-tests (Files): Add init.sh.
6227         * tests/test-yesno.sh: Use it.
6228
6229         atexit-tests: ensure reliable exit status
6230         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6231         Reported by Bruno Haible.
6232
6233 2011-05-24  Bruno Haible  <bruno@clisp.org>
6234
6235         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6236         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6237         gl_PREREQ_STRERROR_R invocations from here...
6238         * modules/strerror_r-posix (configure.ac): ... to here.
6239
6240 2011-05-24  Eric Blake  <eblake@redhat.com>
6241
6242         strerror_r: fix missing header
6243         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6244
6245         strerror_r: fix AIX test failures
6246         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6247         ERANGE failure.
6248
6249         strerror_r: fix Solaris test failures
6250         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6251         failures.
6252         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6253
6254         strerror_r: enforce POSIX recommendations
6255         * lib/strerror_r.c (safe_copy): New helper method.
6256         (strerror_r): Guarantee a non-empty string.
6257         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6258         recent POSIX rulings and to match our strerror guarantees.
6259         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6260
6261 2011-05-24  Jim Meyering  <meyering@redhat.com>
6262
6263         test-perror2.c: avoid warning about unused variable
6264         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6265
6266 2011-05-24  Eric Blake  <eblake@redhat.com>
6267
6268         perror: avoid spurious test failure on HP-UX
6269         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6270
6271         tests: fix logic bug in init.sh
6272         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6273         shell.
6274
6275 2011-05-24  Jim Meyering  <meyering@redhat.com>
6276
6277         utimensat: do not reference an out-of-scope buffer
6278         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6279         declared in an inner scope, yet "times" would be dereferenced outside
6280         the scope in which "ts" was valid.
6281         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6282         of ts[2] "out/up", so that the use of aliased "times" (via
6283         "times = ts;") does not end up referencing an out-of-scope "ts"
6284
6285         opendir-safer.c: don't clobber errno; don't close negative FD
6286         * lib/opendir-safer.c (opendir_safer):
6287         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6288         file descriptor, and more importantly, don't clobber the
6289         offending errno value with EINVAL.  Before, upon failure
6290         of dup_safer, we would pass the negative file descriptor to
6291         fdopendir, which would clobber errno.
6292
6293 2011-05-23  Bruno Haible  <bruno@clisp.org>
6294
6295         idcache: Fix module description.
6296         * modules/idcache (Include): Set to "idcache.h".
6297
6298 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6299
6300         gnulib-tool: fix portability problem with MacOS sed
6301         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6302         before the "}".  Problem reported by Leo in
6303         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6304         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6305         sed_extract_condition1, sed_extract_condition2.
6306
6307 2011-05-23  Bruno Haible  <bruno@clisp.org>
6308
6309         hash: Simplify autoconf macro.
6310         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6311
6312 2011-05-23  Bruno Haible  <bruno@clisp.org>
6313
6314         getugroups: Fix module description.
6315         * modules/getugroups (Include): Set to "getugroups.h".
6316
6317 2011-05-23  Bruno Haible  <bruno@clisp.org>
6318
6319         linkat: Simplify autoconf macro.
6320         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6321
6322 2011-05-23  Bruno Haible  <bruno@clisp.org>
6323             Eric Blake  <eblake@redhat.com>
6324
6325         linkat, renameat: Update dependencies.
6326         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6327         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6328         symlinkat.
6329
6330 2011-05-23  Jim Meyering  <meyering@redhat.com>
6331
6332         maint.mk: more tight_scope improvements
6333         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6334         (_gl_TS_headers): Define only in if-0'd block.
6335         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6336         sometimes we must *not* use it.  Adjust uses accordingly.
6337         (sc_tight_scope): Use much simpler grep-based test to determine
6338         whether we skip this rule.
6339
6340         maint.mk: generalize/improve the tight-scope rule
6341         * top/maint.mk: Emit a warning when the test is skipped.
6342         (_gl_TS_dir): Add $(srcdir)/ prefix.
6343         (_gl_TS_function_match): Simplify, rather than trying
6344         to enumerate common types.  Otherwise, it would fail to match an
6345         "extern unsigned char const *" declaration in idutils.
6346         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6347         a way to support use of that type of macro.
6348         (_gl_TS_var_match): Simplify regexp.
6349         (_gl_TS_obj_files): New configurable variable.
6350         (_gl_TS_headers): Likewise.
6351
6352 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6353
6354         verify: fix bug when gnulib <assert.h> is also included
6355         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6356         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6357         Perhaps there's a better way, but this fixes the immediate problem.
6358         Problem reported by Bruno Haible in
6359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6360
6361 2011-05-22  Bruno Haible  <bruno@clisp.org>
6362
6363         xgetcwd: Simplify autoconf macro.
6364         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6365
6366 2011-05-22  Bruno Haible  <bruno@clisp.org>
6367
6368         New module 'mktime-internal'.
6369         * modules/mktime-internal: New file.
6370         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6371         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6372         mktime_internal as a C macro if libc has __mktime_internal.
6373         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6374         conditions.
6375         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6376
6377 2011-05-22  Bruno Haible  <bruno@clisp.org>
6378
6379         timegm: Correct mktime replacement statements.
6380         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6381         defining mktime as a C macro. This completes a 2009-07-28 commit.
6382
6383 2011-05-22  Bruno Haible  <bruno@clisp.org>
6384
6385         timegm: Simplify autoconf macro.
6386         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6387
6388 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6389
6390         clock-time: change to LGPLv2+.
6391         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6392         BSD-like but we have no mark for that; this is good enough for now.
6393
6394 2011-05-21  Bruno Haible  <bruno@clisp.org>
6395
6396         strerror_r: Fix comments.
6397         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6398
6399 2011-05-21  Bruno Haible  <bruno@clisp.org>
6400
6401         relocatable-prog-wrapper: Fix possible link error.
6402         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6403         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6404         (gl_FUNC_SETENV): ... to here.
6405         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6406         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6407
6408 2011-05-21  Bruno Haible  <bruno@clisp.org>
6409
6410         relocatable-prog-wrapper: Assume strerror() exists.
6411         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6412         m4/strerror.m4.
6413         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6414         * lib/relocwrapper.c: Remove mention of strerror module.
6415         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6416         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6417         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6418         C macro.
6419
6420 2011-05-21  Bruno Haible  <bruno@clisp.org>
6421
6422         select: Simplify replacement idiom.
6423         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6424         Win32 platforms.
6425         * lib/sys_select.in.h (select): Simplify accordingly.
6426         * modules/select (Depends-on): Likewise.
6427
6428 2011-05-21  Bruno Haible  <bruno@clisp.org>
6429
6430         mkdir-p: Simplify autoconf macro.
6431         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6432         gl_FUNC_LCHOWN.
6433
6434 2011-05-21  Eric Blake  <eblake@redhat.com>
6435
6436         strerror_r: avoid clobbering strerror on cygwin
6437         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6438         fall back instead to sys_errlist.
6439         * modules/strerror (configure.ac): Add witness.
6440         * tests/test-strerror_r.c (main): Enhance test.
6441         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6442         * tests/test-perror2.c (main): Free memory before exit.
6443
6444 2011-05-21  Bruno Haible  <bruno@clisp.org>
6445
6446         mkdtemp: Use gnulib naming conventions.
6447         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6448         * modules/mkdtemp (configure.ac): Update.
6449
6450 2011-05-20  Eric Blake  <eblake@redhat.com>
6451
6452         strerror_r: avoid corrupting errno on Solaris
6453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6454         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6455
6456         strerror_r: avoid compiler warning
6457         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6458
6459         strerror_r: simplify AIX code
6460         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6461
6462         test-perror: avoid spurious failure on FreeBSD
6463         * modules/perror-tests (Depends-on): Add strerror, now that
6464         strerror_r no longer pulls it in.
6465
6466 2011-05-20  Bruno Haible  <bruno@clisp.org>
6467
6468         strerror_r-posix: Remove unused dependencies.
6469         * modules/strerror_r-posix (Depends-on): Remove strerror.
6470         Reported by Eric Blake.
6471
6472 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6473
6474         intprops: remove assumption about A|B representation
6475         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6476         is a valid integer if both A and B are.  Although this is true for
6477         all known practical hosts, the C standard doesn't guarantee it,
6478         and the code need not assume it.  Also, this change may work around
6479         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6481
6482 2011-05-20  Eric Blake  <eblake@redhat.com>
6483
6484         perror: work around FreeBSD bug
6485         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6486         is broken.  Move AC_LIBOBJ...
6487         * modules/perror (configure.ac): Here.
6488         * doc/posix-functions/perror.texi (perror): Document this.
6489         * tests/test-perror2.c (main): Enhance test.
6490
6491         test-perror: check for strerror interactions
6492         * tests/macros.h (STREQ): Add macro.
6493         * modules/perror-tests (Files): Add second test.
6494         * tests/test-perror2.c (main): New file.
6495         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6496
6497         test-perror: rewrite to use init script
6498         * modules/perror-tests (Files): Add init.sh.
6499         * tests/test-perror.sh: Use temporary directory.
6500
6501 2011-05-20  Jim Meyering  <meyering@redhat.com>
6502
6503         maint: replace misused "a" with "an"
6504         * doc/intprops.texi: "a integer"
6505         * doc/regex.texi: "a explanation"
6506         * lib/alignof.h: "a object"
6507         * lib/argmatch.h: "a explanation"
6508         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6509         * lib/stdint.in.h: "a integer"
6510         * lib/userspec.c: "a owner"
6511         * doc/gnulib.texi: Fix "a idea", and reword.
6512
6513 2011-05-19  Jim Meyering  <meyering@redhat.com>
6514
6515         maint: correct misuse of "a" and "an"
6516         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6517         * lib/argp-help.c: "an docum...": s/an/a/
6518         * lib/argp-parse.c: "An vector": s/An/A/
6519         * lib/execute.c: "an native": s/an/a/
6520         * lib/spawn-pipe.c: Likewise.
6521         * lib/gc.h: "an Gc_rc": s/an/a/
6522         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6523         * lib/fts.c: "an stat.st_dev": s/an/a/
6524
6525 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6526
6527         intprops-tests: work around HP-UX 11.23 cc bug with constants
6528         * tests/test-intprops.c (VERIFY): New macro.
6529         (main): Use it, instead of verify, to work around the compiler bug; see
6530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6531
6532         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6533         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6534         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6535         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6536         (_GL_REMAINDER_OVERFLOW): Use it.
6537
6538         intprops-tests: revert unsigned part of previous change
6539         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6540         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6541         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6543
6544 2011-05-19  Bruno Haible  <bruno@clisp.org>
6545
6546         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6547         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6548         strerror_r() returned without filling the buffer.
6549         Reported by Eric Blake.
6550
6551 2011-05-19  Eric Blake  <eblake@redhat.com>
6552
6553         strerror_r: guarantee unchanged errno
6554         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6555         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6556         failure.
6557         * tests/test-strerror_r.c (main): Enhance test.
6558
6559 2011-05-19  Bruno Haible  <bruno@clisp.org>
6560
6561         strerror_r: Reorder #if blocks.
6562         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6563         for consistency with the previous commit.
6564
6565 2011-05-19  Bruno Haible  <bruno@clisp.org>
6566
6567         perror: Avoid clobbering the strerror buffer when possible.
6568         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6569         * lib/strerror.c: Include it.
6570         * modules/strerror (Files): Add lib/strerror-impl.h.
6571         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6572         (my_strerror): New function, defined through lib/strerror-impl.h.
6573         (perror): Use it instead of strerror.
6574         * modules/perror (Files): Add lib/strerror-impl.h.
6575         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6576
6577 2011-05-19  Eric Blake  <eblake@redhat.com>
6578
6579         strerror_r: fix on newer cygwin
6580         * lib/strerror_r.c (strerror_r): Cygwin now has
6581         __xpg_strerror_r, use it.
6582
6583 2011-05-19  Bruno Haible  <bruno@clisp.org>
6584
6585         strerror_r: Avoid clobbering the strerror buffer when possible.
6586         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6587         (sys_nerr, sys_errlist): New declarations.
6588         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6589         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6590         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6591
6592 2011-05-19  Bruno Haible  <bruno@clisp.org>
6593
6594         strerror_r: Fix test failure on mingw.
6595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6596         EXTEND_STRERROR_R.
6597         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6598         macros from errno.in.h instead.
6599
6600 2011-05-19  Eric Blake  <eblake@redhat.com>
6601
6602         strerror: relax test for Solaris
6603         * tests/test-strerror.c (main): Permit Solaris behavior.
6604         * tests/test-strerror_r.c (main): Likewise.
6605
6606         strerror: enforce POSIX ruling on strerror(0)
6607         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6609         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6610         * doc/posix-functions/strerror.texi (strerror): Document it.
6611         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6612         * tests/test-strerror.c (main): Strengthen test.
6613         * tests/test-strerror_r.c (main): Likewise.
6614
6615 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6616
6617         intprop-tests: port to older and more-pedantic compilers
6618         * modules/intprops-tests (Files): Add tests/macros.h.
6619         * tests/test-intprops.c: Include macros.h.
6620         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6621         it's no longer documented to expand to an integer constant expression.
6622         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6623         argument is floating point, as it's no longer documented to expand
6624         to an integer constant expression in that case.
6625         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6626         compiler bugs reported by Bruno Haible.  See
6627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6628         (U0, U1): New constants, to work around the same bugs.  Also,
6629         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6630
6631         intprops: work around C compiler bugs
6632         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6633         bug in Sun C 5.11 2010/08/13 and other compilers; see
6634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6635
6636         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6637         * doc/intprops.texi (Integer Type Determination): Fix
6638         documentation for TYPE_IS_INTEGER: it returns an constant
6639         expression, not an integer constant expression.  Fix doc for
6640         TYPE_SIGNED: it returns an integer constant expression only if its
6641         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6642         hardly worth documented that way....)
6643
6644 2011-05-18  Bruno Haible  <bruno@clisp.org>
6645
6646         strerror_r: Avoid clobbering the strerror buffer when possible.
6647         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6648         Handle gnulib defined errno values here. When strerror() returns NULL
6649         or an empty string, return EINVAL.
6650         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6651         gnulib defined errno values here.
6652         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6653
6654 2011-05-18  Eric Blake  <eblake@redhat.com>
6655
6656         fnmatch: avoid compiler warning
6657         * lib/fnmatch_loop.c (FCT): Use correct type.
6658         Reported by Matthias Bolte.
6659
6660 2011-05-13  Jim Meyering  <meyering@redhat.com>
6661
6662         maint.mk: three new prohibit_<HDR>_without_use rules
6663         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6664         (sc_prohibit_stdio-safer_without_use): Likewise.
6665         (sc_prohibit_xfreopen_without_use): Likewise.
6666
6667 2011-05-17  Jim Meyering  <meyering@redhat.com>
6668
6669         announce-gen: fail if the NEWS delta is empty
6670         If there's nothing noteworthy in NEWS, then either you forgot
6671         or you shouldn't be releasing.
6672         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6673
6674 2011-05-17  Pádraig Brady <P@draigBrady.com>
6675
6676         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6677         reserved symbols starting with double underscore from the check.
6678
6679 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         intprops: add doc
6682         * doc/intprops.texi: New file, documenting intprops.
6683         * doc/gnulib.texi (Particular Modules): Include it.
6684
6685         verify: add doc to gnulib manual and fix example
6686         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6687         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6688         (Compile-time Assertions): Fix example so it can't overflow.
6689
6690 2011-05-17  Jim Meyering  <meyering@redhat.com>
6691
6692         warnings.m4: don't usurp save_CPPFLAGS variable name
6693         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6694
6695         doc: fix typo
6696         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6697
6698 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6699             Bruno Haible  <bruno@clisp.org>
6700
6701         doc: Tweak recent change.
6702         * README (Portability guidelines): Tweak new text.
6703         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6704         Interix 6.1.
6705
6706 2011-05-16  Eric Blake  <eblake@redhat.com>
6707
6708         inttypes: avoid autoconf warning
6709         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6710         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6711
6712 2011-05-16  Sam Steingold <sds@gnu.org>
6713         and Eric Blake  <eblake@redhat.com>
6714
6715         vc-list-files: accept multiple directory operands
6716         * build-aux/vc-list-files: Iterate over all remaining operands.
6717
6718 2011-05-16  Bruno Haible  <bruno@clisp.org>
6719
6720         Fix confusion regarding deprecated modules.
6721         * modules/calloc (Status, Notice): Mark module as deprecated, not
6722         obsolete.
6723         * modules/fnmatch-posix (Status, Notice): Likewise.
6724         * modules/getdate (Status, Notice): Likewise.
6725         * modules/getopt (Status, Notice): Likewise.
6726         * modules/malloc (Status, Notice): Likewise.
6727         * modules/pipe (Status, Notice): Likewise.
6728         * modules/realloc (Status, Notice): Likewise.
6729         * modules/rename-dest-slash (Status, Notice): Likewise.
6730         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6731         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6732         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6733         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6734         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6735
6736 2011-05-16  Bruno Haible  <bruno@clisp.org>
6737
6738         doc: List the target platforms.
6739         * doc/gnulib-intro.texi (Target Platforms): New section.
6740         * doc/gnulib.texi (Introduction): Update menu.
6741         * README (Portability guidelines): Refer to the new section. Update
6742         statement about oldest supported environment. Remove rationale why
6743         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6744         unportable C89 function.
6745         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6746         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6747
6748 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6749
6750         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6751
6752 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6753
6754         intprops-tests: new module
6755         * modules/intprops-tests, tests/test-intprops.c: New files.
6756
6757         intprops: add safe, portable integer overflow checking
6758         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6759         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6760         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6761         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6762         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6763         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6764         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6765         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6766         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6767         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6768         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6769
6770 2011-05-12  James Youngman  <jay@gnu.org>
6771
6772         Add a test for glibc's Bugzilla bug #12378.
6773         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6774         doesn't allow the literal matching of a lone "[" (which is
6775         required by POSIX).
6776         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6777
6778 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6779
6780         Sync glibc change fixing Bugzilla bug #12378.
6781         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6782         beginning and fall back to matching as normal character if the
6783         string ends before the matching ']' is found.  This is what POSIX
6784         requires.
6785
6786 2011-05-13  Eric Blake  <eblake@redhat.com>
6787
6788         getcwd-lgpl: relax test for FreeBSD
6789         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6790         issue.
6791         * tests/test-getcwd-lgpl.c (main): Relax test.
6792         Reported by Matthias Bolte.
6793
6794 2011-05-11  Eric Blake  <eblake@redhat.com>
6795
6796         test-fflush: silence compiler warning
6797         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6798
6799 2011-05-11  Bruno Haible  <bruno@clisp.org>
6800
6801         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6802         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6803         * modules/canonicalize (Depends-on): Add 'nocrash'.
6804         * modules/canonicalize-lgpl (Depends-on): Likewise.
6805         * doc/posix-functions/realpath.texi: Update platforms list.
6806         Reported by Ryan Schmidt <ryandesign@macports.org>.
6807
6808 2011-05-11  Bruno Haible  <bruno@clisp.org>
6809
6810         group-member: Declare function in <unistd.h>.
6811         * lib/unistd.in.h (group_member): New declaration.
6812         * lib/group-member.h: Remove file.
6813         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6814         * tests/test-unistd-c++.cc: Check signature of group_member.
6815         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6816         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6817         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6818         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6819         HAVE_GROUP_MEMBER.
6820         * modules/group-member (Files): Remove lib/group-member.h.
6821         (Depends-on): Add unistd. Specify conditions.
6822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6823         (Include): Change to <unistd.h>.
6824         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6825         HAVE_GROUP_MEMBER.
6826         * NEWS: Mention the change.
6827         * lib/euidaccess.c: Don't include group-member.h.
6828
6829 2011-05-11  Bruno Haible  <bruno@clisp.org>
6830
6831         group-member: Document module.
6832         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6833         module.
6834
6835 2011-05-11  Bruno Haible  <bruno@clisp.org>
6836
6837         fclose: Fix mistake earlier today.
6838         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6839
6840 2011-05-11  Eric Blake  <eblake@redhat.com>
6841
6842         fclose: preserve fflush errors
6843         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6844         Reported by Jim Meyering.
6845
6846         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6847         * build-aux/bootstrap (check_versions): When no specific version
6848         is required, merely check that the app produces an exit status
6849         that indicates its existence.
6850
6851         maint.mk: drop redundant check
6852         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6853         the same but better.
6854
6855 2011-05-11  Bruno Haible  <bruno@clisp.org>
6856
6857         fclose: Fix possible link error.
6858         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6859         unregister_shadow_fd. Improve comments.
6860         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6861         Eric Blake.
6862
6863 2011-05-11  Jim Meyering  <meyering@redhat.com>
6864
6865         maint.mk: improve "can not" detection and generalize rule name
6866         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6867         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6868         Use the same technique as in sc_prohibit_doubled_word, so that
6869         we recognize "can not" also when the words are separated by a newline.
6870         Suggested by Eric Blake.
6871         (perl_filename_lineno_text_): Define.  Factored out of...
6872         (prohibit_doubled_word_): ...here.  Use the new definition.
6873         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6874         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6875         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6876
6877 2011-05-10  Eric Blake  <eblake@redhat.com>
6878
6879         fclose: avoid double close race when possible
6880         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6881         all but WINDOWS_SOCKETS.
6882
6883 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6884
6885         openat: correct new comment
6886         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6887
6888 2011-05-10  Jim Meyering  <meyering@redhat.com>
6889
6890         openat: add comments
6891         * lib/openat-proc.c (openat_proc_name): Add comments,
6892         mostly from Eric Blake.
6893
6894 2011-05-09  Eric Blake  <eblake@redhat.com>
6895
6896         openat: reduce syscalls in first probe of /proc
6897         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6898         be a directory.  Simplify the probe for .. bugs.
6899         * modules/openat (Depends-on): Drop same-inode.
6900         Reported by Bastien ROUCARIES.
6901
6902 2011-05-09  Jim Meyering  <meyering@redhat.com>
6903
6904         maint.mk: change semantics/name of tight_scope variables
6905         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6906         Rename variables to align with semantics that make them more useful.
6907
6908         maint.mk: tweak new rule's name not to impinge
6909         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6910         (sc_tight_scope): Use new rule name rather than $@-0.
6911
6912         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6913         * top/maint.mk (sc_tight_scope): New rule.
6914         (sc_tight_scope-0): New rule, ifdef'd out.
6915         (_gl_TS_dir): Default.
6916         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6917         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6918
6919 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6920
6921         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6922         Haible <bruno@clisp.org>.
6923
6924 2011-05-08  Bruno Haible  <bruno@clisp.org>
6925
6926         Comments.
6927         * m4/isnanf.m4: Add comment.
6928         * m4/isnanl.m4: Likewise.
6929
6930 2011-05-08  Bruno Haible  <bruno@clisp.org>
6931
6932         glob: Remove obsolete macro.
6933         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6934
6935 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6936
6937         intprops: Sun C 5.11 supports __typeof__
6938         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6939         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6940         which is new.
6941         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6942
6943         intprops: switch to usual gnulib indenting and naming
6944         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6945         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6946
6947         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6948
6949 2011-05-08  Jim Meyering  <meyering@redhat.com>
6950
6951         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6952         * top/maint.mk (release-prep): Use make's --no-print-directory
6953         option when generating the announcement.  This eliminates the
6954         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6955         generated announcement template.
6956
6957 2011-05-08  Bruno Haible  <bruno@clisp.org>
6958
6959         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6960         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6961         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6962
6963 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6964
6965         ignore-value, verify: Omit include files from lib_SOURCES.
6966         * modules/ignore-value, modules/verify (Makefile.am):
6967         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6968         that leads Automake to duplicate use of am__objects_... variables
6969         in Makefile.in.  See
6970         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6971
6972 2011-05-07  Bruno Haible  <bruno@clisp.org>
6973
6974         fclose: Simplify autoconf macro.
6975         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6976         defined.
6977
6978 2011-05-07  Bruno Haible  <bruno@clisp.org>
6979
6980         canonicalize-lgpl: Fix autoconf macro ordering bug.
6981         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6982         gl_STDLIB_H_DEFAULTS.
6983
6984 2011-05-06  Eric Blake  <eblake@redhat.com>
6985
6986         maintainer-makefile: make sc_po_check easier to tune
6987         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6988         to probe for strings, such as an alternate location for gnulib.
6989
6990         fclose: guarantee behavior on seekable stdin
6991         * modules/fclose (Depends-on): Add fflush.
6992         * doc/posix-functions/fclose.texi (fclose): Document this.
6993         * tests/test-fclose.c (main): Make test for this unconditional.
6994
6995 2011-05-06  Bruno Haible  <bruno@clisp.org>
6996
6997         fflush, fpurge: Relicense under LGPLv2+.
6998         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6999         * modules/fpurge (License): Likewise.
7000         With permission from Eric Blake and Jim Meyering.
7001         Suggested by Eric Blake.
7002
7003 2011-05-06  Karl Berry  <karl@gnu.org>
7004
7005         * MODULES.html.sh (func_all_modules): remove exit.
7006
7007 2011-05-06  Jim Meyering  <meyering@redhat.com>
7008
7009         maint.mk: use info-gnu@ as the default only for a stable release
7010         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7011         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7012         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7014
7015 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7016
7017         assert-h: new module, which supports C1X-style static_assert
7018         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7019         * lib/verify.h: Revamp so that this can be copied into assert.h,
7020         while retaining the ability to use it standalone as before.
7021         Rename private identifiers so as not to encroach on the
7022         standard C namespace, since this is now used by assert.h.
7023         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7024         the old verify_true.
7025         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7026         the old verify_true.  Use _GL_VERIFY_TYPE.
7027         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7028         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7029         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7030         defined when this file is copied into the replacement assert.h.
7031         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7032         and _Static_assert is not built in.
7033         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7034         defined, and use the new macros mentioned above.
7035         * doc/posix-headers/assert.texi: Document this.
7036
7037 2011-05-05  Bruno Haible  <bruno@clisp.org>
7038
7039         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7040         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7041         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7042         gl_REPLACE_FCLOSE here.
7043         * modules/fflush (Depends-on): Remove fclose.
7044         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7045         combination with module 'fclose'.
7046
7047 2011-05-05  Bruno Haible  <bruno@clisp.org>
7048
7049         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7050         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7051         gl_FUNC_FFLUSH.
7052         (gl_FUNC_FFLUSH): Use it.
7053         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7055         gl_REPLACE_FSEEKO here.
7056
7057 2011-05-05  Bruno Haible  <bruno@clisp.org>
7058
7059         tzset: Relicense under LGPL.
7060         * modules/tzset (License): Change to LGPL.
7061         No agreement needed; it's a no-op.
7062
7063         strtoimax, strtoumax: Relicense under LGPL.
7064         * modules/strtoimax (License): Change to LGPL.
7065         * modules/strtoumax (License): Likewise.
7066         With permission from Jim Meyering, Paul Eggert:
7067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7069
7070         getgroups: Relicense under LGPL.
7071         * modules/getgroups (License): Change to LGPL.
7072         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7076
7077         nanosleep: Relicense under LGPL.
7078         * modules/nanosleep (License): Change to LGPL.
7079         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7080         Haible:
7081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7085
7086         futimens: Relicense under LGPL.
7087         * modules/futimens (License): Change to LGPL.
7088         With permission from Eric Blake:
7089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7090
7091         fflush: Relicense under LGPL.
7092         * modules/fflush (License): Change to LGPL.
7093         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7097
7098         tmpfile: Relicense under LGPL.
7099         * modules/tmpfile (License): Change to LGPL.
7100         With permission from Ben Pfaff:
7101         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7102
7103         isfinite: Relicense under LGPL.
7104         * modules/isfinite (License): Change to LGPL.
7105         With permission from Ben Pfaff, Bruno Haible:
7106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7108
7109         acosl..tanl: Relicense under LGPL.
7110         * modules/acosl (License): Change to LGPL.
7111         * modules/asinl (License): Likewise.
7112         * modules/atanl (License): Likewise.
7113         * modules/cosl (License): Likewise.
7114         * modules/expl (License): Likewise.
7115         * modules/logl (License): Likewise.
7116         * modules/sinl (License): Likewise.
7117         * modules/sqrtl (License): Likewise.
7118         * modules/tanl (License): Likewise.
7119         Source code originally from glibc and Paolo Bonzini. Agreements:
7120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7122
7123 2011-05-05  Bruno Haible  <bruno@clisp.org>
7124
7125         signal: Define sighandler_t.
7126         * lib/signal.in.h (sighandler_t): New type.
7127         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7128         whether sighandler_t is defined.
7129         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7130         * modules/signal (Depends-on): Add extensions.
7131         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7132         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7133         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7134
7135 2011-05-05  Eric Blake  <eblake@redhat.com>
7136
7137         maint: remove useless REPLACE_*_H macros
7138         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7139         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7140         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7141         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7142         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7143         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7144         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7145         * m4/btowc.m4: Update callers.
7146         * m4/dirfd.m4: Likewise.
7147         * m4/duplocale.m4: Likewise.
7148         * m4/fchdir.m4: Likewise.
7149         * m4/fdopendir.m4: Likewise.
7150         * m4/inet_ntop.m4: Likewise.
7151         * m4/inet_pton.m4: Likewise.
7152         * m4/ioctl.m4: Likewise.
7153         * m4/mbrlen.m4: Likewise.
7154         * m4/mbrtowc.m4: Likewise.
7155         * m4/mbsinit.m4: Likewise.
7156         * m4/mbsnrtowcs.m4: Likewise.
7157         * m4/mbsrtowcs.m4: Likewise.
7158         * m4/poll.m4: Likewise.
7159         * m4/setlocale.m4: Likewise.
7160         * m4/wcrtomb.m4: Likewise.
7161         * m4/wcsnrtombs.m4: Likewise.
7162         * m4/wcsrtombs.m4: Likewise.
7163         * m4/wctob.m4: Likewise.
7164         * m4/wcwidth.m4: Likewise.
7165         * modules/posix_spawn: Likewise.
7166         * modules/posix_spawn_file_actions_addclose: Likewise.
7167         * modules/posix_spawn_file_actions_adddup2: Likewise.
7168         * modules/posix_spawn_file_actions_addopen: Likewise.
7169         * modules/posix_spawn_file_actions_destroy: Likewise.
7170         * modules/posix_spawn_file_actions_init: Likewise.
7171         * modules/posix_spawnattr_destroy: Likewise.
7172         * modules/posix_spawnattr_getflags: Likewise.
7173         * modules/posix_spawnattr_getpgroup: Likewise.
7174         * modules/posix_spawnattr_getschedparam: Likewise.
7175         * modules/posix_spawnattr_getschedpolicy: Likewise.
7176         * modules/posix_spawnattr_getsigdefault: Likewise.
7177         * modules/posix_spawnattr_getsigmask: Likewise.
7178         * modules/posix_spawnattr_init: Likewise.
7179         * modules/posix_spawnattr_setflags: Likewise.
7180         * modules/posix_spawnattr_setpgroup: Likewise.
7181         * modules/posix_spawnattr_setschedparam: Likewise.
7182         * modules/posix_spawnattr_setschedpolicy: Likewise.
7183         * modules/posix_spawnattr_setsigdefault: Likewise.
7184         * modules/posix_spawnattr_setsigmask: Likewise.
7185         * modules/posix_spawnp: Likewise.
7186
7187 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7188
7189         Add option to do-release-commit-and-tag to specify branch.
7190         * build-aux/do-release-commit-and-tag: Add --branch.
7191
7192 2011-05-03  Bruno Haible  <bruno@clisp.org>
7193
7194         Avoid unnecessary compilation units, through conditional dependencies.
7195         * modules/accept (Depends-on): Add conditions to the dependencies.
7196         * modules/acosl (Depends-on): Likewise.
7197         * modules/argz (Depends-on): Likewise.
7198         * modules/asinl (Depends-on): Likewise.
7199         * modules/atanl (Depends-on): Likewise.
7200         * modules/atoll (Depends-on): Likewise.
7201         * modules/bind (Depends-on): Likewise.
7202         * modules/btowc (Depends-on): Likewise.
7203         * modules/canonicalize-lgpl (Depends-on): Likewise.
7204         * modules/ceil (Depends-on): Likewise.
7205         * modules/ceilf (Depends-on): Likewise.
7206         * modules/ceill (Depends-on): Likewise.
7207         * modules/chdir-long (Depends-on): Likewise.
7208         * modules/chown (Depends-on): Likewise.
7209         * modules/close (Depends-on): Likewise.
7210         * modules/connect (Depends-on): Likewise.
7211         * modules/cosl (Depends-on): Likewise.
7212         * modules/dirfd (Depends-on): Likewise.
7213         * modules/dprintf (Depends-on): Likewise.
7214         * modules/dprintf-posix (Depends-on): Likewise.
7215         * modules/error (Depends-on): Likewise.
7216         * modules/euidaccess (Depends-on): Likewise.
7217         * modules/expl (Depends-on): Likewise.
7218         * modules/faccessat (Depends-on): Likewise.
7219         * modules/fchdir (Depends-on): Likewise.
7220         * modules/fclose (Depends-on): Likewise.
7221         * modules/fcntl (Depends-on): Likewise.
7222         * modules/fdopendir (Depends-on): Likewise.
7223         * modules/fflush (Depends-on): Likewise.
7224         * modules/floor (Depends-on): Likewise.
7225         * modules/floorf (Depends-on): Likewise.
7226         * modules/floorl (Depends-on): Likewise.
7227         * modules/fnmatch (Depends-on): Likewise.
7228         * modules/fopen (Depends-on): Likewise.
7229         * modules/fprintf-posix (Depends-on): Likewise.
7230         * modules/frexp (Depends-on): Likewise.
7231         * modules/frexp-nolibm (Depends-on): Likewise.
7232         * modules/frexpl (Depends-on): Likewise.
7233         * modules/frexpl-nolibm (Depends-on): Likewise.
7234         * modules/fseek (Depends-on): Likewise.
7235         * modules/fsusage (Depends-on): Likewise.
7236         * modules/ftell (Depends-on): Likewise.
7237         * modules/ftello (Depends-on): Likewise.
7238         * modules/futimens (Depends-on): Likewise.
7239         * modules/getcwd (Depends-on): Likewise.
7240         * modules/getcwd-lgpl (Depends-on): Likewise.
7241         * modules/getdelim (Depends-on): Likewise.
7242         * modules/getdomainname (Depends-on): Likewise.
7243         * modules/getgroups (Depends-on): Likewise.
7244         * modules/gethostname (Depends-on): Likewise.
7245         * modules/getline (Depends-on): Likewise.
7246         * modules/getlogin_r (Depends-on): Likewise.
7247         * modules/getopt-posix (Depends-on): Likewise.
7248         * modules/getpeername (Depends-on): Likewise.
7249         * modules/getsockname (Depends-on): Likewise.
7250         * modules/getsockopt (Depends-on): Likewise.
7251         * modules/getsubopt (Depends-on): Likewise.
7252         * modules/getusershell (Depends-on): Likewise.
7253         * modules/glob (Depends-on): Likewise.
7254         * modules/grantpt (Depends-on): Likewise.
7255         * modules/iconv_open (Depends-on): Likewise.
7256         * modules/iconv_open-utf (Depends-on): Likewise.
7257         * modules/inet_ntop (Depends-on): Likewise.
7258         * modules/inet_pton (Depends-on): Likewise.
7259         * modules/ioctl (Depends-on): Likewise.
7260         * modules/isapipe (Depends-on): Likewise.
7261         * modules/isfinite (Depends-on): Likewise.
7262         * modules/isinf (Depends-on): Likewise.
7263         * modules/lchown (Depends-on): Likewise.
7264         * modules/ldexpl (Depends-on): Likewise.
7265         * modules/link (Depends-on): Likewise.
7266         * modules/linkat (Depends-on): Likewise.
7267         * modules/listen (Depends-on): Likewise.
7268         * modules/logl (Depends-on): Likewise.
7269         * modules/lstat (Depends-on): Likewise.
7270         * modules/mbrlen (Depends-on): Likewise.
7271         * modules/mbrtowc (Depends-on): Likewise.
7272         * modules/mbsinit (Depends-on): Likewise.
7273         * modules/mbsnrtowcs (Depends-on): Likewise.
7274         * modules/mbsrtowcs (Depends-on): Likewise.
7275         * modules/mbtowc (Depends-on): Likewise.
7276         * modules/memcmp (Depends-on): Likewise.
7277         * modules/mkdir (Depends-on): Likewise.
7278         * modules/mkdtemp (Depends-on): Likewise.
7279         * modules/mkfifo (Depends-on): Likewise.
7280         * modules/mkfifoat (Depends-on): Likewise.
7281         * modules/mknod (Depends-on): Likewise.
7282         * modules/mkostemp (Depends-on): Likewise.
7283         * modules/mkostemps (Depends-on): Likewise.
7284         * modules/mkstemp (Depends-on): Likewise.
7285         * modules/mkstemps (Depends-on): Likewise.
7286         * modules/mktime (Depends-on): Likewise.
7287         * modules/nanosleep (Depends-on): Likewise.
7288         * modules/open (Depends-on): Likewise.
7289         * modules/openat (Depends-on): Likewise.
7290         * modules/perror (Depends-on): Likewise.
7291         * modules/poll (Depends-on): Likewise.
7292         * modules/popen (Depends-on): Likewise.
7293         * modules/posix_spawn (Depends-on): Likewise.
7294         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7295         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7296         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7297         * modules/posix_spawnp (Depends-on): Likewise.
7298         * modules/pread (Depends-on): Likewise.
7299         * modules/printf-posix (Depends-on): Likewise.
7300         * modules/ptsname (Depends-on): Likewise.
7301         * modules/putenv (Depends-on): Likewise.
7302         * modules/pwrite (Depends-on): Likewise.
7303         * modules/readline (Depends-on): Likewise.
7304         * modules/readlink (Depends-on): Likewise.
7305         * modules/readlinkat (Depends-on): Likewise.
7306         * modules/recv (Depends-on): Likewise.
7307         * modules/recvfrom (Depends-on): Likewise.
7308         * modules/regex (Depends-on): Likewise.
7309         * modules/remove (Depends-on): Likewise.
7310         * modules/rename (Depends-on): Likewise.
7311         * modules/renameat (Depends-on): Likewise.
7312         * modules/rmdir (Depends-on): Likewise.
7313         * modules/round (Depends-on): Likewise.
7314         * modules/roundf (Depends-on): Likewise.
7315         * modules/roundl (Depends-on): Likewise.
7316         * modules/rpmatch (Depends-on): Likewise.
7317         * modules/select (Depends-on): Likewise.
7318         * modules/send (Depends-on): Likewise.
7319         * modules/sendto (Depends-on): Likewise.
7320         * modules/setenv (Depends-on): Likewise.
7321         * modules/setlocale (Depends-on): Likewise.
7322         * modules/setsockopt (Depends-on): Likewise.
7323         * modules/shutdown (Depends-on): Likewise.
7324         * modules/sigaction (Depends-on): Likewise.
7325         * modules/signbit (Depends-on): Likewise.
7326         * modules/sigprocmask (Depends-on): Likewise.
7327         * modules/sinl (Depends-on): Likewise.
7328         * modules/sleep (Depends-on): Likewise.
7329         * modules/snprintf (Depends-on): Likewise.
7330         * modules/snprintf-posix (Depends-on): Likewise.
7331         * modules/socket (Depends-on): Likewise.
7332         * modules/sprintf-posix (Depends-on): Likewise.
7333         * modules/sqrtl (Depends-on): Likewise.
7334         * modules/stat (Depends-on): Likewise.
7335         * modules/strchrnul (Depends-on): Likewise.
7336         * modules/strdup-posix (Depends-on): Likewise.
7337         * modules/strerror (Depends-on): Likewise.
7338         * modules/strerror_r-posix (Depends-on): Likewise.
7339         * modules/strndup (Depends-on): Likewise.
7340         * modules/strnlen (Depends-on): Likewise.
7341         * modules/strptime (Depends-on): Likewise.
7342         * modules/strsep (Depends-on): Likewise.
7343         * modules/strsignal (Depends-on): Likewise.
7344         * modules/strstr-simple (Depends-on): Likewise.
7345         * modules/strtod (Depends-on): Likewise.
7346         * modules/strtoimax (Depends-on): Likewise.
7347         * modules/strtok_r (Depends-on): Likewise.
7348         * modules/strtoumax (Depends-on): Likewise.
7349         * modules/symlink (Depends-on): Likewise.
7350         * modules/symlinkat (Depends-on): Likewise.
7351         * modules/tanl (Depends-on): Likewise.
7352         * modules/tcgetsid (Depends-on): Likewise.
7353         * modules/tmpfile (Depends-on): Likewise.
7354         * modules/trunc (Depends-on): Likewise.
7355         * modules/truncf (Depends-on): Likewise.
7356         * modules/truncl (Depends-on): Likewise.
7357         * modules/uname (Depends-on): Likewise.
7358         * modules/unlink (Depends-on): Likewise.
7359         * modules/unlockpt (Depends-on): Likewise.
7360         * modules/unsetenv (Depends-on): Likewise.
7361         * modules/usleep (Depends-on): Likewise.
7362         * modules/utimensat (Depends-on): Likewise.
7363         * modules/vasprintf (Depends-on): Likewise.
7364         * modules/vdprintf (Depends-on): Likewise.
7365         * modules/vdprintf-posix (Depends-on): Likewise.
7366         * modules/vfprintf-posix (Depends-on): Likewise.
7367         * modules/vprintf-posix (Depends-on): Likewise.
7368         * modules/vsnprintf (Depends-on): Likewise.
7369         * modules/vsnprintf-posix (Depends-on): Likewise.
7370         * modules/vsprintf-posix (Depends-on): Likewise.
7371         * modules/wcrtomb (Depends-on): Likewise.
7372         * modules/wcscasecmp (Depends-on): Likewise.
7373         * modules/wcscspn (Depends-on): Likewise.
7374         * modules/wcsdup (Depends-on): Likewise.
7375         * modules/wcsncasecmp (Depends-on): Likewise.
7376         * modules/wcsnrtombs (Depends-on): Likewise.
7377         * modules/wcspbrk (Depends-on): Likewise.
7378         * modules/wcsrtombs (Depends-on): Likewise.
7379         * modules/wcsspn (Depends-on): Likewise.
7380         * modules/wcsstr (Depends-on): Likewise.
7381         * modules/wcstok (Depends-on): Likewise.
7382         * modules/wcswidth (Depends-on): Likewise.
7383         * modules/wctob (Depends-on): Likewise.
7384         * modules/wctomb (Depends-on): Likewise.
7385         * modules/wctype (Depends-on): Likewise.
7386         * modules/wcwidth (Depends-on): Likewise.
7387         * modules/write (Depends-on): Likewise.
7388
7389 2011-05-03  Bruno Haible  <bruno@clisp.org>
7390
7391         Support for conditional dependencies.
7392         * doc/gnulib.texi (Module description): Document the syntax of
7393         conditional dependencies.
7394         * gnulib-tool: New option --conditional-dependencies.
7395         (func_usage): Document it.
7396         (cond_dependencies): New variable.
7397         (func_get_automake_snippet_conditional,
7398         func_get_automake_snippet_unconditional): New functions, extracted from
7399         func_get_automake_snippet.
7400         (func_get_automake_snippet): Use them.
7401         (sed_first_32_chars): New variable.
7402         (func_module_shellfunc_name): New function.
7403         (func_module_shellvar_name): New function.
7404         (func_module_conditional_name): New function.
7405         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7406         func_cond_module_condition): New functions.
7407         (func_modules_transitive_closure): Add support for conditional
7408         dependencies.
7409         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7410         conditional automake snippet in an automake conditional.
7411         (func_emit_autoconf_snippets): Emit shell functions that contain the
7412         code for conditional modules.
7413         (func_import, func_create_testdir): Update specification.
7414
7415 2011-05-03  Eric Blake  <eblake@redhat.com>
7416
7417         test-getaddrinfo: report error information
7418         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7419
7420 2011-05-03  Jim Meyering  <meyering@redhat.com>
7421
7422         bootstrap: avoid build failure when $GZIP is set
7423         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7424         program name.  If defined at all, it is supposed to list gzip options.
7425         Reported by Alan Curry in http://debbugs.gnu.org/8609
7426
7427 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7428
7429         readme-release: new module with release instructions
7430         * modules/readme-release: New module.
7431         * top/README-release: New file, from coreutils, grep, diffutils.
7432         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7433
7434 2011-05-02  Eric Blake  <eblake@redhat.com>
7435
7436         fflush: also replace fclose when fixing fflush
7437         * modules/fflush (Depends-on): Add fclose.
7438         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7439         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7440         memstreams with no backing fd.
7441         * doc/posix-functions/fclose.texi (fclose): Document the use of
7442         fflush module to fix the bug.
7443         * tests/test-fclose.c (main): Relax test when fclose is used in
7444         isolation.
7445
7446         fclose: add some tests
7447         * modules/fclose-tests: New test module.
7448         * tests/test-fclose.c: New file.
7449         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7450
7451         fclose: reduced dependencies
7452         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7453         simpler lseek.
7454         * lib/fclose.c (rpl_fclose): Likewise.
7455         Reported by Simon Josefsson.
7456
7457         exit: drop remaining clients
7458         * modules/argmatch (Depends-on): Replace exit with stdlib.
7459         * modules/copy-file (Depends-on): Likewise.
7460         * modules/execute (Depends-on): Likewise.
7461         * modules/exitfail (Depends-on): Likewise.
7462         * modules/obstack (Depends-on): Likewise.
7463         * modules/pagealign_alloc (Depends-on): Likewise.
7464         * modules/pipe-filter-gi (Depends-on): Likewise.
7465         * modules/pipe-filter-ii (Depends-on): Likewise.
7466         * modules/savewd (Depends-on): Likewise.
7467         * modules/spawn-pipe (Depends-on): Likewise.
7468         * modules/wait-process (Depends-on): Likewise.
7469         * modules/xsetenv (Depends-on): Likewise.
7470         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7471         * modules/git-merge-changelog (Depends-on): Likewise.
7472         * modules/long-options (Depends-on): Likewise.
7473         * modules/pt_chown (Depends-on): Likewise.
7474         * modules/sysexits (Depends-on): Likewise.
7475
7476         freading: relax license from LGPLv3+ to LGPLv2+
7477         * modules/freading (License): Relax LGPL version.
7478
7479 2011-05-02  Bruno Haible  <bruno@clisp.org>
7480
7481         fchdir: Remove unused dependencies.
7482         * modules/fchdir (Depends-on): Remove include_next.
7483
7484 2011-05-02  Bruno Haible  <bruno@clisp.org>
7485
7486         gnulib-tool: Refactor.
7487         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7488         from func_emit_autoconf_snippets.
7489         (func_emit_autoconf_snippets): Use it.
7490
7491 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7492
7493         * NEWS: Document removal of 'exit'.
7494         * modules/exit: Remove file.
7495
7496 2011-05-01  Bruno Haible  <bruno@clisp.org>
7497
7498         Update DEPENDENCIES.
7499         * DEPENDENCIES (gettext): Recommend the newest release.
7500         Reported by Simon Josefsson.
7501
7502 2011-05-01  Bruno Haible  <bruno@clisp.org>
7503
7504         gnulib-tool: Reduce code duplication.
7505         * gnulib-tool (func_emit_autoconf_snippets): New function.
7506         (func_import, func_create_testdir): Use it.
7507
7508 2011-04-30  Eric Blake  <eblake@redhat.com>
7509
7510         fclose: don't fail on non-seekable input stream
7511         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7512         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7513         since fflush is allowed to fail in that case.
7514
7515 2011-04-30  Bruno Haible  <bruno@clisp.org>
7516
7517         dup3: cleanup
7518         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7519
7520 2011-04-30  Bruno Haible  <bruno@clisp.org>
7521
7522         netdb: Make it work in C++ mode.
7523         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7524         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7525         module.
7526         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7527         gl_MODULE_INDICATOR_FOR_TESTS.
7528         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7529         * modules/netdb-c++-tests: New file.
7530         * tests/test-netdb-c++.cc: New file.
7531
7532 2011-04-30  Bruno Haible  <bruno@clisp.org>
7533
7534         New modules 'vfscanf', 'vscanf'.
7535         * modules/vfscanf: New file.
7536         * modules/vscanf: New file.
7537         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7538         here.
7539         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7540         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7541
7542 2011-04-30  Bruno Haible  <bruno@clisp.org>
7543
7544         passfd: Add comments.
7545         * lib/passfd.c: Add comments about platforms.
7546
7547 2011-04-30  Bruno Haible  <bruno@clisp.org>
7548
7549         sys_uio: Make <sys/uio.h> self-contained.
7550         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7551         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7552
7553 2011-04-30  Bruno Haible  <bruno@clisp.org>
7554
7555         sys_socket: Ensure 'struct iovec' definition.
7556         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7557         <sys/socket.h>.
7558         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7559
7560 2011-04-30  Bruno Haible  <bruno@clisp.org>
7561
7562         sys_uio: Protect definition of 'struct iovec'.
7563         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7564         it as a C struct.
7565
7566 2011-04-30  Bruno Haible  <bruno@clisp.org>
7567
7568         manywarnings: fix indentation
7569         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7570
7571 2011-04-30  Pádraig Brady <P@draigBrady.com>
7572
7573         manywarnings: add -Wno-missing-field-initializers if needed.
7574         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7575         option if it's needed to allow initialization with { 0, }
7576
7577 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7578
7579         announce-gen: cosmetic improvement
7580         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7581
7582 2011-04-29  Jim Meyering  <meyering@redhat.com>
7583
7584         vc-list-files: indent with spaces, not TABs
7585         * build-aux/vc-list-files: Convert leading TABs to spaces,
7586         to match the style of most other files in gnulib.
7587
7588         announce-gen: indent with spaces, not TABs
7589         * build-aux/announce-gen: Convert all TABs to spaces, to match
7590         the style of most other files in gnulib.
7591
7592 2011-04-29  Eric Blake  <eblake@redhat.com>
7593
7594         quotearg: avoid uninitialized variable use
7595         * lib/quotearg.c (quoting_options_from_style): Initialize
7596         remaining fields, and ensure that custom styles are only used via
7597         quoting_options rather than quoting_style.
7598
7599 2011-04-29  Jim Meyering  <meyering@redhat.com>
7600
7601         maint.mk: remove unused VC-tag variable
7602         * top/maint.mk (VC-tag): Remove unused variable.
7603
7604 2011-04-29  Bruno Haible  <bruno@clisp.org>
7605
7606         netdb: fix gai_strerror replacements
7607         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7608         * modules/netdb: Substitute it.
7609
7610 2011-04-29  Jim Meyering  <meyering@redhat.com>
7611
7612         test-getcwd.c: avoid new set-but-not-used warning
7613         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7614         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7615         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7616         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7617
7618         test-hash.c: avoid a new shadowing warning
7619         * tests/test-hash.c (main): Don't shadow "dup".
7620
7621 2011-04-28  Eric Blake  <eblake@redhat.com>
7622
7623         getaddrinfo: fix gai_strerror signature
7624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7625         and work around mingw with UNICODE defined.
7626         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7627         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7628         * modules/netdb (Makefile.am): Substitute it.
7629         * lib/netdb.in.h (gai_strerror): Declare replacement.
7630         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7631         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7632         the fix.
7633
7634         getsockopt: avoid compiler warning
7635         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7636         Reported by Matthias Bolte.
7637
7638         tests: drop unused link dependency
7639         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7640         * modules/dirent-safer-tests (Makefile.am): Likewise.
7641         * modules/fdopendir-tests (Makefile.am): Likewise.
7642         * modules/mkfifoat-tests (Makefile.am): Likewise.
7643         * modules/openat-safer-tests (Makefile.am): Likewise.
7644         * modules/openat-tests (Makefile.am): Likewise.
7645         * modules/readlinkat-tests (Makefile.am): Likewise.
7646         * modules/symlinkat-tests (Makefile.am): Likewise.
7647         * modules/linkat-tests (Makefile.am): Likewise.
7648         (Depends-on): Switch to filenamecat-lgpl.
7649         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7650         LIBINTL.
7651         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7652         * tests/test-linkat.c (main): Don't require xalloc.
7653
7654         hash, mgetgroups: drop xalloc dependency
7655         * lib/hash.c (includes): Adjust includes.
7656         * lib/mgetgroups.c (includes): Likewise.
7657         (xgetgroups): Move...
7658         * lib/xgetgroups.c: ...to new file.
7659         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7660         * modules/xgetgroups: New file, split from...
7661         * modules/mgetgroups: ...here.
7662         (Depends-on): Add xalloc-oversized.
7663         * modules/hash (Depends-on): Likewise.
7664         * modules/hash-tests (Depends-on): Drop xalloc.
7665         (test_hash_LDADD): Drop unused library.
7666         * tests/test-hash.c (main): Break xalloc dependency.
7667         (includes): Drop unused include.
7668
7669         xalloc-oversized: new module
7670         * modules/xalloc-oversized: New module.
7671         * modules/xalloc (Depends-on): Add it.
7672         * lib/xalloc.h (xalloc_oversized): Move...
7673         * lib/xalloc-oversized.h: ...into new file.
7674
7675         utimecmp: drop dependency on xmalloc
7676         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7677         due to memory pressure.
7678         * modules/utimecmp (Depends-on): Drop xalloc.
7679
7680 2011-04-27  Eric Blake  <eblake@redhat.com>
7681
7682         getcwd: fix mingw bugs
7683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7684         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7685         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7686
7687 2011-04-27  Bruno Haible  <bruno@clisp.org>
7688
7689         mkstemps: Ensure declaration on MacOS X 10.5.
7690         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7691         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7692         MacOS X.
7693
7694 2011-04-27  Bruno Haible  <bruno@clisp.org>
7695
7696         mkstemp: More documentation.
7697         * doc/posix-functions/mkstemp.texi: Document header file problem on
7698         MacOS X.
7699
7700 2011-04-27  Bruno Haible  <bruno@clisp.org>
7701
7702         mkstemp: Tweak configure message when cross-compiling.
7703         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7704         result as a guess.
7705
7706 2011-04-27  Bruno Haible  <bruno@clisp.org>
7707
7708         clean-temp: Clarify what it does.
7709         * lib/clean-temp.h: Add more comments.
7710         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7711         module.
7712         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7713         * doc/glibc-functions/mkstemps.texi: Likewise.
7714         * doc/glibc-functions/mkostemps.texi: Likewise.
7715
7716 2011-04-27  Eric Blake  <eblake@redhat.com>
7717
7718         fchdir: avoid extra chdir and fix test
7719         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7720         getcwd-lgpl.
7721         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7722         have to be canonical.
7723         (canonicalize_file_name): Drop unused macro.
7724         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7725
7726         filenamecat-lgpl: fix licence
7727         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7728         when it was first created.
7729
7730         linkat, renameat: add missing dependency
7731         * modules/linkat (Depends-on): Require getcwd-lgpl.
7732         * modules/renameat (Depends-on): Likewise.
7733
7734         tests: reduce dependencies
7735         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7736         * tests/test-renameat.c (main): Likewise.
7737         * modules/linkat-tests (Depends-on): Relax dependency.
7738         * modules/renameat-tests (Depends-on): Likewise.
7739         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7740         dependency explicit.
7741
7742         save-cwd: reduce default dependency
7743         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7744         * lib/save-cwd.c: Update comments.
7745         * NEWS: Document the semantic change.
7746
7747         getcwd: enhance tests
7748         * tests/test-getcwd-lgpl.c: New file, taken from...
7749         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7750         repeat long path stress tests from m4 probe.
7751         * modules/getcwd-lgpl-tests: New module.
7752         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7753         * m4/getcwd-abort-bug.m4: Update comment.
7754         * m4/getcwd-path-max.m4: Likewise.
7755
7756         getcwd-lgpl: new module
7757         * modules/getcwd-lgpl: New module.
7758         * lib/getcwd-lgpl.c: New file.
7759         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7760         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7761         * modules/getcwd (configure.ac): Set C witness.
7762         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7763
7764         getcwd: tweak comments
7765         * m4/getcwd-abort-bug.m4: Fix comments.
7766         * m4/getcwd-path-max.m4: Likewise.
7767         * m4/getcwd.m4: Likewise.
7768
7769 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7770         and Eric Blake  <eblake@redhat.com>
7771
7772         mkstemp: replace if system version uses wrong permissions
7773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7774         read/write mode bits set in file created by mkstemp.
7775         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7776
7777 2011-04-27  Eric Blake  <eblake@redhat.com>
7778
7779         passfd: avoid compiler warning
7780         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7781         Reported by Laine Stump.
7782
7783 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7784
7785         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7786         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7787
7788 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7789         and Eric Blake  <eblake@redhat.com>
7790
7791         mkstemp: mention clean-temp module
7792         * lib/mkstemp.c: Add comment.
7793         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7794
7795 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7796
7797         inttypes: also provide default values for 32-bit tests
7798         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7799         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7800
7801 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7802
7803         strtoumax: remove dependency on strtoimax
7804         This is like the strtoull change of yesterday.
7805         * modules/strtoumax (Files): Add lib/strtoimax.c.
7806         (Depends-on): Remove strtoimax and add verify.
7807
7808         inttypes-incomplete: new module
7809         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7810         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7811         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7812         of gl_INTTYPES_H.
7813         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7814         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7815         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7816         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7817         * modules/strtoumax, modules/xstrtol (Depends-on):
7818         Depend on inttypes-incomplete, not inttypes.
7819         * modules/inttypes-incomplete: New module, containing the contents
7820         of the old modules/inttypes module, except that the Files: section
7821         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7822         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7823         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7824         (Depends-on): Depend only on inttypes-incomplete.
7825         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7826
7827         inttypes: omit now-redundant strtoimax and strtoumax work
7828         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7829         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7830
7831         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7832         This supports apps that need pointers to strtoimax and strtoumax,
7833         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7834         nonexistent functions.  See
7835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7836         et seq.
7837         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7838         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7839         a macro.
7840         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7841
7842 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7843
7844         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7845
7846 2011-04-25  Bruno Haible  <bruno@clisp.org>
7847
7848         strtol, strtoul: Mark modules as obsolete.
7849         * modules/strtol (Status, Notice): New sections.
7850         * modules/strtoul (Status, Notice): New sections.
7851
7852 2011-04-25  Bruno Haible  <bruno@clisp.org>
7853
7854         strtod: Remove check for strtod, unless supporting old platforms.
7855         * modules/strtod-obsolete: New file.
7856         * m4/strtod-obsolete.m4: New file.
7857         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7858         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7859         * modules/strtod (Depends-on): Add strtod-obsolete.
7860         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7861
7862 2011-04-25  Bruno Haible  <bruno@clisp.org>
7863
7864         strcase: Make module obsolete.
7865         * modules/strcase (Status, Notice): New sections.
7866
7867 2011-04-25  Bruno Haible  <bruno@clisp.org>
7868
7869         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7870         * modules/dup2-obsolete: New file.
7871         * m4/dup2-obsolete.m4: New file.
7872         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7873         gl_FUNC_DUP2_OBSOLETE is not also defined.
7874         * modules/dup2 (Depends-on): Add dup2-obsolete.
7875         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7876
7877 2011-04-25  Bruno Haible  <bruno@clisp.org>
7878
7879         strnlen: Avoid memchr related link error on old obsolete platforms.
7880         * modules/memchr-obsolete: New file.
7881         * m4/memchr-obsolete.m4: New file.
7882         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7883         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7884         * modules/memchr (Depends-on): Add memchr-obsolete.
7885         * modules/strnlen (Depends-on): Likewise.
7886         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7887
7888 2011-04-25  Jim Meyering  <meyering@redhat.com>
7889
7890         maint.mk: makefile_at_at_check extend and clean up
7891         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7892         in addition to */Makefile.am.
7893         Exempt legitimate uses of @VAR@ notation, e.g.,
7894         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7895         Remove obsolete coreutils-specific comment.
7896         Prompted by discussion here:
7897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7898
7899 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7900
7901         strtoul: remove dependency on strtol
7902         This is so that 'configure' need not check for strtol merely because
7903         the application needs strtoul.
7904         * modules/strtoul (Files): Add lib/strtol.c.
7905         (Depends-on): Remove strtol.
7906
7907         strtoull: remove dependency on strtoul
7908         This is like the strtoll change.
7909         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7910         (Depends-on): Remove strtoul.
7911
7912         strtoll: remove dependency on strtol
7913         This is so that 'configure' need not check for strtol merely because
7914         the application needs strtoll.
7915         * modules/strtoll (Files): Add lib/strtol.c.
7916         (Depends-on): Remove strtol.
7917
7918 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         inttypes: Move some configure check to module 'imaxdiv'.
7921         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7922         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7923         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7924
7925 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7926
7927         inttypes: Move some configure check to module 'imaxabs'.
7928         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7929         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7930         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7931
7932 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7933
7934         inttypes: Remove configure tests that are not needed since 2009-12-31.
7935         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7936         gl_cv_header_working_inttypes_h.
7937
7938 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         * modules/strnlen (Depends-on): Remove memchr.
7941         The strnlen implementation doesn't need the memchr module's fixes; see
7942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7943
7944         strtol: remove dependency on wchar
7945         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7946         * modules/strtol (Depends-on): Remove wchar.
7947
7948 2011-04-21  Eric Blake  <eblake@redhat.com>
7949
7950         passfd: fix test regression on Linux
7951         * modules/passfd-tests (configure.ac): Correct socketpair check.
7952
7953         passfd: speed up configure and drop unused code
7954         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7955         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7956         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7957         Instead of probing at configure for unix_scm_rights_bsd44_way,
7958         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7959         check to a struct member probe.
7960         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7961         (sendfd, recvfd): Update preprocessor checks.
7962         * modules/passfd (Files): Reflect rename, and drop unused file.
7963         (Depends-on): Drop unused dependency.
7964
7965         passfd: allow compilation on mingw
7966         * modules/sys_socket (Depends-on): Add sys_uio.
7967         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7968         iovec and a minimal struct msghdr.
7969         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7970         * tests/test-sys_socket.c (main): Enhance test.
7971         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7972         guaranteed to provide what we need.
7973         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7974         * modules/passfd-tests (Depends-on): Add sys_wait.
7975         * tests/test-passfd.c (main): Skip test on mingw, for now.
7976         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7977         partial 'struct msghdr' implementation.
7978
7979         sys_uio: new module
7980         * modules/sys_uio: New module.
7981         * modules/sys_uio-tests: Likewise.
7982         * lib/sys_uio.in.h: New file.
7983         * m4/sys_uio_h.m4: Likewise.
7984         * tests/test-sys_uio.c: Likewise.
7985         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7986         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7987
7988 2011-04-20  Jim Meyering  <meyering@redhat.com>
7989
7990         useless-if-before-free: avoid false-positive
7991         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7992         disjunct so that it too requires a terminating ";".  Without that,
7993         this script would identify as useless one statement from gcc that
7994         was not:
7995           if (aligned_ptr)
7996             free (((void **) aligned_ptr) [-1]);
7997
7998 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7999
8000         doc: update users.txt.
8001         * users.txt: Add barcode.
8002
8003 2011-04-19  Bruno Haible  <bruno@clisp.org>
8004
8005         ioctl: Remove link dependency on native Windows.
8006         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8007         (gl_close_fn, gl_ioctl_fn): New types.
8008         (struct fd_hook): Renamed from struct close_hook. Change type of
8009         private_close_fn field. Add private_ioctl_fn field.
8010         (close_hook_fn): Add parameter for primary close method.
8011         (execute_close_hooks, execute_all_close_hooks): Likewise.
8012         (ioctl_hook_fn): New type.
8013         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8014         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8015         argument.
8016         (unregister_fd_hook): Renamed from unregister_close_hook.
8017         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8018         Don't include <unistd.h>.
8019         (close): Remove undef.
8020         (anchor): Update.
8021         (execute_close_hooks): Add argument for primary close method.
8022         (execute_all_close_hooks): Likewise.
8023         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8024         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8025         argument. Allow each argument to be NULL.
8026         (unregister_fd_hook): Renamed from unregister_close_hook.
8027         * lib/close.c (rpl_close): Pass 'close' function pointer to
8028         execute_all_close_hooks.
8029         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8030         (primary_ioctl): New function.
8031         (ioctl): Don't call ioctlsocket here. Instead, call
8032         execute_all_ioctl_hooks.
8033         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8034         close method.
8035         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8036         (fd_sockets_hook): Renamed from close_sockets_hook.
8037         (gl_sockets_startup, gl_sockets_cleanup): Update.
8038         * modules/fd-hook: Renamed from modules/close-hook. Update.
8039         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8040         * modules/sockets (Depends-on): Likewise.
8041         * modules/ioctl (Depends-on): Add fd-hook.
8042         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8043         GNULIB_SOCKET.
8044
8045 2011-04-19  Bruno Haible  <bruno@clisp.org>
8046
8047         Move the support of O_NONBLOCK in open() to the 'open' module.
8048         * modules/nonblocking (Depends-on): Remove 'open'.
8049         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8050         gl_cv_have_open_O_NONBLOCK.
8051         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8052         O_NONBLOCK support.
8053         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8054
8055 2011-04-17  Bruno Haible  <bruno@clisp.org>
8056
8057         pipe2: Simplify code.
8058         * lib/pipe2.c (pipe2): Reduce code duplication.
8059
8060 2011-04-17  Bruno Haible  <bruno@clisp.org>
8061
8062         nonblocking: Add comment.
8063         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8064
8065 2011-04-17  Bruno Haible  <bruno@clisp.org>
8066
8067         nonblocking: Add tests for sockets.
8068         * tests/test-nonblocking-socket.sh: New file.
8069         * tests/test-nonblocking-socket-main.c: New file.
8070         * tests/test-nonblocking-socket-child.c: New file.
8071         * tests/test-nonblocking-socket.h: New file.
8072         * tests/socket-server.h: New file.
8073         * tests/socket-client.h: New file.
8074         * modules/nonblocking-socket-tests: New file.
8075         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8076
8077 2011-04-17  Bruno Haible  <bruno@clisp.org>
8078
8079         nonblocking: Add tests for pipes.
8080         * tests/test-nonblocking-pipe.sh: New file.
8081         * tests/test-nonblocking-pipe-main.c: New file.
8082         * tests/test-nonblocking-pipe-child.c: New file.
8083         * tests/test-nonblocking-pipe.h: New file.
8084         * tests/test-nonblocking-writer.h: New file.
8085         * tests/test-nonblocking-reader.h: New file.
8086         * tests/test-nonblocking-misc.h: New file.
8087         * modules/nonblocking-pipe-tests: New file.
8088         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8089
8090 2011-04-16  Bruno Haible  <bruno@clisp.org>
8091
8092         gettext: Clarify the needed programmer actions.
8093         * modules/gettext (Notice): New field.
8094         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8095
8096 2011-04-16  Bruno Haible  <bruno@clisp.org>
8097
8098         strchrnul: Tweak last commit.
8099         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8100         bug.
8101         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8102         as in _GL_FUNCDECL_SYS.
8103         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8104         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8105
8106 2011-04-15  Eric Blake  <eblake@redhat.com>
8107
8108         strchrnul: work around cygwin bug
8109         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8110         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8112         * modules/string (Makefile.am): Substitute it.
8113         * lib/string.in.h (strchrnul): Use it.
8114
8115 2011-04-15  Bruno Haible  <bruno@clisp.org>
8116
8117         Don't require lib/stdio-write.c when only module 'stdio' is used.
8118         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8119         invocation.
8120         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8121
8122 2011-04-14  Bruno Haible  <bruno@clisp.org>
8123
8124         Support non-blocking pipe I/O in read() on native Windows.
8125         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8126         (read): New declaration.
8127         * lib/read.c: New file.
8128         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8129         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8130         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8131         vscanf): New declarations.
8132         * lib/stdio-read.c: New file.
8133         * m4/read.m4: New file.
8134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8135         REPLACE_READ.
8136         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8137         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8138         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8139         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8140         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8141         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8142         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8143         * modules/read: New file.
8144         * modules/nonblocking (Files): Add lib/stdio-read.c.
8145         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8146         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8147         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8148         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8149         * modules/pread (Depends-on): Add read.
8150         * modules/safe-read (Depends-on): Likewise.
8151         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8152         gets, scanf, vfscanf, vscanf): Verify signatures.
8153         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8154         problem with non-blocking pipes.
8155         * doc/posix-functions/fgetc.texi: Likewise.
8156         * doc/posix-functions/fgets.texi: Likewise.
8157         * doc/posix-functions/fread.texi: Likewise.
8158         * doc/posix-functions/fscanf.texi: Likewise.
8159         * doc/posix-functions/getc.texi: Likewise.
8160         * doc/posix-functions/getchar.texi: Likewise.
8161         * doc/posix-functions/gets.texi: Likewise.
8162         * doc/posix-functions/scanf.texi: Likewise.
8163         * doc/posix-functions/vfscanf.texi: Likewise.
8164         * doc/posix-functions/vscanf.texi: Likewise.
8165
8166 2011-04-14  Bruno Haible  <bruno@clisp.org>
8167
8168         Support non-blocking pipe I/O in write() on native Windows.
8169         * lib/write.c (rpl_write): Split a write request that failed merely
8170         because the byte count was larger than the pipe buffer's size.
8171         * doc/posix-functions/write.texi: Mention the problem with large byte
8172         counts.
8173
8174 2011-04-14  Bruno Haible  <bruno@clisp.org>
8175
8176         wchar: Ensure that wchar_t gets defined on uClibc.
8177         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8178         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8179
8180 2011-04-13  Bruno Haible  <bruno@clisp.org>
8181
8182         safe-write, full-read: Avoid unnecessary compilation units.
8183         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8184         (Depends-on): Remove safe-read. Add ssize_t.
8185         * modules/full-read (Files): Add lib/full-write.c.
8186         (Depends-on): Add full-write.
8187
8188 2011-04-13  Bruno Haible  <bruno@clisp.org>
8189
8190         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8191         * modules/pwrite (Depends-on): Add 'write'.
8192
8193 2011-04-13  Bruno Haible  <bruno@clisp.org>
8194
8195         Support non-blocking pipe I/O in write() on native Windows.
8196         * lib/unistd.in.h (write): Enable replacement also if
8197         GNULIB_UNISTD_H_NONBLOCKING is 1.
8198         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8199         (rpl_write): When failing to write on a non-blocking pipe, change
8200         errno from ENOSPC to EAGAIN.
8201         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8202         putchar, puts, vfprintf, vprintf): Enable replacement also if
8203         GNULIB_STDIO_H_NONBLOCKING is 1.
8204         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8205         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8206         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8207         CALL_WITH_SIGPIPE_EMULATION.
8208         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8209         * m4/nonblocking.m4: New file.
8210         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8211         for non-blocking I/O support.
8212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8213         GNULIB_UNISTD_H_NONBLOCKING.
8214         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8215         required for non-blocking I/O support.
8216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8217         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8218         lib/stdio-write.c, m4/asm-underscore.m4.
8219         (Depends-on): Add stdio, unistd.
8220         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8221         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8222         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8223         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8224         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8225         problem with non-blocking pipes.
8226         * doc/posix-functions/fputc.texi: Likewise.
8227         * doc/posix-functions/fputs.texi: Likewise.
8228         * doc/posix-functions/fwrite.texi: Likewise.
8229         * doc/posix-functions/printf.texi: Likewise.
8230         * doc/posix-functions/putc.texi: Likewise.
8231         * doc/posix-functions/putchar.texi: Likewise.
8232         * doc/posix-functions/puts.texi: Likewise.
8233         * doc/posix-functions/vfprintf.texi: Likewise.
8234         * doc/posix-functions/vprintf.texi: Likewise.
8235         * doc/posix-functions/write.texi: Likewise.
8236
8237 2011-04-10  Jim Meyering  <meyering@redhat.com>
8238
8239         maint.mk: prohibit doubled words
8240         Detect them also when they're separated by a newline.
8241         There are 3 ways to customize it:
8242           - disable the test on a per file basis, as usual with rules using
8243             $(VC_LIST_EXCEPT)
8244           - replace the default doubled-word-selecting regexp (affects all files)
8245           - ignore a particular file-vs-doubled-word match
8246         I nearly used that last one to ignore the "is is" match in
8247         coreutils' NEWS file, since the text was "ls -is is ..."
8248         To do that, I would have added this line to cfg.mk:
8249           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8250         but it would have ignored any "is is" match in NEWS.
8251         Low probability, but still...
8252         Instead, I changed the text, slightly:
8253           -  ls -is is now consistent with ls -lis in ignoring values returned
8254           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8255         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8256         (prohibit_doubled_word_): Define.
8257         (sc_prohibit_doubled_word): New rule.
8258         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8259
8260 2011-04-10  Jim Meyering  <meyering@redhat.com>
8261
8262         maint: fix doubled-word typo in comment
8263         * m4/gethostname.m4: s/is is/it is/
8264         * m4/getdomainname.m4: Likewise.
8265
8266 2011-04-10  Jim Meyering  <meyering@redhat.com>
8267
8268         maint: remove doubled word: s/it it/it/
8269         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8270
8271 2011-04-10  Jim Meyering  <meyering@redhat.com>
8272
8273         maint.mk: remove useless semicolon and backslash
8274         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8275         semicolon and backslash.
8276
8277 2011-04-10  Bruno Haible  <bruno@clisp.org>
8278
8279         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8280         * modules/stdint-tests (Depends-on): Add wchar.
8281
8282 2011-04-10  Jim Meyering  <meyering@redhat.com>
8283
8284         maint: remove doubled words in comments, e.g., s/a a/a/
8285         * lib/strptime.c (day_of_the_week): s/the the/the/
8286         * tests/test-chown.h (test_chown): s/a a/a/
8287
8288         test-chown.h: correct a cast
8289         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8290         when the destination is a stat.st_gid.
8291
8292 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8293
8294         getaddrinfo: Fix test for sa_len member.
8295         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8296         include <sys/types.h> before <sys/socket.h>.
8297
8298 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8299
8300         maint: change "can not" to "cannot"
8301         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8302         boundaries.
8303
8304 2011-04-09  Jim Meyering  <meyering@redhat.com>
8305
8306         maint: change "a a" to "a"
8307         * tests/test-lchown.h (test_lchown): s/a a/a/
8308
8309         maint.mk: prohibit \<the the\>
8310         * top/maint.mk (sc_prohibit_the_the): New rule.
8311
8312         maint: fix "the the" in comment
8313         * lib/count-one-bits.h: s/the the/the/
8314
8315         maint: change "can not" to "cannot"
8316         But do not change the occurrences in maintain.texi or in
8317         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8318         * doc/gnulib-tool.texi: s/can not/cannot/
8319         * doc/posix-functions/accept.texi (accept): Likewise.
8320         * doc/posix-functions/socket.texi (socket): Likewise.
8321         * lib/mbrtowc.c: Likewise.
8322
8323         maint.mk: prohibit use of "can not"
8324         * top/maint.mk (sc_prohibit_can_not): New rule.
8325         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8326
8327 2011-04-09  Bruno Haible  <bruno@clisp.org>
8328
8329         careadlinkat: Guard against misuse of careadlinkatcwd.
8330         * lib/careadlinkat.c: Include <stdlib.h>.
8331         (careadlinkatcwd): Check that the fd argument is as expected.
8332
8333 2011-04-09  Bruno Haible  <bruno@clisp.org>
8334
8335         careadlinkat: Use common coding style.
8336         * lib/careadlinkat.c: Move gnulib includes after system includes.
8337
8338 2011-04-09  Bruno Haible  <bruno@clisp.org>
8339
8340         careadlinkat: Clarify specification.
8341         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8342         (careadlinkatcwd): Add comment.
8343         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8344
8345 2011-04-09  Bruno Haible  <bruno@clisp.org>
8346
8347         areadlinkat: Avoid link error on many platforms.
8348         * modules/areadlinkat (Depends-on): Add areadlink.
8349
8350 2011-04-09  Bruno Haible  <bruno@clisp.org>
8351
8352         allocator, careadlinkat: Fix double-inclusion guard.
8353         * lib/allocator.h: Fix double-inclusion guard.
8354         * lib/careadlinkat.h: Likewise.
8355
8356 2011-04-09  Bruno Haible  <bruno@clisp.org>
8357
8358         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8359         * lib/relocwrapper.c: Update dependencies hierarchy.
8360         * build-aux/install-reloc: Update list of files to be compiled.
8361         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8362         lib/allocator.[hc].
8363
8364 2011-04-08  Eric Blake  <eblake@redhat.com>
8365
8366         strftime: silence gnulib-tool warning
8367         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8368
8369 2011-04-08  Bruno Haible  <bruno@clisp.org>
8370
8371         verify: Fix syntax error with GCC 4.6 in C++ mode.
8372         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8373         (HAVE_STATIC_ASSERT): New macro.
8374         (verify_true, verify): Use 'static_assert' if it is supported and
8375         '_Static_assert' is not supported.
8376
8377 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8378
8379         allocator: New module.
8380         * modules/allocator, lib/allocator.c: New files.
8381         * lib/allocator.h (stdlib_allocator): New decl.
8382         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8383         Remove.  Do not include <stdlib.h>.
8384         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8385         * modules/careadlinkat (Files): Remove lib/allocator.h.
8386         (Depends-on): Add allocator.
8387
8388         stdlib: let modules use system malloc, realloc
8389         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8390         if !_GL_USE_STDLIB_ALLOC.
8391         (malloc, realloc): Limit this change to a smaller scope.
8392
8393         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8394         (malloc, realloc): Don't #undef; no longer needed.
8395         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8396         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8397         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8398         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8399         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8400         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8401         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8402         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8403
8404         careadlinkat: rename members to avoid problem
8405         * lib/allocator.h (struct allocator): Rename members from
8406         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8407         and realloc are #define'd.  Reported by Eric Blake in
8408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8409         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8410
8411 2011-04-08  Eric Blake  <eblake@redhat.com>
8412
8413         nonblocking: reduce dependency
8414         * tests/test-nonblocking.c: Only test sockets when in use.
8415         * modules/nonblocking-tests (Depends-on): Drop socket.
8416         (Makefile.am): Link even if sockets are not present.
8417         * modules/pipe2-tests (Makefile.am): Likewise.
8418         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8419
8420         pipe2: fix O_NONBLOCK support on mingw
8421         * modules/pipe2 (Depends-on): Add nonblocking.
8422         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8423         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8424         * tests/test-nonblocking.c (main): Likewise.
8425         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8426
8427         fcntl-h: fix O_ACCMODE on cygwin
8428         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8429         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8430
8431         pipe-filter: drop O_NONBLOCK workarounds
8432         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8433         * modules/pipe-filter-ii (Depends-on): Likewise.
8434         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8435
8436         nonblocking: provide O_NONBLOCK for mingw
8437         * modules/nonblocking (Depends-on): Add open.
8438         (configure.ac): Set new witness macro.
8439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8440         * modules/fcntl-h (Makefile.am): Substitute it.
8441         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8442         nonblocking module is in use.
8443         * lib/nonblocking.c: Adjust portability test.
8444         * lib/open.c (open): Don't let native open see gnulib flag.
8445         * tests/test-fcntl-h.c (main): Enhance test.
8446         * tests/test-open.h (test_open): Likewise.
8447         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8448
8449         careadlinkat: fix compilation error on mingw
8450         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8451         within struct allocator.
8452
8453 2011-04-06  Eric Blake  <eblake@redhat.com>
8454
8455         binary-io: relicense under LGPLv2+
8456         * modules/binary-io (License): Relax to LGPLv2+.
8457         Requested for libvirt, and required by pipe2.
8458
8459 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8460
8461         verify: use _Static_assert if available
8462         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8463         (verify_true, verify): Use it if available.  This generates better
8464         diagnostics with GCC 4.6.0 and later.
8465
8466 2011-04-05  Bruno Haible  <bruno@clisp.org>
8467
8468         Remove leftover generated .h files after config.status changed.
8469
8470         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8471         GL_GENERATE_ALLOCA_H.
8472         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8473         GL_GENERATE_ALLOCA_H evaluates to false.
8474
8475         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8476         GL_GENERATE_ARGZ_H.
8477         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8478         evaluates to false.
8479
8480         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8481         GL_GENERATE_BYTESWAP_H.
8482         * modules/byteswap (Makefile.am): Remove byteswap.h if
8483         GL_GENERATE_BYTESWAP_H evaluates to false.
8484
8485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8486         GL_GENERATE_ERRNO_H.
8487         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8488         evaluates to false.
8489
8490         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8491         GL_GENERATE_FLOAT_H.
8492         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8493         evaluates to false.
8494
8495         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8496         GL_GENERATE_FNMATCH_H.
8497         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8498         GL_GENERATE_FNMATCH_H evaluates to false.
8499
8500         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8501         GL_GENERATE_GLOB_H.
8502         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8503         evaluates to false.
8504
8505         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8506         automake conditional GL_GENERATE_ICONV_H.
8507         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8508         evaluates to false.
8509
8510         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8511         GL_GENERATE_NETINET_IN_H.
8512         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8513         GL_GENERATE_NETINET_IN_H evaluates to false.
8514
8515         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8516         conditional GL_GENERATE_PTHREAD_H.
8517         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8518         * modules/pthread (Makefile.am): Remove pthread.h if
8519         GL_GENERATE_PTHREAD_H evaluates to false.
8520
8521         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8522         GL_GENERATE_SCHED_H.
8523         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8524         evaluates to false.
8525
8526         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8527         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8528         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8529         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8530
8531         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8532         GL_GENERATE_STDARG_H.
8533         * modules/stdarg (Makefile.am): Remove stdarg.h if
8534         GL_GENERATE_STDARG_H evaluates to false.
8535
8536         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8537         GL_GENERATE_STDBOOL_H.
8538         * modules/stdbool (Makefile.am): Remove stdbool.h if
8539         GL_GENERATE_STDBOOL_H evaluates to false.
8540
8541         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8542         conditional GL_GENERATE_STDDEF_H.
8543         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8544         * modules/stddef (Makefile.am): Remove stddef.h if
8545         GL_GENERATE_STDDEF_H evaluates to false.
8546
8547         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8548         GL_GENERATE_STDINT_H.
8549         * modules/stdint (Makefile.am): Remove stdint.h if
8550         GL_GENERATE_STDINT_H evaluates to false.
8551
8552         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8553         GL_GENERATE_SYSEXITS_H.
8554         * modules/sysexits (Makefile.am): Remove sysexits.h if
8555         GL_GENERATE_SYSEXITS_H evaluates to false.
8556
8557         Reported by Karl Berry and Ralf Wildenhues.
8558
8559 2011-04-05  Bruno Haible  <bruno@clisp.org>
8560
8561         Ensure to rebuild generated .h files when config.status has changed.
8562         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8563         config.status.
8564         * modules/ctype (Makefile.am): Likewise.
8565         * modules/dirent (Makefile.am): Likewise.
8566         * modules/errno (Makefile.am): Likewise.
8567         * modules/fcntl-h (Makefile.am): Likewise.
8568         * modules/float (Makefile.am): Likewise.
8569         * modules/getopt-posix (Makefile.am): Likewise.
8570         * modules/glob (Makefile.am): Likewise.
8571         * modules/iconv-h (Makefile.am): Likewise.
8572         * modules/inttypes (Makefile.am): Likewise.
8573         * modules/langinfo (Makefile.am): Likewise.
8574         * modules/locale (Makefile.am): Likewise.
8575         * modules/math (Makefile.am): Likewise.
8576         * modules/netdb (Makefile.am): Likewise.
8577         * modules/netinet_in (Makefile.am): Likewise.
8578         * modules/poll-h (Makefile.am): Likewise.
8579         * modules/pthread (Makefile.am): Likewise.
8580         * modules/pty (Makefile.am): Likewise.
8581         * modules/sched (Makefile.am): Likewise.
8582         * modules/search (Makefile.am): Likewise.
8583         * modules/selinux-h (Makefile.am): Likewise.
8584         * modules/signal (Makefile.am): Likewise.
8585         * modules/spawn (Makefile.am): Likewise.
8586         * modules/stdarg (Makefile.am): Likewise.
8587         * modules/stdbool (Makefile.am): Likewise.
8588         * modules/stddef (Makefile.am): Likewise.
8589         * modules/stdint (Makefile.am): Likewise.
8590         * modules/stdio (Makefile.am): Likewise.
8591         * modules/stdlib (Makefile.am): Likewise.
8592         * modules/string (Makefile.am): Likewise.
8593         * modules/strings (Makefile.am): Likewise.
8594         * modules/sys_file (Makefile.am): Likewise.
8595         * modules/sys_ioctl (Makefile.am): Likewise.
8596         * modules/sys_select (Makefile.am): Likewise.
8597         * modules/sys_socket (Makefile.am): Likewise.
8598         * modules/sys_stat (Makefile.am): Likewise.
8599         * modules/sys_time (Makefile.am): Likewise.
8600         * modules/sys_times (Makefile.am): Likewise.
8601         * modules/sys_utsname (Makefile.am): Likewise.
8602         * modules/sys_wait (Makefile.am): Likewise.
8603         * modules/sysexits (Makefile.am): Likewise.
8604         * modules/termios (Makefile.am): Likewise.
8605         * modules/time (Makefile.am): Likewise.
8606         * modules/unistd (Makefile.am): Likewise.
8607         * modules/wchar (Makefile.am): Likewise.
8608         * modules/wctype-h (Makefile.am): Likewise.
8609         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8610
8611 2011-04-05  Bruno Haible  <bruno@clisp.org>
8612
8613         pipe2: Relicense under LGPLv2+.
8614         * modules/pipe2 (License): Change to LGPLv2+.
8615         Requested by Eric Blake, for libvirt.
8616
8617 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8618
8619         bootstrap: compute gnulib_extra_files after updating build_aux
8620         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8621         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8622
8623 2011-04-05  Eric Blake  <eblake@redhat.com>
8624
8625         bootstrap: preserve git whitelist item sorting
8626         * build-aux/bootstrap (sort_patterns): New function.
8627         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8628
8629 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8630
8631         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8632         sc_space_tab check.
8633
8634 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8635
8636         areadlink, areadlinkat: rewrite in terms of careadlinkat
8637         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8638         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8639         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8640         (malloc, realloc): Remove #undefs.
8641         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8642         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8643         readlink, ssize_t, stdint, unistd.
8644         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8645         areadlink, stdint.
8646
8647         careadlinkat: new module
8648         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8649         * modules/careadlinkat: New files, written by me with
8650         a review and feedback from Ben Pfaff in
8651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8652
8653 2011-04-01  Bruno Haible  <bruno@clisp.org>
8654
8655         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8656         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8657         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8658         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8659         Reported by Bruce Korb <bruce.korb@gmail.com>.
8660
8661 2011-04-01  Bruno Haible  <bruno@clisp.org>
8662
8663         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8664         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8665         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8666         * modules/wcpcpy (Depends-on): Add extensions.
8667         * modules/wcpncpy (Depends-on): Likewise.
8668         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8669         systems.
8670         * doc/posix-functions/wcpncpy.texi: Likewise.
8671         * doc/posix-functions/wcwidth.texi: Likewise.
8672
8673 2011-03-31  Eric Blake  <eblake@redhat.com>
8674
8675         nonblocking: fix mingw test failures
8676         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8677         non-blocking flag on regular file.
8678         (get_nonblocking_flag): Set errno on invalid fd.
8679         * tests/test-nonblocking.c (main): Avoid test failure on
8680         directories if fchdir is not active.
8681         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8682
8683 2011-03-31  Bruno Haible  <bruno@clisp.org>
8684
8685         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8686         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8687         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8688         Reported by Simon Josefsson <simon@josefsson.org>.
8689
8690 2011-03-31  Bruno Haible  <bruno@clisp.org>
8691         and Eric Blake  <eblake@redhat.com>
8692
8693         nonblocking: new module
8694         * modules/nonblocking: New module.
8695         * modules/nonblocking-tests: Likewise.
8696         * lib/nonblocking.h: New file.
8697         * lib/nonblocking.c: Likewise.
8698         * tests/test-nonblocking.c: New test.
8699         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8700
8701 2011-03-30  Bruno Haible  <bruno@clisp.org>
8702
8703         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8704         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8705         instead of 'printf' format for GCC >= 4.4.
8706         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8707         (fprintf, printf, vfprintf, vprintf): Declare with
8708         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8709         the system's vfprintf() function.
8710         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8711
8712 2011-03-30  Eric Blake  <eblake@redhat.com>
8713
8714         passfd: fix scoping bug
8715         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8716         before sendmsg/recvmsg.
8717
8718         passfd: standardize coding conventions
8719         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8720         can be learned at compile time.
8721         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8722         ifdefs.
8723         (sendfd, recvfd): Follow gnulib code conventions.
8724
8725         passfd: fix incorrect sendmsg arguments
8726         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8727         incorrect msg_controllen value.
8728         * modules/passfd-tests (Depends-on): Check for alarm.
8729         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8730         Reported by Bastien ROUCARIES.
8731
8732 2011-03-30  Bruno Haible  <bruno@clisp.org>
8733
8734         c-strcasestr: Relicense under LGPLv2+.
8735         * modules/c-strcasestr (License): Change to LGPLv2+.
8736         Requested by Eric Blake, for libvirt.
8737
8738 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8739
8740         * users.txt: Add libidn2.  Fix libtasn1 link.
8741
8742 2011-03-30  Jim Meyering  <meyering@redhat.com>
8743
8744         tests: readlink* ("",... fails with EINVAL on newer kernels
8745         readlink and readlinkat have typically failed with ENOENT for
8746         the invalid, empty file name,  "".  However, with the advent
8747         of linux-2.6.39, they fail with EINVAL.
8748         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8749         when operating on the empty file name.
8750         * tests/test-readlink.h (test_readlink): Likewise.
8751
8752 2011-03-29  Bruno Haible  <bruno@clisp.org>
8753
8754         Relicense some modules under LGPLv2+, for libidn2.
8755         * modules/array-mergesort (License): Change to LGPLv2+.
8756         * modules/c-strcaseeq (License): Likewise.
8757         * modules/striconveh (License): Likewise.
8758         * modules/striconveha (License): Likewise.
8759         * modules/uniconv/base (License): Likewise.
8760         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8761         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8762         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8763         * modules/unictype/base (License): Likewise.
8764         * modules/unictype/bidiclass-of (License): Likewise.
8765         * modules/unictype/category-M (License): Likewise.
8766         * modules/unictype/category-none (License): Likewise.
8767         * modules/unictype/category-of (License): Likewise.
8768         * modules/unictype/category-test (License): Likewise.
8769         * modules/unictype/category-test-withtable (License): Likewise.
8770         * modules/unictype/combining-class (License): Likewise.
8771         * modules/unictype/joiningtype-of (License): Likewise.
8772         * modules/unictype/scripts (License): Likewise.
8773         * modules/uninorm/base (License): Likewise.
8774         * modules/uninorm/canonical-decomposition (License): Likewise.
8775         * modules/uninorm/composition (License): Likewise.
8776         * modules/uninorm/decompose-internal (License): Likewise.
8777         * modules/uninorm/decomposition-table (License): Likewise.
8778         * modules/uninorm/nfc (License): Likewise.
8779         * modules/uninorm/nfd (License): Likewise.
8780         * modules/uninorm/u32-normalize (License): Likewise.
8781         * modules/unistr/base (License): Likewise.
8782         * modules/unistr/u32-cpy (License): Likewise.
8783         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8784         * modules/unistr/u32-to-u8 (License): Likewise.
8785         * modules/unistr/u32-uctomb (License): Likewise.
8786         * modules/unistr/u8-check (License): Likewise.
8787         * modules/unistr/u8-mblen (License): Likewise.
8788         * modules/unistr/u8-mbtouc (License): Likewise.
8789         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8790         * modules/unistr/u8-mbtoucr (License): Likewise.
8791         * modules/unistr/u8-prev (License): Likewise.
8792         * modules/unistr/u8-strlen (License): Likewise.
8793         * modules/unistr/u8-to-u32 (License): Likewise.
8794         * modules/unistr/u8-uctomb (License): Likewise.
8795         * modules/unitypes (License): Likewise.
8796         Requested by Simon Josefsson.
8797
8798 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8799
8800         lib-symbol-visibility: Add a notice.
8801         * modules/lib-symbol-visibility (Notice): New field.
8802
8803 2011-03-29  Bruno Haible  <bruno@clisp.org>
8804
8805         getaddrinfo: Doc fix.
8806         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8807         section "fixed in Gnulib".
8808
8809 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8810
8811         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8812         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8813
8814 2011-03-26  Bruno Haible  <bruno@clisp.org>
8815
8816         unictype/property-byname: Reduce the number of load-time relocations.
8817         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8818         (UC_PROPERTY_INDEX_*): New enumeration values.
8819         (uc_property_byname): Convert an index from the lookup table to an
8820         uc_property_t.
8821         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8822         values.
8823
8824 2011-03-26  Bruno Haible  <bruno@clisp.org>
8825
8826         unictype/property-byname: Allow omitted word separators and aliases.
8827         * lib/unictype/pr_byname.gperf: Add property names without word
8828         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8829         for 'space'.
8830
8831 2011-03-26  Bruno Haible  <bruno@clisp.org>
8832
8833         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8834         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8835         also hyphens to space.
8836         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8837         without spaces.
8838         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8839
8840 2011-03-26  Bruno Haible  <bruno@clisp.org>
8841
8842         unictype/joiningtype-byname: Recognize long names as well.
8843         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8844         a long name.
8845         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8846         unictype/joiningtype_byname.h.
8847         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8848         * lib/unictype/joiningtype_byname.gperf: New file.
8849         * modules/unictype/joiningtype-byname (Files): Add
8850         lib/unictype/joiningtype_byname.gperf.
8851         (Depends-on): Add gperf.
8852         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8853         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8854         long names.
8855
8856         Tests for module 'unictype/joiningtype-longname'.
8857         * modules/unictype/joiningtype-longname-tests: New file.
8858         * tests/unictype/test-joiningtype_longname.c: New file.
8859
8860         New module 'unictype/joiningtype-longname'.
8861         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8862         * lib/unictype/joiningtype_longname.c: New file.
8863         * modules/unictype/joiningtype-longname: New file.
8864         * modules/unictype/joiningtype-all (Depends-on): Add
8865         unictype/joiningtype-longname.
8866
8867 2011-03-26  Bruno Haible  <bruno@clisp.org>
8868
8869         unictype/bidiclass-byname: Recognize long names as well.
8870         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8871         name.
8872         * lib/unictype/bidi_byname.c: Include <string.h>,
8873         unictype/bidi_byname.h.
8874         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8875         * lib/unictype/bidi_byname.gperf: New file.
8876         * modules/unictype/bidiclass-byname (Files): Add
8877         lib/unictype/bidi_byname.gperf.
8878         (Depends-on): Add gperf.
8879         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8880         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8881         long names.
8882
8883         Tests for module 'unictype/bidiclass-longname'.
8884         * modules/unictype/bidiclass-longname-tests: New file.
8885         * tests/unictype/test-bidi_longname.c: New file.
8886
8887         New module 'unictype/bidiclass-longname'.
8888         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8889         * lib/unictype/bidi_longname.c: New file.
8890         * modules/unictype/bidiclass-longname: New file.
8891         * modules/unictype/bidiclass-all (Depends-on): Add
8892         unictype/bidiclass-longname.
8893
8894 2011-03-26  Bruno Haible  <bruno@clisp.org>
8895
8896         unictype/bidi*: Rename modules.
8897         * modules/unictype/bidiclass-all: Renamed from
8898         modules/unictype/bidicategory-all.
8899         * modules/unictype/bidiclass-name: Renamed from
8900         modules/unictype/bidiclass-name.
8901         (Description): Update.
8902         * modules/unictype/bidiclass-name-tests: Renamed from
8903         modules/unictype/bidicategory-name-tests.
8904         * modules/unictype/bidiclass-byname: Renamed from
8905         modules/unictype/bidicategory-byname.
8906         (Description): Update.
8907         * modules/unictype/bidiclass-byname-tests: Renamed from
8908         modules/unictype/bidicategory-byname-tests.
8909         * modules/unictype/bidiclass-of: Renamed from
8910         modules/unictype/bidicategory-of.
8911         (Description): Update.
8912         * modules/unictype/bidiclass-of-tests: Renamed from
8913         modules/unictype/bidicategory-of-tests.
8914         * modules/unictype/bidiclass-test: Renamed from
8915         modules/unictype/bidicategory-test.
8916         (Description): Update.
8917         * modules/unictype/bidiclass-test-tests: Renamed from
8918         modules/unictype/bidicategory-test-tests.
8919         * modules/unictype/bidicategory-all: New file, a simple redirection.
8920         * modules/unictype/bidicategory-name: Likewise.
8921         * modules/unictype/bidicategory-byname: Likewise.
8922         * modules/unictype/bidicategory-of: Likewise.
8923         * modules/unictype/bidicategory-test: Likewise.
8924         * modules/unictype/property-bidi-* (Dependencies): Update.
8925         * lib/unictype/bidi_*.c: Update comment.
8926
8927 2011-03-26  Bruno Haible  <bruno@clisp.org>
8928
8929         unictype/bidi*: Rename functions, part 2.
8930         * modules/unictype/bidicategory-name (configure.ac): Update required
8931         libunistring version.
8932         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8933
8934 2011-03-25  Bruno Haible  <bruno@clisp.org>
8935
8936         New module 'unictype/combining-class-all'.
8937         * modules/unictype/combining-class-all: New file.
8938
8939         Tests for module 'unictype/combining-class-byname'.
8940         * modules/unictype/combining-class-byname-tests: New file.
8941         * tests/unictype/test-combiningclass_byname.c: New file.
8942
8943         New module 'unictype/combining-class-byname'.
8944         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8945         * lib/unictype/combiningclass_byname.c: New file.
8946         * lib/unictype/combiningclass_byname.gperf: New file.
8947         * modules/unictype/combining-class-byname: New file.
8948
8949         Tests for module 'unictype/combining-class-longname'.
8950         * modules/unictype/combining-class-longname-tests: New file.
8951         * tests/unictype/test-combiningclass_longname.c: New file.
8952
8953         New module 'unictype/combining-class-longname'.
8954         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8955         * lib/unictype/combiningclass_longname.c: New file.
8956         * modules/unictype/combining-class-longname: New file.
8957
8958         Tests for module 'unictype/combining-class-name'.
8959         * modules/unictype/combining-class-name-tests: New file.
8960         * tests/unictype/test-combiningclass_name.c: New file.
8961
8962         New module 'unictype/combining-class-name'.
8963         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8964         * lib/unictype/combiningclass_name.c: New file.
8965         * modules/unictype/combining-class-name: New file.
8966
8967 2011-03-25  Bruno Haible  <bruno@clisp.org>
8968
8969         unictype/combining-class: Rename source files.
8970         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8971         of unictype/combining.h.
8972         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8973         Update.
8974         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8975         * modules/unictype/combining-class (Description): Fix.
8976         (Files, Makefile.am): Update.
8977         * tests/unictype/test-combiningclass.c: Renamed from
8978         tests/unictype/test-combining.c.
8979         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8980
8981 2011-03-25  Bruno Haible  <bruno@clisp.org>
8982
8983         unictype: Update list of canonical combining classes.
8984         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8985
8986 2011-03-25  Bruno Haible  <bruno@clisp.org>
8987
8988         unictype/category-byname: Recognize long names as well.
8989         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8990         a long name.
8991         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8992         unictype/categ_byname.h.
8993         (UC_CATEGORY_INDEX_*): New enumeration values.
8994         (uc_general_category_byname): Use uc_general_category_lookup and
8995         convert from index to value.
8996         * lib/unictype/categ_byname.gperf: New file.
8997         * modules/unictype/category-byname (Files): Add
8998         lib/unictype/categ_byname.gperf.
8999         (Depends-on): Add gperf.
9000         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9001         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9002         long names.
9003
9004         Tests for module 'unictype/category-longname'.
9005         * modules/unictype/category-longname-tests: New file.
9006         * tests/unictype/test-categ_longname.c: New file.
9007
9008         New module 'unictype/category-longname'.
9009         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9010         * lib/unictype/categ_longname.c: New file.
9011         * modules/unictype/category-longname: New file.
9012         * modules/unictype/category-all (Depends-on): Add it.
9013
9014 2011-03-25  Bruno Haible  <bruno@clisp.org>
9015
9016         Tests for module 'unictype/category-LC'.
9017         * modules/unictype/category-LC-tests: New file.
9018         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9019
9020         New module 'unictype/category-LC'.
9021         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9022         (UC_CATEGORY_LC): New declaration.
9023         (UC_CASED_LETTER): New macro.
9024         * lib/gen-uni-tables.c (is_category_LC): New function.
9025         (output_categories): Also handle category LC.
9026         (UC_CATEGORY_MASK_LC): New enumeration value.
9027         (general_category_byname): Also handle category LC.
9028         * lib/unictype/categ_LC.c: New file.
9029         * lib/unictype/categ_LC.h: New file, automatically generated.
9030         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9031         category LC.
9032         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9033         * modules/unictype/category-LC: New file.
9034         * modules/unictype/category-byname (Depends-on): Add
9035         unictype/category-LC.
9036         * modules/unictype/category-all (Depends-on): Likewise.
9037
9038 2011-03-25  Eric Blake  <eblake@redhat.com>
9039
9040         xmalloc: revert yesterday's regression
9041         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9042         realloc's underlying behavior (allowing allocation of zero-size
9043         objects, especially if malloc-gnu is also in use).
9044
9045 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9046
9047         maint.mk: add missing version to VC-tag
9048         * top/maint.mk: git tag was missing actual tag name; add it.
9049
9050         valgrind: do leak checking, and exit with code 1 on error (not 0)
9051         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9052         to VALGRIND.
9053
9054 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9055
9056         posix-modules: say what it does.
9057         * posix-modules: Add a line to the --help output saying what it does.
9058
9059 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9060
9061         xmalloc: Do not leak if underlying realloc is C99 compatible.
9062         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9063         This avoids a leak on C99-based systems.  See
9064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9065
9066 2011-03-24  Eric Blake  <eblake@redhat.com>
9067
9068         realloc: document portability problem
9069         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9070         passing 0 size to realloc.
9071
9072 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9073
9074         doc: update users.txt
9075         * users.txt: Add cvsps, tmpwatch
9076
9077 2011-03-23  Matt Rice  <ratmice@gmail.com>
9078
9079         doc: update users.txt
9080         * users.txt: Add gdb.
9081
9082 2011-03-23  Jim Meyering  <meyering@redhat.com>
9083
9084         doc: update users.txt
9085         Looking through matches up to the following URL (there are still
9086         several more pages), I found several projects that use gnulib:
9087         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9088         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9089         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9090
9091 2011-03-22  Bruno Haible  <bruno@clisp.org>
9092
9093         unictype/bidi*: Rename functions.
9094         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9095         uc_bidi_class, uc_is_bidi_class): New declarations.
9096         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9097         uc_bidi_category_byname.
9098         (uc_bidi_category_byname): New function.
9099         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9100         u_bidi_category_name.
9101         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9102         (uc_bidi_category_name): New function.
9103         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9104         uc_bidi_category.
9105         (uc_bidi_category): New function.
9106         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9107         uc_is_bidi_category. Invoke uc_bidi_class.
9108         (uc_is_bidi_category): New function.
9109         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9110         instead of uc_bidi_category_byname.
9111         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9112         instead of uc_bidi_category_name.
9113         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9114         uc_bidi_category.
9115         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9116         instead of uc_is_bidi_category.
9117
9118 2011-03-21  Bruno Haible  <bruno@clisp.org>
9119
9120         New module 'unictype/joininggroup-all'.
9121         * modules/unictype/joininggroup-all: New file.
9122
9123         Tests for module 'unictype/joininggroup-of'.
9124         * modules/unictype/joininggroup-of-tests: New file.
9125         * tests/unictype/test-joininggroup_of.c: New file.
9126         * tests/unictype/test-joininggroup_of.h: New file, automatically
9127         generated by gen-uni-tables.
9128
9129         New module 'unictype/joininggroup-of'.
9130         * modules/unictype/joininggroup-of: New file.
9131         * lib/unictype/joininggroup_of.c: New file.
9132         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9133         gen-uni-tables.
9134
9135         Tests for module 'unictype/joininggroup-byname'.
9136         * modules/unictype/joininggroup-byname-tests: New file.
9137         * tests/unictype/test-joininggroup_byname.c: New file.
9138
9139         New module 'unictype/joininggroup-byname'.
9140         * modules/unictype/joininggroup-byname: New file.
9141         * lib/unictype/joininggroup_byname.c: New file.
9142         * lib/unictype/joininggroup_byname.gperf: New file.
9143
9144         Tests for module 'unictype/joininggroup-name'.
9145         * modules/unictype/joininggroup-name-tests: New file.
9146         * tests/unictype/test-joininggroup_name.c: New file.
9147
9148         New module 'unictype/joininggroup-name'.
9149         * modules/unictype/joininggroup-name: New file.
9150         * lib/unictype/joininggroup_name.c: New file.
9151         * lib/unictype/joininggroup_name.h: New file.
9152
9153         New module 'unictype/joiningtype-all'.
9154         * modules/unictype/joiningtype-all: New file.
9155
9156         Tests for module 'unictype/joiningtype-of'.
9157         * modules/unictype/joiningtype-of-tests: New file.
9158         * tests/unictype/test-joiningtype_of.c: New file.
9159         * tests/unictype/test-joiningtype_of.h: New file, automatically
9160         generated by gen-uni-tables.
9161
9162         New module 'unictype/joiningtype-of'.
9163         * modules/unictype/joiningtype-of: New file.
9164         * lib/unictype/joiningtype_of.c: New file.
9165         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9166         gen-uni-tables.
9167
9168         Tests for module 'unictype/joiningtype-byname'.
9169         * modules/unictype/joiningtype-byname-tests: New file.
9170         * tests/unictype/test-joiningtype_byname.c: New file.
9171
9172         New module 'unictype/joiningtype-byname'.
9173         * modules/unictype/joiningtype-byname: New file.
9174         * lib/unictype/joiningtype_byname.c: New file.
9175
9176         Tests for module 'unictype/joiningtype-name'.
9177         * modules/unictype/joiningtype-name-tests: New file.
9178         * tests/unictype/test-joiningtype_name.c: New file.
9179
9180         New module 'unictype/joiningtype-name'.
9181         * modules/unictype/joiningtype-name: New file.
9182         * lib/unictype/joiningtype_name.c: New file.
9183
9184         unictype: Add support for Arabic shaping properties.
9185         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9186         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9187         declarations.
9188         (UC_JOINING_GROUP_*): New enumeration values.
9189         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9190         declarations.
9191         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9192         (unicode_joining_type): New variable.
9193         (UC_JOINING_GROUP_*): New enumeration values.
9194         (unicode_joining_group): New variable.
9195         (fill_arabicshaping, joining_type_as_c_identifier,
9196         output_joining_type_test, output_joining_type,
9197         joining_group_as_c_identifier, output_joining_group_test,
9198         output_joining_group): New functions.
9199         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9200         fill_arabicshaping and output_joining_type_test, output_joining_type,
9201         output_joining_group_test, output_joining_group.
9202         Reported by Simon Josefsson.
9203
9204 2011-03-21  Jim Meyering  <meyering@redhat.com>
9205
9206         strftime: fix a bug in yesterday's change
9207         * lib/strftime.c (add): Accommodate width's initial value of -1.
9208         Otherwise, nstrftime would copy uninitialized data into
9209         the result buffer.
9210
9211 2011-03-21  Jim Meyering  <meyering@redhat.com>
9212
9213         tests: add strftime-tests module
9214         * tests/test-strftime.c: New file.
9215         * modules/strftime-tests: New module.
9216
9217 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9218
9219         strftime: don't assume a byte count fits in 'int'
9220         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9221         found this problem by static analysis, using gcc -Wstrict-overflow
9222         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9223         on an integer overflow having undefined behavior, but it turns out
9224         that the argument is a size, which might not fit in 'int' anyway,
9225
9226 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9227
9228         stdio: don't require ignore_value around fwrite
9229
9230         This patch works around libc bug 11959
9231         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9232         Without this patch, applications must often write
9233         ignore_value (fwrite (...)) even though the ignore_value is
9234         not helpful here.  It's common to write many objects, using
9235         fwrite/printf/etc., and then use ferror to detect output error.
9236
9237         I considered making this patch optional, but decided against it,
9238         because libc is obviously being inconsistent here: there is no
9239         reason libc should insist that user code must inspect fwrite
9240         return's value without also insisting that it inspect printf's,
9241         putchar's, etc.  If user code wants to have a strict style where
9242         all these functions' values are checked (so that ferror need not
9243         be checked), we could add support for that style in a new gnulib
9244         module, but in the meantime it's better to be consistent and to
9245         support common usage.
9246
9247         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9248         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9249         that we are compiling in checking mode, and if not C++, and
9250         if not already wrapping fwrite for some other reason.
9251         (fwrite): #define to rpl_fwrite if the latter is defined.
9252
9253 2011-03-20  Bruno Haible  <bruno@clisp.org>
9254
9255         verror: Fix compilation error introduced on 2011-02-13.
9256         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9257         instead of __attribute__.
9258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9259
9260 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9261             Bruno Haible  <bruno@clisp.org>
9262
9263         socklen: do not depend on sys_socket
9264         While trying to modify Emacs to use gnulib's socklen module,
9265         I discovered a circular dependency: socklen depends on sys_socket
9266         and vice versa.  Emacs can use socklen, but it does not need
9267         sys_socket because it has its own substitute for sys/socket.h.
9268         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9269         gl_TYPE_SOCKLEN_T.
9270         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9271         gl_PREREQ_SYS_H_SOCKET.
9272         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9273         gl_PREREQ_SYS_H_SOCKET.
9274         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9275         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9276         * modules/socklen (Depends-on): Do not depend on sys_socket.
9277         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9278
9279 2011-03-20  Jim Meyering  <meyering@redhat.com>
9280
9281         maint.mk: sort file names *after* new transformation
9282         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9283         prefix would have led to an unwarranted failure in GNU parted.
9284         Sort after that transformation.
9285
9286 2011-03-19  Jim Meyering  <meyering@redhat.com>
9287
9288         maint.mk: fix po-file syntax-check rule
9289         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9290         Patch by Bruno Haible.
9291
9292 2011-03-19  Bruno Haible  <bruno@clisp.org>
9293
9294         socklen: Update comment.
9295         * m4/socklen.m4: Update comment about platforms.
9296
9297 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9298             Bruno Haible  <bruno@clisp.org>
9299
9300         inet_ntop, inet_pton: Simplify.
9301         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9302         documented to provide socklen_t and we already depend on sys_socket.
9303         * modules/inet_pton (Depends-on): Likewise.
9304         * lib/arpa_inet.in.h: Adjust comment.
9305
9306 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9307             Bruno Haible  <bruno@clisp.org>
9308
9309         netdb: Simplify.
9310         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9311         documented to provide socklen_t and we already depend on sys_socket.
9312         * lib/netdb.in.h: Adjust comment.
9313
9314 2011-03-19  Bruno Haible  <bruno@clisp.org>
9315
9316         sys_socket, netdb: Document problem with socklen_t.
9317         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9318         platforms.
9319         * doc/posix-headers/netdb.texi: Likewise.
9320
9321 2011-03-18  Eric Blake  <eblake@redhat.com>
9322
9323         maint.mk: let po check work in VPATH build
9324         * top/maint.mk (po_file): Allow cfg.mk override.
9325         (sc_po_check): Allow VPATH use.
9326         Reported by Jiri Denemark.
9327
9328 2011-03-16  Jim Meyering  <meyering@redhat.com>
9329
9330         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9331         Before, you would have had to create one .x-sc_ file per rule in order
9332         to exempt offending files.  Now, you may instead use a Make variable --
9333         usually defined in cfg.mk -- whose name identifies the affected rule.
9334         * top/maint.mk (_sc_excl): Define.
9335         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9336         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9337
9338 2011-03-13  Bruno Haible  <bruno@clisp.org>
9339
9340         ignore-value tests: Avoid warnings.
9341         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9342         empty for gcc < 3.4.
9343
9344 2011-03-13  Bruno Haible  <bruno@clisp.org>
9345
9346         passfd: Fix link error on Solaris.
9347         * modules/passfd (Description): Correct.
9348         (Depends-on): Add socketlib.
9349         (Link): New section.
9350         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9351
9352 2011-03-13  Bruno Haible  <bruno@clisp.org>
9353
9354         passfd: Fix link error on AIX 5.2.
9355         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9356
9357 2011-03-13  Bruno Haible  <bruno@clisp.org>
9358
9359         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9360         * lib/sys_socket.in.h: Include <stddef.h>.
9361         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9362         CMSG_FIRSTHDR. Remove unused variable.
9363
9364 2011-03-13  Bruno Haible  <bruno@clisp.org>
9365
9366         passfd: Fix compilation error on OpenBSD.
9367         * lib/passfd.c: Include <sys/uio.h>.
9368
9369 2011-03-13  Bruno Haible  <bruno@clisp.org>
9370
9371         passfd test: Fix warnings.
9372         * tests/test-passfd.c: Include <sys/wait.h>.
9373         (main): Fix typo.
9374
9375 2011-03-13  Bruno Haible  <bruno@clisp.org>
9376
9377         passfd module, part 4, tweaks.
9378         * tests/test-passfd.c: Reorder includes.
9379         (main): Fix perror and printf calls.
9380
9381 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9382
9383         passfd module, part 4.
9384         * modules/passfd-tests: New file.
9385         * tests/test-passfd.c: New file.
9386
9387 2011-03-13  Jim Meyering  <meyering@redhat.com>
9388
9389         Makefile: rely on GNU make; derive syntax-check rule names
9390         Rather than requiring that each sc_ rule be listed as a dependent
9391         of "check", use features of GNU make to derive the list.
9392         * Makefile (syntax-check-rules): Define.
9393         (check): Depend on the new variable, not the hard-coded list.
9394
9395 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9396             Bruno Haible  <bruno@clisp.org>
9397
9398         passfd module, part 3.
9399         * lib/passfd.h (recvfd): Add a flags argument.
9400         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9401         (recvfd): Add a flags argument.
9402         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9403         exists.
9404         * modules/passfd (Depends-on): Add cloexec.
9405         Suggested by Eric Blake.
9406
9407 2011-03-13  Bruno Haible  <bruno@clisp.org>
9408
9409         passfd module, part 2, tweaks.
9410         * modules/passfd (Files): Reorder.
9411         (Depends-on): Remove errno.
9412         (Include): Remove <sys/socket.h>, <sys/un.h>.
9413         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9414         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9415         specification header. Include <sys/socket.h> always. Don't include
9416         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9417         (sendfd): Clarify that it sets errno when it fails.
9418         (recvfd): Fix specification.
9419
9420 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9421
9422         passfd module, part 2.
9423         * modules/passfd: New file.
9424         * lib/passfd.h: New file.
9425         * lib/passfd.c: New file.
9426
9427 2011-03-12  Bruno Haible  <bruno@clisp.org>
9428
9429         wcswidth, mbswidth: Avoid integer overflow.
9430         * lib/wcswidth.c: Include <limits.h>.
9431         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9432         * lib/mbswidth.c: Include <limits.h>.
9433         (mbsnwidth): Avoid 'int' overflow.
9434         Reported by Jim Meyering.
9435
9436 2011-03-12  Bruno Haible  <bruno@clisp.org>
9437
9438         futimens, utimensat: Avoid endless recursion on Solaris 10.
9439         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9440         Solaris.
9441         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9442         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9443
9444 2011-03-11  Jim Meyering  <meyering@redhat.com>
9445
9446         maint.mk: relax a regexp to accommodate other formatting styles
9447         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9448         between "ngettext" and the following "(".
9449
9450 2011-03-11  Pádraig Brady <P@draigBrady.com>
9451
9452         maint.mk: suppress a false positive warning
9453         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9454         diagnostics are marked with ngettext.
9455
9456 2011-03-10  Eric Blake  <eblake@redhat.com>
9457
9458         wchar: add explicit dependencies, for Tru64
9459         * modules/mbmemcasecoll (Depends-on): Add wchar.
9460         * modules/mbtowc (Depends-on): Likewise.
9461         * modules/vasnprintf (Depends-on): Likewise.
9462         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9463         * modules/wctomb (Depends-on): Likewise.
9464         Reported by Peter O'Gorman.
9465
9466 2011-03-08  Bruno Haible  <bruno@clisp.org>
9467
9468         passfd module, part 1, tweaks.
9469         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9470         Improve indentation. Improve AC_MSG_CHECKING messages.
9471         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9472         gl_SOCKET_FAMILIES.
9473
9474 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9475
9476         passfd module, part 1.
9477         * m4/afunix.m4: New file.
9478         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9479         sockets.
9480
9481 2011-03-08  Bruno Haible  <bruno@clisp.org>
9482
9483         regex-quote: New API.
9484         * lib/regex-quote.h: Include <stdbool.h>.
9485         (struct regex_quote_spec): New type.
9486         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9487         New declarations.
9488         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9489         'const struct regex_quote_spec *' argument.
9490         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9491         (pcre_special): New constant.
9492         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9493         New functions.
9494         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9495         'const struct regex_quote_spec *' argument.
9496         * modules/regex-quote (Depends-on): Add stdbool.
9497         * tests/test-regex-quote.c (check): Update for new API. Add test for
9498         anchored results.
9499         * NEWS: Mention the API change.
9500         Reported by Reuben Thomas and Eric Blake.
9501
9502 2011-03-06  Bruno Haible  <bruno@clisp.org>
9503
9504         regex-quote: Fix creation of POSIX extended regular expressions.
9505         * lib/regex-quote.c (ere_special): Add grouping and alternation
9506         operators.
9507
9508 2011-03-05  Bruno Haible  <bruno@clisp.org>
9509
9510         doc: Improve doc regarding autopoint vs. gnulib.
9511         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9512         disable autopoint while running autoreconf.
9513         Suggested by Ralf Wildenhues.
9514
9515 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9516
9517         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9518         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9519
9520 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9521
9522         parse-duration: remove xalloc.h dependency
9523         * lib/parse-duration.c (parse_period): handle NULL return from
9524         strdup instead of calling xstrdup().
9525         * modules/parse-duration: remove "xalloc" dependency
9526
9527 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9528
9529         bootstrap: honor m4_base when running aclocal
9530         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9531
9532 2011-03-02  Jim Meyering  <meyering@redhat.com>
9533
9534         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9535         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9536         on request from Matt Booth.
9537
9538 2011-03-01  Eric Blake  <eblake@redhat.com>
9539
9540         test-link: work on Hurd
9541         * tests/test-link.h (test_link): Hurd rejects linking directories
9542         with EISDIR instead of the POSIX-mandated EPERM.
9543
9544 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9545
9546         stdio: simplify by moving files to printf-posix, sigpipe
9547         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9548         since this symbol is needed only if printf is replaced.
9549         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9550         Require gl_ASM_SYMBOL_PREFIX.
9551         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9552         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9553         (Depends-on): Add 'raise'.
9554         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9555         * modules/stdio (Files): Remove lib/stdio-write.c,
9556         m4/asm-underscore.m4.
9557         (Depends-on): Remove 'raise'.
9558
9559         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9560         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9561         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9562         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9563
9564 2011-02-28  Bruno Haible  <bruno@clisp.org>
9565
9566         localcharset: Assume ANSI C behaviour of free().
9567         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9568         calling free().
9569         Suggested by Simon Josefsson <simon@josefsson.org>.
9570
9571 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9572             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9573             Bruno Haible  <bruno@clisp.org>  (tiny change)
9574
9575         On Cygwin, use /proc file system instead of win32 API.
9576         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9577         Win32 file names.
9578         (DllMain): Simplify by removing Cygwin specific code.
9579         (find_shared_library_fullname): Use Linux specific implementation also
9580         for Cygwin.
9581         (get_shared_library_fullname): Update accordingly.
9582         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9583         Win32 file names.
9584         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9585         Cygwin specific code.
9586
9587 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9588             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9589
9590         Fix OpenMP flag detection for various Fortran compilers.
9591         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9592         OpenMP-conditional compilation construct, to force compile
9593         failure with missing OpenMP flag.
9594         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9595
9596 2011-02-25  Eric Blake  <eblake@redhat.com>
9597
9598         strstr: expand test coverage
9599         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9600         compilation.
9601         * tests/test-memmem.c (main): Duplicate tests.
9602         * tests/test-strcasestr.c (main): Likewise.
9603         * tests/test-c-strcasestr.c (main): Likewise.
9604
9605 2011-02-25  Jim Meyering  <meyering@redhat.com>
9606
9607         maint.mk: detect missing-NL-at-EOF, too
9608         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9609         it also detects when a file lacks a newline at EOF.
9610         (require_exactly_one_NL_at_EOF_): Renamed from
9611         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9612         since people may well have .x-sc_... file names tied to the
9613         existing name.  Suggested by Eric Blake.
9614
9615 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9616
9617         dirname: move m4/dos.m4 functionality into lib/dosname.h
9618
9619         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9620         extracts symbols from it, puts them into config.h; but it's much
9621         easier to use the symbols directly.  filename.h already does this,
9622         but it disagrees with dos.m4 in some respects.  This patch
9623         introduces a different include file dosname.h that packages up
9624         dos.m4, and then later we can work on merging filename.h and
9625         dosname.h.  Applications that need only the easy-to-configure
9626         symbols should consider including dosname.h rather than dirname.h.
9627         * NEWS: Mention incompatible changes.
9628         * m4/dos.m4: Remove.
9629         * lib/dosname.h, modules/dosname: New files.
9630         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9631         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9632         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9633         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9634         Include dosname.h, not dirname.h.
9635         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9636         Include dosname.h, for definitions of symbols like ISSLASH
9637         that used to be in config.h.
9638         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9640         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9641         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9642         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9643         * modules/rmdir (Files): Likewise.
9644         * modules/stat (Files): Likewise.
9645         * modules/unlink (Files): Likewise.
9646         * modules/dirname-lgpl (Depends-on): Add dosname.
9647         * modules/lstat (Depends-on): Likewise.
9648         * modules/openat (Depends-on): Likewise.
9649         * modules/rmdir (Depends-on): Likewise.
9650         * modules/savewd (Depends-on): Likewise.
9651         * modules/stat (Depends-on): Likewise.
9652         * modules/unlink (Depends-on): Likewise.
9653         * modules/openat (Depends-on): Remove dirname-lgpl.
9654         * modules/savewd (Depends-on): Likewise.
9655         * tests/test-dirname.c: Do not use removed symbols like
9656         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9657         the remaining symbols, e.g., ISSLASH ('\\').
9658
9659 2011-02-25  Eric Blake  <eblake@redhat.com>
9660
9661         strstr: revert patches that introduced bug and pessimization
9662         * lib/str-two-way.h: Add another reference.
9663         (two_way_short_needle, two_way_long_needle): Revert changes from
9664         2011-02-24; they pessimize search speed.
9665         (critical_factorization): Partially revert changes from
9666         2010-06-22; they violate the requirement that the left half of the
9667         needle be smaller than the period of the needle.
9668
9669 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9670
9671         filenamecat: remove unnecessary dependency on dirname-lgpl
9672         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9673         is no direct dependency, just an indirect one via filenamecat-lgpl.
9674
9675         remove: remove unnecessary use of m4/dos.m4
9676         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9677         * modules/remove (FILES): Remove m4/dos.m4.
9678
9679         * lib/openat-proc.c: Don't include dirname.h; not needed.
9680
9681         backupfile: remove unnecessary use of m4/dos.m4
9682         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9683         of its symbols are used by the backupfile code.  backupfile.c does
9684         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9685         for the rare case of programs that want all their backup file
9686         names to live within 8+3 limits, and dos.m4 doesn't address that.
9687         * modules/backupfile (Files): Remove m4/dos.m4.
9688
9689 2011-02-24  Jim Meyering  <meyering@redhat.com>
9690
9691         strstr: fix a bug whereby strstr would mistakenly return NULL
9692         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9693         in period calculation.
9694         (two_way_long_needle): Likewise.
9695         The original problem was reported by Mike Stump in
9696         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9697         Ralf Wildenhues provided the short needle and haystack.
9698         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9699         Add a more involved test to trigger the bug in two_way_long_needle.
9700
9701 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9702
9703         gnulib-tool: remove use of bold display in help screen
9704         * gnulib-tool (func_usage): Do not use bold display anymore in the
9705         help screen.  That was just meant to be a temporary emphasis for a
9706         backward-incompatible change.
9707
9708 2011-02-23  Bruno Haible  <bruno@clisp.org>
9709
9710         Fix misindentation of preprocessor directives.
9711         * lib/argp-namefrob.h: Reindent preprocessor directives.
9712         * lib/getopt_int.h (struct _getopt_data): Likewise.
9713         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9714         * lib/vasnprintf.c (decode_long_double): Likewise.
9715         * tests/test-argmatch.c: Insert blank lines, for clarity.
9716         * tests/test-exclude.c: Likewise.
9717
9718 2011-02-22  Bruno Haible  <bruno@clisp.org>
9719
9720         ioctl: Fix for MacOS X in 64-bit mode.
9721         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9722         value.
9723         Suggested by Eric Blake.
9724         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9725
9726 2011-02-22  Jim Meyering  <meyering@redhat.com>
9727
9728         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9729         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9730         in lib/.
9731
9732 2011-02-22  Eric Blake  <eblake@redhat.com>
9733
9734         maint: avoid any CDPATH issue
9735         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9736
9737         maint: adjust cpp indentation for my modules, as well
9738         * Makefile (sc_cpp_indent_check): Add my name.
9739         * lib/fbufmode.c: Filter through cppi.
9740         * lib/fpurge.c: Likewise.
9741         * lib/freadable.c: Likewise.
9742         * lib/freading.c: Likewise.
9743         * lib/fwritable.c: Likewise.
9744         * lib/fwriting.c: Likewise.
9745         * lib/sigaction.c: Likewise.
9746
9747 2011-02-22  Jim Meyering  <meyering@redhat.com>
9748
9749         maint: adjust cpp indentation to reflect nesting depth
9750         I.e., in a block of code that begins with an unnested "#if",
9751         put one space between the "#" in column 1 and following token.
9752         For example,
9753         -#include <sys/vfs.h>
9754         +# include <sys/vfs.h>
9755         Do this only in .c files that are part of a module I maintain.
9756         * lib/linkat.c: Filter through cppi.
9757         * lib/nanosleep.c: Likewise.
9758         * lib/openat.c: Likewise.
9759         * lib/openat-die.c: Likewise.
9760         * lib/dup3.c: Likewise.
9761         * lib/fchownat.c: Likewise.
9762         * lib/flock.c: Likewise.
9763         * lib/fsync.c: Likewise.
9764         * lib/fts.c: Likewise.
9765         * lib/getpass.c: Likewise.
9766         * lib/gettimeofday.c: Likewise.
9767         * lib/userspec.c: Likewise.
9768         * Makefile (sc_cpp_indent_check): New rule, to check this.
9769
9770 2011-02-22  Bruno Haible  <bruno@clisp.org>
9771
9772         New module 'wctomb'.
9773         * lib/stdlib.in.h (wctomb): New declaration.
9774         * lib/wctomb.c: New file.
9775         * lib/wctomb-impl.h: New file.
9776         * m4/wctomb.m4: New file.
9777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9778         REPLACE_WCTOMB.
9779         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9780         REPLACE_WCTOMB.
9781         * modules/wctomb: New file.
9782         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9783         * doc/posix-functions/wctomb.texi: Mention the new module.
9784         * modules/wctob (Depends-on): Add wctomb.
9785
9786 2011-02-22  Bruno Haible  <bruno@clisp.org>
9787
9788         New module 'mbtowc'.
9789         * lib/stdlib.in.h (mbtowc): New declaration.
9790         * lib/mbtowc.c: New file.
9791         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9792         * m4/mbtowc.m4: New file.
9793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9794         REPLACE_MBTOWC.
9795         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9796         REPLACE_MBTOWC.
9797         * modules/mbtowc: New file.
9798         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9799         * doc/posix-functions/mbtowc.texi: Mention the new module.
9800         * modules/btowc (Depends-on): Add mbtowc.
9801
9802 2011-02-22  Bruno Haible  <bruno@clisp.org>
9803
9804         wcrtomb: Add more tests for native Windows platforms.
9805         * tests/test-wcrtomb-w32-1.sh: New file.
9806         * tests/test-wcrtomb-w32-2.sh: New file.
9807         * tests/test-wcrtomb-w32-3.sh: New file.
9808         * tests/test-wcrtomb-w32-4.sh: New file.
9809         * tests/test-wcrtomb-w32-5.sh: New file.
9810         * tests/test-wcrtomb-w32.c: New file.
9811         * modules/wcrtomb-tests (Files): Add them.
9812         (Makefile.am): Arrange to run these tests.
9813         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9814         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9815
9816 2011-02-20  Bruno Haible  <bruno@clisp.org>
9817
9818         wcrtomb: Enhance test.
9819         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9820
9821 2011-02-20  Bruno Haible  <bruno@clisp.org>
9822
9823         mbrtowc: Tiny optimization.
9824         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9825
9826 2011-02-20  Jim Meyering  <meyering@redhat.com>
9827
9828         test-exclude.c: remove unmatched #endif
9829         * tests/test-exclude.c: Remove stray #endif, left over from
9830         the change of a week ago.
9831
9832 2011-02-19  Jim Meyering  <meyering@redhat.com>
9833
9834         git-version-gen: skip "-dirty" check when appropriate
9835         * build-aux/git-version-gen: Don't run any git commands when the
9836         version string comes from .tarball-version.  Prior to this, we
9837         would run git update-index --refresh even from a just-unpacked
9838         tarball directory, and that could affect a .git/ directory in a
9839         parent of the build directory.  Reported by Mike Frysinger.
9840
9841 2011-02-19  Bruno Haible  <bruno@clisp.org>
9842
9843         unictype/property-byname: Reduce the size of the 'data' segment.
9844         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9845
9846 2011-02-19  Bruno Haible  <bruno@clisp.org>
9847
9848         unictype/scripts: Reduce the size of the 'data' segment.
9849         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9850         '%pic'.
9851         * lib/unictype/scripts_byname.gperf: Regenerated.
9852
9853 2011-02-19  Bruno Haible  <bruno@clisp.org>
9854
9855         stdint: Update documentation.
9856         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9857
9858 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9859
9860         stdint: omit redundant check for wchar.h
9861         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9862         always tests whether wchar.h exists, so remove the now-redundant test.
9863
9864 2011-02-18  Bruno Haible  <bruno@clisp.org>
9865
9866         stdint: Cut dependency to module 'wchar'.
9867         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9868         include the necessary prerequisites.
9869         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9870         * modules/stdint (Depends-on): Remove wchar.
9871         (Makefile.am): Substitute HAVE_WCHAR_H.
9872         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9873
9874 2011-02-18  Eric Blake  <eblake@redhat.com>
9875
9876         longlong: skip, rather than fail, on cross-compilation
9877         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9878         when cross-compiling; regression from 2011-02-16.
9879
9880 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9881
9882         * NEWS: Mention 2011-02-08 change to stdlib.
9883
9884 2011-02-17  Bruno Haible  <bruno@clisp.org>
9885
9886         getloadavg: Add comments about platforms.
9887         * m4/getloadavg.m4: Add comment.
9888         * lib/getloadavg.c: Likewise.
9889
9890 2011-02-17  Bruno Haible  <bruno@clisp.org>
9891
9892         getloadavg: Fix link error on Solaris 2.6.
9893         * modules/getloadavg (Link): New section.
9894         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9895         linking test-getloadavg.
9896         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9897         getloadavg.
9898
9899 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9900
9901         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9902         It was 'int', but this doesn't match the IRIX 6.5 manual.
9903         Suggested by Bruno Haible in
9904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9905
9906 2011-02-17  Bruno Haible  <bruno@clisp.org>
9907
9908         havelib: Fix comments.
9909         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9910         change.
9911
9912 2011-02-17  Bruno Haible  <bruno@clisp.org>
9913
9914         havelib: Update config.rpath.
9915         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9916
9917 2011-02-17  Bruno Haible  <bruno@clisp.org>
9918
9919         getloadavg test: Add some plausibility checks.
9920         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9921         is improbable.
9922
9923 2011-02-16  Eric Blake  <eblake@redhat.com>
9924
9925         maintainer-makefile: make syntax-check a no-op from tarballs
9926         * top/maint.mk (no-vc-detected): New rule.
9927         (local-checks-available): Use it to avoid hanging if someone tries
9928         'make syntax-check' from a tarball.  Also append to any non-syntax
9929         checks already defined in cfg.mk.
9930
9931 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9932
9933         longlong: tune, particularly for common case of c99
9934
9935         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9936         or running anything if c99, or if unsigned long long int does not
9937         work.  In either case, we know the answer without further tests.
9938         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9939         it at most once, and use its results for both long long int and
9940         unsigned long long int.  This is more likely to be efficient in
9941         the common case where the program wants to check for both long
9942         long int and unsigned long long int.
9943         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9944         since the answer is already known.
9945
9946 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9947
9948         getloadavg: set errno
9949         * lib/getloadavg.c: Set errno when returning -1.  If no other
9950         error number looks appropriate, set it to ENOSYS if the getloadavg
9951         looks like it can't possibly ever work, ENOTSUP otherwise.
9952         Suggested by Bruno Haible in
9953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9954
9955         getloadavg: trim unused parts and speed up 'configure'
9956         * NEWS: Document this.
9957         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9958         always compiled if getloadavg is absent.
9959         Move test code to ...
9960         * tests/test-getloadavg.c: New file, containing previous
9961         contents of test from lib/getloadavg.c.  It also contains
9962         suggestions by Bruno Haible in
9963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9964         * modules/getloadavg-tests: New file.
9965         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9966         Do tests in the same order as they're needed for getloadavg.c.
9967         Omit setgid-related tests that generate symbols KMEM_GROUP,
9968         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9969         Do only the tests that are needed to see whether the system has
9970         getloadavg, moving the other tests into ...
9971         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9972         NLIST_NAME_UNION; nobody should be using it.  Do not define
9973         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9974         relevant, as the user of this module shouldn't care how getloadavg
9975         is implemented.
9976
9977         getloadavg: omit unused var
9978         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9979
9980 2011-02-15  Jim Meyering  <meyering@redhat.com>
9981
9982         doc: update users.txt
9983         * users.txt: Update iwhd's URL.
9984
9985 2011-02-13  Bruno Haible  <bruno@clisp.org>
9986
9987         Consistent macro naming for macros that use GCC __attribute__.
9988         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9989         _ATTRIBUTE_NONNULL_.
9990         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9991         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9992         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9993         ATTRIBUTE_DEPRECATED.
9994         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9995         ATTRIBUTE_NORETURN.
9996         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9997         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9998         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9999         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10000         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10001         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10002         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10003         ATTRIBUTE_SENTINEL.
10004         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10005         ATTRIBUTE_RETURN_CHECK.
10006         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10007         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10008         ATTRIBUTE_NORETURN.
10009         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10010         Reported by Paul Eggert.
10011
10012 2011-02-13  Bruno Haible  <bruno@clisp.org>
10013
10014         Don't interfere with a program's definition of __attribute__.
10015         * lib/argp.h (__attribute__): Remove definition.
10016         (_GL_ATTRIBUTE_FORMAT): New macro.
10017         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10018         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10019         (_GL_ATTRIBUTE_FORMAT): New macro.
10020         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10021         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10022         GCC 3 or newer.
10023         * lib/error.h (__attribute__): Remove definition.
10024         (_GL_ATTRIBUTE_FORMAT): New macro.
10025         (error, error_at_line): Use it.
10026         * lib/hash.h (__attribute__): Remove definition.
10027         (ATTRIBUTE_WUR): Update definition. Define always.
10028         * lib/openat.h (__attribute__): Remove definition.
10029         (ATTRIBUTE_NORETURN): Update definition. Define always.
10030         * lib/sigpipe-die.h (__attribute__): Remove definition.
10031         (ATTRIBUTE_NORETURN): Update definition. Define always.
10032         * lib/vasnprintf.h (__attribute__): Remove definition.
10033         (_GL_ATTRIBUTE_FORMAT): New macro.
10034         (asnprintf, vasnprintf): Use it.
10035         * lib/xalloc.h (__attribute__): Remove definition.
10036         (ATTRIBUTE_NORETURN): Update definition. Define always.
10037         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10038         * lib/xmemdup0.h (__attribute__): Remove definition.
10039         (ATTRIBUTE_NORETURN): Update definition. Define always.
10040         * lib/xprintf.h (__attribute__): Remove definition.
10041         (_GL_ATTRIBUTE_FORMAT): New macro.
10042         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10043         * lib/xstrtol.h (__attribute__): Remove definition.
10044         (ATTRIBUTE_NORETURN): Update definition. Define always.
10045         * lib/xvasprintf.h (__attribute__): Remove definition.
10046         (_GL_ATTRIBUTE_FORMAT): New macro.
10047         (xasprintf, xvasprintf): Use it.
10048         * tests/test-argmatch.c (__attribute__): Remove definition.
10049         (ATTRIBUTE_NORETURN): Update definition. Define always.
10050         * tests/test-exclude.c (__attribute__): Remove definition.
10051         (ATTRIBUTE_NORETURN): Update definition. Define always.
10052         Reported by Paul Eggert.
10053
10054 2011-02-13  Bruno Haible  <bruno@clisp.org>
10055
10056         mbrtowc: Add more tests for native Windows platforms.
10057         * tests/test-mbrtowc-w32-1.sh: New file.
10058         * tests/test-mbrtowc-w32-2.sh: New file.
10059         * tests/test-mbrtowc-w32-3.sh: New file.
10060         * tests/test-mbrtowc-w32-4.sh: New file.
10061         * tests/test-mbrtowc-w32-5.sh: New file.
10062         * tests/test-mbrtowc-w32.c: New file.
10063         * modules/mbrtowc-tests (Files): Add them.
10064         (Makefile.am): Arrange to run these tests.
10065         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10066         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10067
10068 2011-02-13  Bruno Haible  <bruno@clisp.org>
10069
10070         mbrtowc: Work around native Windows bug.
10071         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10072         guess when no suitable locale for testing was found.
10073         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10074
10075 2011-02-13  Bruno Haible  <bruno@clisp.org>
10076
10077         mbsinit: Work around mingw bug.
10078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10079         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10080         Windows.
10081         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10082
10083 2011-02-13  Bruno Haible  <bruno@clisp.org>
10084
10085         mbsinit: Don't crash for a NULL argument.
10086         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10087         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10088
10089 2011-02-13  Bruno Haible  <bruno@clisp.org>
10090
10091         Don't interfere with a program's definition of __attribute__.
10092         * lib/stdio.in.h (__attribute__): Remove definition.
10093         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10094         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10095         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10096         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10097         * lib/string.in.h (__attribute__): Remove definition.
10098         Reported by Paul Eggert.
10099
10100 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10101
10102         stdlib: don't get in the way of non-GCC __attribute__
10103         See thread starting at
10104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10105         Revert previous stdlib change, installing the following instead:
10106         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10107         to get in the way of a non-GCC compiler that supports __attribute__.
10108         (_GL_ATTRIBUTE_RETURN): New macro.
10109         (_Exit): Use it instead of __attribute__.
10110
10111 2011-02-12  Bruno Haible  <bruno@clisp.org>
10112
10113         quotearg test: Avoid test failure on mingw.
10114         * tests/test-quotearg.sh: Convert the locale identifier from native
10115         Windows syntax to Unix syntax.
10116
10117 2011-02-12  Bruno Haible  <bruno@clisp.org>
10118
10119         setlocale: Prefer gnulib's override over libintl's override.
10120         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10121         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10122         GNULIB_defined_setlocale is set.
10123
10124 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10125
10126         stdlib: support non-GCC __attribute__
10127
10128         Fix a serious and tricky problem encountered when attempting to
10129         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10130         5.5, but it crashed due to memory corruption on Solaris 10 with
10131         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10132         bits that are otherwise zero.  This tagging is optional inside
10133         Emacs but is preferred and is used when __attribute__ ((__aligned
10134         (8))) works, as it does with both recent-enough GCC and with Sun C
10135         5.11.  However, Sun C 5.11 is not GCC and does not #define
10136         __GNUC__ and __GNUC_MINOR__.
10137
10138         When I added the getloadavg module to Emacs, it brought in
10139         stdlib.in.h, which contained this fragment:
10140
10141            #ifndef __attribute__
10142            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10143            #  define __attribute__(Spec)   /* empty */
10144            # endif
10145            #endif
10146
10147         When files that include <stdlib.h> were compiled with Sun C 5.11,
10148         the above code disabled __attribute__ ((__aligned (8))), which
10149         caused variables to not be properly aligned, which eventually led
10150         to the pointer corruption mentioned above.  (This was a bit hard
10151         to diagnose, unfortunately.)
10152
10153         Several "#define __attribute__(X) /* empty */" code snippets need
10154         to be eradicated from Gnulib to work with non-GCC compilers that
10155         support __attribute__.  The Autoconf way to do this is to test for
10156         each kind of attribute that we want support for, and selectively
10157         enable that in source code.
10158
10159         Fix this problem just for stdlib.h, by adding a test for the
10160         __noreturn__ attribute, and change stdlib.in.h to use that test
10161         when needed.  This technique can be easily generalized to the
10162         other *.in.h files and attributes, and a similar technique can be
10163         used for *.h and *.c files.  This patch is enough to solve the
10164         problem for Emacs + getloadavg, and I thought I'd publish it for
10165         feedback before undertaking further, similar fixes in other
10166         modules.
10167
10168         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10169         because it's not needed for stdlib.h.  It merely substitutes the
10170         value directly into stdlib.h.  We may well need to #define it, or
10171         similar symbols, for other modules, but it's nice to also have an
10172         option to not #define it for applications like Emacs that do not
10173         need it.
10174
10175         * lib/stdlib.in.h (__attribute__): Do not #define.
10176         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10177         be defined only if the _Exit module is also used.
10178         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10180         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10181         platforms.
10182         * modules/_Exit (Files): Add m4/attribute.m4.
10183         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10184         * m4/attribute.m4: New file.
10185
10186 2011-02-12  Bruno Haible  <bruno@clisp.org>
10187
10188         wcsrtombs: Work around bug on native Windows.
10189         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10190         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10191         instead of len.
10192         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10193
10194 2011-02-12  Bruno Haible  <bruno@clisp.org>
10195
10196         mbsrtowcs: Work around bug on native Windows.
10197         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10198         against mingw bug.
10199         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10200
10201 2011-02-12  Bruno Haible  <bruno@clisp.org>
10202
10203         Avoid setlocale bugs in tests.
10204         * modules/btowc (Dependencies): Add setlocale.
10205         * modules/c-strcase (Dependencies): Likewise.
10206         * modules/mbmemcasecmp (Dependencies): Likewise.
10207         * modules/mbmemcasecoll (Dependencies): Likewise.
10208         * modules/mbrtowc (Dependencies): Likewise.
10209         * modules/mbscasecmp (Dependencies): Likewise.
10210         * modules/mbscasestr (Dependencies): Likewise.
10211         * modules/mbschr (Dependencies): Likewise.
10212         * modules/mbscspn (Dependencies): Likewise.
10213         * modules/mbsinit (Dependencies): Likewise.
10214         * modules/mbsncasecmp (Dependencies): Likewise.
10215         * modules/mbsnrtowcs (Dependencies): Likewise.
10216         * modules/mbspbrk (Dependencies): Likewise.
10217         * modules/mbspcasecmp (Dependencies): Likewise.
10218         * modules/mbsrchr (Dependencies): Likewise.
10219         * modules/mbsrtowcs (Dependencies): Likewise.
10220         * modules/mbsspn (Dependencies): Likewise.
10221         * modules/mbsstr (Dependencies): Likewise.
10222         * modules/nl_langinfo (Dependencies): Likewise.
10223         * modules/quotearg (Dependencies): Likewise.
10224         * modules/unicase/locale-language (Dependencies): Likewise.
10225         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10226         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10227         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10228         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10229         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10230         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10231         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10232         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10233         * modules/vasnprintf-posix (Dependencies): Likewise.
10234         * modules/wcrtomb (Dependencies): Likewise.
10235         * modules/wcsnrtombs (Dependencies): Likewise.
10236         * modules/wcsrtombs (Dependencies): Likewise.
10237
10238 2011-02-12  Bruno Haible  <bruno@clisp.org>
10239
10240         setlocale: Workaround native Windows bug.
10241         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10242         succeeds but sets LC_CTYPE to "C", report a failure.
10243         * tests/test-setlocale2.sh: New file.
10244         * tests/test-setlocale2.c: New file.
10245         * modules/setlocale-tests (Files): Add the new files.
10246         (Makefile.am): Enable test-setlocale2.sh test.
10247         * doc/posix-functions/setlocale.texi: Mention workaround.
10248
10249 2011-02-11  Bruno Haible  <bruno@clisp.org>
10250
10251         Tests for module 'setlocale'.
10252         * modules/setlocale-tests: New file.
10253         * tests/test-setlocale1.sh: New file.
10254         * tests/test-setlocale1.c: New file.
10255
10256         New module 'setlocale'.
10257         * lib/locale.in.h (setlocale): New declaration.
10258         * lib/setlocale.c: New file, based on
10259         gettext/gettext-runtime/intl/setlocale.c.
10260         * m4/setlocale.m4: New file.
10261         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10262         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10263         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10264         REPLACE_SETLOCALE.
10265         * modules/setlocale: New file.
10266         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10267         * doc/posix-functions/setlocale.texi: Mention the new module.
10268
10269 2011-02-11  Bruno Haible  <bruno@clisp.org>
10270
10271         Prepare for locale dependent tests on mingw.
10272         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10273         because it has the wrong locale encoding.
10274         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10275         French_France.1252 instead of "fr".
10276         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10277         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10278         because it has the wrong locale encoding.
10279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10280         native Windows, try Turkish_Turkey.65001.
10281         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10282         Chinese_China.54936.
10283
10284         Prepare for locale dependent tests on mingw.
10285         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10286         differently.
10287         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10288         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10289         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10290         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10291
10292 2011-02-11  Eric Blake  <eblake@redhat.com>
10293
10294         strptime: avoid compiler warnings
10295         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10296         compiler warnings about dead code.
10297         Reported by Daniel P. Berrange.
10298
10299 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10300
10301         doc: update users.txt
10302         * users.txt: Add rcs.
10303
10304 2011-02-10  John W. Eaton  <jwe@gnu.org>
10305
10306         doc: update users.txt
10307         * users.txt: Add octave.
10308
10309 2011-02-10  Jim Meyering  <meyering@redhat.com>
10310
10311         doc: update users.txt
10312         * users.txt: Add iwhd.
10313
10314 2011-02-09  Bruno Haible  <bruno@clisp.org>
10315
10316         gnulib-tool: Make copyright notice adjustment more robust.
10317         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10318         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10319         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10320         License".
10321         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10322
10323 2011-02-06  Bruno Haible  <bruno@clisp.org>
10324
10325         New module 'towctrans'.
10326         * modules/towctrans: New file.
10327         * lib/wctype.in.h (towctrans): New declaration.
10328         * lib/towctrans.c: New file.
10329         * lib/towctrans-impl.h: New file.
10330         * m4/towctrans.m4: New file.
10331         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10332         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10333         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10334         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10335         * doc/posix-functions/towctrans.texi: Mention the new module.
10336
10337 2011-02-06  Bruno Haible  <bruno@clisp.org>
10338
10339         New module 'wctrans'.
10340         * modules/wctrans: New file.
10341         * lib/wctype.in.h (wctrans): New declaration.
10342         * lib/wctrans.c: New file.
10343         * lib/wctrans-impl.h: New file.
10344         * m4/wctrans.m4: New file.
10345         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10346         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10347         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10348         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10349         * doc/posix-functions/wctrans.texi: Mention the new module.
10350
10351 2011-02-06  Bruno Haible  <bruno@clisp.org>
10352
10353         New module 'iswctype'.
10354         * modules/iswctype: New file.
10355         * lib/wctype.in.h (iswctype): New declaration.
10356         * lib/iswctype.c: New file.
10357         * lib/iswctype-impl.h: New file.
10358         * m4/iswctype.m4: New file.
10359         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10360         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10361         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10362         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10363         * doc/posix-functions/iswctype.texi: Mention the new module and the
10364         HP-UX 11.00 problem.
10365
10366 2011-02-06  Bruno Haible  <bruno@clisp.org>
10367
10368         New module 'wctype'.
10369         * modules/wctype: Change to represent the wctype() substitute.
10370         * lib/wctype.in.h (wctype): New declaration.
10371         * lib/wctype.c: New file.
10372         * lib/wctype-impl.h: New file.
10373         * m4/wctype.m4: New file.
10374         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10375         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10376         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10377         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10378         * doc/posix-functions/wctype.texi: Mention the new module and the
10379         HP-UX 11.00 problem.
10380
10381 2011-02-06  Bruno Haible  <bruno@clisp.org>
10382
10383         wctype-h: Ensure wctype_t and wctrans_t are defined.
10384         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10385         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10386         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10387         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10388         HAVE_WCTRANS_T.
10389         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10390
10391 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10392
10393         flock: fix license typo
10394
10395         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10396         omitted.
10397
10398 2011-02-08  Bruno Haible  <bruno@clisp.org>
10399
10400         Split large sed scripts, for HP-UX sed.
10401         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10402         to avoid HP-UX limit of 99 commands, in the near future.
10403         * modules/stdlib (Makefile.am): Likewise.
10404         * modules/unistd (Makefile.am): Likewise.
10405         * modules/wchar (Makefile.am): Likewise.
10406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10407         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10408         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10409
10410 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10411             Bruno Haible  <bruno@clisp.org>
10412
10413         stdlib: improve random_r modularization
10414         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10415         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10416         you also need the random_r module to get this material right.
10417         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10418         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10419         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10420
10421 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10422
10423         stdlib: don't depend on stdint
10424         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10425         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10426         be independent of whether stdint.h is needed.
10427         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10428         here, instead of ...
10429         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10430         struct random_data should be using the random_r module, not just
10431         the stdlib module (which wouldn't make sense: what package needs
10432         just struct random_data without also needing random_r?).
10433         * modules/stdlib (Depends-on): Remove stdint.
10434
10435         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10436         See the thread rooted at
10437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10438         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10439         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10440         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10441         __VMS)); previously it was always included (via fcntl--.h).
10442         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10443         hand; this is good enough for load averages.  Also, do not use
10444         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10445         flags directly if available and don't bother otherwise.  (Packages
10446         that need the extra reliability should use the modules that define
10447         these flags on older platforms that lack them.)
10448         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10449         fcntl-safer.
10450
10451 2011-02-08  Jim Meyering  <meyering@redhat.com>
10452
10453         di-set.h, ino-map.h: add multiple-inclusion guard
10454         Technically, the guard is required only for ino-map.h, due to its
10455         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10456         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10457         * lib/ino-map.h: Likewise.
10458
10459 2011-02-06  Bruno Haible  <bruno@clisp.org>
10460
10461         iswblank: Ensure declaration on glibc systems.
10462         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10463         * modules/iswblank (Dependencies): Add 'extensions'.
10464         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10465
10466 2011-02-06  Bruno Haible  <bruno@clisp.org>
10467
10468         New module 'iswblank'.
10469         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10470         * modules/iswblank: New file.
10471         * modules/wctype-h (Files): Remove lib/iswblank.c.
10472         (Makefile.am): Substitute GNULIB_ISWBLANK.
10473         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10474         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10475         (gl_WCTYPE_H_DEFAULTS): New macro.
10476         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10477         * modules/iswblank-tests: New file.
10478         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10479         * tests/test-wctype-h.c (main): Remove iswblank tests.
10480         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10481         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10482         of 'wctype-h'.
10483         * NEWS: Mention the change.
10484         * modules/mbchar (Depends-on): Add iswblank.
10485
10486 2011-02-08  Bruno Haible  <bruno@clisp.org>
10487
10488         di-set tests: Refactor.
10489         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10490         unnecessary includes.
10491         (ASSERT): Remove macro.
10492         (main): Make C90 compliant by avoiding variable declaration after
10493         statement.
10494         * modules/di-set-tests (Files): Add tests/macros.h.
10495
10496 2011-02-08  Bruno Haible  <bruno@clisp.org>
10497
10498         ino-map tests: Refactor.
10499         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10500         unnecessary includes.
10501         (ASSERT): Remove macro.
10502         (main): Make C90 compliant by avoiding variable declaration after
10503         statement.
10504         * modules/ino-map-tests (Files): Add tests/macros.h.
10505
10506 2011-02-08  Jim Meyering  <meyering@redhat.com>
10507
10508         di-set: add "const" to a cast
10509         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10510         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10511
10512 2011-02-06  Bruno Haible  <bruno@clisp.org>
10513
10514         Rename module 'wctype' to 'wctype-h'.
10515         * modules/wctype-h: Renamed from modules/wctype.
10516         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10517         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10518         (Files, Depends-on, Makefile.am): Update.
10519         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10520         (Files, Makefile.am): Update.
10521         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10522         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10523         * doc/posix-headers/wctype.texi: Update.
10524         * doc/posix-functions/iswalnum.texi: Update.
10525         * doc/posix-functions/iswalpha.texi: Update.
10526         * doc/posix-functions/iswblank.texi: Update.
10527         * doc/posix-functions/iswcntrl.texi: Update.
10528         * doc/posix-functions/iswdigit.texi: Update.
10529         * doc/posix-functions/iswgraph.texi: Update.
10530         * doc/posix-functions/iswlower.texi: Update.
10531         * doc/posix-functions/iswprint.texi: Update.
10532         * doc/posix-functions/iswpunct.texi: Update.
10533         * doc/posix-functions/iswspace.texi: Update.
10534         * doc/posix-functions/iswupper.texi: Update.
10535         * doc/posix-functions/iswxdigit.texi: Update.
10536         * doc/posix-functions/towlower.texi: Update.
10537         * doc/posix-functions/towupper.texi: Update.
10538         * NEWS: Mention the change.
10539         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10540         * modules/mbchar (Dependencies): Likewise.
10541         * modules/mbswidth (Dependencies): Likewise.
10542         * modules/quotearg (Dependencies): Likewise.
10543         * modules/regex (Dependencies): Likewise.
10544         * modules/wcscasecmp (Dependencies): Likewise.
10545         * modules/wcsncasecmp (Dependencies): Likewise.
10546         * modules/wcwidth (Dependencies): Likewise.
10547
10548 2011-02-06  Bruno Haible  <bruno@clisp.org>
10549
10550         New module 'wcswidth'.
10551         * modules/wcswidth: New file.
10552         * lib/wchar.in.h (wcswidth): New declaration.
10553         * lib/wcswidth.c: New file.
10554         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10555         * m4/wcswidth.m4: New file.
10556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10558         REPLACE_WCSWIDTH.
10559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10560         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10561         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10562         * doc/posix-functions/wcswidth.texi: Mention the new module.
10563
10564 2011-02-06  Bruno Haible  <bruno@clisp.org>
10565
10566         New module 'wcstok'.
10567         * modules/wcstok: New file.
10568         * lib/wchar.in.h (wcstok): New declaration.
10569         * lib/wcstok.c: New file.
10570         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10571         * m4/wcstok.m4: New file.
10572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10575         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10576         * doc/posix-functions/wcstok.texi: Mention the new module.
10577
10578 2011-02-06  Bruno Haible  <bruno@clisp.org>
10579
10580         New module 'wcsstr'.
10581         * modules/wcsstr: New file.
10582         * lib/wchar.in.h (wcsstr): New declaration.
10583         * lib/wcsstr.c: New file.
10584         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10585         * m4/wcsstr.m4: New file.
10586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10589         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10590         * doc/posix-functions/wcsstr.texi: Mention the new module.
10591
10592 2011-02-06  Bruno Haible  <bruno@clisp.org>
10593
10594         New module 'wcspbrk'.
10595         * modules/wcspbrk: New file.
10596         * lib/wchar.in.h (wcspbrk): New declaration.
10597         * lib/wcspbrk.c: New file.
10598         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10599         * m4/wcspbrk.m4: New file.
10600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10603         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10604         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10605
10606 2011-02-06  Bruno Haible  <bruno@clisp.org>
10607
10608         New module 'wcsspn'.
10609         * modules/wcsspn: New file.
10610         * lib/wchar.in.h (wcsspn): New declaration.
10611         * lib/wcsspn.c: New file.
10612         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10613         * m4/wcsspn.m4: New file.
10614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10617         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10618         * doc/posix-functions/wcsspn.texi: Mention the new module.
10619
10620 2011-02-06  Bruno Haible  <bruno@clisp.org>
10621
10622         New module 'wcscspn'.
10623         * modules/wcscspn: New file.
10624         * lib/wchar.in.h (wcscspn): New declaration.
10625         * lib/wcscspn.c: New file.
10626         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10627         * m4/wcscspn.m4: New file.
10628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10631         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10632         * doc/posix-functions/wcscspn.texi: Mention the new module.
10633
10634 2011-02-06  Bruno Haible  <bruno@clisp.org>
10635
10636         New module 'wcsrchr'.
10637         * modules/wcsrchr: New file.
10638         * lib/wchar.in.h (wcsrchr): New declaration.
10639         * lib/wcsrchr.c: New file.
10640         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10641         * m4/wcsrchr.m4: New file.
10642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10645         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10646         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10647
10648 2011-02-06  Bruno Haible  <bruno@clisp.org>
10649
10650         New module 'wcschr'.
10651         * modules/wcschr: New file.
10652         * lib/wchar.in.h (wcschr): New declaration.
10653         * lib/wcschr.c: New file.
10654         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10655         * m4/wcschr.m4: New file.
10656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10659         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10660         * doc/posix-functions/wcschr.texi: Mention the new module.
10661
10662 2011-02-06  Bruno Haible  <bruno@clisp.org>
10663
10664         New module 'wcsdup'.
10665         * modules/wcsdup: New file.
10666         * lib/wchar.in.h (wcsdup): New declaration.
10667         * lib/wcsdup.c: New file.
10668         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10669         * m4/wcsdup.m4: New file.
10670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10673         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10674         * doc/posix-functions/wcsdup.texi: Mention the new module.
10675
10676 2011-02-06  Bruno Haible  <bruno@clisp.org>
10677
10678         New module 'wcsxfrm'.
10679         * modules/wcsxfrm: New file.
10680         * lib/wchar.in.h (wcsxfrm): New declaration.
10681         * lib/wcsxfrm.c: New file.
10682         * lib/wcsxfrm-impl.h: New file.
10683         * m4/wcsxfrm.m4: New file.
10684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10687         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10688         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10689
10690 2011-02-06  Bruno Haible  <bruno@clisp.org>
10691
10692         New module 'wcscoll'.
10693         * modules/wcscoll: New file.
10694         * lib/wchar.in.h (wcscoll): New declaration.
10695         * lib/wcscoll.c: New file.
10696         * lib/wcscoll-impl.h: New file.
10697         * m4/wcscoll.m4: New file.
10698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10701         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10702         * doc/posix-functions/wcscoll.texi: Mention the new module.
10703
10704 2011-02-06  Bruno Haible  <bruno@clisp.org>
10705
10706         New module 'wcsncasecmp'.
10707         * modules/wcsncasecmp: New file.
10708         * lib/wchar.in.h (wcsncasecmp): New declaration.
10709         * lib/wcsncasecmp.c: New file.
10710         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10711         * m4/wcsncasecmp.m4: New file.
10712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10715         HAVE_WCSNCASECMP.
10716         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10717         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10718
10719 2011-02-06  Bruno Haible  <bruno@clisp.org>
10720
10721         New module 'wcscasecmp'.
10722         * modules/wcscasecmp: New file.
10723         * lib/wchar.in.h (wcscasecmp): New declaration.
10724         * lib/wcscasecmp.c: New file.
10725         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10726         * m4/wcscasecmp.m4: New file.
10727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10730         HAVE_WCSCASECMP.
10731         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10732         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10733
10734 2011-02-05  Bruno Haible  <bruno@clisp.org>
10735
10736         New module 'wcsncmp'.
10737         * modules/wcsncmp: New file.
10738         * lib/wchar.in.h (wcsncmp): New declaration.
10739         * lib/wcsncmp.c: New file.
10740         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10741         * m4/wcsncmp.m4: New file.
10742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10745         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10746         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10747
10748 2011-02-05  Bruno Haible  <bruno@clisp.org>
10749
10750         New module 'wcscmp'.
10751         * modules/wcscmp: New file.
10752         * lib/wchar.in.h (wcscmp): New declaration.
10753         * lib/wcscmp.c: New file.
10754         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10755         * m4/wcscmp.m4: New file.
10756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10759         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10760         * doc/posix-functions/wcscmp.texi: Mention the new module.
10761
10762 2011-02-05  Bruno Haible  <bruno@clisp.org>
10763
10764         New module 'wcsncat'.
10765         * modules/wcsncat: New file.
10766         * lib/wchar.in.h (wcsncat): New declaration.
10767         * lib/wcsncat.c: New file.
10768         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10769         * m4/wcsncat.m4: New file.
10770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10773         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10774         * doc/posix-functions/wcsncat.texi: Mention the new module.
10775
10776 2011-02-05  Bruno Haible  <bruno@clisp.org>
10777
10778         New module 'wcscat'.
10779         * modules/wcscat: New file.
10780         * lib/wchar.in.h (wcscat): New declaration.
10781         * lib/wcscat.c: New file.
10782         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10783         * m4/wcscat.m4: New file.
10784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10787         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10788         * doc/posix-functions/wcscat.texi: Mention the new module.
10789
10790 2011-02-05  Bruno Haible  <bruno@clisp.org>
10791
10792         New module 'wcpncpy'.
10793         * modules/wcpncpy: New file.
10794         * lib/wchar.in.h (wcpncpy): New declaration.
10795         * lib/wcpncpy.c: New file.
10796         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10797         * m4/wcpncpy.m4: New file.
10798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10800         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10801         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10802         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10803
10804 2011-02-05  Bruno Haible  <bruno@clisp.org>
10805
10806         New module 'wcsncpy'.
10807         * modules/wcsncpy: New file.
10808         * lib/wchar.in.h (wcsncpy): New declaration.
10809         * lib/wcsncpy.c: New file.
10810         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10811         * m4/wcsncpy.m4: New file.
10812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10815         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10816         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10817
10818 2011-02-05  Bruno Haible  <bruno@clisp.org>
10819
10820         New module 'wcpcpy'.
10821         * modules/wcpcpy: New file.
10822         * lib/wchar.in.h (wcpcpy): New declaration.
10823         * lib/wcpcpy.c: New file.
10824         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10825         * m4/wcpcpy.m4: New file.
10826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10828         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10829         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10830         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10831
10832 2011-02-05  Bruno Haible  <bruno@clisp.org>
10833
10834         New module 'wcscpy'.
10835         * modules/wcscpy: New file.
10836         * lib/wchar.in.h (wcscpy): New declaration.
10837         * lib/wcscpy.c: New file.
10838         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10839         * m4/wcscpy.m4: New file.
10840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10843         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10844         * doc/posix-functions/wcscpy.texi: Mention the new module.
10845
10846 2011-02-05  Bruno Haible  <bruno@clisp.org>
10847
10848         New module 'wcsnlen'.
10849         * modules/wcsnlen: New file.
10850         * lib/wchar.in.h (wcsnlen): New declaration.
10851         * lib/wcsnlen.c: New file.
10852         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10853         * m4/wcsnlen.m4: New file.
10854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10857         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10858         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10859
10860 2011-02-05  Bruno Haible  <bruno@clisp.org>
10861
10862         New module 'wcslen'.
10863         * modules/wcslen: New file.
10864         * lib/wchar.in.h (wcslen): New declaration.
10865         * lib/wcslen.c: New file.
10866         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10867         * m4/wcslen.m4: New file.
10868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10871         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10872         * doc/posix-functions/wcslen.texi: Mention the new module.
10873
10874 2011-02-05  Bruno Haible  <bruno@clisp.org>
10875
10876         New module 'wmemset'.
10877         * modules/wmemset: New file.
10878         * lib/wchar.in.h (wmemset): New declaration.
10879         * lib/wmemset.c: New file.
10880         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10881         * m4/wmemset.m4: New file.
10882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10884         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10885         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10886         * doc/posix-functions/wmemset.texi: Mention the new module.
10887
10888 2011-02-05  Bruno Haible  <bruno@clisp.org>
10889
10890         New module 'wmemmove'.
10891         * modules/wmemmove: New file.
10892         * lib/wchar.in.h (wmemmove): New declaration.
10893         * lib/wmemmove.c: New file.
10894         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10895         * m4/wmemmove.m4: New file.
10896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10898         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10899         HAVE_WMEMMOVE.
10900         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10901         * doc/posix-functions/wmemmove.texi: Mention the new module.
10902
10903 2011-02-05  Bruno Haible  <bruno@clisp.org>
10904
10905         New module 'wmemcpy'.
10906         * modules/wmemcpy: New file.
10907         * lib/wchar.in.h (wmemcpy): New declaration.
10908         * lib/wmemcpy.c: New file.
10909         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10910         * m4/wmemcpy.m4: New file.
10911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10913         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10914         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10915         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10916
10917 2011-02-05  Bruno Haible  <bruno@clisp.org>
10918
10919         New module 'wmemcmp'.
10920         * modules/wmemcmp: New file.
10921         * lib/wchar.in.h (wmemcmp): New declaration.
10922         * lib/wmemcmp.c: New file.
10923         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10924         * m4/wmemcmp.m4: New file.
10925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10927         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10928         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10929         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10930
10931 2011-02-07  Jim Meyering  <meyering@redhat.com>
10932
10933         di-set, ino-map: new modules, from coreutils
10934         * lib/di-set.c: New file.
10935         * lib/di-set.h: Likewise.
10936         * lib/ino-map.c: Likewise.
10937         * lib/ino-map.h: Likewise.
10938         * modules/di-set: Likewise.
10939         * modules/di-set-tests: Likewise.
10940         * modules/ino-map: Likewise.
10941         * modules/ino-map-tests: Likewise.
10942         * tests/test-di-set.c: Likewise.
10943         * tests/test-ino-map.c: Likewise.
10944
10945 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10946
10947         getloadavg: merge minor changes from Emacs
10948
10949         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10950         (getloadavg): Use memset, not bzero.
10951
10952         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10953         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10954         clash (bug#86).
10955
10956 2010-11-14  Bruno Haible  <bruno@clisp.org>
10957
10958         Allow multiple gnulib generated replacements to coexist.
10959         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10960         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10961         * lib/langinfo.in.h (nl_item): Likewise.
10962         * lib/math.in.h (_NaN, NAN): Likewise.
10963         * lib/netdb.in.h (struct addrinfo): Likewise.
10964         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10965         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10966         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10967         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10968         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10969         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10970         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10971         pthread_mutexattr_init, pthread_mutexattr_settype,
10972         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10973         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10974         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10975         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10976         * lib/sched.in.h (struct sched_param): Likewise.
10977         * lib/se-selinux.in.h (security_class_t, security_context_t,
10978         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10979         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10980         lsetfilecon, fsetfilecon, security_check_context,
10981         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10982         Likewise.
10983         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10984         Likewise.
10985         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10986         _gl_function_taking_int_returning_void_t, union sigval,
10987         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10988         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10989         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10990         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10991         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10992         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10993         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10994         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10995         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10996         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10997         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10998         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10999         socklen_t, rpl_fd_isset): Likewise.
11000         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11001         * lib/sys_time.in.h (struct timeval): Likewise.
11002         * lib/sys_times.in.h (struct tms): Likewise.
11003         * lib/sys_utsname.in.h (struct utsname):
11004         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11005         * lib/unistd.in.h (getpagesize): Likewise.
11006         * lib/wchar.in.h (mbstate_t): Likewise.
11007         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11008         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11009         towlower, towupper): Likewise.
11010         Reported by Sam Steingold <sds@gnu.org>.
11011
11012 2011-02-05  Eric Blake  <eblake@redhat.com>
11013
11014         unsetenv: work around Haiku issues
11015         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11016         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11017
11018 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11019
11020         libposix: avoid calling error() within libposix
11021         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11022         is defined.
11023
11024 2011-02-05  Eric Blake  <eblake@redhat.com>
11025
11026         strerror_r-posix: port to cygwin
11027         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11028         implementation.
11029         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11030         * tests/test-strerror_r.c (main): Fix test.
11031         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11032         issue.
11033
11034 2011-02-05  Bruno Haible  <bruno@clisp.org>
11035
11036         New module 'wmemchr'.
11037         * modules/wmemchr: New file.
11038         * lib/wchar.in.h (wmemchr): New declaration.
11039         * lib/wmemchr.c: New file.
11040         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11041         * m4/wmemchr.m4: New file.
11042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11044         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11045         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11046         * doc/posix-functions/wmemchr.texi: Mention the new module.
11047
11048 2011-02-04  Eric Blake  <eblake@redhat.com>
11049
11050         fdopendir: detect FreeBSD bug
11051         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11052         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11053
11054 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11055
11056         stdbool: do not define HAVE_STDBOOL_H
11057         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11058         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11059         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11060         imported from the latest Autoconf git.  It was motivated by Emacs,
11061         which uses gnulib but does not need HAVE_STDBOOL_H.
11062
11063 2011-02-04  Bruno Haible  <bruno@clisp.org>
11064
11065         wcsnrtombs: Prepare for new module wwcsnrtombs.
11066         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11067         * lib/wcsnrtombs.c: Include it.
11068         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11069
11070         wcsrtombs: Prepare for new module wwcsrtombs.
11071         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11072         * lib/wcsrtombs.c: Include it.
11073         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11074
11075         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11076         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11077         * lib/mbsnrtowcs.c: Include it.
11078         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11079
11080         mbsrtowcs: Prepare for new module mbsrtowwcs.
11081         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11082         * lib/mbsrtowcs.c: Include it.
11083         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11084
11085 2011-02-04  Bruno Haible  <bruno@clisp.org>
11086
11087         vasnprintf: Reduce use of malloc for small format strings.
11088         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11089         (arguments): Add room for the first 7 arguments.
11090         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11091         (char_directives, u8_directives, u16_directives, u32_directives): Add
11092         room for the first 7 directives.
11093         * lib/printf-parse.c: Include <string.h>.
11094         (PRINTF_PARSE): Change memory handling code so that it uses the first
11095         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11096         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11097         Reported by Pádraig Brady <P@draigbrady.com>.
11098
11099 2011-01-31  Eric Blake  <eblake@redhat.com>
11100
11101         dup2: work around Haiku bug
11102         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11103         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11104         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11105         * tests/test-dup2.c (main): Enhance test.
11106
11107 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11108
11109         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11110         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11111         declared by eglibc 2.11.2.
11112         * lib/stdio.in.h: Likewise.
11113
11114 2011-01-31  Eric Blake  <eblake@redhat.com>
11115
11116         ignore-value: add missing test dependency
11117         * tests/test-ignore-value.c: Revert previous change; stdio.h
11118         provides off_t.
11119         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11120
11121 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11122
11123         mktime: clarify long_int width checking
11124         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11125         the top level, to make it clearer that the assumption about
11126         long_int width is being checked.  See
11127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11128
11129 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11130
11131         ignore-value: Fix self-test.
11132         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11133
11134 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11135
11136         TYPE_MAXIMUM: avoid theoretically undefined behavior
11137         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11138         negative number, which the C Standard says has undefined behavior.
11139         In practice this is not a problem, but might as well do it by the book.
11140         Reported by Rich Felker and Eric Blake; see
11141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11142         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11143         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11145         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11146         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11147         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11148
11149         mktime: #undef mktime before #defining it
11150         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11151
11152         mktime: systematically normalize tm_isdst comparisons
11153         * lib/mktime.c (isdst_differ): New function.
11154         (__mktime_internal): Use it systematically for all isdst comparisons.
11155         This completes the fix for libc BZ #6723, and removes the need for
11156         normalizing tm_isdst.  See
11157         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11158         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11159
11160         mktime: fix some integer overflow issues and sidestep the rest
11161
11162         This was prompted by a bug report by Benjamin Lindner for MinGW
11163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11164         His bug is due to signed integer overflow (0 - INT_MIN), and I
11165         I scanned through mktime.c looking for other integer overflow
11166         problems, fixing all the bugs I found.
11167
11168         Although the C Standard says the resulting code is still not safe
11169         in the presence of integer overflow, in practice it should be good
11170         enough for all real-world two's-complement implementations, except
11171         for debugging environments that deliberately trap on integer
11172         overflow (e.g., gcc -ftrapv).
11173
11174         * lib/mktime.c (WRAPV): New macro.
11175         (SHR): Also check that long_int and time_t shift right in the
11176         usual way, before using the fast-but-unportable method.
11177         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11178         used.  The code already assumed two's complement, so there's
11179         no need to test for alternatives.  All uses removed.
11180         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11181         the C standard.  Problem reported by Rich Felker in
11182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11183         (twos_complement_arithmetic): Also check long_int and time_t.
11184         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11185         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11186         (__mktime_internal): Avoid integer overflow with unary subtraction
11187         in two instances where -1 - X is an adequate replacement for -X,
11188         since the calculations are approximate.
11189
11190 2011-01-29  Eric Blake  <eblake@redhat.com>
11191
11192         mktime: avoid infinite loop
11193         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11194         type; behavior is still undefined but portable to all known targets.
11195         Reported by Rich Felker.
11196
11197 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11198
11199         rename, unlink, same-inode: Relicense.
11200         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11201         * modules/unlink (License): Likewise.
11202         * modules/same-inode (License): Likewise.
11203
11204 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11205
11206         mktime: avoid problems on NetBSD 5 / i386
11207         * lib/mktime.c (long_int): New type.  This works around a problem
11208         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11209         but time_t is 64 bits, and where I expect the existing code is
11210         wrong in some cases.
11211         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11212         (ydhms_diff): Bring back the compile-time check for wide-enough
11213         year and yday.
11214
11215         mktime: fix misspelling in comment
11216         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11217         This merges all recent glibc changes of importance.
11218
11219 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11220
11221         move-if-change: cope with concurrent mv of identical file.
11222         * build-aux/move-if-change (CMPPROG): Accept environment
11223         variable as an override for `cmp'.
11224         (usage): Document CMPPROG.
11225         Adjust comparison to drop stdout.  Cope with failure of mv if
11226         the target file exists and is identical to the source, for
11227         parallel builds.
11228         Report from H.J. Lu against binutils in PR binutils/12283.
11229
11230 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11231
11232         * users.txt: Mention sharutils.
11233
11234 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11235
11236         * users.txt: Mention OATH Toolkit.
11237
11238 2011-01-27  Bruno Haible  <bruno@clisp.org>
11239
11240         Prepare for supporting FreeBSD 10.
11241         * build-aux/config.libpath: Remove handling of freebsd1*.
11242
11243 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11244
11245         Prepare for supporting FreeBSD 10.
11246         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11247         match FreeBSD 10.0.
11248
11249 2011-01-27  Bruno Haible  <bruno@clisp.org>
11250
11251         vma-iter, get-rusage-as: Add OpenBSD support.
11252         * modules/vma-iter (configure.ac): Test for mquery.
11253         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11254         * lib/vma-iter.c: Include <sys/mman.h>.
11255         (vma_iterate): Add an implementation based on mquery().
11256         * lib/resource-ext.h (get_rusage_as): Update comments.
11257         * lib/get-rusage-as.c: Likewise.
11258         * lib/get-rusage-data.c: Likewise.
11259
11260 2011-01-26  Karl Berry  <karl@gnu.org>
11261
11262         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11263         variables to make it easier to override the makeinfo program used.
11264
11265 2011-01-26  Eric Blake  <eblake@redhat.com>
11266
11267         fcntl: work around Haiku F_DUPFD bugs
11268         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11269         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11270         cloexec bit on duplication.
11271         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11272
11273 2011-01-26  Bruno Haible  <bruno@clisp.org>
11274
11275         Enable memory leak tests on AIX.
11276         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11277         * tests/test-fprintf-posix3.c (main): Likewise.
11278
11279 2011-01-26  Bruno Haible  <bruno@clisp.org>
11280
11281         Tests for module 'get-rusage-data'.
11282         * modules/get-rusage-data-tests: New file.
11283         * tests/test-get-rusage-data.c: New file.
11284
11285         New module 'get-rusage-data'.
11286         * lib/resource-ext.h (get_rusage_data): New declaration.
11287         * lib/get-rusage-data.c: New file.
11288         * modules/get-rusage-data: New file.
11289
11290 2011-01-25  Bruno Haible  <bruno@clisp.org>
11291
11292         get-rusage-as: Allow for easier testing.
11293         * lib/resource-ext.h (get_rusage_as): Add comment.
11294         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11295         (main): New function for interactive testing.
11296
11297 2011-01-25  Bruno Haible  <bruno@clisp.org>
11298
11299         vma-iter: Treat Haiku like BeOS.
11300         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11301         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11302
11303 2011-01-25  Eric Blake  <eblake@redhat.com>
11304
11305         c-stack: fix regression on cygwin when libsigsegv is present
11306         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11307
11308 2011-01-24  Bruno Haible  <bruno@clisp.org>
11309
11310         vma-iter: Avoid empty intervals.
11311         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11312         on an empty interval.
11313
11314 2011-01-24  Jim Meyering  <meyering@redhat.com>
11315
11316         u64: remove unnecessary #include
11317         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11318
11319 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11320
11321         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11322         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11323
11324 2011-01-23  Bruno Haible  <bruno@clisp.org>
11325
11326         New module 'vma-iter'.
11327         * lib/vma-iter.h: New file.
11328         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11329         * modules/vma-iter: New file.
11330         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11331         for get_rusage_as_via_iterator.
11332         (vma_iterate_callback): New function.
11333         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11334         * modules/get-rusage-as (Depends-on): Add vma-iter.
11335
11336 2011-01-23  Bruno Haible  <bruno@clisp.org>
11337
11338         uninorm: Tweak includes.
11339         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11340         Reported by Jim Meyering.
11341
11342 2011-01-23  Bruno Haible  <bruno@clisp.org>
11343
11344         get-rusage-as: Improve on NetBSD.
11345         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11346         /proc, like on FreeBSD.
11347
11348 2011-01-23  Jim Meyering  <meyering@redhat.com>
11349
11350         xreadlink.h: remove unnecessary #include
11351         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11352
11353         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11354         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11355
11356 2011-01-23  Bruno Haible  <bruno@clisp.org>
11357
11358         get-rusage-as: Fix bug.
11359         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11360         original limit when aborting the first loop.
11361
11362 2011-01-23  Bruno Haible  <bruno@clisp.org>
11363
11364         wctype: Ensure valid C syntax.
11365         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11366         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11367
11368 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11372         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11373         as they are needed only for configure's test case.
11374         This removes two unnecessary symbols from config.h.
11375
11376         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11377         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11379         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11380         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11381         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11382         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11383         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11384         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11385         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11386         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11389         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11390         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11391         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11392         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11393         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11394
11395 2011-01-21  Eric Blake  <eblake@redhat.com>
11396
11397         maintainer-makefile: work with older git for submodule check
11398         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11399         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11400         Reported by Matthias Bolte.
11401
11402         bootstrap: minor portability fixes
11403         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11404         (usage): Omit leading capital and trailing . on help phrases, per
11405         GNU Coding Standards.
11406         (check_versions, top level): Prefix messages with script name.
11407
11408 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11409
11410         bootstrap: support --no-git option
11411         * build-aux/bootstrap: Add --no-git option, to be used when
11412         --gnulib-srcdir points to the exact desired checkout.
11413
11414 2011-01-21  Eric Blake  <eblake@redhat.com>
11415
11416         strerror_r-posix: work with glibc 2.13
11417         * lib/strerror_r.c (strerror_r): Fix return type.
11418
11419 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11420             Bruno Haible  <bruno@clisp.org>
11421
11422         uN_strstr: New unit tests.
11423         * modules/unistr/u8-strstr-tests: New file.
11424         * modules/unistr/u16-strstr-tests: New file.
11425         * modules/unistr/u32-strstr-tests: New file.
11426         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11427         * tests/unistr/test-u8-strstr.c: New file.
11428         * tests/unistr/test-u16-strstr.c: New file.
11429         * tests/unistr/test-u32-strstr.c: New file.
11430
11431 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11432             Bruno Haible  <bruno@clisp.org>
11433
11434         Make uN_strstr functions O(n) worst-case.
11435         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11436         16-bit and 32-bit unit cases, use the unibyte algorithm from
11437         lib/mbsstr.c.
11438         * lib/unistr/u8-strstr.c: Include <string.h>.
11439         (UNIT_IS_UINT8_T): New macro.
11440         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11441         (U_STRLEN, U_STRNLEN): New macros.
11442         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11443         (U_STRLEN, U_STRNLEN): New macros.
11444         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11445         (configure.ac): Update required libunistring version.
11446         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11447         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11448         malloca.
11449         (configure.ac): Update required libunistring version.
11450         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11451         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11452         malloca.
11453         (configure.ac): Update required libunistring version.
11454
11455 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11456             Bruno Haible  <bruno@clisp.org>
11457
11458         Prepare for faster uN_strstr functions.
11459         * lib/str-kmp.h: Support definable UNITs.
11460         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11461         needle_len argument.
11462         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11463         * lib/mbscasestr.c (mbscasestr): Likewise.
11464
11465 2011-01-21  Pádraig Brady <P@draigBrady.com>
11466
11467         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11468         * tests/test-malloca.c (main): Unset the environment variable
11469         to greatly speed up the test.
11470         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11471         * modules/malloca-tests: Depend on unsetenv.
11472
11473 2011-01-21  Pádraig Brady <P@draigBrady.com>
11474
11475         ignore-value: remove stdint dependency
11476         * lib/ignore-value.h: Remove <stdint.h>
11477         * modules/ignore-value: Remove stdint dependency.
11478
11479 2011-01-21  Jim Meyering  <meyering@redhat.com>
11480
11481         maint.mk: adjust variable name to be consistent with other gl_ vars
11482         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11483         to be lower case.
11484
11485 2011-01-20  Jim Meyering  <meyering@redhat.com>
11486
11487         maint.mk: make "check" depend on public-submodule-commit by default
11488         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11489
11490 2011-01-20  Bruno Haible  <bruno@clisp.org>
11491
11492         mbfile, mbiter: Complete change from 2008-12-21.
11493         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11494         * m4/mbiter.m4 (gl_MBITER): Likewise.
11495
11496 2011-01-20  Jim Meyering  <meyering@redhat.com>
11497
11498         init.sh: insert space between each function name and "()"
11499         * tests/init.sh: Make it a little easier to see that a function's
11500         name is "warn_", and not "warn" when looking at the first part of
11501         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11502
11503 2011-01-20  Jim Meyering  <meyering@redhat.com>
11504
11505         mountlist: clean up code formatting
11506         * lib/mountlist.c (read_file_system_list): Split a long line,
11507         correct bracing style, use NULL in place of "(struct statfs *)0",
11508         don't parenthesize return value, add spaces around "=" and after
11509         ";-in-for-stmt".
11510
11511 2011-01-14  Markus Duft <mduft@gentoo.org>
11512
11513         mountlist: add support for Interix
11514         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11515         Apply statvfs to all entries of /dev/fs.
11516         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11517         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11518
11519 2011-01-20  Jim Meyering  <meyering@redhat.com>
11520
11521         maint.mk: improve the public-submodule-commit rule
11522         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11523         to suppress printing of its commands... unless V=1.
11524         Add git submodule's --quiet option to suppress printing of e.g.,
11525         "Entering gnulib" output.
11526         "cd" into $(srcdir) before running git submodule.
11527
11528 2011-01-20  Bruno Haible  <bruno@clisp.org>
11529
11530         include_next: Fix bug introduced on 2011-01-18.
11531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11532         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11533         ac_cv_header_... variable if the second argument is not 'check'.
11534         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11535         gl_NEXT_HEADERS_INTERNAL.
11536
11537 2011-01-20  Bruno Haible  <bruno@clisp.org>
11538
11539         Allow the user to avoid the GNULIB_TEST_* macros.
11540         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11541         Suggested by Paul Eggert.
11542
11543 2011-01-14  Jim Meyering  <meyering@redhat.com>
11544
11545         bootstrap: avoid failure when there is no .gitmodules file
11546         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11547         has been assigned to, even when its value is the empty string.
11548         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11549         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11550         Reported by John W. Eaton <jwe@gnu.org>.
11551
11552 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         assume <ctype.h>, ..., <time.h> exist
11555         For years gnulib has been assuming the existence of the headers
11556         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11557         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11558         them, since they don't appear to be needed.
11559         * README (Portability guidelines): Document this.
11560         * lib/flock.c: Assume <fcntl.h> exists.
11561         * lib/regex_internal.h: Assume <locale.h> exists.
11562         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11563         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11564         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11565         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11566         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11567         * m4/regex.m4 (gl_REGEX): Likewise.
11568         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11569         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11570         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11571         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11572         * tests/test-argp.c: Likewise.
11573         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11574
11575         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11576         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11577         AA_APPLE_UNIVERSAL_BUILD.  See
11578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11579         * NEWS: Document this.
11580
11581 2011-01-19  Eric Blake  <eblake@redhat.com>
11582
11583         c-stack: assume stack overflow if SA_SIGINFO unsupported
11584         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11585         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11586         sigaction will work.
11587         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11588         behavior match Linux.
11589         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11590
11591         stdbool-tests: accomodate Haiku
11592         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11593
11594         binary-io: fix O_TEXT on Haiku
11595         * modules/binary-io (Depends-on): Add fcntl-h.
11596         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11597         than blindly undefining O_TEXT.
11598         Reported by Scott McCreary.
11599
11600 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11601
11602         include_next: do not check for standard headers like stddef.h
11603
11604         I found this problem when modifying Emacs to use gnulib.
11605         I noticed that it added HAVE_STDDEF_H to config.h, even though
11606         gnulib always assumes <stddef.h> exists as per README and this
11607         symbol is unnecessary.
11608         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11609         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11610         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11611         faster for headers like stddef.h that are known to exist.
11612         (gl_CHECK_NEXT_HEADERS): Use it.
11613         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11614         rather than gl_CHECK_NEXT_HEADERS.
11615         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11616         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11617
11618 2011-01-18  Eric Blake  <eblake@redhat.com>
11619
11620         ansi-c++-opt: skip C++ dependency style if C++ is unused
11621         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11622         tests when we know C++ compilation is not desired.
11623         Reported by Scott McCreary.
11624
11625 2011-01-18  Bruno Haible  <bruno@clisp.org>
11626
11627         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11628         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11629         (main): Perform test also when getrlimit and setrlimit don't exist or
11630         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11631         limiting the address space size using setrlimit, compare the address
11632         space size before and after the the test.
11633         * tests/test-dprintf-posix2.c: Likewise.
11634         * tests/test-fprintf-posix3.sh: Update skip messages.
11635         * tests/test-dprintf-posix2.sh: Likewise.
11636         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11637         * modules/dprintf-posix-tests (Depends-on): Likewise.
11638         Reported by Bruce Korb <bkorb@gnu.org> and
11639         Gary V. Vaughan <gary@gnu.org>.
11640
11641 2011-01-18  Bruno Haible  <bruno@clisp.org>
11642
11643         get-rusage-as: Improvement for Cygwin.
11644         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11645         areas that are merely reserved.
11646
11647 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11648
11649         strftime: remove dependencies on multibyte modules
11650
11651         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11652         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11653         only if __osf__ is defined, and I suspect OSF doesn't need these
11654         other modules.  If my guess is wrong, we'll need to come up with a
11655         variant of strftime that doesn't need the multibyte modules.
11656
11657         I discovered this problem when attempting modify Emacs to use the
11658         strftime module.  With the previous gnulib, this caused Emacs to
11659         need 31 new files, ranging from lib/config.charset to
11660         m4/wint_t.m4.  This was overkill and I expect would be offputting
11661         to the Emacs maintainers.  After this change, only 6 new files are
11662         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11663         stdbool.m4, and tm_gmtoff.m4.
11664
11665         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11666         Suggested by Bruno Haible in
11667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11669         and do not check for wchar.h.
11670         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11671         (Depends-on): Remove mbrlen, mbsinit, wchar.
11672
11673 2011-01-18  Bruno Haible  <bruno@clisp.org>
11674
11675         Tests for module 'get-rusage-as'.
11676         * modules/get-rusage-as-tests: New file.
11677         * tests/test-get-rusage-as.c: New file.
11678
11679         New module 'get-rusage-as'.
11680         * modules/get-rusage-as: New file.
11681         * lib/resource-ext.h: New file.
11682         * lib/get-rusage-as.c: New file.
11683
11684 2011-01-17  Eric Blake  <eblake@redhat.com>
11685
11686         sigaction: relax license from LGPLv3+ to LGPLv2+
11687         * modules/sigaction (License): Relax to LGPLv2+.
11688
11689 2011-01-14  Bruno Haible  <bruno@clisp.org>
11690
11691         filemode: Make function declarations usable in C++ mode.
11692         * lib/filemode.h: Enclose function declarations in extern "C" block.
11693         Reported by John W. Eaton <jwe@gnu.org>.
11694
11695 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11696
11697         save-cwd: no longer include "xgetcwd.h"
11698         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11699         This avoids a compilation failure in projects that use save-cwd
11700         without also using the xgetcwd module.
11701
11702 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11703
11704         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11705         This is so that a program like Emacs, which needs only dtoastr,
11706         does not have to bother with distributing and compiling ftoastr
11707         and ldtoastr.
11708         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11709         * modules/dtoastr, modules/ldtoastr: New files.
11710         * modules/ftoastr: Now works just for 'float'.
11711         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11712         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11713         dtoastr.c, ldtoastr.c.
11714
11715 2011-01-11  Jim Meyering  <meyering@redhat.com>
11716
11717         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11718         There is no need to work around the lack of the fchdir function,
11719         since gnulib can now provide a replacement when required.
11720         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11721         * modules/save-cwd (Depends-on): Add fchdir.
11722
11723 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11724
11725         openat, save-cwd: avoid xmalloc
11726
11727         This removes a direct (but undocumented) dependency of openat on
11728         xalloc, along with an indirect dependency via save-cwd.  It also
11729         removes a dependency of save-cwd on xgetcwd, and thereby
11730         indirectly on xalloc.  This change causes the openat substitute
11731         to fall back on save_cwd when memory is tight, and for save_cwd to
11732         fail instead of dying when memory is tight, but that's good enough.
11733         Problem and initial idea for fix reported by Bastien Roucaries in
11734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11735
11736         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11737         xalloc.h (for xmalloc).
11738         (openat_proc_name): Use malloc, not xmalloc.
11739         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11740         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11741
11742         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11743         This avoids heap allocation for file names whose lengths are in
11744         the range 512..1023, with the upper bound increasing to at most
11745         4031 depending on the platform's PATH_MAX.  (We do not want
11746         pathmax.h here as it might supply a non-constant PATH_MAX.)
11747         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11748         Perhaps they should be moved to malloca.h?
11749         (OPENAT_BUFFER_SIZE): Use them.
11750
11751 2011-01-10  Bruno Haible  <bruno@clisp.org>
11752
11753         doc: Update users.txt.
11754         * users.txt: Add recutils.
11755
11756 2011-01-09  Karl Berry  <karl@gnu.org>
11757
11758         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11759
11760         * doc/configmake.texi: New file.
11761         * doc/gnulib.texi: Include it.
11762         * modules/configmake: Move documentation from here.
11763
11764 2011-01-09  Bruno Haible  <bruno@clisp.org>
11765
11766         Update to Unicode 6.0.0.
11767         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11768         (get_lbp): Update for Unicode 6.0.0.
11769         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11770         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11771         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11772         U+11001, U+11038..U+11046. Remove U+06DE.
11773         (uc_width): Fix bounds of planes.
11774         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11775         lib/uniwidth/width.c.
11776         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11777         trailing whitespace removed.
11778         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11779         without comments, but with the original copyright notice.
11780         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11781         * lib/unicase/ignorable.h: Likewise.
11782         * lib/unicase/tocasefold.h: Likewise.
11783         * lib/unicase/tolower.h: Likewise.
11784         * lib/unicase/totitle.h: Likewise.
11785         * lib/unicase/toupper.h: Likewise.
11786         * lib/unictype/bidi_of.h: Likewise.
11787         * lib/unictype/blocks.h: Likewise.
11788         * lib/unictype/categ_C.h: Likewise.
11789         * lib/unictype/categ_Cn.h: Likewise.
11790         * lib/unictype/categ_L.h: Likewise.
11791         * lib/unictype/categ_Ll.h: Likewise.
11792         * lib/unictype/categ_Lm.h: Likewise.
11793         * lib/unictype/categ_Lo.h: Likewise.
11794         * lib/unictype/categ_Lu.h: Likewise.
11795         * lib/unictype/categ_M.h: Likewise.
11796         * lib/unictype/categ_Mc.h: Likewise.
11797         * lib/unictype/categ_Me.h: Likewise.
11798         * lib/unictype/categ_Mn.h: Likewise.
11799         * lib/unictype/categ_N.h: Likewise.
11800         * lib/unictype/categ_Nd.h: Likewise.
11801         * lib/unictype/categ_No.h: Likewise.
11802         * lib/unictype/categ_P.h: Likewise.
11803         * lib/unictype/categ_Po.h: Likewise.
11804         * lib/unictype/categ_S.h: Likewise.
11805         * lib/unictype/categ_Sc.h: Likewise.
11806         * lib/unictype/categ_Sk.h: Likewise.
11807         * lib/unictype/categ_Sm.h: Likewise.
11808         * lib/unictype/categ_So.h: Likewise.
11809         * lib/unictype/categ_of.h: Likewise.
11810         * lib/unictype/combining.h: Likewise.
11811         * lib/unictype/ctype_alnum.h: Likewise.
11812         * lib/unictype/ctype_alpha.h: Likewise.
11813         * lib/unictype/ctype_graph.h: Likewise.
11814         * lib/unictype/ctype_lower.h: Likewise.
11815         * lib/unictype/ctype_print.h: Likewise.
11816         * lib/unictype/ctype_punct.h: Likewise.
11817         * lib/unictype/ctype_upper.h: Likewise.
11818         * lib/unictype/decdigit.h: Likewise.
11819         * lib/unictype/digit.h: Likewise.
11820         * lib/unictype/numeric.h: Likewise.
11821         * lib/unictype/pr_alphabetic.h: Likewise.
11822         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11823         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11824         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11825         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11826         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11827         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11828         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11829         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11830         * lib/unictype/pr_case_ignorable.h: Likewise.
11831         * lib/unictype/pr_cased.h: Likewise.
11832         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11833         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11834         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11835         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11836         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11837         * lib/unictype/pr_combining.h: Likewise.
11838         * lib/unictype/pr_composite.h: Likewise.
11839         * lib/unictype/pr_currency_symbol.h: Likewise.
11840         * lib/unictype/pr_decimal_digit.h: Likewise.
11841         * lib/unictype/pr_deprecated.h: Likewise.
11842         * lib/unictype/pr_format_control.h: Likewise.
11843         * lib/unictype/pr_grapheme_base.h: Likewise.
11844         * lib/unictype/pr_grapheme_extend.h: Likewise.
11845         * lib/unictype/pr_grapheme_link.h: Likewise.
11846         * lib/unictype/pr_id_continue.h: Likewise.
11847         * lib/unictype/pr_id_start.h: Likewise.
11848         * lib/unictype/pr_ideographic.h: Likewise.
11849         * lib/unictype/pr_lowercase.h: Likewise.
11850         * lib/unictype/pr_math.h: Likewise.
11851         * lib/unictype/pr_numeric.h: Likewise.
11852         * lib/unictype/pr_other_alphabetic.h: Likewise.
11853         * lib/unictype/pr_other_id_continue.h: Likewise.
11854         * lib/unictype/pr_other_math.h: Likewise.
11855         * lib/unictype/pr_punctuation.h: Likewise.
11856         * lib/unictype/pr_sentence_terminal.h: Likewise.
11857         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11858         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11859         * lib/unictype/pr_unified_ideograph.h: Likewise.
11860         * lib/unictype/pr_uppercase.h: Likewise.
11861         * lib/unictype/pr_xid_continue.h: Likewise.
11862         * lib/unictype/pr_xid_start.h: Likewise.
11863         * lib/unictype/scripts.h: Likewise.
11864         * lib/unictype/scripts_byname.gperf: Likewise.
11865         * lib/unictype/sy_java_ident.h: Likewise.
11866         * lib/unigbrk/gbrkprop.h: Likewise.
11867         * lib/unilbrk/lbrkprop1.h: Likewise.
11868         * lib/unilbrk/lbrkprop2.h: Likewise.
11869         * lib/uninorm/decomposition-table2.h: Likewise.
11870         * lib/uniwbrk/wbrkprop.h: Likewise.
11871         * tests/unicase/test-cased.c: Likewise.
11872         * tests/unicase/test-ignorable.c: Likewise.
11873         * tests/unicase/test-uc_tolower.c: Likewise.
11874         * tests/unicase/test-uc_totitle.c: Likewise.
11875         * tests/unicase/test-uc_toupper.c: Likewise.
11876         * tests/unictype/test-categ_C.c: Likewise.
11877         * tests/unictype/test-categ_Cn.c: Likewise.
11878         * tests/unictype/test-categ_L.c: Likewise.
11879         * tests/unictype/test-categ_Ll.c: Likewise.
11880         * tests/unictype/test-categ_Lm.c: Likewise.
11881         * tests/unictype/test-categ_Lo.c: Likewise.
11882         * tests/unictype/test-categ_Lu.c: Likewise.
11883         * tests/unictype/test-categ_M.c: Likewise.
11884         * tests/unictype/test-categ_Mc.c: Likewise.
11885         * tests/unictype/test-categ_Me.c: Likewise.
11886         * tests/unictype/test-categ_Mn.c: Likewise.
11887         * tests/unictype/test-categ_N.c: Likewise.
11888         * tests/unictype/test-categ_Nd.c: Likewise.
11889         * tests/unictype/test-categ_No.c: Likewise.
11890         * tests/unictype/test-categ_P.c: Likewise.
11891         * tests/unictype/test-categ_Po.c: Likewise.
11892         * tests/unictype/test-categ_S.c: Likewise.
11893         * tests/unictype/test-categ_Sc.c: Likewise.
11894         * tests/unictype/test-categ_Sk.c: Likewise.
11895         * tests/unictype/test-categ_Sm.c: Likewise.
11896         * tests/unictype/test-categ_So.c: Likewise.
11897         * tests/unictype/test-ctype_alnum.c: Likewise.
11898         * tests/unictype/test-ctype_alpha.c: Likewise.
11899         * tests/unictype/test-ctype_graph.c: Likewise.
11900         * tests/unictype/test-ctype_lower.c: Likewise.
11901         * tests/unictype/test-ctype_print.c: Likewise.
11902         * tests/unictype/test-ctype_punct.c: Likewise.
11903         * tests/unictype/test-ctype_upper.c: Likewise.
11904         * tests/unictype/test-decdigit.h: Likewise.
11905         * tests/unictype/test-digit.h: Likewise.
11906         * tests/unictype/test-numeric.h: Likewise.
11907         * tests/unictype/test-pr_alphabetic.c: Likewise.
11908         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11909         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11910         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11911         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11912         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11913         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11914         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11915         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11916         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11917         * tests/unictype/test-pr_cased.c: Likewise.
11918         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11919         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11920         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11921         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11922         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11923         * tests/unictype/test-pr_combining.c: Likewise.
11924         * tests/unictype/test-pr_composite.c: Likewise.
11925         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11926         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11927         * tests/unictype/test-pr_deprecated.c: Likewise.
11928         * tests/unictype/test-pr_format_control.c: Likewise.
11929         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11930         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11931         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11932         * tests/unictype/test-pr_id_continue.c: Likewise.
11933         * tests/unictype/test-pr_id_start.c: Likewise.
11934         * tests/unictype/test-pr_ideographic.c: Likewise.
11935         * tests/unictype/test-pr_lowercase.c: Likewise.
11936         * tests/unictype/test-pr_math.c: Likewise.
11937         * tests/unictype/test-pr_numeric.c: Likewise.
11938         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11939         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11940         * tests/unictype/test-pr_other_math.c: Likewise.
11941         * tests/unictype/test-pr_punctuation.c: Likewise.
11942         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11943         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11944         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11945         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11946         * tests/unictype/test-pr_uppercase.c: Likewise.
11947         * tests/unictype/test-pr_xid_continue.c: Likewise.
11948         * tests/unictype/test-pr_xid_start.c: Likewise.
11949         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11950         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11951         changes.
11952         * lib/unictype/categ_Cc.h: Likewise.
11953         * lib/unictype/categ_Cf.h: Likewise.
11954         * lib/unictype/categ_Co.h: Likewise.
11955         * lib/unictype/categ_Cs.h: Likewise.
11956         * lib/unictype/categ_Lt.h: Likewise.
11957         * lib/unictype/categ_Nl.h: Likewise.
11958         * lib/unictype/categ_Pc.h: Likewise.
11959         * lib/unictype/categ_Pd.h: Likewise.
11960         * lib/unictype/categ_Pe.h: Likewise.
11961         * lib/unictype/categ_Pf.h: Likewise.
11962         * lib/unictype/categ_Pi.h: Likewise.
11963         * lib/unictype/categ_Ps.h: Likewise.
11964         * lib/unictype/categ_Z.h: Likewise.
11965         * lib/unictype/categ_Zl.h: Likewise.
11966         * lib/unictype/categ_Zp.h: Likewise.
11967         * lib/unictype/categ_Zs.h: Likewise.
11968         * lib/unictype/ctype_blank.h: Likewise.
11969         * lib/unictype/ctype_cntrl.h: Likewise.
11970         * lib/unictype/ctype_digit.h: Likewise.
11971         * lib/unictype/ctype_space.h: Likewise.
11972         * lib/unictype/ctype_xdigit.h: Likewise.
11973         * lib/unictype/mirror.h: Likewise.
11974         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11975         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11976         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11977         * lib/unictype/pr_bidi_control.h: Likewise.
11978         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11979         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11980         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11981         * lib/unictype/pr_bidi_pdf.h: Likewise.
11982         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11983         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11984         * lib/unictype/pr_dash.h: Likewise.
11985         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11986         * lib/unictype/pr_diacritic.h: Likewise.
11987         * lib/unictype/pr_extender.h: Likewise.
11988         * lib/unictype/pr_hex_digit.h: Likewise.
11989         * lib/unictype/pr_hyphen.h: Likewise.
11990         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11991         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11992         * lib/unictype/pr_ignorable_control.h: Likewise.
11993         * lib/unictype/pr_iso_control.h: Likewise.
11994         * lib/unictype/pr_join_control.h: Likewise.
11995         * lib/unictype/pr_left_of_pair.h: Likewise.
11996         * lib/unictype/pr_line_separator.h: Likewise.
11997         * lib/unictype/pr_logical_order_exception.h: Likewise.
11998         * lib/unictype/pr_non_break.h: Likewise.
11999         * lib/unictype/pr_not_a_character.h: Likewise.
12000         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12001         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12002         * lib/unictype/pr_other_id_start.h: Likewise.
12003         * lib/unictype/pr_other_lowercase.h: Likewise.
12004         * lib/unictype/pr_other_uppercase.h: Likewise.
12005         * lib/unictype/pr_paired_punctuation.h: Likewise.
12006         * lib/unictype/pr_paragraph_separator.h: Likewise.
12007         * lib/unictype/pr_pattern_syntax.h: Likewise.
12008         * lib/unictype/pr_pattern_white_space.h: Likewise.
12009         * lib/unictype/pr_private_use.h: Likewise.
12010         * lib/unictype/pr_quotation_mark.h: Likewise.
12011         * lib/unictype/pr_radical.h: Likewise.
12012         * lib/unictype/pr_soft_dotted.h: Likewise.
12013         * lib/unictype/pr_space.h: Likewise.
12014         * lib/unictype/pr_titlecase.h: Likewise.
12015         * lib/unictype/pr_variation_selector.h: Likewise.
12016         * lib/unictype/pr_white_space.h: Likewise.
12017         * lib/unictype/pr_zero_width.h: Likewise.
12018         * lib/unictype/sy_c_ident.h: Likewise.
12019         * lib/unictype/sy_c_whitespace.h: Likewise.
12020         * lib/unictype/sy_java_whitespace.h: Likewise.
12021         * lib/uninorm/composition-table.gperf: Likewise.
12022         * lib/uninorm/decomposition-table1.h: Likewise.
12023         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12024         LB8.
12025         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12026         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12027         * modules/unictype/*: Bump version number of expected libunistring
12028         version.
12029
12030 2011-01-09  Bruno Haible  <bruno@clisp.org>
12031
12032         Update to Unicode 5.2.0.
12033         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12034         trailing whitespace removed.
12035
12036 2011-01-09  Bruno Haible  <bruno@clisp.org>
12037
12038         New Unicode character properties, from Unicode 5.2.0.
12039         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12040         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12041         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12042         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12043         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12044         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12045         uc_is_property_cased, uc_is_property_case_ignorable,
12046         uc_is_property_changes_when_lowercased,
12047         uc_is_property_changes_when_uppercased,
12048         uc_is_property_changes_when_titlecased,
12049         uc_is_property_changes_when_casefolded,
12050         uc_is_property_changes_when_casemapped): New declarations.
12051         * lib/unictype/pr_byname.gperf: Add the new properties.
12052         * modules/unictype/property-byname (Depends-on): Depend on the new
12053         properties modules.
12054         * modules/unictype/property-all (Depends-on): Likewise.
12055         * MODULES.html.sh (Unicode string functions): Add
12056         unictype/property-case-ignorable, unictype/property-cased,
12057         unictype/property-changes-when-casefolded,
12058         unictype/property-changes-when-casemapped,
12059         unictype/property-changes-when-lowercased,
12060         unictype/property-changes-when-titlecased,
12061         unictype/property-changes-when-uppercased.
12062
12063         New module 'unictype/property-changes-when-casemapped'.
12064         * modules/unictype/property-changes-when-casemapped: New file.
12065         * lib/unictype/pr_changes_when_casemapped.c: New file.
12066         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12067         generated by gen-uni-tables.
12068         * modules/unictype/property-changes-when-casemapped-tests: New file.
12069         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12070         automatically generated by gen-uni-tables.
12071
12072         New module 'unictype/property-changes-when-casefolded'.
12073         * modules/unictype/property-changes-when-casefolded: New file.
12074         * lib/unictype/pr_changes_when_casefolded.c: New file.
12075         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12076         generated by gen-uni-tables.
12077         * modules/unictype/property-changes-when-casefolded-tests: New file.
12078         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12079         automatically generated by gen-uni-tables.
12080
12081         New module 'unictype/property-changes-when-titlecased'.
12082         * modules/unictype/property-changes-when-titlecased: New file.
12083         * lib/unictype/pr_changes_when_titlecased.c: New file.
12084         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12085         generated by gen-uni-tables.
12086         * modules/unictype/property-changes-when-titlecased-tests: New file.
12087         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12088         automatically generated by gen-uni-tables.
12089
12090         New module 'unictype/property-changes-when-uppercased'.
12091         * modules/unictype/property-changes-when-uppercased: New file.
12092         * lib/unictype/pr_changes_when_uppercased.c: New file.
12093         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12094         generated by gen-uni-tables.
12095         * modules/unictype/property-changes-when-uppercased-tests: New file.
12096         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12097         automatically generated by gen-uni-tables.
12098
12099         New module 'unictype/property-changes-when-lowercased'.
12100         * modules/unictype/property-changes-when-lowercased: New file.
12101         * lib/unictype/pr_changes_when_lowercased.c: New file.
12102         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12103         generated by gen-uni-tables.
12104         * modules/unictype/property-changes-when-lowercased-tests: New file.
12105         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12106         automatically generated by gen-uni-tables.
12107
12108         New module 'unictype/property-case-ignorable'.
12109         * modules/unictype/property-case-ignorable: New file.
12110         * lib/unictype/pr_case_ignorable.c: New file.
12111         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12112         by gen-uni-tables.
12113         * modules/unictype/property-case-ignorable-tests: New file.
12114         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12115         generated by gen-uni-tables.
12116
12117         New module 'unictype/property-cased'.
12118         * modules/unictype/property-cased: New file.
12119         * lib/unictype/pr_cased.c: New file.
12120         * lib/unictype/pr_cased.h: New file, automatically generated by
12121         gen-uni-tables.
12122         * modules/unictype/property-cased-tests: New file.
12123         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12124         gen-uni-tables.
12125
12126 2011-01-09  Bruno Haible  <bruno@clisp.org>
12127
12128         Update to Unicode 5.2.0.
12129         * lib/gen-uni-tables.c (output_predicate, output_category,
12130         output_combclass, output_bidi_category, output_decimal_digit_test,
12131         output_decimal_digit, output_digit_test, output_digit,
12132         output_numeric_test, output_numeric, output_mirror, output_scripts,
12133         output_scripts_byname, output_blocks, output_ident_category): Fix
12134         comment header.
12135         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12136         get_wbp.
12137         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12138         items.
12139         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12140         Changes_When_Lowercased, Changes_When_Uppercased,
12141         Changes_When_Titlecased, Changes_When_Casefolded,
12142         Changes_When_Casemapped.
12143         (is_property_alphabetic, is_property_default_ignorable_code_point):
12144         Update for Unicode 5.2.0.
12145         (is_property_cased, is_property_case_ignorable,
12146         is_property_changes_when_lowercased,
12147         is_property_changes_when_uppercased,
12148         is_property_changes_when_titlecased,
12149         is_property_changes_when_casefolded,
12150         is_property_changes_when_casemapped): New functions.
12151         (output_properties): Output also the properties cased, case_ignorable,
12152         changes_when_lowercased, changes_when_uppercased,
12153         changes_when_titlecased, changes_when_casefolded,
12154         changes_when_casemapped.
12155         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12156         Unicode TR#11 revision 17 -> 19.
12157         (LBP_CP): New enumeration value.
12158         (LBP_*): Adjust values accordingly.
12159         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12160         TR#14 revision 22 -> 24.
12161         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12162         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12163         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12164         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12165         is_WBP_MIDLETTER.
12166         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12167         the code1 and code2 of each composition rule.
12168         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12169         * lib/unicase/ignorable.h: Likewise.
12170         * lib/unicase/tocasefold.h: Likewise.
12171         * lib/unicase/tolower.h: Likewise.
12172         * lib/unicase/totitle.h: Likewise.
12173         * lib/unicase/toupper.h: Likewise.
12174         * lib/unictype/bidi_of.h: Likewise.
12175         * lib/unictype/blocks.h: Likewise.
12176         * lib/unictype/categ_C.h: Likewise.
12177         * lib/unictype/categ_Cf.h: Likewise.
12178         * lib/unictype/categ_Cn.h: Likewise.
12179         * lib/unictype/categ_L.h: Likewise.
12180         * lib/unictype/categ_Ll.h: Likewise.
12181         * lib/unictype/categ_Lm.h: Likewise.
12182         * lib/unictype/categ_Lo.h: Likewise.
12183         * lib/unictype/categ_Lu.h: Likewise.
12184         * lib/unictype/categ_M.h: Likewise.
12185         * lib/unictype/categ_Mc.h: Likewise.
12186         * lib/unictype/categ_Mn.h: Likewise.
12187         * lib/unictype/categ_N.h: Likewise.
12188         * lib/unictype/categ_Nd.h: Likewise.
12189         * lib/unictype/categ_Nl.h: Likewise.
12190         * lib/unictype/categ_No.h: Likewise.
12191         * lib/unictype/categ_P.h: Likewise.
12192         * lib/unictype/categ_Pd.h: Likewise.
12193         * lib/unictype/categ_Po.h: Likewise.
12194         * lib/unictype/categ_S.h: Likewise.
12195         * lib/unictype/categ_Sc.h: Likewise.
12196         * lib/unictype/categ_So.h: Likewise.
12197         * lib/unictype/categ_of.h: Likewise.
12198         * lib/unictype/combining.h: Likewise.
12199         * lib/unictype/ctype_alnum.h: Likewise.
12200         * lib/unictype/ctype_alpha.h: Likewise.
12201         * lib/unictype/ctype_graph.h: Likewise.
12202         * lib/unictype/ctype_lower.h: Likewise.
12203         * lib/unictype/ctype_print.h: Likewise.
12204         * lib/unictype/ctype_punct.h: Likewise.
12205         * lib/unictype/ctype_upper.h: Likewise.
12206         * lib/unictype/decdigit.h: Likewise.
12207         * lib/unictype/digit.h: Likewise.
12208         * lib/unictype/numeric.h: Likewise.
12209         * lib/unictype/pr_alphabetic.h: Likewise.
12210         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12211         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12212         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12213         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12214         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12215         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12216         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12217         * lib/unictype/pr_combining.h: Likewise.
12218         * lib/unictype/pr_composite.h: Likewise.
12219         * lib/unictype/pr_currency_symbol.h: Likewise.
12220         * lib/unictype/pr_dash.h: Likewise.
12221         * lib/unictype/pr_decimal_digit.h: Likewise.
12222         * lib/unictype/pr_deprecated.h: Likewise.
12223         * lib/unictype/pr_diacritic.h: Likewise.
12224         * lib/unictype/pr_extender.h: Likewise.
12225         * lib/unictype/pr_grapheme_base.h: Likewise.
12226         * lib/unictype/pr_grapheme_extend.h: Likewise.
12227         * lib/unictype/pr_grapheme_link.h: Likewise.
12228         * lib/unictype/pr_id_continue.h: Likewise.
12229         * lib/unictype/pr_id_start.h: Likewise.
12230         * lib/unictype/pr_ideographic.h: Likewise.
12231         * lib/unictype/pr_ignorable_control.h: Likewise.
12232         * lib/unictype/pr_logical_order_exception.h: Likewise.
12233         * lib/unictype/pr_lowercase.h: Likewise.
12234         * lib/unictype/pr_numeric.h: Likewise.
12235         * lib/unictype/pr_other_alphabetic.h: Likewise.
12236         * lib/unictype/pr_punctuation.h: Likewise.
12237         * lib/unictype/pr_sentence_terminal.h: Likewise.
12238         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12239         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12240         * lib/unictype/pr_unified_ideograph.h: Likewise.
12241         * lib/unictype/pr_uppercase.h: Likewise.
12242         * lib/unictype/pr_xid_continue.h: Likewise.
12243         * lib/unictype/pr_xid_start.h: Likewise.
12244         * lib/unictype/pr_zero_width.h: Likewise.
12245         * lib/unictype/scripts.h: Likewise.
12246         * lib/unictype/scripts_byname.gperf: Likewise.
12247         * lib/unictype/sy_java_ident.h: Likewise.
12248         * lib/unigbrk/gbrkprop.h: Likewise.
12249         * lib/unilbrk/lbrkprop1.h: Likewise.
12250         * lib/unilbrk/lbrkprop2.h: Likewise.
12251         * lib/unilbrk/lbrktables.h: Likewise.
12252         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12253         LBP_CP. Implement rule LB30.
12254         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12255         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12256         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12257         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12258         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12259         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12260         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12261         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12262         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12263         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12264         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12265         bits instead of 16 bits in the code1 and code2 of each composition
12266         rule.
12267         (uc_composition): Update for Unicode 5.2.0.
12268         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12269         * lib/uninorm/decomposition-table2.h: Likewise.
12270         * lib/uniwbrk/wbrkprop.h: Likewise.
12271         * tests/unicase/test-cased.c: Likewise.
12272         * tests/unicase/test-ignorable.c: Likewise.
12273         * tests/unicase/test-uc_tolower.c: Likewise.
12274         * tests/unicase/test-uc_totitle.c: Likewise.
12275         * tests/unicase/test-uc_toupper.c: Likewise.
12276         * tests/unictype/test-categ_C.c: Likewise.
12277         * tests/unictype/test-categ_Cf.c: Likewise.
12278         * tests/unictype/test-categ_Cn.c: Likewise.
12279         * tests/unictype/test-categ_L.c: Likewise.
12280         * tests/unictype/test-categ_Ll.c: Likewise.
12281         * tests/unictype/test-categ_Lm.c: Likewise.
12282         * tests/unictype/test-categ_Lo.c: Likewise.
12283         * tests/unictype/test-categ_Lu.c: Likewise.
12284         * tests/unictype/test-categ_M.c: Likewise.
12285         * tests/unictype/test-categ_Mc.c: Likewise.
12286         * tests/unictype/test-categ_Mn.c: Likewise.
12287         * tests/unictype/test-categ_N.c: Likewise.
12288         * tests/unictype/test-categ_Nd.c: Likewise.
12289         * tests/unictype/test-categ_Nl.c: Likewise.
12290         * tests/unictype/test-categ_No.c: Likewise.
12291         * tests/unictype/test-categ_P.c: Likewise.
12292         * tests/unictype/test-categ_Pd.c: Likewise.
12293         * tests/unictype/test-categ_Po.c: Likewise.
12294         * tests/unictype/test-categ_S.c: Likewise.
12295         * tests/unictype/test-categ_Sc.c: Likewise.
12296         * tests/unictype/test-categ_So.c: Likewise.
12297         * tests/unictype/test-ctype_alnum.c: Likewise.
12298         * tests/unictype/test-ctype_alpha.c: Likewise.
12299         * tests/unictype/test-ctype_graph.c: Likewise.
12300         * tests/unictype/test-ctype_lower.c: Likewise.
12301         * tests/unictype/test-ctype_print.c: Likewise.
12302         * tests/unictype/test-ctype_punct.c: Likewise.
12303         * tests/unictype/test-ctype_upper.c: Likewise.
12304         * tests/unictype/test-decdigit.h: Likewise.
12305         * tests/unictype/test-digit.h: Likewise.
12306         * tests/unictype/test-numeric.h: Likewise.
12307         * tests/unictype/test-pr_alphabetic.c: Likewise.
12308         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12309         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12310         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12311         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12312         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12313         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12314         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12315         * tests/unictype/test-pr_combining.c: Likewise.
12316         * tests/unictype/test-pr_composite.c: Likewise.
12317         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12318         * tests/unictype/test-pr_dash.c: Likewise.
12319         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12320         * tests/unictype/test-pr_deprecated.c: Likewise.
12321         * tests/unictype/test-pr_diacritic.c: Likewise.
12322         * tests/unictype/test-pr_extender.c: Likewise.
12323         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12324         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12325         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12326         * tests/unictype/test-pr_id_continue.c: Likewise.
12327         * tests/unictype/test-pr_id_start.c: Likewise.
12328         * tests/unictype/test-pr_ideographic.c: Likewise.
12329         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12330         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12331         * tests/unictype/test-pr_lowercase.c: Likewise.
12332         * tests/unictype/test-pr_numeric.c: Likewise.
12333         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12334         * tests/unictype/test-pr_punctuation.c: Likewise.
12335         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12336         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12337         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12338         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12339         * tests/unictype/test-pr_uppercase.c: Likewise.
12340         * tests/unictype/test-pr_xid_continue.c: Likewise.
12341         * tests/unictype/test-pr_xid_start.c: Likewise.
12342         * tests/unictype/test-pr_zero_width.c: Likewise.
12343         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12344         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12345         changed behaviour: line breaking is now disallowed between a letter
12346         or '=' and '('.
12347         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12348         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12349         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12350         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12351         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12352         lib/uniwidth/width.c.
12353         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12354         without comments, but with the original copyright notice.
12355         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12356         changes.
12357         * lib/unictype/categ_Cc.h: Likewise.
12358         * lib/unictype/categ_Co.h: Likewise.
12359         * lib/unictype/categ_Cs.h: Likewise.
12360         * lib/unictype/categ_Lt.h: Likewise.
12361         * lib/unictype/categ_Me.h: Likewise.
12362         * lib/unictype/categ_Pc.h: Likewise.
12363         * lib/unictype/categ_Pe.h: Likewise.
12364         * lib/unictype/categ_Pf.h: Likewise.
12365         * lib/unictype/categ_Pi.h: Likewise.
12366         * lib/unictype/categ_Ps.h: Likewise.
12367         * lib/unictype/categ_Sk.h: Likewise.
12368         * lib/unictype/categ_Sm.h: Likewise.
12369         * lib/unictype/categ_Z.h: Likewise.
12370         * lib/unictype/categ_Zl.h: Likewise.
12371         * lib/unictype/categ_Zp.h: Likewise.
12372         * lib/unictype/categ_Zs.h: Likewise.
12373         * lib/unictype/ctype_blank.h: Likewise.
12374         * lib/unictype/ctype_cntrl.h: Likewise.
12375         * lib/unictype/ctype_digit.h: Likewise.
12376         * lib/unictype/ctype_space.h: Likewise.
12377         * lib/unictype/ctype_xdigit.h: Likewise.
12378         * lib/unictype/mirror.h: Likewise.
12379         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12380         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12381         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12382         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12383         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12384         * lib/unictype/pr_bidi_control.h: Likewise.
12385         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12386         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12387         * lib/unictype/pr_bidi_pdf.h: Likewise.
12388         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12389         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12390         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12391         * lib/unictype/pr_format_control.h: Likewise.
12392         * lib/unictype/pr_hex_digit.h: Likewise.
12393         * lib/unictype/pr_hyphen.h: Likewise.
12394         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12395         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12396         * lib/unictype/pr_iso_control.h: Likewise.
12397         * lib/unictype/pr_join_control.h: Likewise.
12398         * lib/unictype/pr_left_of_pair.h: Likewise.
12399         * lib/unictype/pr_line_separator.h: Likewise.
12400         * lib/unictype/pr_math.h: Likewise.
12401         * lib/unictype/pr_non_break.h: Likewise.
12402         * lib/unictype/pr_not_a_character.h: Likewise.
12403         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12404         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12405         * lib/unictype/pr_other_id_continue.h: Likewise.
12406         * lib/unictype/pr_other_id_start.h: Likewise.
12407         * lib/unictype/pr_other_lowercase.h: Likewise.
12408         * lib/unictype/pr_other_math.h: Likewise.
12409         * lib/unictype/pr_other_uppercase.h: Likewise.
12410         * lib/unictype/pr_paired_punctuation.h: Likewise.
12411         * lib/unictype/pr_paragraph_separator.h: Likewise.
12412         * lib/unictype/pr_pattern_syntax.h: Likewise.
12413         * lib/unictype/pr_pattern_white_space.h: Likewise.
12414         * lib/unictype/pr_private_use.h: Likewise.
12415         * lib/unictype/pr_quotation_mark.h: Likewise.
12416         * lib/unictype/pr_radical.h: Likewise.
12417         * lib/unictype/pr_soft_dotted.h: Likewise.
12418         * lib/unictype/pr_space.h: Likewise.
12419         * lib/unictype/pr_titlecase.h: Likewise.
12420         * lib/unictype/pr_variation_selector.h: Likewise.
12421         * lib/unictype/pr_white_space.h: Likewise.
12422         * lib/unictype/sy_c_ident.h: Likewise.
12423         * lib/unictype/sy_c_whitespace.h: Likewise.
12424         * lib/unictype/sy_java_whitespace.h: Likewise.
12425         * modules/uni*/*: Bump version number of expected libunistring version.
12426         Reported by Simon Josefsson.
12427
12428 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12429
12430         useless-if-before-free: fix typo in --help and make the internal,
12431         automatic version date update process work once again.
12432         --help output contained a NUL character instead of the
12433         backslash-zero that was intended.  Also, the "must lie within
12434         the first 8 lines" line is on line 9, and hence not getting
12435         automatically updated.
12436         * build-aux/useless-if-before-free: Fix the former by adding a
12437         backslash, and the latter by condensing the three lines of what-it-does
12438         to a single line, leaving one line of slack for the future.
12439
12440 2011-01-09  Bruno Haible  <bruno@clisp.org>
12441
12442         uniwidth/width: Fix width of U+1D173..U+1D17A.
12443         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12444         symbolic_width, output_width_property_test): New functions.
12445         (main): Invoke output_nonspacing_property, output_width_property_test.
12446         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12447         U+1D173..U+1D17A.
12448         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12449         1.
12450         * modules/uniwidth/*: Bump version number of expected libunistring
12451         version.
12452         * modules/unilbrk/*: Likewise.
12453
12454 2011-01-08  Bruno Haible  <bruno@clisp.org>
12455
12456         uninorm tests: Preserve copyright of Unicode data file.
12457         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12458         Mention modifications.
12459
12460 2011-01-08  Bruno Haible  <bruno@clisp.org>
12461
12462         gen-uni-tables: Prepare for Unicode 5.2.0.
12463         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12464         (debug_output_lbp, output_lbp): Update.
12465
12466 2011-01-08  Bruno Haible  <bruno@clisp.org>
12467
12468         unilbrk: Clarify gen-uni-tables.c code.
12469         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12470         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12471         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12472
12473 2011-01-07  Bruno Haible  <bruno@clisp.org>
12474
12475         strtod: Restore errno when successfully parsing Infinity or NaN.
12476         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12477         restore the original errno.
12478
12479 2011-01-07  Bruno Haible  <bruno@clisp.org>
12480
12481         remove test: Avoid failure on HP-UX 11.
12482         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12483
12484 2011-01-07  Bruno Haible  <bruno@clisp.org>
12485
12486         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12487         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12488         error code.
12489
12490 2011-01-07  Pádraig Brady <P@draigBrady.com>
12491
12492         ignore-value: fixup comments, and add Eric Blake
12493         as an author since he rewrote the macros.
12494         * lib/ignore-value.h (ignore_value):  State that
12495         we now support aggregates.  Also specify exactly
12496         when the GCC warn_unused_result feature was added.
12497
12498 2011-01-06  Eric Blake  <eblake@redhat.com>
12499
12500         ignore-value: support aggregate types
12501         * lib/ignore-value.h (ignore_value): Provide separate gcc
12502         definition.
12503         * modules/ignore-value-tests: New test module.
12504         * tests/test-ignore-value.c: New test.
12505
12506         maint.mk: improve sc_prohibit_strcmp regex
12507         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12508         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12509         definition of STRNEQ.
12510
12511         signal: work around Haiku issue with SIGBUS
12512         * lib/siglist.h: Add comment.
12513         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12514         strsignal's favoring of SIGSEGV.
12515         * tests/test-signal.c (main): Avoid test failure.
12516         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12517         Reported by Scott McCreary.
12518
12519         maint.mk: add pre-release check to ensure submodule commits are public
12520         * top/maint.mk (public-submodule-commit): New rule.
12521         (submodule-checks): New variable.
12522         (alpha beta stable): Depend on the variable.
12523
12524 2011-01-05  Pádraig Brady <P@draigBrady.com>
12525         and Jim Meyering  <meyering@redhat.com>
12526
12527         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12528         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12529         (ATTRIBUTE_DEPRECATED): Define.
12530         (_ignore_case): New function.
12531         (ignore_value): New macro, to replace the old function.
12532         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12533         * modules/ignore-value (Depends-on): Add stdint.
12534
12535 2011-01-04  Eric Blake  <eblake@redhat.com>
12536
12537         doc: regenerate INSTALL
12538         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12539         @firstparagraphindent support, now that autoconf dropped it.
12540         (INSTALL_PRELUDE): Reinstate old macro.
12541         * doc/install.texi: Resync from autoconf.
12542         * doc/INSTALL: Reflect recent autoconf update.
12543         * doc/INSTALL.ISO: Likewise.
12544         * doc/INSTALL.UTF-8: Likewise.
12545         Reported by Karl Berry.
12546
12547 2011-01-04  Bruce Korb  <address@hidden>
12548
12549         git-version-gen: avoid a sub-shell
12550         * build-aux/git-version-gen: Redirect stderr in `...` via
12551         "exec 2>...", rather than via an added sub-shell.
12552
12553 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12554
12555         git-version-gen: use (...) rather than sh -c '...'
12556         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12557         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12558
12559 2011-01-03  Jim Meyering  <meyering@redhat.com>
12560
12561         git-version-gen: convert leading TABs to spaces
12562         * build-aux/git-version-gen: Expand leading TABs.
12563
12564         git-version-gen: handle failed "git rev-list"
12565         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12566         from git and proceeding as if it had succeeded but printed no SHA1
12567         checksums, suppress the diagnostic and handle the failure.
12568         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12569
12570         git-version-gen: include command name in one more diagnostic
12571         * build-aux/git-version-gen: When the required .tarball-version file
12572         was missing or unreadable, you might see the diagnostic from "cat",
12573         but no trace of the name of the invoking script.  Now, you still see
12574         the diagnostic from cat, but also get one from "git-version-gen: ".
12575         Inspired by a patch from Bruce Korb.
12576
12577         update-copyright: adjust test to match changed code
12578         * tests/test-update-copyright.sh: Change test's expected output
12579         to match new actual output.
12580
12581 2011-01-02  Bruno Haible  <bruno@clisp.org>
12582
12583         getlogin_r: Avoid test failure on HP-UX 11.
12584         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12585         ERANGE when the second argument is zero.
12586         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12587         portability problem.
12588
12589 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12590
12591         * build-aux/update-copyright: doc Simon's changes
12592
12593 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12594
12595         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12596         environment variable.
12597
12598 2011-01-02  Bruno Haible  <bruno@clisp.org>
12599
12600         unigbrk: Avoid gcc warnings.
12601         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12602         unused variable.
12603         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12604         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12605         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12606         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12607         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12608         Change type of first argument to 'const char *'.
12609         (main): Remove unused variable.
12610         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12611         type of first argument to 'const char *'.
12612         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12613         Likewise.
12614         (main): Change type of variable 's'.
12615         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12616         to 'int'.
12617
12618 2011-01-02  Bruno Haible  <bruno@clisp.org>
12619
12620         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12621         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12622         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12623         bug.
12624         * lib/pwrite.c: Undo 2010-12-31 patch.
12625         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12626
12627 2011-01-02  Bruno Haible  <bruno@clisp.org>
12628
12629         pread: Fix test whether it works.
12630         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12631
12632 2011-01-02  Bruno Haible  <bruno@clisp.org>
12633
12634         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12635         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12636         ends in "6". Don't require a specific month name. Try also the locale
12637         names found on HP-UX 11 and Solaris 7.
12638
12639 2011-01-02  Bruno Haible  <bruno@clisp.org>
12640
12641         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12642         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12643         C linkage.
12644         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12645
12646 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12647
12648         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12649         for consistency, since the "cluster" term is not used elsewhere.
12650         * lib/unigbrk.in.h: Update name.
12651         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12652         * lib/unigbrk/u16-grapheme-next.c: Update name.
12653         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12654         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12655         * lib/unigbrk/u32-grapheme-next.c: Update name.
12656         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12657         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12658         * lib/unigbrk/u8-grapheme-next.c: Update name.
12659         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12660         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12661         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12662         Suggested by Bruno Haible.
12663
12664 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12665
12666         Remove module 'u8-grapheme-len' as too redundant with
12667         'u8-grapheme-next'.
12668         * modules/unigbrk/u8-grapheme-len: Delete file.
12669         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12670         * lib/unigbrk.in.h: Remove prototype for deleted function.
12671         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12672         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12673
12674         Remove module 'u16-grapheme-len' as too redundant with
12675         'u16-grapheme-next'.
12676         * modules/unigbrk/u16-grapheme-len: Delete file.
12677         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12678         * lib/unigbrk.in.h: Remove prototype for deleted function.
12679         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12680         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12681
12682         Remove module 'u32-grapheme-len' as too redundant with
12683         'u32-grapheme-next'.
12684         * modules/unigbrk/u32-grapheme-len: Delete file.
12685         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12686         * lib/unigbrk.in.h: Remove prototype for deleted function.
12687         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12688         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12689
12690         Suggested by Bruno Haible.
12691
12692 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12693
12694         * unigbrk.in.h: Fix typo: "ben" => "been".
12695         Reported by Bruno Haible.
12696
12697 2011-01-01  Jim Meyering  <meyering@redhat.com>
12698
12699         maint: update almost all copyright ranges to include 2011
12700         Run the new "make update-copyright" rule.
12701
12702 2011-01-01  Jim Meyering  <meyering@redhat.com>
12703
12704         maint: update-copyright: exempt doc/INSTALL*
12705         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12706         since they are generated.  Suggested by Bruno Haible.
12707
12708 2011-01-01  Jim Meyering  <meyering@redhat.com>
12709
12710         maint: refine the update-copyright rule
12711         * Makefile (update-copyright): Also exclude any file that includes
12712         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12713         code that merely generates the comment.
12714
12715 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12716
12717         New module 'u8-grapheme-len'.
12718         * modules/unigbrk/u8-grapheme-len: New file.
12719         * modules/unigbrk/u8-grapheme-len-tests: New file.
12720         * lib/unigbrk.in.h: Add prototype for new function.
12721         * lib/unigbrk/u8-grapheme-len.c: New file.
12722         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12723
12724         New module 'u16-grapheme-len'.
12725         * modules/unigbrk/u16-grapheme-len: New file.
12726         * modules/unigbrk/u16-grapheme-len-tests: New file.
12727         * lib/unigbrk.in.h: Add prototype for new function.
12728         * lib/unigbrk/u16-grapheme-len.c: New file.
12729         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12730
12731         New module 'u32-grapheme-len'.
12732         * modules/unigbrk/u32-grapheme-len: New file.
12733         * modules/unigbrk/u32-grapheme-len-tests: New file.
12734         * lib/unigbrk.in.h: Add prototype for new function.
12735         * lib/unigbrk/u32-grapheme-len.c: New file.
12736         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12737
12738         New module 'u8-grapheme-next'.
12739         * modules/unigbrk/u8-grapheme-next: New file.
12740         * modules/unigbrk/u8-grapheme-next-tests: New file.
12741         * lib/unigbrk.in.h: Add prototype for new function.
12742         * lib/unigbrk/u8-grapheme-next.c: New file.
12743         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12744
12745         New module 'u16-grapheme-next'.
12746         * modules/unigbrk/u16-grapheme-next: New file.
12747         * modules/unigbrk/u16-grapheme-next-tests: New file.
12748         * lib/unigbrk.in.h: Add prototype for new function.
12749         * lib/unigbrk/u16-grapheme-next.c: New file.
12750         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12751
12752         New module 'u32-grapheme-next'.
12753         * modules/unigbrk/u32-grapheme-next: New file.
12754         * modules/unigbrk/u32-grapheme-next-tests: New file.
12755         * lib/unigbrk.in.h: Add prototype for new function.
12756         * lib/unigbrk/u32-grapheme-next.c: New file.
12757         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12758
12759         New module 'u8-grapheme-prev'.
12760         * modules/unigbrk/u8-grapheme-prev: New file.
12761         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12762         * lib/unigbrk.in.h: Add prototype for new function.
12763         * lib/unigbrk/u8-grapheme-prev.c: New file.
12764         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12765
12766         New module 'u16-grapheme-prev'.
12767         * modules/unigbrk/u16-grapheme-prev: New file.
12768         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12769         * lib/unigbrk.in.h: Add prototype for new function.
12770         * lib/unigbrk/u16-grapheme-prev.c: New file.
12771         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12772
12773         New module 'u32-grapheme-prev'.
12774         * modules/unigbrk/u32-grapheme-prev: New file.
12775         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12776         * lib/unigbrk.in.h: Add prototype for new function.
12777         * lib/unigbrk/u32-grapheme-prev.c: New file.
12778         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12779
12780         New module 'u8-grapheme-breaks'.
12781         * modules/unigbrk/u8-grapheme-breaks: New file.
12782         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12783         * lib/unigbrk.in.h: Add prototype for new function.
12784         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12785         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12786
12787         New module 'u16-grapheme-breaks'.
12788         * modules/unigbrk/u16-grapheme-breaks: New file.
12789         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12790         * lib/unigbrk.in.h: Add prototype for new function.
12791         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12792         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12793
12794         New module 'u32-grapheme-breaks'.
12795         * modules/unigbrk/u32-grapheme-breaks: New file.
12796         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12797         * lib/unigbrk.in.h: Add prototype for new function.
12798         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12799         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12800
12801         New module 'ulc-grapheme-breaks'.
12802         * modules/unigbrk/ulc-grapheme-breaks: New file.
12803         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12804         * m4/locale-ar.m4: New file.
12805         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12806         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12807         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12808
12809 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12810
12811         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12812         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12813         modified how this file was generated before I initially submitted
12814         the module, but failed to regenerate it.  This meant that several
12815         of the level2 entries were wrong.
12816         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12817         Remove the division-by-2 that is folded into the table now that
12818         gbrkprop.h has been regenerated properly.  Now -1 entries are
12819         handled correctly.
12820
12821         New module 'unigbrk/uc-gbrk-prop-tests'.
12822         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12823         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12824         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12825         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12826
12827 2011-01-01  Bruno Haible  <bruno@clisp.org>
12828
12829         Avoid use of hexadecimal escapes.
12830         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12831         instead of hexadecimal escapes.
12832
12833 2011-01-01  Jim Meyering  <meyering@redhat.com>
12834
12835         maint: new rule to update copyright year ranges
12836         * Makefile (update-copyright): New rule.
12837
12838         maint: indent with TABs in Makefile
12839         * Makefile: Expand leading sequences of spaces to TABs
12840
12841         version-etc: update the copyright year it reports
12842         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12843
12844 2010-12-31  Bruno Haible  <bruno@clisp.org>
12845
12846         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12847         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12848         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12849         zero.
12850
12851 2010-12-31  Bruno Haible  <bruno@clisp.org>
12852
12853         pwrite: Work around HP-UX 11.11 bug.
12854         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12855         works and set REPLACE_PWRITE if not.
12856         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12857         function.
12858         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12859
12860 2010-12-31  Bruno Haible  <bruno@clisp.org>
12861
12862         pread: Work around HP-UX 11 bugs.
12863         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12864         and set REPLACE_PREAD if not.
12865         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12866
12867 2010-12-31  Eric Blake  <eblake@redhat.com>
12868
12869         nl_langinfo: fix YESEXPR on Irix 6.5
12870         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12871         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12872         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12873         it.
12874
12875 2010-12-31  Bruno Haible  <bruno@clisp.org>
12876
12877         iconv: Document HP-UX 11 bug.
12878         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12879
12880 2010-12-31  Bruno Haible  <bruno@clisp.org>
12881
12882         ldexpl: Fix link error on HP-UX 11.
12883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12884         LDEXPL_LIBM, using $ISNANL_LIBM.
12885
12886 2010-12-31  Eric Blake  <eblake@redhat.com>
12887
12888         ftello: avoid compilation failure with SunStudio c89
12889         * lib/ftello.c (ftello): Use lseek, not llseek.
12890
12891         tests: avoid failing coreutils tests on cygwin
12892         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12893         (create_exe_shims_): Return 0 when skipping.
12894
12895 2010-12-31  Bruno Haible  <bruno@clisp.org>
12896
12897         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12898         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12899
12900 2010-12-31  Bruno Haible  <bruno@clisp.org>
12901
12902         waitpid: Fix link error in C++ mode.
12903         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12904
12905 2010-12-31  Bruno Haible  <bruno@clisp.org>
12906
12907         isnan: Use GCC built-ins when possible.
12908         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12909         __builtin_isnan.
12910         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12911         (isnan): Define using GCC built-ins for GCC >= 4.0.
12912
12913 2010-12-31  Bruno Haible  <bruno@clisp.org>
12914
12915         isnand: Fix mistake.
12916         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12917         __builtin_isnand.
12918
12919 2010-12-31  Bruno Haible  <bruno@clisp.org>
12920
12921         open: Avoid C++ error on HP-UX 11.
12922         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12923
12924 2010-12-31  Bruno Haible  <bruno@clisp.org>
12925
12926         time_r: Add missing declarations on HP-UX 11.
12927         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12928         instead of HAVE_LOCALTIME_R.
12929         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12930         HAVE_LOCALTIME_R always.
12931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12932         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12933         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12934         HAVE_LOCALTIME_R.
12935         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12936         * doc/posix-functions/localtime_r.texi: Likewise.
12937
12938 2010-12-29  Eric Blake  <eblake@redhat.com>
12939
12940         mountlist: tweak previous commit
12941         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12942         Reported by Paul Eggert.
12943
12944         mountlist: fix local drive detection on cygwin
12945         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12946         that works for cygwin.
12947
12948 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12949
12950         ftoastr, snprintf: ftoastr + snprintf module
12951         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12952         since the snprintf module now should be good enough here.
12953         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12954         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12955         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12956         GNULIB_SNPRINTF only for the test directory, and the latter
12957         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12958         seems to suffice by itself.
12959
12960 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12961
12962         alloca: one step towards thread-safety
12963         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12964         need for a static variable.  All callers changed.  This does not
12965         make the alloca replacement thread-safe, but it's one step.
12966
12967         tests: minor indenting change
12968         * tests/init.sh: Sync from coreutils housekeeping patch
12969         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12970         to keep lines within 80 columns.
12971
12972 2010-12-28  Jim Meyering  <meyering@redhat.com>
12973
12974         regex: don't infloop on persistent failing calloc
12975         * lib/regexec.c (build_trtable): Return failure indication upon
12976         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12977         In glibc, this was fixed for version 2.13:
12978         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12979
12980 2010-12-28  Bruno Haible  <bruno@clisp.org>
12981             Paul Eggert <eggert@cs.ucla.edu>
12982
12983         linkat: Make implementation robust against system behaviour variations.
12984         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12985         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12986         way, and to -2 if it needs a generic runtime test.
12987         * lib/linkat.c (solaris_optimized_link_immediate,
12988         solaris_optimized_link_follow): New functions.
12989         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12990         (check_same_link): Use it.
12991
12992 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12993
12994         New module 'unigbrk/base'.
12995         * modules/unigbrk/base: New file.
12996         * lib/unigbrk.in.h: New file.
12997
12998         New module 'unigbrk/uc-gbrk-prop'.
12999         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13000         * modules/unigbrk/uc-gbrk-prop: New file.
13001         * lib/unigbrk/gbrkprop.h: New file.
13002         * lib/unigbrk/uc-gbrk-prop.c: New file.
13003
13004         New module 'unigbrk/uc-is-grapheme-break'.
13005         * modules/unigbrk/uc-is-grapheme-break: New file.
13006         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13007         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13008         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13009         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13010         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13011
13012         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13013
13014 2010-12-27  Bruno Haible  <bruno@clisp.org>
13015
13016         linkat test: Avoid failure on Solaris 11 2010-11.
13017         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13018
13019 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13020
13021         utimens: work around glibc rounding bug on more platforms
13022         * lib/utimens.c (fdutimens): Work around rounding bug even if
13023         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13025
13026 2010-12-27  Bruno Haible  <bruno@clisp.org>
13027
13028         select tests: Improve comments.
13029         * tests/test-select.c (do_select): Add comments.
13030
13031 2010-12-27  Bruno Haible  <bruno@clisp.org>
13032
13033         select tests: Safer way of handling timeout.
13034         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13035         at every invocation.
13036
13037 2010-12-27  Bruno Haible  <bruno@clisp.org>
13038
13039         select tests: Use 'bool' where appropriate.
13040         * tests/test-select.c (connect_to_socket): Change argument type to
13041         'bool'.
13042
13043 2010-12-27  Bruno Haible  <bruno@clisp.org>
13044
13045         select tests: Use existing modules.
13046         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13047         (configure.ac): Don't test for unistd.h.
13048         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13049         declared in <unistd.h>.
13050
13051 2010-12-27  Bruno Haible  <bruno@clisp.org>
13052
13053         mbrtowc: Work around a Solaris 7 bug.
13054         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13055         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13056         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13057         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13058         MBRTOWC_NULL_ARG1_BUG.
13059         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13060         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13061         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13062         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13063
13064 2010-12-27  Jim Meyering  <meyering@redhat.com>
13065
13066         read-file.c: tweak syntax
13067         * lib/read-file.c (fread_file): Remove space after "*" in function
13068         definitions.
13069
13070 2010-12-27  Bruno Haible  <bruno@clisp.org>
13071
13072         times test: Avoid gcc warnings on OSF/1.
13073         * tests/test-times.c (main): Cast printf arguments from clock_t to
13074         'long int'.
13075
13076 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         utimens: work around glibc rounding bug on older Linux kernels
13079         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13080         on Linux with a glibc whose utimes might not work, then work
13081         around a longstanding glibc bug involving rounding rather than
13082         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13084
13085 2010-12-26  Bruno Haible  <bruno@clisp.org>
13086
13087         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13088         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13089         _GL_CXXALIAS_SYS.
13090         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13091
13092 2010-12-26  Bruno Haible  <bruno@clisp.org>
13093
13094         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13095         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13096         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13097         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13098         looking for the declaration.
13099         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13100         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13101         problem.
13102         * doc/posix-functions/inet_pton.texi: Likewise.
13103
13104 2010-12-26  Bruno Haible  <bruno@clisp.org>
13105
13106         arpa_inet: Use the common idioms with C++ support.
13107         * lib/arpa_inet.in.h: Include c++defs.h.
13108         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13109         support.
13110         * modules/arpa_inet (Depends-on): Add c++defs.
13111         (Makefile.am): Substitute the contents of c++defs.h.
13112         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13113         * modules/arpa_inet-c++-tests: New file.
13114         * tests/test-arpa_inet-c++.cc: New file.
13115
13116 2010-12-25  Bruno Haible  <bruno@clisp.org>
13117
13118         Fix more C++ link errors on Solaris 8.
13119         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13120         $(LIB_EACCESS).
13121         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13122         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13123         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13124         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13125         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13126
13127 2010-12-25  Bruno Haible  <bruno@clisp.org>
13128
13129         printf-posix: Fix link error when a non-GCC compiler is used.
13130         * lib/stdio.in.h (printf): When not using GCC, override printf
13131         correctly.
13132         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13133
13134 2010-12-25  Bruno Haible  <bruno@clisp.org>
13135
13136         strerror_r-posix: Update doc.
13137         * doc/posix-functions/strerror_r.texi: Update doc about the return
13138         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13139
13140 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         utimens: simplify the logic of the previous change
13143         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13144         This should not affect whether the test succeeds or fails.
13145
13146         utimens: configure better on hosts with NFS clock skew
13147         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13148         uses the clock of the local host.  It might use the clock of the
13149         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13151
13152 2010-12-25  Bruno Haible  <bruno@clisp.org>
13153
13154         ptsname test: Avoid failure on Solaris.
13155         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13156         open a pseudo-terminal; don't use BSD-style ptys.
13157         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13158
13159 2010-12-25  Bruno Haible  <bruno@clisp.org>
13160
13161         ptsname: Avoid ERANGE failure on some systems.
13162         * lib/ptsname.c (buffer): Increase size.
13163
13164 2010-12-25  Bruno Haible  <bruno@clisp.org>
13165
13166         rename, renameat: Avoid test failures at NFS mounted locations.
13167         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13168         so that subsequent mkdir calls succeed.
13169
13170 2010-12-25  Bruno Haible  <bruno@clisp.org>
13171
13172         iswblank: Fix C++ link error on Solaris 8.
13173         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13174         _GL_FUNCDECL_SYS.
13175
13176 2010-12-25  Bruno Haible  <bruno@clisp.org>
13177
13178         unistd: Fix C++ link error on Solaris 8.
13179         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13180
13181 2010-12-25  Bruno Haible  <bruno@clisp.org>
13182
13183         readlink doc: Mention an old glibc bug.
13184         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13185
13186 2010-12-25  Bruno Haible  <bruno@clisp.org>
13187
13188         fcntl-h: Fix for use of C++ on glibc systems.
13189         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13190         also on glibc systems in C++ mode.
13191         Reported by Gary V. Vaughan <gary@gnu.org>.
13192
13193 2010-12-25  Bruno Haible  <bruno@clisp.org>
13194
13195         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13196         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13197
13198 2010-12-25  Bruno Haible  <bruno@clisp.org>
13199
13200         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13201         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13202         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13203         test whether truncl works according to ISO C 99 with IEC 60559.
13204         * m4/truncl-ieee.m4: New file.
13205         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13206         m4/signbit.m4.
13207         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13208
13209 2010-12-25  Bruno Haible  <bruno@clisp.org>
13210
13211         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13212         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13213         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13214         test whether ceill works according to ISO C 99 with IEC 60559.
13215         * m4/ceill-ieee.m4: New file.
13216         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13217         m4/signbit.m4.
13218         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13219
13220 2010-12-25  Bruno Haible  <bruno@clisp.org>
13221
13222         Ensure all prerequisites of <wchar.h> are included.
13223         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13224         before <wchar.h>.
13225         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13226         gl_MBRLEN_NUL_RETVAL): Likewise.
13227         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13228         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13229         AC_FUNC_MBRTOWC): Likewise.
13230         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13231         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13232         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13233         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13234         Likewise.
13235         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13236         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13237         (gl_WCHAR_H): Improve comments.
13238         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13239
13240 2010-12-25  Bruno Haible  <bruno@clisp.org>
13241
13242         strtok_r: Fix C syntax error in autoconf macro.
13243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13244         characters in test program.
13245
13246 2010-12-24  Bruno Haible  <bruno@clisp.org>
13247
13248         ceil, trunc, round: Fix gcc warnings.
13249         * lib/ceil.c (MIN): Undefine before redefining.
13250         * lib/trunc.c (MIN): Likewise.
13251         * lib/round.c (MIN): Likewise.
13252         Include <math.h> first.
13253
13254 2010-12-24  Bruno Haible  <bruno@clisp.org>
13255
13256         select tests: Avoid failures on OSF/1 5.1.
13257         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13258         failure of closing the last socket; it may fail with ECONNRESET.
13259
13260 2010-12-24  Eric Blake  <eblake@redhat.com>
13261
13262         stdint: avoid HP-UX 10.20 preprocessor bug
13263         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13264         than #if.
13265         * tests/test-floor2.c (main): Likewise.
13266         Reported by Peter O'Gorman.
13267
13268         pipe: make obsoletion transition easier
13269         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13270         * modules/pipe (Files): Include revived file.
13271         (Include): Drop reference, to mirror getdate's behavior.
13272
13273 2010-12-24  Bruno Haible  <bruno@clisp.org>
13274
13275         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13276         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13277         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13278         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13279
13280 2010-12-24  Bruno Haible  <bruno@clisp.org>
13281
13282         gethostname: Ensure declaration on NonStop Kernel.
13283         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13284         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13285
13286 2010-12-24  Bruno Haible  <bruno@clisp.org>
13287
13288         sys_select: Ensure all necessary types on NonStop Kernel.
13289         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13290         include <sys/time.h>.
13291         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13292         NonStop Kernel.
13293         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13294
13295 2010-12-24  Bruno Haible  <bruno@clisp.org>
13296
13297         sys_select: Remove unneeded include.
13298         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13299         have <sys/select.h>.
13300
13301 2010-12-24  Bruno Haible  <bruno@clisp.org>
13302
13303         gethostname: Provide a fallback for HOST_NAME_MAX.
13304         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13305         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13306         instead.
13307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13308
13309 2010-12-24  Bruno Haible  <bruno@clisp.org>
13310
13311         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13312         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13313         (SA_RESTART): Likewise.
13314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13315
13316 2010-12-24  Bruno Haible  <bruno@clisp.org>
13317
13318         signal: Define NSIG.
13319         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13320         * tests/test-signal.c (nsig): New variable.
13321         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13322
13323 2010-12-24  Bruno Haible  <bruno@clisp.org>
13324
13325         rename, renameat: Avoid test failures on OSF/1 5.1.
13326         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13327         alternative error codes.
13328         * tests/test-renameat.c (main): Likewise.
13329
13330 2010-12-24  Bruno Haible  <bruno@clisp.org>
13331
13332         *printf: Detect large precisions bug on Solaris 10/SPARC.
13333         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13334         by Paul Eggert.
13335         * tests/test-snprintf-posix.h (test_function): Add this test code here
13336         too.
13337         * tests/test-sprintf-posix.h (test_function): Likewise.
13338         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13339         * tests/test-vasprintf-posix.c (test_function): Likewise.
13340         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13341         around by gnulib.
13342         * doc/posix-functions/printf.texi: Likewise.
13343         * doc/posix-functions/snprintf.texi: Likewise.
13344         * doc/posix-functions/sprintf.texi: Likewise.
13345         * doc/posix-functions/vfprintf.texi: Likewise.
13346         * doc/posix-functions/vprintf.texi: Likewise.
13347         * doc/posix-functions/vsnprintf.texi: Likewise.
13348         * doc/posix-functions/vsprintf.texi: Likewise.
13349         * doc/posix-functions/dprintf.texi: Undo last commit.
13350         * doc/posix-functions/vdprintf.texi: Likewise.
13351
13352 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13353
13354         tests: port test-fdutimensat.c to Solaris 8
13355         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13356         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13357         On Solaris 8, it fails with errno == ENOSYS, because there is no
13358         futimens (so it can't use the fd), and there is no lutimens (so it
13359         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13360
13361         vsnprintf: make more consistent with snprintf; doc fixes
13362
13363         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13364         the byte count return problem was promoted from the snprintf-posix
13365         to the snprintf module.
13366         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13367         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13368         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13369         * tests/test-snprintf.c (main): Check the byte count returned.
13370         * tests/test-vsnprintf.c (main): Likewise.
13371
13372 2010-12-23  Eric Blake  <eblake@redhat.com>
13373
13374         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13375         * modules/sigpipe (License): Relax license.
13376
13377 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13378
13379         doc: document Solaris printf bug with large float precisions
13380         * doc/posix-functions/dprintf.texi (dprintf):
13381         * doc/posix-functions/fprintf.texi (fprintf):
13382         * doc/posix-functions/printf.texi (printf):
13383         * doc/posix-functions/snprintf.texi (snprintf):
13384         * doc/posix-functions/sprintf.texi (sprintf):
13385         * doc/posix-functions/vdprintf.texi (vdprintf):
13386         * doc/posix-functions/vfprintf.texi (vfprintf):
13387         * doc/posix-functions/vprintf.texi (vprintf):
13388         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13389         * doc/posix-functions/vsprintf.texi (vsprintf):
13390         Mention that these functions mishandle large floating point
13391         precisions on Solaris 10.  The same bug is also present in Solaris
13392         8, and I assume earlier.  This causes "cd gnulib-tests; make
13393         check" to fail on Solaris 8 (and I assume, later) when building
13394         the latest coreutils, in test-vasprintf-posix's call to
13395         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13396         the wide flavors (e.g., wprintf) so this patch just updates the
13397         documentation for the narrow ones.
13398
13399         test-posixtm.c: add two tests
13400         * tests/test-posixtm.c: Add two tests, to highlight the
13401         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13402         around this bug; this is merely to document it.
13403
13404 2010-12-22  Bruno Haible  <bruno@clisp.org>
13405
13406         getlogin_r: Work around portability problem on OSF/1.
13407         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13408         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13409         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13410         test for a truncated result.
13411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13412         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13413         * modules/getlogin_r (Depends-on): Add memchr.
13414         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13415
13416 2010-12-22  Bruno Haible  <bruno@clisp.org>
13417
13418         ptsname: Avoid test failure on OSF/1 5.1.
13419         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13420         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13421         (same_slave): New function.
13422         (main): Use it to compare ptsname's result with the expected file name.
13423
13424 2010-12-22  Bruno Haible  <bruno@clisp.org>
13425
13426         Port extended stdio modules to HP NonStop Kernel.
13427         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13428         macros.
13429         * lib/fbufmode.c: Update comments.
13430         * lib/fflush.c: Likewise.
13431         * lib/fpurge.c: Likewise.
13432         * lib/freadable.c: Likewise.
13433         * lib/freadahead.c: Likewise.
13434         * lib/freading.c: Likewise.
13435         * lib/freadptr.c: Likewise.
13436         * lib/freadseek.c: Likewise.
13437         * lib/fseeko.c: Likewise.
13438         * lib/fseterr.c: Likewise.
13439         * lib/fwritable.c: Likewise.
13440         * lib/fwriting.c: Likewise.
13441         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13442
13443 2010-12-22  Bruno Haible  <bruno@clisp.org>
13444
13445         ttyname_r: Work around bug on OSF/1 5.1.
13446         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13447         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13448         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13449         present.
13450         * lib/ttyname_r.c (ttyname_r): Update comments.
13451
13452 2010-12-22  Bruno Haible  <bruno@clisp.org>
13453
13454         round: Implement result sign according to IEEE 754.
13455         * lib/round.c (MIN, MINUS_ZERO): New macros.
13456         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13457         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13458         * tests/test-round-ieee.c (main): Likewise.
13459         * tests/test-roundl-ieee.c (main): Likewise.
13460
13461         trunc: Implement result sign according to IEEE 754.
13462         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13463         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13464         * tests/test-trunc2.c: Include minus-zero.h.
13465         (MINUS_ZERO): New macro.
13466         (trunc_reference): Keep in sync with lib/trunc.c.
13467         * tests/test-truncf2.c: Include minus-zero.h.
13468         (MINUS_ZERO): New macro.
13469         (truncf_reference): Keep in sync with lib/trunc.c.
13470         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13471         * tests/test-trunc-ieee.c (main): Likewise.
13472         * tests/test-truncl-ieee.c (main): Likewise.
13473
13474         ceil: Implement result sign according to IEEE 754.
13475         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13476         (FUNC): Return -0.0 for -1 < x < 0.
13477         * tests/test-ceil2.c: Include minus-zero.h.
13478         (MINUS_ZERO): New macro.
13479         (ceil_reference): Keep in sync with lib/ceil.c.
13480         * tests/test-ceilf2.c: Include minus-zero.h.
13481         (MINUS_ZERO): New macro.
13482         (ceilf_reference): Keep in sync with lib/ceil.c.
13483         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13484         * tests/test-ceil-ieee.c (main): Likewise.
13485         * tests/test-ceill-ieee.c (main): Likewise.
13486
13487         floor: Implement result sign according to IEEE 754.
13488         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13489         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13490         * tests/test-floorf2.c (floorf_reference): Likewise.
13491         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13492         * tests/test-floor-ieee.c (main): Likewise.
13493         * tests/test-floorl-ieee.c (main): Likewise.
13494
13495 2010-12-22  Bruno Haible  <bruno@clisp.org>
13496
13497         getaddrinfo: Update doc.
13498         * doc/posix-functions/gai_strerror.texi: Return type is also different
13499         on AIX and HP-UX.
13500
13501 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13502
13503         getaddrinfo, inet_ntop: Update doc for Solaris.
13504         * doc/posix-functions/gai_strerror.texi: Return type is also an
13505         issue on Solaris 9 and earlier.
13506         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13507         on Solaris 10 and earlier.
13508
13509 2010-12-21  Bruno Haible  <bruno@clisp.org>
13510
13511         New module 'roundl-ieee'.
13512         * modules/roundl-ieee: New file.
13513         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13514         test whether roundl works according to ISO C 99 with IEC 60559.
13515         * m4/roundl-ieee.m4: New file.
13516         * modules/roundl-ieee-tests: New file.
13517         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13518         * tests/test-roundl.c (main): Remove signbit tests.
13519         * modules/roundl-tests (Depends-on): Remove signbit.
13520         * doc/posix-functions/roundl.texi: Mention the new module.
13521
13522 2010-12-21  Bruno Haible  <bruno@clisp.org>
13523
13524         New module 'truncl-ieee'.
13525         * modules/truncl-ieee: New file.
13526         * modules/truncl-ieee-tests: New file.
13527         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13528         * tests/test-truncl.c (main): Remove signbit tests.
13529         * modules/truncl-tests (Depends-on): Remove signbit.
13530         * doc/posix-functions/truncl.texi: Mention the new module.
13531
13532 2010-12-21  Bruno Haible  <bruno@clisp.org>
13533
13534         New module 'ceill-ieee'.
13535         * modules/ceill-ieee: New file.
13536         * modules/ceill-ieee-tests: New file.
13537         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13538         * tests/test-ceill.c (main): Remove signbit tests.
13539         * modules/ceill-tests (Depends-on): Remove signbit.
13540         * doc/posix-functions/ceill.texi: Mention the new module.
13541
13542 2010-12-21  Bruno Haible  <bruno@clisp.org>
13543
13544         New module 'floorl-ieee'.
13545         * modules/floorl-ieee: New file.
13546         * modules/floorl-ieee-tests: New file.
13547         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13548         * tests/test-floorl.c (main): Remove signbit tests.
13549         * modules/floorl-tests (Depends-on): Remove signbit.
13550         * doc/posix-functions/floorl.texi: Mention the new module.
13551
13552 2010-12-21  Bruno Haible  <bruno@clisp.org>
13553
13554         New module 'round-ieee'.
13555         * modules/round-ieee: New file.
13556         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13557         whether round works according to ISO C 99 with IEC 60559.
13558         * m4/round-ieee.m4: New file.
13559         * modules/round-ieee-tests: New file.
13560         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13561         * tests/test-round1.c (main): Remove signbit tests.
13562         * modules/round-tests (Depends-on): Remove 'signbit'.
13563         * doc/posix-functions/round.texi: Mention the new module.
13564
13565 2010-12-21  Bruno Haible  <bruno@clisp.org>
13566
13567         New module 'trunc-ieee'.
13568         * modules/trunc-ieee: New file.
13569         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13570         whether trunc works according to ISO C 99 with IEC 60559.
13571         * m4/trunc-ieee.m4: New file.
13572         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13574         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13575         * modules/trunc-ieee-tests: New file.
13576         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13577         * tests/test-trunc1.c (main): Remove signbit tests.
13578         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13579         * doc/posix-functions/trunc.texi: Mention the new module.
13580
13581 2010-12-21  Bruno Haible  <bruno@clisp.org>
13582
13583         New module 'ceil-ieee'.
13584         * modules/ceil-ieee: New file.
13585         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13586         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13587         ISO C 99 with IEC 60559.
13588         * m4/ceil-ieee.m4: New file.
13589         * modules/ceil (Files): Add lib/ceil.c.
13590         (Depends-on): Add 'float'.
13591         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13592         * lib/math.in.h (ceil): New declaration.
13593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13594         REPLACE_CEIL.
13595         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13596         * modules/ceil-ieee-tests: New file.
13597         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13598         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13599         * doc/posix-functions/ceil.texi: Mention the new module.
13600
13601 2010-12-21  Bruno Haible  <bruno@clisp.org>
13602
13603         New module 'floor-ieee'.
13604         * modules/floor-ieee: New file.
13605         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13606         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13607         ISO C 99 with IEC 60559.
13608         * m4/floor-ieee.m4: New file.
13609         * modules/floor (Files): Add lib/floor.c.
13610         (Depends-on): Add 'float'.
13611         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13612         * lib/math.in.h (floor): New declaration.
13613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13614         REPLACE_FLOOR.
13615         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13616         * modules/floor-ieee-tests: New file.
13617         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13618         * tests/test-math-c++.cc: Check the signature of 'floor'.
13619         * doc/posix-functions/floor.texi: Mention the new module.
13620
13621 2010-12-21  Bruno Haible  <bruno@clisp.org>
13622
13623         New module 'roundf-ieee'.
13624         * modules/roundf-ieee: New file.
13625         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13626         test whether roundf works according to ISO C 99 with IEC 60559.
13627         * m4/roundf-ieee.m4: New file.
13628         * modules/roundf-ieee-tests: New file.
13629         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13630         * tests/test-roundf1.c (main): Remove signbit tests.
13631         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13632         * doc/posix-functions/roundf.texi: Mention the new module.
13633
13634 2010-12-21  Bruno Haible  <bruno@clisp.org>
13635
13636         New module 'truncf-ieee'.
13637         * modules/truncf-ieee: New file.
13638         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13639         test whether truncf works according to ISO C 99 with IEC 60559.
13640         * m4/truncf-ieee.m4: New file.
13641         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13643         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13644         * modules/truncf-ieee-tests: New file.
13645         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13646         * tests/test-truncf1.c (main): Remove signbit tests.
13647         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13648         * doc/posix-functions/truncf.texi: Mention the new module.
13649
13650 2010-12-21  Bruno Haible  <bruno@clisp.org>
13651
13652         New module 'ceilf-ieee'.
13653         * modules/ceilf-ieee: New file.
13654         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13655         test whether ceilf works according to ISO C 99 with IEC 60559.
13656         * m4/ceilf-ieee.m4: New file.
13657         * modules/ceilf-ieee-tests: New file.
13658         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13659         * tests/test-ceilf1.c (main): Remove signbit tests.
13660         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13661         * doc/posix-functions/ceilf.texi: Mention the new module.
13662
13663 2010-12-21  Bruno Haible  <bruno@clisp.org>
13664
13665         New module 'floorf-ieee'.
13666         * modules/floorf-ieee: New file.
13667         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13668         test whether floorf works according to ISO C 99 with IEC 60559.
13669         * m4/floorf-ieee.m4: New file.
13670         * modules/floorf-ieee-tests: New file.
13671         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13672         * tests/test-floorf1.c (main): Remove signbit tests.
13673         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13674         * doc/posix-functions/floorf.texi: Mention the new module.
13675
13676 2010-12-21  Bruno Haible  <bruno@clisp.org>
13677
13678         Support for minus zero in autoconf macros.
13679         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13680         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13681         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13682         * tests/minus-zero.h: Update comments.
13683
13684 2010-12-21  Bruno Haible  <bruno@clisp.org>
13685
13686         Tests for module 'ceil'.
13687         * modules/ceil-tests: New file.
13688         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13689         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13690
13691 2010-12-21  Bruno Haible  <bruno@clisp.org>
13692
13693         Tests for module 'floor'.
13694         * modules/floor-tests: New file.
13695         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13696         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13697
13698 2010-12-21  Bruno Haible  <bruno@clisp.org>
13699
13700         math: Fix indentation.
13701         * lib/math.in.h (floorf): Fix indentation.
13702
13703 2010-12-21  Bruno Haible  <bruno@clisp.org>
13704
13705         Fix cross-compilation guesses on Solaris.
13706         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13707         not match "solaris2.10".
13708         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13709         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13710         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13711
13712 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13713
13714         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13715         This fixes a problem observed with the latest coreutils snapshot
13716         that caused a test to fail on Solaris 8.  src/csplit.c's call
13717         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13718         earlier, instead of returning the number of bytes that would have
13719         been generated; this causes csplit to incorrectly report memory
13720         exhaustion.
13721         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13722         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13723         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13724         comments to match.
13725         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13726         Fix typo in matching older versions of Solaris: "solaris2.10"
13727         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13728         only for guessing while cross-compiling.
13729         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13730
13731 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13732
13733         ftoastr: fix comment again
13734         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13736         Also, simplify example a bit by using flags = 0.
13737
13738 2010-12-20  Bruno Haible  <bruno@clisp.org>
13739
13740         round*, trunc*: Update documentation regarding glibc.
13741         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13742         * doc/posix-functions/round.texi: Likewise.
13743         * doc/posix-functions/roundl.texi: Likewise.
13744         * doc/posix-functions/truncf.texi: Likewise.
13745         * doc/posix-functions/trunc.texi: Likewise.
13746         * doc/posix-functions/truncl.texi: Likewise.
13747
13748 2010-12-20  Bruno Haible  <bruno@clisp.org>
13749
13750         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13751         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13752         * doc/posix-functions/round.texi: Likewise.
13753         * doc/posix-functions/roundl.texi: Likewise.
13754
13755 2010-12-20  Bruno Haible  <bruno@clisp.org>
13756
13757         ttyname_r: Add missing declaration on HP-UX 11.
13758         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13759         HAVE_TTYNAME_R.
13760         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13761         declared. Set HAVE_TTYNAME_R always.
13762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13763         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13764         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13765         HAVE_TTYNAME_R.
13766         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13767
13768 2010-12-20  Bruno Haible  <bruno@clisp.org>
13769
13770         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13771         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13772         * doc/posix-functions/getlogin_r.texi: Likewise.
13773         * tests/test-getlogin.c: Include <errno.h>.
13774         (main): Avoid test failure on HP-UX 11.11.
13775         * tests/test-getlogin_r.c (main): Likewise.
13776
13777 2010-12-20  Bruno Haible  <bruno@clisp.org>
13778
13779         getlogin_r: Add missing declaration on HP-UX 11.
13780         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13781         declared also when it exists as a function.
13782         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13783
13784 2010-12-20  Bruno Haible  <bruno@clisp.org>
13785
13786         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13787         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13788         through wcrtomb.
13789
13790 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13791
13792         ftoastr: fix comment
13793         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13795
13796 2010-12-19  Bruno Haible  <bruno@clisp.org>
13797
13798         isnan: Ensure it is a macro.
13799         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13800         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13801         Solaris.
13802
13803 2010-12-19  Bruno Haible  <bruno@clisp.org>
13804
13805         ldexpl test: Fix link error on OSF/1 5.1.
13806         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13807
13808 2010-12-19  Bruno Haible  <bruno@clisp.org>
13809
13810         wctype: Make it work in C++ mode on OSF/1 5.1.
13811         * lib/wctype.in.h (iswblank): Declare but not define here.
13812         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13813         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13814         * modules/wctype (Files): Add lib/iswblank.c.
13815
13816 2010-12-19  Bruno Haible  <bruno@clisp.org>
13817
13818         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13819         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13820         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13821
13822 2010-12-19  Bruno Haible  <bruno@clisp.org>
13823
13824         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13826         _POSIX_PII_SOCKET.
13827         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13828         * doc/posix-functions/recvfrom.texi: Likewise.
13829         * doc/posix-functions/send.texi: Likewise.
13830         * doc/posix-functions/sendto.texi: Likewise.
13831
13832 2010-12-19  Bruno Haible  <bruno@clisp.org>
13833
13834         tcgetsid: Add missing declaration on OSF/1 5.1.
13835         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13836         HAVE_TCGETSID.
13837         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13838         Don't set HAVE_TCGETSID.
13839         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13840         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13841         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13842         HAVE_TCGETSID.
13843         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13844
13845 2010-12-19  Bruno Haible  <bruno@clisp.org>
13846
13847         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13848         * lib/stdio.in.h: During the include_next statement, let recursive
13849         includes of this file include only the system header file.
13850
13851 2010-12-19  Bruno Haible  <bruno@clisp.org>
13852
13853         iconv_open: Fix regression from 2010-12-04.
13854         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13855         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13856
13857 2010-12-19  Bruno Haible  <bruno@clisp.org>
13858
13859         stdbool test: Avoid a gcc warning.
13860         * tests/test-stdbool.c (main): Fail if e1 is false.
13861         Reported by Jim Meyering.
13862
13863 2010-12-19  Jim Meyering  <meyering@redhat.com>
13864
13865         setenv: restore to working order
13866         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13867         mistakenly removed.
13868         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13869         HAVE_SETENV.
13870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13871         HAVE_SETENV.
13872
13873 2010-12-19  Bruno Haible  <bruno@clisp.org>
13874
13875         Document some different function declarations on OSF/1 5.1.
13876         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13877         * doc/posix-functions/inet_ntop.texi: Likewise.
13878         * doc/posix-functions/gethostname.texi: Likewise.
13879         * lib/unistd.in.h (gethostname): Update comment.
13880
13881 2010-12-19  Bruno Haible  <bruno@clisp.org>
13882
13883         doc: Mention vasprintf-posix module.
13884         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13885         the 'vasprintf-posix' module.
13886         * doc/glibc-functions/vasprintf.texi: Likewise.
13887
13888 2010-12-19  Bruno Haible  <bruno@clisp.org>
13889
13890         unsetenv: Add missing declaration on OSF/1 5.1.
13891         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13892         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13893         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13895         not HAVE_UNSETENV.
13896         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13897         HAVE_UNSETENV.
13898         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13899
13900 2010-12-19  Bruno Haible  <bruno@clisp.org>
13901
13902         setenv: Add missing declaration on OSF/1 5.1.
13903         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13905         declared. Don't set HAVE_SETENV.
13906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13907         not HAVE_SETENV.
13908         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13909         HAVE_SETENV.
13910         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13911
13912 2010-12-19  Bruno Haible  <bruno@clisp.org>
13913
13914         nl_langinfo tests: Avoid gcc warning.
13915         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13916
13917 2010-12-19  Bruno Haible  <bruno@clisp.org>
13918
13919         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13920         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13921         _GL_CXXALIAS_SYS.
13922
13923 2010-12-19  Bruno Haible  <bruno@clisp.org>
13924
13925         stdbool: Relax test.
13926         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13927         address to 'bool' work in static initializer, for compilers other than
13928         GCC.
13929
13930 2010-12-19  Bruno Haible  <bruno@clisp.org>
13931
13932         ftello: Add missing declaration on OSF/1 5.1.
13933         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13934         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13936         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13937         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13938
13939 2010-12-19  Bruno Haible  <bruno@clisp.org>
13940
13941         fseeko: Add missing declaration on OSF/1 5.1.
13942         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13945         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13946         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13947
13948 2010-12-19  Bruno Haible  <bruno@clisp.org>
13949
13950         fchdir: Add missing declaration on OSF/1 5.1.
13951         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13954         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13955         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13956
13957 2010-12-19  Bruno Haible  <bruno@clisp.org>
13958
13959         relocatable-prog-wrapper: Separate from relocatable-prog.
13960         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13961         uninstall-relocwrapper rule here.
13962         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13963         Reported by Ian Beckwith <ianb@erislabs.net>.
13964
13965 2010-12-19  Bruno Haible  <bruno@clisp.org>
13966
13967         unistr/u8-mbsnlen: Add missing dependency.
13968         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13969         Reported by Ian Beckwith <ianb@erislabs.net>.
13970
13971 2010-12-19  Bruno Haible  <bruno@clisp.org>
13972
13973         iconv: Make it possible again to use this module without 'iconv-h'.
13974         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13975         if it is not defined.
13976         Reported by Ian Beckwith <ianb@erislabs.net>.
13977
13978 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13979
13980         acl: port to Solaris 8 when copying from tmpfs to ufs
13981         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13982         error number.  Problem observed on Solaris 8 with latest
13983         coreutils, with "mv A B", where A is on a tmpfs file system and B
13984         is on a ufs file system.  This caused coreutils' mv/part-symlink
13985         test to fail.
13986
13987         tests: set fail=0 at start
13988         * tests/init.sh (setup_): Move fail=0 initialization here ...
13989         (mktempd_): ... from here, so that tests can rely on fail being
13990         set to 0 initially.  This fixes a problem in coreutils; see:
13991         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13992
13993 2010-12-18  Bruno Haible  <bruno@clisp.org>
13994
13995         memmem-simple: Stylistic changes.
13996         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13997         Fix preprocessor directive indentation.
13998
13999 2010-12-15  Pádraig Brady <P@draigBrady.com>
14000
14001         memmem, memmem-simple: reorganize and expand empty needle check
14002         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14003         functional checks to memmem-simple so that one has a fully functional
14004         memmem by using just this module.
14005         Restrict the performance only check to the memmem module.
14006         Also expand the empty needle check to ensure the correct
14007         pointer is returned, not just a non NULL pointer.
14008         * doc/glibc-functions/memmem.texi: Rearrange the portability
14009         documentation to correlate with the rearranged checks.
14010         Clarify exactly how the memmem and memmem-simple modules
14011         relate to each other.
14012
14013 2010-12-15  Pádraig Brady <P@draigBrady.com>
14014             Bruno Haible  <bruno@clisp.org>
14015
14016         Improve cross-compilation guesses for uClibc.
14017         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14018         that uClibc does not have the glibc bug.
14019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14020         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14021
14022 2010-12-14  Eric Blake  <eblake@redhat.com>
14023
14024         configmake: provide fallbacks for oldest supported autotools
14025         * m4/configmake.m4: New file.
14026         * modules/configmake (Files): Ship it.
14027         (configure.ac): Use it to guarantee fallbacks.
14028
14029 2010-12-13  Pádraig Brady <P@draigBrady.com>
14030
14031         read-file: Improve handling of large files
14032         * lib/read-file.c (fread_file): Minimize realloc()s
14033         for regular files, and better manage sizes around SIZE_MAX.
14034
14035 2010-12-13  Eric Blake  <eblake@redhat.com>
14036
14037         cloexec, fcntl: relax license
14038         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14039         consent from all contributors.
14040         * modules/fcntl (License): Likewise.
14041
14042 2010-12-10  Bruno Haible  <bruno@clisp.org>
14043
14044         Tests for module 'pipe-posix'.
14045         * modules/pipe-posix-tests: New file.
14046         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14047
14048 2010-12-10  Bruno Haible  <bruno@clisp.org>
14049
14050         pipe-posix: Make it work in C++ mode.
14051         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14052         (pipe): Use common idiom, not a macro definition.
14053         * lib/pipe.c: New file.
14054         * m4/pipe.m4: New file.
14055         * modules/pipe-posix (Description): Enhance.
14056         (Files): Add lib/pipe.c, m4/pipe.m4.
14057         (configure.ac): Invoke gl_FUNC_PIPE.
14058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14059         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14060         * tests/test-unistd-c++.cc: Check the signature of pipe.
14061
14062 2010-12-10  Bruno Haible  <bruno@clisp.org>
14063
14064         Rename module 'pipe' to 'spawn-pipe'.
14065         * modules/spawn-pipe: New file, renamed from modules/pipe.
14066         (Files, configure.ac, Makefile.am): Update.
14067         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14068         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14069         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14070         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14071         "spawn-pipe.h" instead of "pipe.h".
14072         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14073         to gl_SPAWN_PIPE.
14074         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14075         (Files, Makefile.am): Update.
14076         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14077         Update.
14078         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14079         Include "spawn-pipe.h" instead of "pipe.h".
14080         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14081         * lib/javacomp.c: Likewise.
14082         * lib/javaversion.c: Likewise.
14083         * lib/pipe-filter-gi.c: Likewise.
14084         * lib/pipe-filter-ii.c: Likewise.
14085         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14086         * modules/javacomp (Depends-on): Likewise.
14087         * modules/javaversion (Depends-on): Likewise.
14088         * modules/pipe-filter-gi (Depends-on): Likewise.
14089         * modules/pipe-filter-ii (Depends-on): Likewise.
14090         * MODULES.html.sh (Executing programs): Update.
14091         * NEWS: Mention the change.
14092
14093 2010-12-10  Eric Blake  <eblake@redhat.com>
14094
14095         pipe-posix: new module
14096         * modules/pipe-posix: New file.
14097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14098         (gl_UNISTD_H): Check for declaration.
14099         * modules/unistd (Makefile.am): Substitute it.
14100         * lib/unistd.in.h (pipe): Provide it for mingw.
14101         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14102         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14103
14104 2010-12-07  Bruno Haible  <bruno@clisp.org>
14105
14106         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14107         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14108         u8_strcmp_gnu.
14109         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14110
14111 2010-12-06  Bruno Haible  <bruno@clisp.org>
14112
14113         Update internal documentation.
14114         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14115
14116 2010-12-04  Bruno Haible  <bruno@clisp.org>
14117
14118         Put more information about failed tests into the test return codes.
14119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14120         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14121         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14123         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14124         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14125         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14127         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14130         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14131         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14132         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14133         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14134         returns a bit mask.
14135         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14136         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14137         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14138         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14139         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14143         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14145         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14146         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14147         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14148         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14149         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14150         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14151         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14152         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14153         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14154         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14155         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14156         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14158         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14159         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14160         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14161         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14162         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14163         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14164         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14165         gl_PRINTF_PRECISION): Likewise.
14166         * m4/regex.m4 (gl_REGEX): Likewise.
14167         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14168         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14170         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14173         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14174         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14176         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14177         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14179         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14180         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14181         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14182         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14183         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14184         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14186         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14187         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14188         enumerated value.
14189         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14190
14191 2010-12-04  Bruno Haible  <bruno@clisp.org>
14192
14193         Update for Solaris 11 2010-11.
14194         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14195         Express, released in November 2010.
14196
14197 2010-12-04  Bruno Haible  <bruno@clisp.org>
14198
14199         nproc: Relax license.
14200         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14201         and Paul Eggert.
14202         Requested by Ludovic Courtès <ludo@gnu.org>.
14203
14204 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14205
14206         utimecmp: fine-grained src to nearby coarse-grained dest
14207
14208         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14209         and the source is on a file system with higher-resolution time
14210         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14211         not work, and the time stamps are close together, the algorithm to
14212         determine the exact resolution from the read-back mtime was buggy:
14213         it had a "!=" where it should have had an "==".  This bug has been
14214         in the code ever since it was introduced to gnulib.
14215         Problem reported by Dan Jacobson in
14216         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14217
14218 2010-11-30  Bruno Haible  <bruno@clisp.org>
14219
14220         strerror_r-posix: Fix autoconf test.
14221         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14222
14223 2010-11-28  Bruno Haible  <bruno@clisp.org>
14224             Paul Eggert  <eggert@cs.ucla.edu>
14225
14226         Tests for module 'getdomainname'.
14227         * modules/getdomainname-tests: New file.
14228         * tests/test-getdomainname.c: New file, based on
14229         tests/test-gethostname.c.
14230
14231 2010-11-28  Bruno Haible  <bruno@clisp.org>
14232             Paul Eggert  <eggert@cs.ucla.edu>
14233
14234         getdomainname: Use the system function when possible.
14235         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14236         (getdomainname): Replace if needed. Provide the declaration if it is
14237         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14238         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14239         (getdomainname): When the system has getdomainname, call the system
14240         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14241         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14242         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14243         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14244         the function if its second argument is of type 'int' or if it is found
14245         in libnsl.
14246         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14247         <sys/systeminfo.h> and sysinfo().
14248         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14250         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14251         HAVE_GETDOMAINNAME.
14252         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14253         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14254         * doc/glibc-functions/getdomainname.texi: Document the problems with
14255         the getdomainname declaration.
14256
14257 2010-11-28  Bruno Haible  <bruno@clisp.org>
14258
14259         sys_socket: Ensure ss_family field on AIX.
14260         * lib/sys_socket.in.h (ss_family): New macro definition.
14261         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14262         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14263         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14264         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14265         * modules/sys_socket (Makefile.am): Substitute
14266         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14267         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14268
14269 2010-11-27  Bruno Haible  <bruno@clisp.org>
14270
14271         readline: Improve configure output.
14272         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14273         "checking for readline..." result understandable.
14274
14275 2010-11-27  Bruno Haible  <bruno@clisp.org>
14276
14277         *printf-posix: Detect a bug on Solaris 10/x86.
14278         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14279         for floating-point output.
14280         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14281         directive.
14282         * tests/test-snprintf-posix.h (test_function): Likewise.
14283         * tests/test-sprintf-posix.h (test_function): Likewise.
14284         * tests/test-vasprintf-posix.c (test_function): Likewise.
14285         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14286         * doc/posix-functions/printf.texi: Likewise.
14287         * doc/posix-functions/snprintf.texi: Likewise.
14288         * doc/posix-functions/sprintf.texi: Likewise.
14289         * doc/posix-functions/vfprintf.texi: Likewise.
14290         * doc/posix-functions/vprintf.texi: Likewise.
14291         * doc/posix-functions/vsnprintf.texi: Likewise.
14292         * doc/posix-functions/vsprintf.texi: Likewise.
14293         * doc/glibc-functions/obstack_printf.texi: Likewise.
14294         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14295
14296 2010-11-27  Bruno Haible  <bruno@clisp.org>
14297
14298         Fix link error when module libunistring-optional is in use.
14299         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14300         * modules/striconveha-tests (Makefile.am): Likewise.
14301
14302 2010-11-27  Bruno Haible  <bruno@clisp.org>
14303
14304         regex: Mention link dependencies.
14305         * modules/regex (Link): New section.
14306         * modules/rpmatch (Link): Likewise.
14307         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14308
14309 2010-11-27  Bruno Haible  <bruno@clisp.org>
14310
14311         ftoastr: Fix compilation error on Solaris.
14312         * lib/ftoastr.c: Include <config.h>.
14313
14314 2010-11-27  Bruno Haible  <bruno@clisp.org>
14315
14316         getloadavg: Update documentation.
14317         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14318
14319 2010-11-27  Bruno Haible  <bruno@clisp.org>
14320
14321         sys_socket: Fix test whether the functions are declared.
14322         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14323         not <sys/select.h>.
14324
14325 2010-11-27  Bruno Haible  <bruno@clisp.org>
14326
14327         getpass: Make sure to get system declaration on some platforms.
14328         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14329         gl_USE_SYSTEM_EXTENSIONS.
14330         * modules/getpass (Depends-on): Add extensions.
14331
14332 2010-11-26  Bruno Haible  <bruno@clisp.org>
14333
14334         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14335         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14336         'iconv' module is present.
14337         (ICONV_CONST): New macro.
14338         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14339         ICONV_CONST.
14340         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14341         set ICONV_CONST.
14342         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14343         here.
14344         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14345         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14346         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14347         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14348         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14349         present.
14350
14351 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         ftoastr: comment fix
14354         * lib/ftoastr.c: "little" -> "little or no" in comment
14355
14356 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14357
14358         stdint: port to GCC 4.3 + OSX + Octave
14359         On this platform, stdint.h is buggy and defines int64_t to long
14360         long int.  The replacement defined it to long int, causing
14361         problems with C++ style name mangling.  Instead, trust the system
14362         definition if INT64_MAX is defined, and likewise for the unsigned
14363         variant.   Problem reported by Jarno Rajahalme in
14364         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14365         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14366         and don't mess with int64_t and INT64_MAX in this case.
14367         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14368
14369 2010-11-24  Bruno Haible  <bruno@clisp.org>
14370
14371         doc: Corrections regarding MacOS X 10.4 and 10.5.
14372         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14373         MacOS X.
14374         Reported by Simon Josefsson.
14375
14376 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14377
14378         Uninstall ".bin" files installed by relocwrapper.
14379         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14380         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14381         unless it is already there.
14382
14383 2010-11-21  Bruno Haible  <bruno@clisp.org>
14384
14385         Update for NetBSD 5.0.
14386         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14387         NetBSD; the test fails on NetBSD 5.0.
14388         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14389         about NetBSD.
14390
14391 2010-11-21  Bruno Haible  <bruno@clisp.org>
14392
14393         Update for HP-UX 11.23 and HP-UX 11.31.
14394         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14395         HP-UX.
14396
14397 2010-11-21  Bruno Haible  <bruno@clisp.org>
14398
14399         Update for MacOS X 10.5.
14400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14401         MacOS X; the test fails on MacOS X 10.5.8.
14402         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14403         about MacOS X.
14404
14405 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14406
14407         bootstrap: add bootstrap_sync option.
14408         See discussion at
14409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14411         * build-aux/bootstrap: Accept --bootstrap-sync to update
14412         bootstrap if it is not identical to the local gnulib's
14413         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14414         enable this by default.  Accept --no-bootstrap-sync to disable
14415         it.
14416
14417 2010-11-20  Bruno Haible  <bruno@clisp.org>
14418
14419         Ensure that <features.h> is included before __GLIBC__ is tested.
14420         * lib/printf-parse.h: Include <features.h>.
14421         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14422         Reported by Mike Frysinger <vapier@gentoo.org>.
14423
14424         Ensure that <features.h> is included before __GLIBC__ is tested.
14425         * lib/wchar.in.h: Include <features.h>.
14426         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14427         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14428         Reported by Mike Frysinger <vapier@gentoo.org>.
14429
14430         Ensure that <features.h> is included before __GLIBC__ is tested.
14431         * lib/arpa_inet.in.h: Include <features.h>.
14432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14433         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14434         Reported by Mike Frysinger <vapier@gentoo.org>.
14435
14436         Ensure that <features.h> is included before __GLIBC__ is tested.
14437         * build-aux/link-warning.h: Include <features.h>.
14438         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14439         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14440         Reported by Mike Frysinger <vapier@gentoo.org>.
14441
14442         Ensure that <features.h> is included before __GLIBC__ is tested.
14443         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14444         Reported by Mike Frysinger <vapier@gentoo.org>.
14445
14446 2010-11-20  Bruno Haible  <bruno@clisp.org>
14447
14448         memmem: Fix autoconf test.
14449         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14450
14451 2010-11-20  Bruno Haible  <bruno@clisp.org>
14452
14453         Port to uClibc.
14454         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14455         * lib/fcntl.in.h: Likewise.
14456         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14457         * lib/mbrtowc.c (mbrtowc): Likewise.
14458         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14459         * lib/strerror_r.c: Likewise.
14460         * lib/unistr/u8-strnlen.c: Likewise.
14461         * lib/vasnprintf.c (decimal_point_char): Likewise.
14462         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14463         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14464         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14465         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14466         * tests/test-sigaction.c (handler, main): Likewise.
14467         * lib/freading.h: Treat uClibc like a non-glibc platform.
14468         * lib/freading.c: Likewise.
14469         * lib/gettext.h: Likewise.
14470         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14471         Likewise.
14472         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14473         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14474         * lib/propername.c (proper_name_utf8): Likewise.
14475         * lib/spawn.in.h: Likewise.
14476         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14477         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14478         mem_cd_iconveh_internal): Likewise.
14479         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14480         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14481         strstr, strcasestr): Likewise.
14482         * lib/unicodeio.c (unicode_to_mb): Likewise.
14483         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14484         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14485         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14486         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14487         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14488         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14489         * lib/unistr/u8-stpncpy.c: Likewise.
14490         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14491         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14492         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14493         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14494         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14495         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14499         Likewise.
14500         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14501         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14503         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14505         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14506         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14507         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14508         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14509         * tests/test-striconveha.c (main): Likewise.
14510         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14511         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14512         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14513         * doc/posix-functions/getline.texi: Likewise.
14514         Reported by Mike Frysinger <vapier@gentoo.org>.
14515
14516 2010-11-20  Bruno Haible  <bruno@clisp.org>
14517
14518         nproc: Fix condition.
14519         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14520         HAVE_PTHREAD_AFFINITY_NP.
14521
14522 2010-11-20  Bruno Haible  <bruno@clisp.org>
14523
14524         Fix a comment.
14525         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14526
14527 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14528
14529         ftoastr: don't assume snprintf
14530         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14531         Implement a subset of snprintf here, by using sprintf safely.
14532         * modules/ftoastr (Depends-on): Remove snprintf.
14533
14534 2010-11-19  Jim Meyering  <meyering@redhat.com>
14535
14536         test-rename.h: fix compilation failure
14537         * tests/test-rename.h (test_rename): Add omitted "}".
14538
14539 2010-11-17  Jim Meyering  <meyering@redhat.com>
14540
14541         maint.mk: add a URL discussing the no-@acronym policy
14542         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14543
14544 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14545
14546         ftoastr: depend on snprintf, improve comments
14547         * lib/ftoastr.c: Also mention Loitsch's draft.
14548         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14549         needed in the current implementation, but it might simplify
14550         speeding up the code later.
14551         * modules/ftoastr: Depend on snprintf; this improves portability.
14552         Suggested by Bruno Haible in the same email.
14553
14554         ftoastr: port to hosts lacking strtof and strtold
14555         Problem reported by Bruno Haible in
14556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14557         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14558         environment and strtold (and presumably strtof) are not available.
14559         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14560         (configure.ac): Require gl_C99_STRTOLD.
14561
14562 2010-11-18  Bruno Haible  <bruno@clisp.org>
14563
14564         c-strtold: Avoid link error on AIX 7.
14565         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14566         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14567         (gl_C_STRTOLD): Test whether strtold_l exists.
14568         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14569
14570 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14571
14572         intprops: new macro INT_BITS_STRLEN_BOUND
14573         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14574         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14575         not exposed.  Also, it uses a slightly tighter bound than before;
14576         though this makes no practical difference, we might as well be as
14577         tight as we easily can.
14578
14579         ftoastr: new module, for lossless conversion of floats to short strings
14580         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14581         * modules/ftoastr: New files.
14582
14583 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14584
14585         bootstrap: port to Solaris sed
14586         * build-aux/bootstrap (get_version): Port to Solaris sed.
14587         See Ralf Wildenhues's note in
14588         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14589
14590 2010-11-14  Jim Meyering  <meyering@redhat.com>
14591
14592         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14593         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14594         and move definition closer to sole use.
14595
14596 2010-11-13  Jim Meyering  <meyering@redhat.com>
14597
14598         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14599         Now we require at least autoconf-2.59, which means the work-around
14600         is no longer needed.
14601         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14603         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14604         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14605         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14606
14607 2010-11-13  Bruno Haible  <bruno@clisp.org>
14608
14609         rename, renameat: Avoid test failures at NFS mounted locations.
14610         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14611         functions.
14612         (test_rename): Use assert_nonexistent.
14613         * tests/test-rename.c: Include <dirent.h>.
14614         * tests/test-renameat.c: Likewise.
14615         Reported by Gary V. Vaughan <gary@gnu.org>.
14616
14617         rename, renameat: Document Linux bug with NFS
14618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14619         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14620         * doc/posix-functions/renameat.texi: Likewise.
14621         Suggested by Eric Blake.
14622
14623 2010-11-13  Bruno Haible  <bruno@clisp.org>
14624
14625         rename test: Add comments.
14626         * tests/test-rename.h (test_rename): Add structure and comments.
14627
14628 2010-11-13  Eric Blake  <eblake@redhat.com>
14629
14630         maintainer-makefile: cover a few more files
14631         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14632         scripts generated within C files, for libvirt.
14633
14634 2010-11-13  Bruno Haible  <bruno@clisp.org>
14635
14636         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14637         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14638         character, return the number of bytes that belong together, not always
14639         1.
14640         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14641         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14642         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14643         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14644         number of bytes of an invalid character.
14645         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14646         (main): Invoke it.
14647         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14648         results.
14649         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14650         malformed byte sequences.
14651         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14652         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14653         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14654         Reported by Ben Pfaff and Paolo Bonzini.
14655
14656 2010-11-13  Bruno Haible  <bruno@clisp.org>
14657
14658         openat: Work around glibc bug with fchownat() and empty file names.
14659         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14660         (gl_FUNC_FCHOWNAT): Invoke it.
14661         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14662         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14663         Reported by Gary V. Vaughan <gary@gnu.org>.
14664
14665 2010-11-13  Bruno Haible  <bruno@clisp.org>
14666
14667         openat: Ensure autoconf macro ordering.
14668         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14669         gl_USE_SYSTEM_EXTENSIONS.
14670         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14671
14672 2010-11-13  Bruno Haible  <bruno@clisp.org>
14673
14674         Update comments.
14675         * lib/unistr/u8-check.c: Update file name in comments.
14676         * lib/unistr/u8-mblen.c: Likewise.
14677         * lib/unistr/u8-prev.c: Likewise.
14678         * lib/unistr/u8-strmblen.c: Likewise.
14679         * lib/unistr/u8-strmbtouc.c: Likewise.
14680
14681 2010-11-13  Jim Meyering  <meyering@redhat.com>
14682
14683         tests: avoid test failure on Solaris 10 due to lack of PATH export
14684         * tests/test-update-copyright.sh: Don't forget to export PATH.
14685
14686         init.sh: ensure that IFS is defined, just in case...
14687         * tests/init.sh (setup_): Ensure that IFS is defined,
14688         so that saving and restoring it works as expected.  This
14689         appears to be useful at least for an old version of dash
14690         from a long time ago (RH 6).  See here for details:
14691         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14692
14693         maint.mk: tighten "test a == b" check
14694         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14695         test to files that contain something like #!/bin/sh.
14696         Without this, coreutils would get two false positives in
14697         the comments of C source files.
14698
14699 2010-11-12  Eric Blake  <eblake@redhat.com>
14700
14701         bootstrap: fix typo in previous attempt
14702         * build-aux/bootstrap (buildreq): Correct the grouping.
14703         Reported by Paul Eggert.
14704
14705         maintainer-makefile: prohibit test x == x
14706         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14707         Based on a report by Matthias Bolte.
14708
14709         bootstrap: allow FreeBSD gzip
14710         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14711         which has no '.' and goes to stderr.
14712         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14713         Reported by Matthias Bolte.
14714
14715         maintainer-makefile: check for i18n setup
14716         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14717         will likely work.
14718
14719 2010-11-12  Bruno Haible  <bruno@clisp.org>
14720
14721         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14722         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14723         * lib/nanosleep.c (nanosleep): Likewise.
14724
14725 2010-11-11  Bruno Haible  <bruno@clisp.org>
14726
14727         fcntl-h: Fix for use of C++ on glibc systems.
14728         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14729         also on glibc systems in C++ mode.
14730         Reported by Gary V. Vaughan <gary@gnu.org>.
14731
14732 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14733
14734         mknod: avoid false failure with dash
14735         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14736
14737 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14738
14739         unlink: Fix "is it should" typo in diagnostic.
14740         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14741         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14742
14743 2010-11-11  Bruno Haible  <bruno@clisp.org>
14744
14745         Tests for module 'strerror_r-posix'.
14746         * modules/strerror_r-posix-tests: New file.
14747         * tests/test-strerror_r.c: New file.
14748         * tests/test-string-c++.cc: Check the signature of strerror_r.
14749
14750         New module 'strerror_r-posix'.
14751         * lib/string.in.h (strerror_r): New declaration.
14752         * lib/strerror_r.c: New file.
14753         * m4/strerror_r.m4: New file.
14754         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14755         of strerror_r.
14756         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14757         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14758         * modules/strerror_r-posix: New file.
14759         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14760         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14761         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14762         portability problems.
14763
14764 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14765
14766         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14767         line is also considered for output. Quoted function name in shell
14768         command, so temporary files for functions like MyClass::operator()
14769         are removed correctly without errors.
14770
14771 2010-11-09  Bruno Haible  <bruno@clisp.org>
14772
14773         * doc/posix-functions/strerror.texi: List more failing platforms.
14774
14775         * doc/posix-functions/strerror.texi: Add a comment.
14776
14777 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14778
14779         fdopendir: fix bug on MacOS X when low on file descriptors
14780
14781         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14782         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14783         All callers changed.
14784         (fdopendir): Invoke save_cwd at the top level, not after using
14785         multiple dup() calls to use up file descriptors.  Then retry
14786         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14787         less than the maximum number of open file descriptors, because
14788         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14789         on Mac OS X 10.6.4 for tar 1.24
14790         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14791         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14792         and for tar 1.25
14793         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14794
14795 2010-11-07  Bruno Haible  <bruno@clisp.org>
14796
14797         vasnprintf: Support I flag on glibc systems.
14798         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14799         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14800         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14801         snprintf function.
14802         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14803         glibc systems.
14804         * tests/test-vasnprintf-posix3.c: New file.
14805         * modules/vasnprintf-posix-tests (Files): Add it.
14806         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14807
14808 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14809
14810         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14811         * MODULES.html.sh: For compiler warnings, use name
14812         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14813
14814 2010-11-05  Eric Blake  <eblake@redhat.com>
14815
14816         ceil, floor: avoid spurious failure with icc
14817         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14818         [denormals-as-zero] when optimizing without -mieee-fp option.
14819         * tests/test-floorf2.c (floorf_reference): Likewise.
14820         * tests/test-ceilf1.c (dummy): New function.
14821         (main): Use it to outsmart icc's optimization.
14822         * tests/test-floorf1.c (dummy, main): Likewise.
14823
14824         tests: require working signbit
14825         * modules/ceilf-tests (Depends-on): Add signbit.
14826         * modules/ceill-tests (Depends-on): Likewise.
14827         * modules/floorf-tests (Depends-on): Likewise.
14828         * modules/floorl-tests (Depends-on): Likewise.
14829         * modules/round-tests (Depends-on): Likewise.
14830         * modules/roundf-tests (Depends-on): Likewise.
14831         * modules/roundl-tests (Depends-on): Likewise.
14832         * modules/trunc-tests (Depends-on): Likewise.
14833         * modules/truncf-tests (Depends-on): Likewise.
14834         * modules/truncl-tests (Depends-on): Likewise.
14835
14836         strtod: work around icc bug
14837         * lib/strtod.c (minus_zero): Define to working value.
14838         (strtod): Use it to avoid icc bug.
14839
14840         copysign: enhance tests
14841         * modules/copysign-tests (Files): Add minus-zero.h.
14842         * tests/test-copysign.c (main): Also test zeros.
14843
14844 2010-11-04  Eric Blake  <eblake@redhat.com>
14845
14846         ceil, floor, round, trunc: enhance tests of -0
14847         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14848         * tests/test-ceill.c (main): Likewise.
14849         * tests/test-floorf1.c (main): Likewise.
14850         * tests/test-floorl.c (main): Likewise.
14851         * tests/test-round1.c (main): Likewise.
14852         * tests/test-roundf1.c (main): Likewise.
14853         * tests/test-roundl.c (main): Likewise.
14854         * tests/test-trunc1.c (main): Likewise.
14855         * tests/test-truncf1.c (main): Likewise.
14856         * tests/test-truncl.c (main): Likewise.
14857
14858 2010-11-04  Eric Blake  <eblake@redhat.com>
14859
14860         frexp, tests: work around ICC bug with -zero
14861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14862         works with more compilers.
14863         * tests/minus-zero.h: New file.
14864         * modules/ceilf-tests (Files): Include it.
14865         * modules/ceill-tests (Files): Likewise.
14866         * modules/floorf-tests (Files): Likewise.
14867         * modules/floorl-tests (Files): Likewise.
14868         * modules/frexp-nolibm-tests (Files): Likewise.
14869         * modules/frexp-tests (Files): Likewise.
14870         * modules/frexpl-nolibm-tests (Files): Likewise.
14871         * modules/frexpl-tests (Files): Likewise.
14872         * modules/isnan-tests (Files): Likewise.
14873         * modules/isnand-nolibm-tests (Files): Likewise.
14874         * modules/isnand-tests (Files): Likewise.
14875         * modules/isnanf-nolibm-tests (Files): Likewise.
14876         * modules/isnanf-tests (Files): Likewise.
14877         * modules/isnanl-nolibm-tests (Files): Likewise.
14878         * modules/isnanl-tests (Files): Likewise.
14879         * modules/round-tests (Files): Likewise.
14880         * modules/roundf-tests (Files): Likewise.
14881         * modules/roundl-tests (Files): Likewise.
14882         * modules/ldexpl-tests (Files): Likewise.
14883         * modules/signbit-tests (Files): Likewise.
14884         * modules/snprintf-posix-tests (Files): Likewise.
14885         * modules/sprintf-posix-tests (Files): Likewise.
14886         * modules/strtod-tests (Files): Likewise.
14887         * modules/trunc-tests (Files): Likewise.
14888         * modules/truncf-tests (Files): Likewise.
14889         * modules/truncl-tests (Files): Likewise.
14890         * modules/vsnprintf-posix-tests (Files): Likewise.
14891         * modules/vsprintf-posix-tests (Files): Likewise.
14892         * modules/vasnprintf-posix-tests (Files): Likewise.
14893         * modules/vasprintf-posix-tests (Files): Likewise.
14894         * tests/test-ceilf1.c (main): Use it.
14895         * tests/test-ceill.c (main): Likewise.
14896         * tests/test-floorf1.c (main): Likewise.
14897         * tests/test-floorl.c (main): Likewise.
14898         * tests/test-frexp.c (main): Likewise.
14899         * tests/test-frexpl.c (main): Likewise.
14900         * tests/test-isnan.c (main): Likewise.
14901         * tests/test-isnand.h (main): Likewise.
14902         * tests/test-isnanf.h (main): Likewise.
14903         * tests/test-isnanl.h (main): Likewise.
14904         * tests/test-ldexpl.c (main): Likewise.
14905         * tests/test-round.c (main): Likewise.
14906         * tests/test-roundf.c (main): Likewise.
14907         * tests/test-roundl.c (main): Likewise.
14908         * tests/test-signbit.c (test_signbitf, test_signbitd)
14909         (test_signbitl): Likewise.
14910         * tests/test-snprintf-posix.h (test_function): Likewise.
14911         * tests/test-sprintf-posix.h (test_function): Likewise.
14912         * tests/test-strtod.c (main): Likewise.
14913         * tests/test-trunc1.c (main): Likewise.
14914         * tests/test-truncf1.c (main): Likewise.
14915         * tests/test-truncl.c (main): Likewise.
14916
14917         isnanl: work around icc bug
14918         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14919
14920 2010-11-03  Eric Blake  <eblake@redhat.com>
14921
14922         tests: fix compiler warnings
14923         * tests/test-getopt.h (test_getopt): Fix condition.
14924         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14925         * tests/test-pipe2.c (main): Likewise.
14926         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14927
14928         utimens: fix broken m4 test
14929         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14930
14931 2010-10-28  Bruno Haible  <bruno@clisp.org>
14932
14933         posix_spawn*, getdtablesize: Relax license.
14934         * modules/posix_spawn (License): Change to LGPLv2+.
14935         * modules/posix_spawnp (License): Likewise.
14936         * modules/posix_spawn-internal (License): Likewise.
14937         * modules/posix_spawnattr_init (License): Likewise.
14938         * modules/posix_spawnattr_getflags (License): Likewise.
14939         * modules/posix_spawnattr_setflags (License): Likewise.
14940         * modules/posix_spawnattr_getpgroup (License): Likewise.
14941         * modules/posix_spawnattr_setpgroup (License): Likewise.
14942         * modules/posix_spawnattr_getschedparam (License): Likewise.
14943         * modules/posix_spawnattr_setschedparam (License): Likewise.
14944         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14945         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14946         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14947         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14948         * modules/posix_spawnattr_getsigmask (License): Likewise.
14949         * modules/posix_spawnattr_setsigmask (License): Likewise.
14950         * modules/posix_spawnattr_destroy (License): Likewise.
14951         * modules/posix_spawn_file_actions_init (License): Likewise.
14952         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14953         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14954         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14955         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14956         * modules/getdtablesize (License): Likewise.
14957         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14958
14959 2010-10-26  Bruno Haible  <bruno@clisp.org>
14960
14961         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14962         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14963         Cygwin and mingw.
14964         Suggested by Eric Blake.
14965
14966 2010-10-26  Bruno Haible  <bruno@clisp.org>
14967
14968         stdio: Work around compilation error due to renameat() on Solaris 10.
14969         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14970         * lib/renameat.c: Don't include <unistd.h> here.
14971         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14972         Reported by Paul Eggert and Eric Blake.
14973
14974 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         renameat: port to Solaris 10, which declares renameat in unistd.h
14977
14978         * lib/renameat.c: Include unistd.h before stdio.h, because
14979         Solaris 10 declares renameat in unistd.h.  Problem encountered
14980         when building GNU tar 1.24 on Solaris 10.
14981
14982 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14983
14984         fdopendir: fix C89 compilation
14985         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14986         compilers.
14987
14988 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14989
14990         inttostr: simplify by removing unnecessary redundancy
14991         * lib/anytostr.c: Don't include verify.h.
14992         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14993         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14994         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14995         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14996         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14997         Likewise.
14998         * modules/inttostr (Depends-on): Remove 'verify'.
14999
15000 2010-10-23  Bruno Haible  <bruno@clisp.org>
15001
15002         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15003         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15004         Reported by Eric Blake.
15005
15006 2010-10-23  Bruno Haible  <bruno@clisp.org>
15007
15008         Tests: Fix LOCALE_JA on MirBSD 10.
15009         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15010         to an UTF-8 locale.
15011         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15013         Reported by Eric Blake.
15014
15015 2010-10-21  Bruno Haible  <bruno@clisp.org>
15016
15017         nl_langinfo test: Avoid test failure on NetBSD 5.
15018         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15019         Reported by Eric Blake.
15020
15021 2010-10-21  Eric Blake  <eblake@redhat.com>
15022
15023         c-stack: work around libsigsegv 2.8 bug
15024         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15025         overflow on at least PowerPC64.
15026
15027 2010-10-17  Bruno Haible  <bruno@clisp.org>
15028
15029         userspec: Drop redundant file.
15030         * modules/userspec (Files): Remove lib/inttostr.h.
15031
15032 2010-10-17  Bruno Haible  <bruno@clisp.org>
15033
15034         nl_langinfo tests: Silence some warnings.
15035         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15036         Reported by Jim Meyering.
15037
15038 2010-10-17  Bruno Haible  <bruno@clisp.org>
15039
15040         Make use of GCC's attribute __alloc_size__.
15041         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15042         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15043         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15044         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15045         __alloc_size__.
15046         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15047         Suggested by Jim Meyering.
15048
15049 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15050
15051         bootstrap: anchor .gitignore entries.
15052         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15053         with...
15054         (insert_vc_ignore): ... this new function, which prepends `/' to
15055         all .gitignore entries before passing them to
15056         insert_sorted_if_absent.
15057
15058 2010-10-16  Bruno Haible  <bruno@clisp.org>
15059
15060         nextafter: Fix configure check.
15061         * modules/nextafter (configure.ac): Correct expected prototype.
15062
15063 2010-10-16  Bruno Haible  <bruno@clisp.org>
15064
15065         termios: Update documentation.
15066         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15067
15068 2010-10-16  Bruno Haible  <bruno@clisp.org>
15069
15070         tests: Make them compile with TinyCC.
15071         * tests/test-strstr.c (main): Remove parentheses around array
15072         initializer.
15073
15074 2010-10-15  Eric Blake  <eblake@redhat.com>
15075
15076         ignore-value: make header idempotent
15077         * lib/ignore-value.h: Add double-inclusion guards.
15078         Reported by Stefan Berger.
15079
15080 2010-10-15  Jim Meyering  <meyering@redhat.com>
15081
15082         GNUmakefile: handle "stable" target, not "major"
15083         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15084         lists in maint.mk and announce-gen.  Without this, "make stable"
15085         would fail to ensure that $(VERSION) is up to date.
15086
15087 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15088
15089         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15090         & co.
15091
15092 2010-10-14  Bruno Haible  <bruno@clisp.org>
15093
15094         vasnprintf: Don't set errno to 0.
15095         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15096         block that sets it to 0.
15097         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15098
15099 2010-10-14  Bruno Haible  <bruno@clisp.org>
15100
15101         socketlib: Fix.
15102         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15103         gl_PREREQ_SYS_H_WINSOCK2.
15104         Reported by Ian Beckwith <ianb@erislabs.net>.
15105
15106 2010-10-13  Jim Meyering  <meyering@redhat.com>
15107
15108         test-select-stdin.c: avoid warn_unused_result warnings
15109         * tests/test-select-stdin.c: Include "macros.h".
15110         ASSERT that read and fflush succeed.
15111
15112 2010-10-13  Jim Meyering  <meyering@redhat.com>
15113
15114         git-version-gen: do require git-VC'd files in cwd
15115         * build-aux/git-version-gen: Reject a git version string
15116         if there are no commits associated with the current directory.
15117         This avoids an unlikely false-positive (unrelated dir whose parent
15118         repository also contains a tag matching v*), as pointed out
15119         by Giuseppe Scrivano in
15120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15121
15122 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15123
15124         argv-iter: omit nonconforming declaration
15125         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15126         enum arg_iter_err declaration, which doesn't conform to C99.
15127         Solaris 10 cc warns about this.
15128
15129 2010-10-13  Eric Blake  <eblake@redhat.com>
15130
15131         termios: fix compilation on mingw
15132         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15133         (gl_TERMIOS_H): Adjust it on mingw.
15134         * modules/termios (Makefile.am): Substitute new key.
15135         * lib/termios.in.h (includes): Make include_next conditional.
15136         * doc/posix-headers/termios.texi (termios.h): Update
15137         documentation.
15138         Reported by Daniel P. Berrange.
15139
15140 2010-10-13  Jim Meyering  <meyering@redhat.com>
15141
15142         git-version-gen: don't require that .git/ be in the current dir
15143         * build-aux/git-version-gen: Adjust this script so that it works
15144         when run from any working directory beneath the top-level .git/-
15145         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15147
15148         test-select: avoid warn_unused_result warnings
15149         * tests/test-select.c: Include "macros.h".
15150         ASSERT that each call to read, write, and pipe succeeds.
15151         While not technically required, also check each "close".
15152         * modules/select-tests (Files): Add tests/macros.h.
15153
15154         test-symlinkat: remove declaration of unused local
15155         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15156
15157         test-inttostr: avoid shadowing warnings
15158         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15159         and use malloc rather than the stack for the same reason as
15160         mentioned in the comment justifying the other allocation.
15161
15162 2010-10-11  Bruno Haible  <bruno@clisp.org>
15163
15164         stdlib: Allow multiple gnulib generated replacements to coexist.
15165         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15166         Reported by Sam Steingold <sds@gnu.org>.
15167
15168 2010-10-11  Jim Meyering  <meyering@redhat.com>
15169
15170         fix a documentation typo
15171         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15172
15173 2010-10-11  Eric Blake  <eblake@redhat.com>
15174
15175         futimens: work around Solaris 11 bug
15176         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15177         * tests/test-futimens.h (test_futimens): Enhance, rather than
15178         weaken test.
15179         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15180
15181 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15182
15183         Indentation.
15184         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15185         higher-level operators more to the left.
15186
15187 2010-10-11  Jim Meyering  <meyering@redhat.com>
15188
15189         test-futimens: avoid unwarranted test failure on Solaris 5.11
15190         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15191         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15192         because it tries to dereference the NULL name argument.
15193
15194 2010-10-11  Bruno Haible  <bruno@clisp.org>
15195
15196         Indentation.
15197         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15198         indentation.
15199
15200 2010-10-11  Jim Meyering  <meyering@redhat.com>
15201
15202         spawn.in.h: make indentation consistent with parentheses
15203         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15204         Make indentation consistent with parentheses.
15205
15206 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15207
15208         Fix mismatched parens in previous commit
15209         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15210         parens.
15211
15212 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15213
15214         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15215
15216         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15217         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15218         * lib/malloca.c: Include "verify.h".
15219         (verify1): Remove, replacing with a verify call.
15220         * lib/relocwrapper.c (verify1): Likewise.
15221         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15222         Likewise.
15223         * modules/malloca (Depends-on): Add 'verify'.
15224         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15225         * modules/vasnprintf (Depends-on): Add 'verify'.
15226         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15227         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15228         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15229         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15230         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15231         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15232         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15233
15234         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15235
15236         Formerly the style was sometimes 2*X - 1, because the C standard
15237         was wrongly thought to disallow ?: in integral constant expressions.
15238         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15239         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15240         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15241         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15242         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15243         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15244         verify that time_t cannot be floating.
15245
15246 2010-10-08  Eric Blake  <eblake@redhat.com>
15247
15248         time: enforce recent POSIX ruling that time_t is integral
15249         * lib/time.in.h (__time_t_must_be_integral): Detect any
15250         problematic systems, allowing the rest of gnulib to assume POSIX.
15251
15252 2010-10-08  Jim Meyering  <meyering@redhat.com>
15253
15254         fdopendir: fix a bug on systems lacking openat and /proc support
15255         OpenBSD 4.7 is one such system.  The most noticeable effect was
15256         failure of any application making nontrivial use of fts: rm, du,
15257         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15258           ./rm: traversal failed: `a': Bad file descriptor
15259         Debugging that, you see that even though FD 6 was closed just
15260         prior to the opendir call in fd_clone_opendir, its resulting
15261         dir->dd_fd was 8, rather than the expected value of 6:
15262
15263         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15264         93                close (fd);
15265         (gdb) n
15266         94                dir = fd_clone_opendir (dupfd);
15267         (gdb) n
15268         95                saved_errno = errno;
15269         (gdb) p dir->dd_fd
15270         $11 = 8
15271
15272         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15273         The problem is that on OpenBSD, fd_clone_opendir has to resort
15274         to using the old-style save/restore CWD mechanism, due to its
15275         lack of openat/proc support, and *that* would steal the FD (6)
15276         that opendir was supposed to use.
15277
15278         The fix is to squirrel away the desired FD so that save_cwd uses a
15279         different one, and then free the dest FD right before calling opendir.
15280         That guarantees opendir will use the required file descriptor.
15281
15282         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15283
15284 2010-10-08  Bruno Haible  <bruno@clisp.org>
15285
15286         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15287         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15288
15289 2010-10-08  Bruno Haible  <bruno@clisp.org>
15290
15291         nanosleep: Make replacement POSIX compliant.
15292         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15293         is out of range.
15294         Reported by Jim Meyering.
15295
15296 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15297
15298         bootstrap: add hook for altering gnulib.mk, for Bison
15299         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15300         the Bison bootstrapping process can rewrite file names and variables
15301         in this file before later parts of 'bootstrap' use the file.
15302         Bison wants to include lib/gnulib.mk from the top-level makefile,
15303         so it needs the file names in this file to be relative to the top
15304         level, not relative to lib; plus it needs variable names to be
15305         rewritten.
15306         (slurp): Use the new function.
15307
15308         bootstrap: reformat for readability
15309         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15310
15311 2010-10-08  Eric Blake  <eblake@redhat.com>
15312
15313         docs: update cygwin progress
15314         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15315         1.7.7.
15316         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15317         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15318         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15319         * doc/posix-functions/carg.texi (carg): Likewise.
15320         * doc/posix-functions/cargf.texi (cargf): Likewise.
15321         * doc/posix-functions/casin.texi (casin): Likewise.
15322         * doc/posix-functions/casinf.texi (casinf): Likewise.
15323         * doc/posix-functions/casinh.texi (casinh): Likewise.
15324         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15325         * doc/posix-functions/catan.texi (catan): Likewise.
15326         * doc/posix-functions/catanf.texi (catanf): Likewise.
15327         * doc/posix-functions/catanh.texi (catanh): Likewise.
15328         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15329         * doc/posix-functions/ccos.texi (ccos): Likewise.
15330         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15331         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15332         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15333         * doc/posix-functions/cexp.texi (cexp): Likewise.
15334         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15335         * doc/posix-functions/cimag.texi (cimag): Likewise.
15336         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15337         * doc/posix-functions/clog.texi (clog): Likewise.
15338         * doc/posix-functions/clogf.texi (clogf): Likewise.
15339         * doc/posix-functions/conj.texi (conj): Likewise.
15340         * doc/posix-functions/conjf.texi (conjf): Likewise.
15341         * doc/posix-functions/cpow.texi (cpow): Likewise.
15342         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15343         * doc/posix-functions/cproj.texi (cproj): Likewise.
15344         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15345         * doc/posix-functions/creal.texi (creal): Likewise.
15346         * doc/posix-functions/crealf.texi (crealf): Likewise.
15347         * doc/posix-functions/csin.texi (csin): Likewise.
15348         * doc/posix-functions/csinf.texi (csinf): Likewise.
15349         * doc/posix-functions/csinh.texi (csinh): Likewise.
15350         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15351         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15352         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15353         * doc/posix-functions/ctan.texi (ctan): Likewise.
15354         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15355         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15356         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15357         * doc/posix-headers/complex.texi (complex.h): Likewise.
15358
15359 2010-10-07  Jim Meyering  <meyering@redhat.com>
15360
15361         parse-datetime: avoid compilation failure on OpenBSD 4.7
15362         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15363         This works around a compilation failure on OpenBSD 4.7:
15364         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15365
15366 2010-10-07  Eric Blake  <eblake@redhat.com>
15367
15368         docs: update cygwin progress
15369         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15370         1.7.6.
15371         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15372         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15373         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15374         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15375         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15376         Likewise.
15377         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15378         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15379         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15380         Likewise.
15381         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15382         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15383         Likewise.
15384         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15385         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15386         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15387         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15388         Likewise.
15389         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15390         Likewise.
15391         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15392
15393         docs: update parse-datetime history
15394         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15395         documentation of this function's history and alternatives.
15396
15397         cygwin: use more robust version check
15398         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15399         exclude an eventual cygwin 1.9.1.
15400         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15402         (gl_FUNC_STRCASESTR): Likewise.
15403         Reported by Bruno Haible.
15404
15405 2010-10-06  Bruno Haible  <bruno@clisp.org>
15406
15407         string, sys_select: Avoid #including large headers unless necessary.
15408         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15409         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15410         OSF/1, BeOS, Haiku.
15411         Reported by Jim Meyering.
15412
15413 2010-10-05  Eric Blake  <eblake@redhat.com>
15414
15415         memmem, strstr, strcasestr: fix bug with long periodic needle
15416         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15417         periodic needle having false positive.
15418         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15419         and cygwin 1.7.7.
15420         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15422         (gl_FUNC_STRCASESTR): Likewise.
15423         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15424         * tests/test-memmem.c (main): Expose the bug.
15425         * tests/test-strcasestr.c (main): Likewise.
15426         * tests/test-strstr.c (main): Likewise.
15427         * tests/test-c-strcasestr.c (main): Likewise.
15428         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15429         * doc/posix-functions/strstr.texi (strstr): Likewise.
15430         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15431         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15432
15433 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15434
15435         parse-datetime: do some more renaming
15436         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15437         parse_datetime, not get_date.  Mention the renaming.
15438         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15439         in comments.
15440         * m4/bison.m4: Likewise.
15441
15442 2010-10-05  Eric Blake  <eblake@redhat.com>
15443
15444         parse-datetime: better name than get_date
15445         * NEWS: Reword the deprecation notice.
15446         * modules/get_date: Rename to modules/parse-datetime.
15447         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15448         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15449         * lib/get_date.y: Rename to lib/parse-datetime.y.
15450         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15451         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15452         * doc/getdate.texi: Provide fallback wrapper.
15453         * lib/getdate.h: Move guts, and wrap...
15454         * lib/parse-datetime.h: ...new file.
15455         * lib/parse-datetime.y (get_date): Rename...
15456         (parse_datetime): ...to this.
15457         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15458         (gl_PARSE_DATETIME): ...to this.
15459         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15460         documentation.
15461         * modules/getdate (Files): Provide fallback docs and header.
15462         (Notice, Depends-on): Update references.
15463         * tests/test-parse-datetime.c: Likewise.
15464         * DEPENDENCIES: Likewise.
15465         * MODULES.html.sh (Date and time <time.h>): Likewise.
15466         * doc/parse-datetime.texi (Date input formats)
15467         (Authors of parse_datetime): Likewise.
15468         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15469         (Include): Likewise.
15470         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15471         * gnulib-tool: Likewise.
15472         * m4/bison.m4 (gl_BISON): Likewise.
15473         Suggested by Bruno Haible.
15474
15475 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15476
15477         more ports to Solaris tr, which needs [] around ranges
15478         * gnulib-tool: Solaris tr needs [] around ranges.
15479         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15480         * tests/test-pipe-filter-gi1.c (main): Likewise.
15481         * tests/test-pipe-filter-ii1.c (main): Likewise.
15482
15483 2010-10-05  Eric Blake  <eblake@redhat.com>
15484
15485         bootstrap: fix Solaris regression
15486         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15487         around ranges.
15488         Reported by Pádraig Brady.
15489
15490         bootstrap: work with pkg-config
15491         * build-aux/bootstrap (check_versions): Also transliterate - in
15492         prerequisite name.
15493         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15494         prerequisites that were already found, to avoid confusion.
15495         Reported by Justin Clift.
15496
15497         faccessat: remove unused wrappers
15498         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15499         presence of these wrappers dragged in -lgen on Solaris.
15500         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15501
15502 2010-10-05  Jim Meyering  <meyering@redhat.com>
15503
15504         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15505         * Makefile (sc_pragma_columns): New syntax-check rule.
15506
15507 2010-10-04  Bruno Haible  <bruno@clisp.org>
15508
15509         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15510         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15511         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15512         Reported by Bruce Korb and Eric Blake.
15513
15514 2010-10-04  Bruno Haible  <bruno@clisp.org>
15515
15516         threadlib: Make option --with-libpth-prefix work.
15517         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15518         use $LIBPTH, not just -lpth.
15519
15520 2010-10-04  Bruno Haible  <bruno@clisp.org>
15521
15522         Avoid line length limitation from HP NonStop system header files.
15523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15524         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15525         * lib/ctype.in.h: Likewise.
15526         * lib/dirent.in.h: Likewise.
15527         * lib/errno.in.h: Likewise.
15528         * lib/fcntl.in.h: Likewise.
15529         * lib/float.in.h: Likewise.
15530         * lib/getopt.in.h: Likewise.
15531         * lib/iconv.in.h: Likewise.
15532         * lib/inttypes.in.h: Likewise.
15533         * lib/langinfo.in.h: Likewise.
15534         * lib/locale.in.h: Likewise.
15535         * lib/math.in.h: Likewise.
15536         * lib/netdb.in.h: Likewise.
15537         * lib/netinet_in.in.h: Likewise.
15538         * lib/poll.in.h: Likewise.
15539         * lib/pthread.in.h: Likewise.
15540         * lib/pty.in.h: Likewise.
15541         * lib/sched.in.h: Likewise.
15542         * lib/se-selinux.in.h: Likewise.
15543         * lib/search.in.h: Likewise.
15544         * lib/signal.in.h: Likewise.
15545         * lib/spawn.in.h: Likewise.
15546         * lib/stdarg.in.h: Likewise.
15547         * lib/stddef.in.h: Likewise.
15548         * lib/stdint.in.h: Likewise.
15549         * lib/stdio.in.h: Likewise.
15550         * lib/stdlib.in.h: Likewise.
15551         * lib/string.in.h: Likewise.
15552         * lib/strings.in.h: Likewise.
15553         * lib/sys_file.in.h: Likewise.
15554         * lib/sys_ioctl.in.h: Likewise.
15555         * lib/sys_select.in.h: Likewise.
15556         * lib/sys_socket.in.h: Likewise.
15557         * lib/sys_stat.in.h: Likewise.
15558         * lib/sys_time.in.h: Likewise.
15559         * lib/sys_times.in.h: Likewise.
15560         * lib/sys_utsname.in.h: Likewise.
15561         * lib/sys_wait.in.h: Likewise.
15562         * lib/sysexits.in.h: Likewise.
15563         * lib/termios.in.h: Likewise.
15564         * lib/time.in.h: Likewise.
15565         * lib/unistd.in.h: Likewise.
15566         * lib/wchar.in.h: Likewise.
15567         * lib/wctype.in.h: Likewise.
15568         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15569         * modules/ctype (Makefile.am): Likewise.
15570         * modules/dirent (Makefile.am): Likewise.
15571         * modules/errno (Makefile.am): Likewise.
15572         * modules/fcntl-h (Makefile.am): Likewise.
15573         * modules/float (Makefile.am): Likewise.
15574         * modules/getopt-posix (Makefile.am): Likewise.
15575         * modules/iconv-h (Makefile.am): Likewise.
15576         * modules/inttypes (Makefile.am): Likewise.
15577         * modules/langinfo (Makefile.am): Likewise.
15578         * modules/locale (Makefile.am): Likewise.
15579         * modules/math (Makefile.am): Likewise.
15580         * modules/netdb (Makefile.am): Likewise.
15581         * modules/netinet_in (Makefile.am): Likewise.
15582         * modules/poll-h (Makefile.am): Likewise.
15583         * modules/pthread (Makefile.am): Likewise.
15584         * modules/pty (Makefile.am): Likewise.
15585         * modules/sched (Makefile.am): Likewise.
15586         * modules/search (Makefile.am): Likewise.
15587         * modules/selinux-h (Makefile.am): Likewise.
15588         * modules/signal (Makefile.am): Likewise.
15589         * modules/spawn (Makefile.am): Likewise.
15590         * modules/stdarg (Makefile.am): Likewise.
15591         * modules/stddef (Makefile.am): Likewise.
15592         * modules/stdint (Makefile.am): Likewise.
15593         * modules/stdio (Makefile.am): Likewise.
15594         * modules/stdlib (Makefile.am): Likewise.
15595         * modules/string (Makefile.am): Likewise.
15596         * modules/strings (Makefile.am): Likewise.
15597         * modules/sys_file (Makefile.am): Likewise.
15598         * modules/sys_ioctl (Makefile.am): Likewise.
15599         * modules/sys_select (Makefile.am): Likewise.
15600         * modules/sys_socket (Makefile.am): Likewise.
15601         * modules/sys_stat (Makefile.am): Likewise.
15602         * modules/sys_time (Makefile.am): Likewise.
15603         * modules/sys_times (Makefile.am): Likewise.
15604         * modules/sys_utsname (Makefile.am): Likewise.
15605         * modules/sys_wait (Makefile.am): Likewise.
15606         * modules/sysexits (Makefile.am): Likewise.
15607         * modules/termios (Makefile.am): Likewise.
15608         * modules/time (Makefile.am): Likewise.
15609         * modules/unistd (Makefile.am): Likewise.
15610         * modules/wchar (Makefile.am): Likewise.
15611         * modules/wctype (Makefile.am): Likewise.
15612
15613 2010-10-04  Bruno Haible  <bruno@clisp.org>
15614
15615         read-file tests: Avoid a test failure on NonStop Kernel.
15616         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15617         a regular file.
15618         Reported by Joachim Schmitz <schmitz@hp.com>.
15619
15620 2010-10-03  Bruno Haible  <bruno@clisp.org>
15621
15622         gnulib-tool: Fixes for --create-testdir with --libtool.
15623         * gnulib-tool (func_get_automake_snippet): Don't augment
15624         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15625         an executable.
15626         (func_create_testdir): Handle module 'alloca' like func_import.
15627         Reported by Bruce Korb <bruce.korb@gmail.com>.
15628
15629 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15630
15631         Avoid some lines longer than 80 characters.
15632         * lib/stdint.in.h: Break long comment lines.
15633         * lib/math.in.h: Likewise.
15634         (_GL_NUM_UINT_WORDS): New macro, for readability.
15635         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15636         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15637         * lib/stdlib.in.h: Likewise.
15638         * lib/spawn.in.h: Likewise.
15639         * lib/sys_socket.in.h: Update an URL.
15640         * lib/sys_stat.in.h: Break long line.
15641
15642 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15643
15644         Improve pmccabe2html.
15645         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15646         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15647         when the sources change. Remove the line in the HTML about "Used
15648         ranges" (which implied that there might be other unused ranges),
15649         rename "Resume" to "Summary" (easier to understand for more users).
15650         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15651         styles, and some unnecessary blank lines.
15652
15653 2010-10-03  Bruno Haible  <bruno@clisp.org>
15654             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15655
15656         acl: Add support for ACLs on NonStop Kernel.
15657         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15658         Check whether the function aclsort() exists.
15659         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15660         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15661         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15662         (acl_nontrivial [HAVE_ACLSORT]: New function.
15663         (file_has_acl): Implement for NonStop Kernel.
15664         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15665         (qset_acl): Implement for NonStop Kernel.
15666         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15667         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15668         (main): Implement for NonStop Kernel.
15669         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15670         Kernel. Handle this flavor.
15671         * tests/test-set-mode-acl.sh: Likewise.
15672         * tests/test-copy-acl.sh: Likewise.
15673         * tests/test-copy-file.sh: Likewise.
15674
15675 2010-10-03  Bruno Haible  <bruno@clisp.org>
15676
15677         Info about ACLs on NonStop Kernel.
15678         * doc/acl-resources.txt: Add info about NonStop Kernel.
15679         References by Joachim Schmitz <schmitz@hp.com>.
15680
15681 2010-10-02  Bruno Haible  <bruno@clisp.org>
15682
15683         Define missing EDQUOT on NonStop Kernel.
15684         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15685         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15687         missing.
15688         * doc/posix-headers/errno.texi: Mention the NSK bug.
15689         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15690         Reported by Joachim Schmitz <schmitz@hp.com>.
15691
15692 2010-10-02  Bruno Haible  <bruno@clisp.org>
15693
15694         Update doc for POSIX:2008.
15695         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15696         Update URL of POSIX specification.
15697
15698 2010-10-02  Bruno Haible  <bruno@clisp.org>
15699
15700         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15701         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15702         from gnulib, not from Automake.
15703
15704 2010-10-02  Bruno Haible  <bruno@clisp.org>
15705
15706         New module 'system-posix'.
15707         * modules/system-posix: New file.
15708         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15709         module is present.
15710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15711         GNULIB_SYSTEM_POSIX.
15712         * modules/stdlib (Depends-on): Remove sys_wait.
15713         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15714         * doc/posix-functions/system.texi: Mention the new module.
15715         * doc/posix-headers/stdlib.texi: Likewise.
15716         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15717         define test_sys_wait_macros to a no-op.
15718         Reported by Sam Steingold <sds@gnu.org>.
15719
15720 2010-09-30  Bruno Haible  <bruno@clisp.org>
15721
15722         More renaming from 'getdate' to 'get_date'.
15723         * doc/get_date.texi: Renamed from doc/getdate.texi.
15724         * modules/get_date (Files): Update.
15725         * MODULES.html.sh (Date and time <time.h>): Update.
15726         * DEPENDENCIES: Update.
15727         * gnulib-tool: Update comment.
15728         * m4/bison.m4 (gl_BISON): Likewise.
15729         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15730
15731 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15732
15733         bootstrap: support ACLOCAL_FLAGS during aclocal
15734         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15735         can add additional -I dir for third-party .m4 files.
15736
15737 2010-09-30  Eric Blake  <eblake@redhat.com>
15738
15739         bootstrap: use glibtoolize on MacOS
15740         * build-aux/bootstrap (check_versions): Convert libtool into
15741         libtoolize.
15742         (tool search): Move libtool check earlier, and look for
15743         glibtoolize for MacOS.
15744         (gnulib_tool_options): Auto-add --libtool when appropriate.
15745         Reported by Justin Clift.
15746
15747         poll: fix typo that broke test on MacOS
15748         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15749         Reported by Justin Clift.
15750
15751         getdate: rename to get_date
15752         Note: getdate.h is not renamed, to minimize client impact.
15753         * modules/getdate: Mark obsolete.  Move old contents...
15754         * modules/get_date: ...to new module name.
15755         * modules/getdate-tests: Move...
15756         * modules/get_date-tests: ...here.
15757         * m4/getdate.m4: Move...
15758         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15759         * lib/getdate.y: Move...
15760         * lib/get_date.y: ...here.
15761         * tests/test-getdate.c: Move...
15762         * tests/test-get_date.c: ...here.
15763         * doc/posix-functions/getdate.texi (getdate): Update name.
15764         * NEWS: Mention the change.
15765
15766 2010-09-29  Bruno Haible  <bruno@clisp.org>
15767
15768         Separate the module 'waitpid' from the module 'sys_wait'.
15769         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15770         present.
15771         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15772         gl_MODULE_INDICATOR_FOR_TESTS.
15773         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15774         * modules/sys_wait (Depends-on): Remove waitpid.
15775         (Makefile.am): Substitute GNULIB_WAITPID.
15776         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15777         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15778         signature only if the 'waitpid' module is present.
15779         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15780         * NEWS: Mention the change.
15781         * modules/grantpt (Depends-on): Add waitpid.
15782         * modules/wait-process (Depends-on): Likewise.
15783
15784 2010-09-29  Bruno Haible  <bruno@clisp.org>
15785
15786         More tests for module 'sys_wait'.
15787         * modules/sys_wait-c++-tests: New file.
15788         * tests/test-sys_wait-c++.cc: New file.
15789         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15790         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15791
15792 2010-09-29  Bruno Haible  <bruno@clisp.org>
15793
15794         New module 'waitpid'.
15795         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15796         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15797         Don't include <process.h>.
15798         (waitpid): Declare only, using modern idiom.
15799         * m4/waitpid.m4: New file.
15800         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15801         * modules/waitpid: New file.
15802         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15803         (Makefile.am): Update.
15804         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15805
15806 2010-09-28  Bruno Haible  <bruno@clisp.org>
15807
15808         poll: Assume ANSI C.
15809         * lib/poll.c (poll): Use an ANSI C declaration.
15810
15811 2010-09-28  Bruno Haible  <bruno@clisp.org>
15812
15813         poll-h: Create poll.h on all platforms.
15814         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15815         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15816         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15817         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15818         (gl_REPLACE_POLL_H): Don't set POLL_H.
15819         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15820         * modules/poll-h (Depends-on): Add include_next.
15821         (Makefile.am): Create poll.h unconditionally. Substitute also
15822         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15823
15824 2010-09-28  Bruno Haible  <bruno@clisp.org>
15825
15826         Tests for module 'poll-h'.
15827         * modules/poll-h-c++-tests: New file.
15828         * tests/test-poll-h-c++.cc: New file.
15829
15830         Tests for module 'poll-h'.
15831         * modules/poll-h-tests: New file.
15832         * tests/test-poll-h.c: New file.
15833
15834 2010-09-28  Bruno Haible  <bruno@clisp.org>
15835
15836         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15837         * modules/poll-h (Depends-on): Add 'extensions'.
15838
15839 2010-09-28  Bruno Haible  <bruno@clisp.org>
15840
15841         New module 'poll-h'.
15842         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15843         (poll): Use modern idiom.
15844         * modules/poll-h: New file.
15845         * modules/poll (Files): Remove lib/poll.in.h.
15846         (Depends-on): Add poll-h.
15847         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15848         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15849         * m4/poll_h.m4: New file.
15850         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15851         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15852         and invoke gl_REPLACE_POLL_H.
15853         * lib/poll.c: Use common idiom.
15854         * tests/test-poll.c: Likewise.
15855         * doc/posix-headers/poll.texi: Mention the poll-h module.
15856         Suggested by Eric Blake.
15857
15858 2010-09-26  Bruno Haible  <bruno@clisp.org>
15859
15860         sys_wait: Implement WSTOPSIG.
15861         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15862         Reported by Simon Josefsson.
15863
15864 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15865
15866         stdlib, sys_wait: Avoid compilation error on mingw.
15867         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15868
15869 2010-09-26  Bruno Haible  <bruno@clisp.org>
15870
15871         stdlib tests: Avoid code duplication.
15872         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15873         * modules/sys_wait-tests (Files): Likewise.
15874         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15875         * tests/test-stdlib.c: Include test-sys_wait.h.
15876         (main): Invoke test_sys_wait_macros.
15877         * tests/test-sys_wait.c: Include test-sys_wait.h.
15878         (main): Invoke test_sys_wait_macros.
15879
15880 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15881
15882         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15883         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15884         sure Windows sockets are working before calling getaddrinfo.
15885         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15886         * doc/gnulib.texi (Windows sockets): Fix typo.
15887
15888 2010-09-25  Bruno Haible  <bruno@clisp.org>
15889
15890         Tests for module 'regex-quote'.
15891         * modules/regex-quote-tests: New file.
15892         * tests/test-regex-quote.c: New file.
15893
15894         New module 'regex-quote'.
15895         * lib/regex-quote.h: New file.
15896         * lib/regex-quote.c: New file.
15897         * modules/regex-quote: New file.
15898         Suggested by Reuben Thomas <rrt@sc3d.org>.
15899
15900 2010-09-24  Bruno Haible  <bruno@clisp.org>
15901
15902         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15903         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15904
15905 2010-09-23  Bruno Haible  <bruno@clisp.org>
15906
15907         setenv: Relax license.
15908         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15909         Blake.
15910         Requested by Eric Blake.
15911
15912 2010-09-22  Bruno Haible  <bruno@clisp.org>
15913
15914         termios: Relax license.
15915         * modules/termios (License): Change to LGPLv2+.
15916         Requested by Eric Blake.
15917
15918 2010-09-22  Bruno Haible  <bruno@clisp.org>
15919
15920         threadlib: Allow the package to change the default to 'no'.
15921         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15922         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15923         Reported by Paul Eggert.
15924
15925 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15926             Bruno Haible  <bruno@clisp.org>
15927
15928         Fix endless loop in mbmemcasecoll.
15929         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15930         byte.
15931         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15932
15933 2010-09-22  Bruno Haible  <bruno@clisp.org>
15934
15935         Tests for module 'memcoll'.
15936         * modules/memcoll-tests: New file.
15937         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15938
15939         memcoll, xmemcoll: Clarify size vs. length.
15940         * modules/memcoll.c (memcoll0): Clarify specification.
15941         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15942         passed to collate_error.
15943
15944 2010-09-22  Bruno Haible  <bruno@clisp.org>
15945
15946         Tests for module 'memcasecmp'.
15947         * modules/memcasecmp-tests: New file.
15948         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15949
15950 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15951
15952         * lib/pthread.in.h: Add split double-inclusion guard, and include
15953         system <pthread.h> if there is one.  Use @@-style as in other
15954         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15955         pthread.h doesn't.
15956         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15957         (pthread_mutexattr_settype, pthread_mutex_trylock):
15958         New static inline functions, if there's no system <pthread.h>.
15959         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15960         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15961         Approximate with mutexes if the system lacks spinlocks, as in
15962         MacOS.
15963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15964         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15965         @@-style.  Check for spinlocks separately.
15966         (gl_PTHREAD_DEFAULTS): New macro.
15967         * modules/pthread: Redo to use a more typical style for in.h files.
15968
15969 2010-09-21  Eric Blake  <eblake@redhat.com>
15970
15971         net_if: enhance tests
15972         * tests/test-net_if.c (main): Move signature checks earlier.
15973         Print failures to stderr.
15974         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15975         Document the bug that we do not yet fix.
15976
15977 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15978
15979         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15980         about gnulib, not GSS.
15981
15982 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15983
15984         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15985         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15986         for Emacs.
15987         * build-aux/pmccabe2html: Make Makefile.am example code more
15988         cut-and-paste friendly.
15989
15990 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15991
15992         * tests/test-net_if.c: New file.
15993         * modules/net_if-tests: New file.
15994
15995 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15996
15997         pthread: add pthread_spin_destroy
15998         * lib/pthread.in.h (pthread_spin_destroy): New function.
15999
16000 2010-09-19  Bruno Haible  <bruno@clisp.org>
16001
16002         gnulib-tool: Fix --help output.
16003         * gnulib-tool (func_usage): Fix help message.
16004         Reported by Reuben Thomas <rrt@sc3d.org>.
16005
16006 2010-09-18  Jim Meyering  <meyering@redhat.com>
16007
16008         maint.mk: avoid unexpanded \n in two diagnostics
16009         * top/maint.mk (sc_prohibit_always_true_header_tests):
16010         Don't use a literal \n in a halt=... assignment.  It would not be
16011         expanded, and the two \n bytes would appear in the diagnostic output
16012         rather than the desired newline.  Use halt=$$(printf ... instead.
16013         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16014
16015 2010-09-18  Bruno Haible  <bruno@clisp.org>
16016
16017         netinet_in: Doc tweak.
16018         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16020
16021 2010-09-18  Jim Meyering  <meyering@redhat.com>
16022
16023         init.sh: correct an outdated comment
16024         * tests/init.sh (create_exe_shims_):  s/function/alias/
16025
16026         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16027         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16028         a file named "*.exe" is removed between the glob expansion and the
16029         processing of that oddly named file.
16030
16031 2010-09-17  Eric Blake  <eblake@redhat.com>
16032
16033         mirbsd: add some more support
16034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16035         in BSD family.
16036         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16037         devices as OpenBSD.
16038         * m4/host-os.m4 (mirbsd): Add MirBSD.
16039
16040         tests: fix unportable assumption on sys/wait.h
16041         * tests/test-sys_wait.c (main): Relax test.
16042         * tests/test-stdlib.c (main): Likewise.
16043
16044         init.sh: accomodate directory with no .exes
16045         * tests/init.sh: Accomodate directory containing only scripts.
16046
16047         tests: avoid compiler warning
16048         * tests/test-stdlib.c (main): Use the variable.
16049
16050         fdutimens, fdutimensat: update signature, again
16051         * lib/utimens.h (gl_futimens): Delete, and move signature...
16052         (fdutimens): ...here.
16053         (fdutimensat): Rearrange signature.
16054         (lutimensat): Rename variable for clarity.
16055         * lib/fdutimensat.c (fdutimensat): Update signature.
16056         * lib/utimens.c (fdutimens): Likewise.
16057         (gl_futimens): Delete.
16058         (utimens, lutimens): Update callers.
16059         * lib/futimens.c (futimens): Likewise.
16060         * tests/test-fdutimensat.c: Likewise.
16061         * tests/test-utimens.c: Likewise.
16062         * tests/test-futimens.h: Update comment.
16063         * NEWS: Mention this.
16064         Suggested by Paul Eggert.
16065
16066 2010-09-17  Bruno Haible  <bruno@clisp.org>
16067
16068         Take over the maintenance of some older macros from Autoconf.
16069         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16070         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16071         GNU Autoconf.
16072         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16073         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16074
16075 2010-09-17  Eric Blake  <eblake@redhat.com>
16076
16077         fdutimensat: drop atflag validation
16078         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16079         with valid fd, to close a race scenario where futimens is
16080         unsupported and FILE was replaced by a symlink.
16081         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16082         accordingly.
16083         Suggested by Paul Eggert.
16084
16085 2010-09-16  Bruno Haible  <bruno@clisp.org>
16086
16087         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16088         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16089
16090 2010-09-16  Bruno Haible  <bruno@clisp.org>
16091
16092         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16093         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16094         login_tty exists.
16095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16096
16097 2010-09-16  Bruno Haible  <bruno@clisp.org>
16098
16099         login_tty: Make the replacement code work on BSD systems.
16100         * lib/login_tty.c: Include <sys/ioctl.h>.
16101         (login_tty): Use ioctl TIOCSCTTY when available.
16102         * modules/login_tty (Depends-on): Add sys_ioctl.
16103         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16104
16105 2010-09-16  Bruno Haible  <bruno@clisp.org>
16106
16107         login_tty: Stricter unit test.
16108         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16109         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16110         and tcgetsid() after login_tty.
16111         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16112
16113 2010-09-16  Bruno Haible  <bruno@clisp.org>
16114
16115         New module 'tcgetsid'.
16116         * lib/tcgetsid.c: New file.
16117         * m4/tcgetsid.m4: New file.
16118         * modules/tcgetsid: New file.
16119         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16120         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16121         GNULIB_TCGETSID, HAVE_TCGETSID.
16122         * lib/termios.in.h: Include <sys/types.h>.
16123         (tcgetsid): New declaration.
16124         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16125         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16126         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16127         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16128
16129 2010-09-16  Bruno Haible  <bruno@clisp.org>
16130
16131         Tests for module 'termios'.
16132         * modules/termios-c++-tests: New file.
16133         * modules/termios-tests: New file.
16134         * tests/test-termios-c++.cc: New file.
16135         * tests/test-termios.c: New file.
16136
16137         New module 'termios'.
16138         * modules/termios: New file.
16139         * lib/termios.in.h: New file.
16140         * m4/termios_h.m4: New file.
16141         * doc/posix-headers/termios.texi: Mention the new module.
16142
16143 2010-09-16  Eric Blake  <eblake@redhat.com>
16144
16145         fdutimensat: add an atflag parameter
16146         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16147         * lib/utimens.h (fdutimensat): Update prototype.
16148         * tests/test-fdutimensat.c: Adjust test to match.
16149         * NEWS: Document the change.
16150         Suggested by Paul Eggert.
16151
16152 2010-09-16  Bruno Haible  <bruno@clisp.org>
16153
16154         Fix typos in comments.
16155         * lib/striconveh.h: Fix typo in comment.
16156         * lib/login_tty.c (login_tty): Likewise.
16157
16158 2010-09-15  Bruno Haible  <bruno@clisp.org>
16159
16160         stdlib: clarify MirBSD WEXITSTATUS bug
16161         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16162         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16163
16164 2010-09-15  Eric Blake  <eblake@redhat.com>
16165
16166         stdlib: work around MirBSD WEXITSTATUS bug
16167         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16168         * modules/stdlib (Depends-on): Add sys_wait.
16169         * tests/test-sys_wait.c (main): Enhance test.
16170         * tests/test-stdlib.c (main): Likewise.
16171         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16172
16173         docs: mention MacOS issue with WEXITSTATUS(constant)
16174         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16175         issue.
16176         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16177
16178         strnlen: add tests
16179         * modules/strnlen-tests: New file.
16180         * tests/test-strnlen.c: Likewise.
16181
16182 2010-09-14  Bruno Haible  <bruno@clisp.org>
16183
16184         unistr/base: Avoid link errors when module 'libunistring' is also used.
16185         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16186         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16187         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16188         Declare also when HAVE_LIBUNISTRING is set.
16189         Reported by Pádraig Brady <P@draigbrady.com>.
16190
16191 2010-09-14  Eric Blake  <eblake@redhat.com>
16192
16193         test-rawmemchr: make more robust
16194         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16195         (Depends-on, configure.ac): Add needed prerequisites to use it.
16196         * modules/memchr-tests (Files, Depends-on, configure.ac):
16197         Likewise, to avoid implicit reliance on memchr module prereqs.
16198         * tests/test-memchr.c (main): Ensure proper masking.
16199         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16200         reads.
16201
16202         memchr: detect glibc Alpha bug
16203         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16205         Alpha.
16206         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16207         * tests/test-memchr.c (main): Enhance test.
16208         Reported by Nelson H. F. Beebe.
16209
16210 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16211
16212         fts, getcwd, glob: audit for dirfd returning -1
16213         * lib/fts.c (opendir): Remove #define; no longer used.
16214         (opendirat): New arg PDIR_FD.  All callers changed.
16215         (fts_build, _opendir2): Use new opendirat to avoid the need for
16216         dirfd, or for checking whether dirfd returns a negative value.
16217         Don't use opendir; always use openat followed by fdopendir.
16218         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16219         it.
16220         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16221         returns -1 here.
16222         * modules/fts (Depends-on): Remove dirfd.
16223         * modules/getcwd (Depends-on): Likewise.
16224
16225 2010-09-13  Eric Blake  <eblake@redhat.com>
16226
16227         float: fix broken MirBSD header
16228         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16229         * doc/posix-headers/float.texi (float.h): Document it.
16230
16231 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16232
16233         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16234         * lib/fts.c (opendirat): New arg extra_flags.
16235         (__opendir2): Use it to avoid following symlinks when opening
16236         a directory, if symlinks are not supposed to be followed.  See
16237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16238
16239         fdopendir: preserve argument fd before returning
16240         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16241         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16242         (fdopendir): Use them, arranging for FD to be open to the same
16243         directory that it was when it started.  (It might be temporarily
16244         closed while fdopendir is running, so this not thread- or
16245         signal-safe.)  Be careful to do the right thing even when file
16246         descriptors are scarce and dup fails with errno == EMFILE.  See
16247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16248
16249 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16250
16251         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16252         * NEWS: Document change.
16253         * m4/regex.m4: Disable test for regoff_t size.
16254
16255 2010-09-13  Jim Meyering  <meyering@redhat.com>
16256
16257         fts: don't operate on an invalid file descriptor after failed dup
16258         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16259         negative file descriptor.
16260
16261 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16262
16263         savedir: add streamsavedir, deprecate fdsavedir
16264         * NEWS: Mention deprecation of fdsavedir.
16265         * lib/savedir.c (streamsavedir): New extern function, whose name
16266         ends in "savedir" to be consistent with the others.  This differs
16267         from savedirstream in that it doesn't close its argument.  The
16268         next version of GNU tar will use this instead of fdsavedir, to
16269         avoid some race conditions and conserve file descriptors.
16270         (savedirstream): Reimplement as a wrapper around streamsavedir.
16271         (fdsavedir): Add a comment deprecating this function.  As far as
16272         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16273         * lib/savedir.h (streamsavedir): New decl.
16274         (fdsavedir): Add a comment deprecating this.
16275
16276 2010-09-10  Bruno Haible  <bruno@clisp.org>
16277
16278         langinfo: Fix last commit.
16279         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16280         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16282
16283 2010-09-10  Bruno Haible  <bruno@clisp.org>
16284
16285         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16286         * lib/progreloc.c (O_EXEC): Define fallback.
16287
16288 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16289
16290         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16291         * NEWS: Document recent changes to fcntl-h.
16292         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16293         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16294         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16295         Similarly for O_SEARCH; this last was already true, but not documented.
16296         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16297         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16298         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16299         Likewise.
16300         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16301         is zero, not whether it is defined.
16302         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16303         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16304         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16305
16306 2010-09-10  Bruno Haible  <bruno@clisp.org>
16307
16308         langinfo, nl_langinfo: Fix for IRIX 5.3.
16309         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16310         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16311         HAVE_LANGINFO_YESEXPR.
16312         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16313         HAVE_LANGINFO_YESEXPR.
16314         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16315         HAVE_LANGINFO_T_FMT_AMPM is 0.
16316         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16317         HAVE_LANGINFO_YESEXPR is 0.
16318         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16319         NOEXPR.
16320         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16321         * doc/posix-functions/nl_langinfo.texi: Likewise.
16322         Reported by Eric Blake.
16323
16324 2010-09-10  Bruno Haible  <bruno@clisp.org>
16325
16326         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16327         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16328         on FreeBSD 8.0 and OpenBSD 4.6.
16329         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16330         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16331         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16332         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16333         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16334         ac_includes_default.
16335         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16336
16337 2010-09-09  Eric Blake  <eblake@redhat.com>
16338
16339         strsignal: work around NetBSD bug
16340         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16341         * lib/string.in.h (includes): Likewise.
16342         * doc/posix-functions/strsignal.texi (strsignal): Document the
16343         bug.
16344         Reported by Nelson H. F. Beebe.
16345
16346         gnulib-tool: work with NetBSD /bin/sh
16347         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16348         (func_get_description, func_get_comment, func_get_status)
16349         (func_get_notice, func_get_applicability, func_get_filelist)
16350         (func_get_dependencies, func_get_autoconf_early_snippet)
16351         (func_get_autoconf_snippet, func_get_automake_snippet)
16352         (func_get_include_directive, func_get_link_directive)
16353         (func_get_license, func_get_maintainer, func_import): Avoid
16354         shell syntax errors from parsing syntax extensions.
16355
16356 2010-09-09  Bruno Haible  <bruno@clisp.org>
16357
16358         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16359         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16360         a reliable way to determine whether the 'alias' command works.
16361
16362 2010-09-08  Jim Meyering  <meyering@redhat.com>
16363
16364         init.sh: penalize a set-x-impaired shell; don't disqualify it
16365         * tests/init.sh: Too many shells corrupt application stderr when
16366         you set -x, so we can't afford to disqualify them, since at least
16367         on Irix-6.5, that would disqualify all bourne shells.
16368         Instead, use a two-pass approach.
16369         On the first pass, try to find a shell that meets the stricter
16370         condition that set -x does not corrupt stderr.
16371         If no shell meets the stricter condition, retest each candidate
16372         shell, but without that extra condition.  Finally, when
16373         VERBOSE=yes is requested and set -x might cause trouble, simply
16374         issue a warning and refrain from enabling debug output.
16375
16376 2010-09-08  Eric Blake  <eblake@redhat.com>
16377
16378         unsetenv: fix OpenBSD bug
16379         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16380         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16381         documentation.
16382         Reported by Jim Meyering.
16383
16384         strtod: work around IRIX 6.5 bug
16385         * lib/strtod.c (strtod): Reparse number on shorter string if
16386         exponent parse was invalid.
16387         * tests/test-strtod.c (main): Add check for "0x1p 2".
16388         Reported by Tom G. Christensen.
16389
16390         getopt: optimize previous patch
16391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16392         empty variable.  Speed up awk script.
16393         Reported by Paolo Bonzini.
16394
16395 2010-09-08  Jim Meyering  <meyering@redhat.com>
16396
16397         test.sh: disqualify shells for which set -x corrupts stderr
16398         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16399         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16400         appear in stderr output.  For example, this command:
16401             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16402         prints "P=1" on those two systems:
16403
16404 2010-09-08  Bruno Haible  <bruno@clisp.org>
16405
16406         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16407         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16408         commands, because some shells ignore redirections when there is an
16409         error in the command lookup.
16410         Reported by Eric Blake.
16411
16412 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16413
16414         * lib/regex.h: Fix a mention of `regex_compile' (should be
16415         `re_compile_pattern').
16416         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16417         (re_set_registers): Correct name of parameter in comment.
16418
16419         * doc/regex.texi: Add documentation for missing syntax flags.
16420         Remove commented-out documentation of defunct syntax option
16421         RE_NO_EMPTY_ALTS.
16422         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16423         Add documentation of re_set_registers.
16424         Document trick to re-use a pattern buffer by setting fastmap manually.
16425         Update documentation of struct re_pattern_buffer per public members.
16426         Uncomment documentation of equivalence class operators and
16427         collating symbol operators, since they are now implemented,
16428         Explain leftmost-longest matching in relation to alternatives.
16429         Tidy documentation of substring matching.
16430         Remove POSIX documentation, which is done better in
16431         glibc, and refer the reader there. Keep BSD API documentation, as
16432         that is not readily available elsewhere.
16433
16434 2010-09-07  Eric Blake  <eblake@redhat.com>
16435
16436         getopt: handle POSIXLY_CORRECT set but not exported
16437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16438         export state of POSIXLY_CORRECT, due to bash set -o posix.
16439         Reported by Dustin J. Mitchell.
16440
16441 2010-09-05  Bruno Haible  <bruno@clisp.org>
16442
16443         gnulib-tool: Highlight the changed options.
16444         * gnulib-tool (func_usage): Display the --import, --add-import,
16445         --remove-import explanations in bold font.
16446
16447 2010-09-06  Karl Berry  <karl@gnu.org>
16448
16449         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16450
16451 2010-09-05  Bruno Haible  <bruno@clisp.org>
16452
16453         uniwidth/width: Update comment.
16454         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16455         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16456
16457 2010-09-05  Bruno Haible  <bruno@clisp.org>
16458
16459         isinf, isnan: Relax license.
16460         * modules/isinf (License): Change from GPL to LGPL, with consent from
16461         Ben Pfaff.
16462         * modules/isnan (License): Likewise.
16463         Requested by Ludovic Courtès.
16464
16465 2010-09-04  Bruno Haible  <bruno@clisp.org>
16466
16467         gnulib-tool: Help migration from --import to --add-import or --update.
16468         * gnulib-tool: Emit a verbose error message when --import is used
16469         without any module name.
16470
16471 2010-09-04  Bruno Haible  <bruno@clisp.org>
16472
16473         Update doc about gnulib-tool.
16474         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16475         'gnulib-tool --update' in more detail.
16476         Reported by Eric Blake.
16477
16478 2010-09-04  Bruno Haible  <bruno@clisp.org>
16479
16480         gnulib-tool: Change --import. New options --add/remove-import.
16481         * gnulib-tool: New options --add-import, --remove-import.
16482         (func_usage): Document them.
16483         (have_associative): Define always.
16484         (func_import): In import mode, don't merge the specified settings with
16485         the cached settings. Implement remove-import mode.
16486         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16487         Explain when to use them versus --import.
16488         (Simple update): Use --add-import instead of --import.
16489         * NEWS: Mention the change.
16490
16491 2010-09-04  Bruno Haible  <bruno@clisp.org>
16492
16493         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16494         separate gnulib.mk.
16495
16496 2010-09-04  Bruno Haible  <bruno@clisp.org>
16497
16498         gnulib-tool: Don't talk about CVS any more.
16499         * gnulib-tool (func_usage, func_import): Write "version control"
16500         instead of CVS.
16501
16502 2010-09-04  Jim Meyering  <meyering@redhat.com>
16503
16504         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16505         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16506         false positives (whose names may be ill-chosen) when searching
16507         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16508         would cause a false-positive.
16509
16510         avoid coreutils "make distcheck" failure
16511         Coreutils tests with an absolute build directory name that contains
16512         a space.  Not quoting this directory name caused a failure.
16513         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16514         * tests/test-vc-list-files-cvs.sh: Likewise.
16515
16516 2010-09-04  Bruno Haible  <bruno@clisp.org>
16517
16518         gnulib-tool: Avoid error when run in a package without Makefile.am.
16519         * gnulib-tool: When collecting the m4dirs in a package that does not
16520         have a Makefile.am, eliminate those directories that contain no
16521         gnulib-cache.m4. Fix expression that counts these directories.
16522
16523 2010-09-04  Bruno Haible  <bruno@clisp.org>
16524
16525         update-copyright test: Improve output when perl is missing or too old.
16526         * tests/test-update-copyright.sh: Move test of Perl version down after
16527         the test whether Perl exists. Provide an explanation relating Perl's
16528         error message to Automake's SKIP: message.
16529
16530 2010-09-04  Bruno Haible  <bruno@clisp.org>
16531
16532         Don't augment PATH in TESTS_ENVIRONMENT.
16533         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16534         set abs_aux_dir instead of augmenting PATH.
16535         * modules/vc-list-files-tests (Makefile.am): Likewise.
16536         * tests/test-update-copyright.sh: Augment PATH here.
16537         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16538         path_prepend_.
16539         * tests/test-vc-list-files-git.sh: Likewise.
16540
16541 2010-09-04  Jim Meyering  <meyering@redhat.com>
16542
16543         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16544         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16545
16546 2010-09-04  Bruno Haible  <bruno@clisp.org>
16547
16548         strdup: Fix compilation error in C++ mode.
16549         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16550         the macro.
16551
16552 2010-09-04  Bruno Haible  <bruno@clisp.org>
16553
16554         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16555         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16556         macro into a function.
16557         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16558
16559 2010-09-04  Bruno Haible  <bruno@clisp.org>
16560
16561         Set PATH_SEPARATOR the same way autoconf does.
16562         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16563         the value of PATH_SEPARATOR the same way autoconf-generated configure
16564         scripts do.
16565         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16566         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16567
16568 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16569
16570         Set PATH_SEPARATOR the same way autoconf does.
16571         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16572         the same way autoconf-generated configure scripts do.
16573         * posix-modules: Likewise.
16574
16575 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16576
16577         hash: fix safe_hasher const typo
16578         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16579         const; otherwise, there is a type error later.
16580
16581 2010-09-02  Jim Meyering  <meyering@redhat.com>
16582
16583         test-update-copyright.sh: require perl 5.8.0
16584         * tests/test-update-copyright.sh: Require 5.8.0,
16585         which Tom G. Christensen has confirmed is adequate,
16586         while 5.6.1 is not.
16587
16588 2010-09-02  Eric Blake  <eblake@redhat.com>
16589
16590         tests: init.sh improvements for re-exec'ing with zsh
16591         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16592         -vx through shell re-exec.
16593         Reported by Tom G. Christensen.
16594
16595         wctype: fix typo in previous commit
16596         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16597         Reported by Ludovic Courtès.
16598
16599 2010-09-02  Jim Meyering  <meyering@redhat.com>
16600
16601         test-update-copyright.sh: skip test if Perl is too old
16602         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16603         Reported by Tom G. Christensen.
16604
16605 2010-09-02  Bruno Haible  <bruno@clisp.org>
16606
16607         wctype: Avoid compilation error on IRIX 6.5.30.
16608         * lib/wctype.in.h (iswblank): Declare with a replacement if
16609         REPLACE_ISWBLANK is set.
16610         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16611         declared. Set REPLACE_ISWBLANK.
16612         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16613         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16614         * doc/posix-headers/wctype.texi: Likewise.
16615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16616
16617 2010-09-01  Bruno Haible  <bruno@clisp.org>
16618
16619         New module 'socketlib'.
16620         * modules/socketlib: New file.
16621         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16622         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16623         * modules/sockets (Depends-on): Add socketlib.
16624         Suggested by Sam Steingold <sds@gnu.org>.
16625
16626 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16627
16628         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16629
16630         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16631         when one needs search access to a directory but not read access.
16632         On systems where it is available, it works in some cases where
16633         O_RDONLY does not, namely on directories that are searchable but
16634         not readable, and which need only to be searchable.  If O_SEARCH
16635         is not available, fall back to the traditional method of using
16636         O_RDONLY.
16637
16638         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16639         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16640         when opening a directory that needs only to be searchable.
16641         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16642         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16643         * lib/openat-proc.c (openat_proc_name): Likewise.
16644         * lib/openat.c (openat_needs_fchdir): Likewise.
16645         * lib/save-cwd.c (save_cwd): Likewise.
16646         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16647
16648 2010-08-28  Bruno Haible  <bruno@clisp.org>
16649
16650         New module 'host-cpu-c-abi'.
16651         * modules/host-cpu-c-abi: New file.
16652         * m4/host-cpu-c-abi.m4: New file, based on part of
16653         clisp/src/m4/general.m4.
16654         Requested by Sam Steingold <sds@gnu.org>.
16655
16656 2010-08-31  Eric Blake  <eblake@redhat.com>
16657         and Jim Meyering  <meyering@redhat.com>
16658
16659         hash: factor, and guard against misbehaving hasher function
16660         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16661         of table->hasher's return value.  Also protect against a hash value
16662         so large that adding it to table->bucket results in a NULL pointer.
16663         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16664         Use it in place of open-coded check-and-abort.
16665
16666 2010-08-30  Bruno Haible  <bruno@clisp.org>
16667
16668         hash: silence spurious clang warning
16669         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16670         Reported by Eric Blake.
16671
16672 2010-08-30  Eric Blake  <eblake@redhat.com>
16673
16674         strstr, memmem, strcasestr: avoid leaked shell message
16675         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16676         FreeBSD.
16677         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16678         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16679
16680         tests: silence clang warning
16681         * tests/test-malloca.c (do_allocation): Avoid dead store.
16682
16683 2010-08-29  Bruno Haible  <bruno@clisp.org>
16684
16685         gettext: Fix recent mistake.
16686         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16687
16688 2010-08-29  Bruno Haible  <bruno@clisp.org>
16689
16690         selinux-h: Offer a --without-selinux option.
16691         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16692         --without-selinux was specified, skip all tests and define
16693         HAVE_SELINUX_SELINUX_H to 0.
16694         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16695         set LIB_SELINUX to empty.
16696         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16697         gl_LIBSELINUX. If --without-selinux was specified, replace
16698         selinux/context.h.
16699         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16700
16701 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16702             Bruno Haible  <bruno@clisp.org>
16703
16704         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16705         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16706         of HAVE_REALLOC.
16707         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16708         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16709         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16710         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16711
16712 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16713             Bruno Haible  <bruno@clisp.org>
16714
16715         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16716         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16717         HAVE_CALLOC.
16718         * lib/xmalloc.c: Update accordingly.
16719         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16720         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16721         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16722
16723 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16724             Bruno Haible  <bruno@clisp.org>
16725
16726         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16727         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16728         HAVE_MALLOC.
16729         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16730         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16731         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16732
16733 2010-08-29  Bruno Haible  <bruno@clisp.org>
16734
16735         Update modules list.
16736         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16737         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16738         (String handling <string.h>): Add astrxfrm.
16739         (File system functions): Add readlinkat.
16740
16741 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16742
16743         Tests for module 'realloc-gnu'.
16744         * modules/realloc-gnu-tests: New file.
16745         * tests/test-realloc-gnu.c: New file.
16746
16747         Tests for module 'calloc-gnu'.
16748         * modules/calloc-gnu-tests: New file.
16749         * tests/test-calloc-gnu.c: New file.
16750
16751         Tests for module 'malloc-gnu'.
16752         * modules/malloc-gnu-tests: New file.
16753         * tests/test-malloc-gnu.c: New file.
16754
16755 2010-08-28  Bruno Haible  <bruno@clisp.org>
16756
16757         Rename module 'realloc' -> 'realloc-gnu'.
16758         * modules/realloc-gnu: New file, copied from modules/realloc.
16759         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16760         obsolete.
16761         * modules/mgetgroups (Depends-on): Update.
16762         * doc/posix-functions/realloc.texi: Update.
16763         * NEWS: Mention the change.
16764
16765         Rename module 'calloc' -> 'calloc-gnu'.
16766         * modules/calloc-gnu: New file, copied from modules/calloc.
16767         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16768         obsolete.
16769         * doc/posix-functions/calloc.texi: Update.
16770         * NEWS: Mention the change.
16771
16772         Rename module 'malloc' -> 'malloc-gnu'.
16773         * modules/malloc-gnu: New file, copied from modules/malloc.
16774         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16775         obsolete.
16776         * modules/argp (Depends-on): Update.
16777         * modules/regex (Depends-on): Update.
16778         * doc/posix-functions/malloc.texi: Update.
16779         * NEWS: Mention the change.
16780
16781 2010-08-28  Eric Blake  <eblake@redhat.com>
16782
16783         pread, pwrite: add missing dependency
16784         * modules/pread (Depends-on): Add extensions.
16785         * modules/pwrite (Depends-on): Likewise.
16786
16787 2010-08-28  Bruno Haible  <bruno@clisp.org>
16788
16789         unistr/u*-strchr: Fix tests dependencies.
16790         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16791         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16792         Reported by Ian Beckwith <ianb@erislabs.net>.
16793
16794 2010-08-28  Bruno Haible  <bruno@clisp.org>
16795
16796         read-file: Don't occupy too much unused memory.
16797         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16798
16799 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16800             Eric Blake  <eblake@redhat.com>
16801             Bruno Haible  <bruno@clisp.org>
16802
16803         read-file: Avoid memory reallocations with regular files.
16804         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16805         (fread_file): With regular files, use the remaining length as the
16806         initial buffer size.  Check against overflow.
16807         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16808         sys_stat.
16809
16810 2010-08-28  Bruno Haible  <bruno@clisp.org>
16811
16812         ftello: Relax license.
16813         * modules/ftello (License): Relax to LGPLv2+.
16814         Reported by Eric Blake.
16815
16816 2010-08-28  Bruno Haible  <bruno@clisp.org>
16817
16818         Avoid relocwrapper link errors due to gnulib replacement functions.
16819         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16820         function.
16821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16822
16823 2010-08-28  Bruno Haible  <bruno@clisp.org>
16824
16825         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16826         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16827         defined.
16828         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16829         Suggested by Eric Blake.
16830
16831 2010-08-28  Bruno Haible  <bruno@clisp.org>
16832
16833         sys_socket, netdb: Ensure socklen_t gets defined.
16834         * modules/sys_socket (Depends-on): Add socklen.
16835         * modules/netdb (Depends-on): Likewise.
16836         * modules/getaddrinfo (Depends-on): Remove socklen.
16837         * modules/getsockopt (Depends-on): Likewise.
16838         * modules/setsockopt (Depends-on): Likewise.
16839         * tests/test-sys_socket.c: Check that socklen_t is defined.
16840         * tests/test-netdb.c: Likewise.
16841         * m4/socklen.m4: Update comments.
16842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16843
16844 2010-08-27  Eric Blake  <eblake@redhat.com>
16845
16846         login_tty: add missing dependency
16847         * modules/login_tty (Depends-on): Add pty.
16848
16849 2010-08-26  Eric Blake  <eblake@redhat.com>
16850
16851         lib-symbol-versions: fix m4 quoting
16852         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16853         format for AC_LINK_IFELSE.
16854
16855         glob: fix compile test
16856         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16857
16858         btowc: fix missing file
16859         * modules/btowc (Files): Also ship locale-fr.m4.
16860
16861         lseek: fix link test
16862         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16863         AC_LINK_IFELSE.
16864
16865         include_next: silence autoconf 2.68 warning
16866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16867         AC_COMPILE_IFELSE as special.
16868         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16869         autoconf < 2.68.
16870
16871         acl: fix compilation test
16872         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16873         AC_COMPILE_IFELSE.
16874
16875 2010-08-26  Bruno Haible  <bruno@clisp.org>
16876
16877         Modernize AC_TRY_RUN invocations.
16878         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16879         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16880         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16881         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16882         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16883         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16884         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16886         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16887         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16888         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16889         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16890         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16893         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16894         gl_MBRLEN_NUL_RETVAL): Likewise.
16895         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16896         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16897         Likewise.
16898         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16899         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16900         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16901         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16902         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16903         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16904         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16905         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16906         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16907         Likewise.
16908         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16909         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16911         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16912         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16913         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16914         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16915         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16916         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16918
16919 2010-08-26  Bruno Haible  <bruno@clisp.org>
16920
16921         Modernize AC_TRY_LINK invocations.
16922         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16923         AC_TRY_LINK.
16924         * m4/argp.m4 (gl_ARGP): Likewise.
16925         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16926         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16927         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16928         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16929         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16930         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16931         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16932         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16933         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16934         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16935         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16936         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16937         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16938         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16939         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16940         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16941         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16942         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16943         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16944         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16945         Likewise.
16946         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16947         Likewise.
16948         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16949         Likewise.
16950         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16952         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16953         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16954         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16955         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16956         * m4/servent.m4 (gl_SERVENT): Likewise.
16957         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16958         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16959         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16960         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16961         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16962         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16963         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16965         * modules/tsearch-tests (configure.ac): Likewise.
16966
16967 2010-08-26  Bruno Haible  <bruno@clisp.org>
16968
16969         Modernize AC_TRY_COMPILE invocations.
16970         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16971         AC_TRY_COMPILE.
16972         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16973         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16974         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16975         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16976         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16977         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16978         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16979         * m4/lock.m4 (gl_LOCK): Likewise.
16980         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16981         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16982         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16983         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16984         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16985         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16986         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16987         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16988         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16989         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16990         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16991         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16992         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16993         extraneous semicolon.
16994
16995 2010-08-26  Jim Meyering  <meyering@redhat.com>
16996
16997         stat-time: relax license LGPL
16998         * modules/stat-time (License): Change from GPL to LGPL,
16999         with consent from all contributors, for use in libguile.
17000         Requested by Ludovic Courtès.
17001
17002 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17003
17004         poll: return immediately on POLLHUP.
17005         * lib/poll.c (poll): Always set timeout before wait_timeout is
17006         computed.
17007
17008 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17009
17010         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17011         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17012         rmdir ("dir/.//"), unlinkat.
17013
17014 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17015
17016         stdbool: avoid spurious failure with modern xlc
17017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17018
17019 2010-08-24  Bruno Haible  <bruno@clisp.org>
17020
17021         getloadavg: simplify code
17022         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17023         gl_have_func. Update comments.
17024
17025 2010-08-24  Eric Blake  <eblake@redhat.com>
17026
17027         getloadavg: don't define SVR4 on cygwin
17028         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17029         only define SVR4 when -lkvm is required.
17030         Reported by Yaakov Selkowitz.
17031
17032 2010-08-24  Bruno Haible  <bruno@clisp.org>
17033
17034         priv-set: fix comment
17035         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17036
17037 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17038
17039         priv-set: fix comments
17040         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17041         to match code, as suggested by David Bartley in:
17042         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17043
17044 2010-08-23  Eric Blake  <eblake@redhat.com>
17045
17046         stdbool: avoid rejecting clang
17047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17048         * tests/test-stdbool.c: Enable more tests if using the system
17049         <stdbool.h> instead of the gnulib replacement.
17050         (main): Move xlc bug test to a runtime test for all compilers.
17051         Reported by Anders Kaseorg.
17052
17053         argz: fix shell quoting issue
17054         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17055         Reported by Charles Wilson.
17056
17057 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17058             Erik Faye-Lund <kusmabite@gmail.com>
17059
17060         poll, select: handle ERROR_BROKEN_PIPE.
17061         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17062         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17063         * lib/select.c (win32_compute_revents): Do not mark a pipe
17064         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17065
17066 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17067
17068         fts: allow compilation with C++
17069         * lib/fts_.h: Specify extern "C" linkage with C++.
17070
17071 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17072
17073         Fix gnulib-tool sed script de-commentation for AIX sed.
17074         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17075         sed.
17076
17077 2010-08-17  Eric Blake  <eblake@redhat.com>
17078
17079         test-stddef: test for (some) offsetof bugs
17080         * tests/test-stddef.c: Enhance test to ensure correct type of
17081         offsetof.
17082         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17083         that we are not fixing at this time.
17084
17085 2010-08-15  Bruno Haible  <bruno@clisp.org>
17086
17087         stpncpy: Allow stpncpy to be defined as a macro.
17088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17089         if it's already correctly declared.
17090         * lib/string.in.h (stpncpy): Undefine before redefining.
17091         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17092
17093 2010-08-14  Bruno Haible  <bruno@clisp.org>
17094
17095         Rename module 'memxfrm' to 'amemxfrm'.
17096         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17097         (amemxfrm): Renamed from memxfrm.
17098         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17099         (amemxfrm): Renamed from memxfrm.
17100         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17101         * NEWS: Mention the change.
17102         * MODULES.html.sh (String handling <string.h>): Update.
17103         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17104         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17105         * lib/unicase/u16-casexfrm.c: Likewise.
17106         * lib/unicase/u32-casexfrm.c: Likewise.
17107         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17108         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17109         * lib/uninorm/u16-normxfrm.c: Likewise.
17110         * lib/uninorm/u32-normxfrm.c: Likewise.
17111         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17112         memxfrm.
17113         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17114         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17115         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17116         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17117         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17118         Suggested by Paul Eggert.
17119
17120 2010-08-14  Bruno Haible  <bruno@clisp.org>
17121
17122         Tests for module 'astrxfrm'.
17123         * modules/astrxfrm-tests: New file.
17124         * tests/test-astrxfrm.c: New file.
17125
17126         New module 'astrxfrm'.
17127         * lib/astrxfrm.h: New file.
17128         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17129         * modules/astrxfrm: New file.
17130
17131 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17132
17133         regex: Tweak doc.
17134         * doc/regex.texi (Overview): Don't mention regex.c.
17135         (GNU Regular Expression Compiling): Likewise.
17136         (Match-end-of-line Operator): Mention 'not_eol'.
17137
17138 2010-08-14  Brian Gough  <bjg@gnu.org>
17139             Bruno Haible  <bruno@clisp.org>
17140
17141         git-merge-changelog: add doc relating to use with bzr and hg.
17142         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17143
17144 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17145
17146         pthread: fix pthread.h creation for srcdir != builddir
17147         * modules/pthread (Makefile.am): Fix the rule to work also in a
17148         non-srcdir build.
17149
17150 2010-08-13  Karl Berry  <karl@gnu.org>
17151
17152         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17153         * doc/posix-*/*: force line break before @url of POSIX
17154         specifications.
17155         Suggested by Werner Lemberg.
17156
17157 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17158
17159         strtod: fix const diagnostic
17160         * lib/strtod.c (strtod): Don't assign const char * to char *,
17161         as this elicits a warning from GCC when warnings are enabled.
17162
17163 2010-08-10  Pádraig Brady <P@draigbrady.com>
17164         and Eric Blake  <eblake@redhat.com>
17165
17166         copy-acl: ignore ENOTSUP on HP-UX
17167         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17168         so that it is available for HP-UX.
17169         * lib/copy-acl.c (qcopy_acl): Use it.
17170         Reported by Patrick M. Callahan.
17171
17172 2010-08-10  Eric Blake  <eblake@redhat.com>
17173
17174         open, chown: relax license
17175         * modules/open (License): Change to LGPLv2+, with consent by all
17176         authors, for use in augeas.
17177         * modules/chown (License): Likewise.
17178         * modules/lchown (Likewise): Likewise.
17179         Requested by Adam Stokes.
17180
17181 2010-08-09  Karl Berry  <karl@gnu.org>
17182
17183         * build-aux/ar-lib: new file, import from Automake.
17184         * config/srclist.txt: autocheck for updates.
17185
17186 2010-08-09  Eric Blake  <eblake@redhat.com>
17187
17188         readlinkat: adjust client modules
17189         * modules/areadlinkat (Depends-on): Use readlinkat, not
17190         symlinkat.
17191         * modules/areadlinkat-with-size (Depends-on): Likewise.
17192
17193         mknod: be more vocal about danger of running tests as root
17194         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17195         root, since that is just asking for problems.
17196         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17197
17198         readlinkat: split into its own module
17199         * modules/symlinkat: Split readlinkat...
17200         * modules/readlinkat: ...into separate module.
17201         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17202         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17203         * lib/symlinkat.c (readlinkat): Move...
17204         * lib/readlinkat.c: ...into new file.
17205         * modules/symlinkat-tests: Split readlinkat test...
17206         * modules/readlinkat-tests: ...into separate module.
17207         * tests/test-symlinkat.c: Split...
17208         * tests/test-readlinkat.c: ...into new file.
17209         * NEWS: Document the split.
17210         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17211         * lib/unistd.in.h (readlinkat): Likewise.
17212         Suggested by Bruno Haible.
17213
17214 2010-08-08  Bruno Haible  <bruno@clisp.org>
17215
17216         memxfrm: Speed up.
17217         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17218         that usually only one call to strxfrm is necessary for each string
17219         part.
17220         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17221
17222 2010-08-07  Karl Berry  <karl@gnu.org>
17223
17224         * doc/posix-headers/limits.texi,
17225         * doc/posix-functions/malloc.texi,
17226         * doc/posix-functions/strsignal.texi: missing @item.
17227         * doc/ld-version-script.texi: spurious leading i.
17228         * doc/regex.texi (Interval Operators): no commas inside @var.
17229
17230 2010-08-01  Bruno Haible  <bruno@clisp.org>
17231
17232         Integrate the regex documentation.
17233         * doc/gnulib.texi: Define 'cn' index.
17234         (Regular expressions): New a chapter that includes regex.texi and
17235         regexprops-generic.texi.
17236         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17237         syntax.
17238
17239         Whitespace cleanup.
17240         * doc/regex.texi: Remove trailing spaces.
17241
17242         Add regex documentation.
17243         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17244         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17245         Written by Kathy A. Hargreaves and Karl Berry.
17246
17247 2010-08-01  Bruno Haible  <bruno@clisp.org>
17248
17249         link: Update documentation.
17250         * doc/posix-functions/link.texi: Update regarding Solaris.
17251
17252 2010-07-31  Bruno Haible  <bruno@clisp.org>
17253
17254         Update modules list.
17255         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17256         (String handling <string.h>): Add memcmp2, memxfrm.
17257         (Container data structures): Add xlist, xsublist, xoset.
17258         (Core language properties): Add alignof, unused-parameter.
17259         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17260         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17261         (Unibyte characters <ctype.h>): New section.
17262         (String handling <string.h>): New section.
17263         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17264         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17265         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17266         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17267         tan, tanh, tanl, y0, y1, yn.
17268         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17269         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17270         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17271         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17272         unlockpt, vdprintf, vdprintf-posix.
17273         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17274         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17275         xconcat-filename.
17276         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17277         getdtablesize, pipe2, pipe2-safer.
17278         (Security): New section.
17279         (Networking functions): Add accept4.
17280         (Signal handling): Add sigpipe.
17281         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17282         mbmemcasecoll.
17283         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17284         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17285         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17286         pipe-filter-ii.
17287         (Misc): Add argp-version-etc, login_tty, parse-duration.
17288
17289 2010-07-31  Bruno Haible  <bruno@clisp.org>
17290
17291         Improve doc in MODULES.html.
17292         * modules/linkat (Description): Add the word "function".
17293         * modules/mkfifo (Description): Likewise.
17294         * modules/mknod (Description): Likewise.
17295         * modules/remove (Description): Likewise.
17296         * modules/renameat (Description): Likewise.
17297         * modules/stat (Description): Likewise.
17298         * modules/symlink (Description): Likewise.
17299         * modules/unlink (Description): Likewise.
17300
17301 2010-07-31  Bruno Haible  <bruno@clisp.org>
17302
17303         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17304         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17305         option --enable/disable-c++ instead of --enable/disable-cxx.
17306         * NEWS: Mention the change.
17307
17308 2010-07-31  Bruno Haible  <bruno@clisp.org>
17309
17310         readlink, areadlink: Relax test a bit.
17311         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17312         alternative to ENOTDIR.
17313         * tests/test-areadlink.h (test_areadlink): Likewise.
17314         Reported by Rainer Tammer.
17315
17316 2010-07-31  Bruno Haible  <bruno@clisp.org>
17317
17318         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17319         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17320         character, perform the search using U_STRCHR.
17321         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17322         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17323         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17324         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17325         Suggested by Paolo Bonzini.
17326
17327 2010-07-31  Bruno Haible  <bruno@clisp.org>
17328
17329         unistr/u*-strstr: Fix dependencies.
17330         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17331         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17332         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17333
17334 2010-07-31  Bruno Haible  <bruno@clisp.org>
17335
17336         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17337         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17338         the beginning of the loop.
17339         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17340         cases in 'switch' statement.
17341
17342         unistr/u8-strchr: Fix several bugs.
17343         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17344         the string. When not found, return NULL, not a pointer near the end.
17345
17346         More tests for unistr/u8-strchr.
17347         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17348         that the function does not read past the first occurrence of the byte
17349         being searched.
17350         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17351         * tests/unistr/test-u16-strchr.c (main): New function.
17352         * tests/unistr/test-u32-strchr.c (main): New function.
17353
17354 2010-07-31  Bruno Haible  <bruno@clisp.org>
17355
17356         posix-modules: Ignore backup files of documentation files.
17357         * posix-modules: grep only through files named *.texi.
17358
17359 2010-07-31  Bruno Haible  <bruno@clisp.org>
17360
17361         symlinkat: Fix documentation.
17362         * doc/posix-functions/readlinkat.texi: Fix module name.
17363
17364 2010-07-31  Bruno Haible  <bruno@clisp.org>
17365
17366         fchownat: Replace also when chown has the trailing slash bug.
17367         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17368         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17369         introduced on 2010-04-10.
17370         Reported by Rainer Tammer.
17371
17372 2010-07-31  Bruno Haible  <bruno@clisp.org>
17373
17374         linkat: Work around AIX 7.1 bug.
17375         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17376         whether linkat handles trailing slash correctly. If not, replace linkat
17377         and define LINKAT_TRAILING_SLASH_BUG.
17378         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17379         check whether (fd1,file1) points to a directory if file1 or file2 ends
17380         in a slash. Code taken from lib/link.c.
17381         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17382         Reported by Rainer Tammer.
17383
17384 2010-07-31  Bruno Haible  <bruno@clisp.org>
17385
17386         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17387         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17388         This disables an xlc optimization that was causing wrong test results.
17389         Reported by Rainer Tammer.
17390
17391 2010-07-31  Bruno Haible  <bruno@clisp.org>
17392
17393         iconv: Work around AIX 6.1..7.1 bug.
17394         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17395         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17396         cross-compiling, guess no on all versions of AIX.
17397         Reported by Rainer Tammer.
17398
17399 2010-07-31  Bruno Haible  <bruno@clisp.org>
17400
17401         readlink: Relax test a bit.
17402         * tests/test-readlink.h (test_readlink): Allow different errno value
17403         when readlink is called with a file name that ends in / and refers to
17404         a file.
17405         Suggested by Eric Blake.
17406         Reported by Rainer Tammer.
17407
17408 2010-07-31  Bruno Haible  <bruno@clisp.org>
17409
17410         copysign: Does not require -lm on glibc systems.
17411         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17412         gl_COMMON_DOUBLE_MATHFUNC.
17413         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17414
17415 2010-07-31  Bruno Haible  <bruno@clisp.org>
17416
17417         duplocale: Work around AIX 7.1 bug.
17418         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17419         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17420         * lib/duplocale.c (rpl_duplocale): Update comment.
17421         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17422         Reported by Rainer Tammer.
17423
17424 2010-07-30  Bruno Haible  <bruno@clisp.org>
17425
17426         dirfd: Avoid link error on AIX 7.1.
17427         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17428         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17429         exist, set REPLACE_DIRFD.
17430         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17431         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17432         * doc/posix-functions/dirfd.texi: Update.
17433         Reported by Rainer Tammer.
17434
17435 2010-07-30  Eric Blake  <eblake@redhat.com>
17436
17437         strtod: next round of AIX fixes
17438         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17439         exponent.
17440         * tests/test-strtod.c (main): Enhance tests.
17441         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17442         Reported by Rainer Tammer.
17443
17444         futimens: fix configure check
17445         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17446         Reported by Bruno Haible.
17447
17448 2010-07-30  Bruno Haible  <bruno@clisp.org>
17449
17450         getline: Update regarding AIX.
17451         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17452         Reported by Rainer Tammer.
17453
17454 2010-07-30  Bruno Haible  <bruno@clisp.org>
17455
17456         wcwidth: Drop replacement on AIX 7.
17457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17458         AIX 7.
17459         Reported by Rainer Tammer.
17460
17461 2010-07-30  Bruno Haible  <bruno@clisp.org>
17462
17463         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17465         a 'char *'.
17466         Reported by Rainer Tammer.
17467
17468 2010-07-30  Bruno Haible  <bruno@clisp.org>
17469
17470         unlink: Update regarding AIX.
17471         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17472         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17473         Reported by Rainer Tammer.
17474
17475 2010-07-30  Bruno Haible  <bruno@clisp.org>
17476
17477         symlink: Update regarding AIX.
17478         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17479         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17480         Reported by Rainer Tammer.
17481
17482 2010-07-30  Bruno Haible  <bruno@clisp.org>
17483
17484         strndup: Update regarding AIX.
17485         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17486         AIX 7.
17487         Reported by Rainer Tammer.
17488
17489 2010-07-30  Bruno Haible  <bruno@clisp.org>
17490
17491         stat: Update regarding AIX.
17492         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17493         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17494         Reported by Rainer Tammer.
17495
17496 2010-07-30  Bruno Haible  <bruno@clisp.org>
17497
17498         truncl: Fix autoconf test.
17499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17500         whether truncl works.
17501         Reported by Rainer Tammer.
17502
17503 2010-07-30  Bruno Haible  <bruno@clisp.org>
17504
17505         round: Update regarding AIX.
17506         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17507         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17508         Reported by Rainer Tammer.
17509
17510 2010-07-30  Bruno Haible  <bruno@clisp.org>
17511
17512         rename: Update regarding AIX.
17513         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17514         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17515         Reported by Rainer Tammer.
17516
17517 2010-07-30  Bruno Haible  <bruno@clisp.org>
17518
17519         printf.m4: Update regarding AIX.
17520         * m4/printf.m4: Update comments regarding AIX.
17521         Reported by Rainer Tammer.
17522
17523 2010-07-30  Bruno Haible  <bruno@clisp.org>
17524
17525         iconv: Update regarding AIX.
17526         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17527         AIX 7.
17528         Reported by Rainer Tammer.
17529
17530 2010-07-30  Bruno Haible  <bruno@clisp.org>
17531
17532         getopt: Update regarding AIX.
17533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17534         no on AIX.
17535         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17536         Reported by Rainer Tammer.
17537
17538 2010-07-30  Bruno Haible  <bruno@clisp.org>
17539
17540         ldexpl; Update regarding AIX.
17541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17542         on AIX 7.
17543         Reported by Rainer Tammer.
17544
17545 2010-07-30  Bruno Haible  <bruno@clisp.org>
17546
17547         frexpl: Update regarding AIX.
17548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17549         on AIX 7.
17550         Reported by Rainer Tammer.
17551
17552 2010-07-30  Bruno Haible  <bruno@clisp.org>
17553
17554         open, fopen: Update regarding AIX.
17555         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17556         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17557         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17558         * doc/posix-functions/fopen.texi: Likewise.
17559         Reported by Rainer Tammer.
17560
17561 2010-07-30  Bruno Haible  <bruno@clisp.org>
17562
17563         chown: Update doc regarding AIX.
17564         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17565         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17566         Reported by Rainer Tammer.
17567
17568 2010-07-30  Eric Blake  <eblake@redhat.com>
17569
17570         strtod: fix bug in replacement function on AIX
17571         * lib/strtod.c (strtod): Special case broken "0x" parse in
17572         underlying strtod.
17573         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17574         * doc/posix-functions/strtod.texi (strtod): Likewise.
17575         Reported by Rainer Tammer.
17576
17577 2010-07-30  Bruno Haible  <bruno@clisp.org>
17578
17579         mbrlen: Fix cross-compilation guess for AIX.
17580         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17581         guess. Leftover from 2008-12-22.
17582
17583 2010-07-30  Bruno Haible  <bruno@clisp.org>
17584
17585         mbrtowc: Fix cross-compilation guess for AIX.
17586         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17587         guess. Leftover from 2008-12-21.
17588
17589 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17590
17591         init.sh: work around trap limitation of some shells
17592         * tests/init.sh (setup_): Move exit trap outside of shell function.
17593
17594 2010-07-29  Eric Blake  <eblake@redhat.com>
17595
17596         strtod: aid debugging
17597         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17598         understanding why strtod is rejected.
17599
17600 2010-07-28  Bruno Haible  <bruno@clisp.org>
17601
17602         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17603         * lib/unistr/u8-chr.c: Include <string.h>.
17604         * tests/unistr/test-u8-chr.c: Likewise.
17605         * tests/unistr/test-u16-chr.c: Likewise.
17606         * tests/unistr/test-u32-chr.c: Likewise.
17607         * tests/unistr/test-u8-strchr.c: Likewise.
17608         * tests/unistr/test-u16-strchr.c: Likewise.
17609         * tests/unistr/test-u32-strchr.c: Likewise.
17610         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17611         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17612         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17613         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17614
17615 2010-07-28  Bruno Haible  <bruno@clisp.org>
17616
17617         Use spaces for indentation, not tabs.
17618         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17619
17620 2010-07-27  Bruno Haible  <bruno@clisp.org>
17621
17622         mbspcasecmp: Fix function specification.
17623         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17624         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17625         Reported by Eric Blake <eblake@redhat.com>.
17626
17627 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17628
17629         timespec: use cast and not conditional, as truncation isn't possible
17630         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17631         instead of a conditional.  Comment about the situation in more detail.
17632         This undoes most of the 2009-10-29 patch.
17633
17634 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17635
17636         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17637         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17638         * lib/unistr/u8-strchr.c: Likewise.
17639         * modules/unistr/u8-chr: Depend on memchr.
17640
17641         unistr/u*-strchr: add tests
17642         * modules/unistr/u8-strchr-tests: New file.
17643         * modules/unistr/u16-strchr-tests: New file.
17644         * modules/unistr/u32-strchr-tests: New file.
17645         * tests/unistr/test-strchr.h: New file.
17646         * tests/unistr/test-u8-strchr.c: New file.
17647         * tests/unistr/test-u16-strchr.c: New file.
17648         * tests/unistr/test-u32-strchr.c: New file.
17649
17650         unistr/u*-chr: test multibyte sequences more
17651         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17652         test vector.
17653         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17654         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17655         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17656
17657         unistr/u*-chr: test multibyte sequences
17658         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17659
17660         unistr/u*-chr: prepare for multibyte tests
17661         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17662         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17663         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17664         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17665         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17666         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17667
17668 2010-07-18  Bruno Haible  <bruno@clisp.org>
17669
17670         unistr/u8-strchr: Optimize non-ASCII argument case.
17671         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17672         because the first byte often matches anyway.
17673         Reported by Pádraig Brady <P@draigbrady.com>.
17674
17675 2010-07-15  Karl Berry  <karl@gnu.org>
17676
17677         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17678
17679 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17680
17681         getcwd: on Solaris, work better if ancestors are inaccessible
17682         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17683         buffer and size, try again with a large buffer.  This works better
17684         on Solaris, since its getcwd succeeds even if the path to the root
17685         is inaccessible, and this is helpful in common cases such as .zfs
17686         hidden directories.  Problem reported by J Chapman Flack in
17687         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17688         Use system getcwd if it's declared, not merely if it's partly
17689         working; use the partly-working test only to avoid needless effort
17690         if the system getcwd fails.
17691         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17692         comment that was already obsolete and is now even more obsolete.
17693         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17694         now might call strdup.
17695
17696 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17697
17698         pthread: Add enough so that coreutils/src/sort.c compiles.
17699         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17700         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17701         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17702         Include <sys/types.h>, in case it defines pthread_t.
17703         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17704         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17705         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17706         (pthread_rwlockattr_t, pthread_spinlock_t):
17707         New typedefs, if HAVE_PTHREAD_T is not defined.
17708         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17709         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17710         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17711         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17712         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17713         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17714         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17715         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17716         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17717         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17718         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17719         New macros.
17720         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17721         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17722         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17723         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17724         (pthread_spin_unlock): New dummy functions.
17725         (pthread_create): Return EAGAIN; don't set errno.
17726         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17727         require AC_C_INLINE.
17728         * modules/pthread (Depends-on): Add sched, time.
17729         (pthread.h): Use AM_V_GEN.
17730
17731 2010-07-13  Bruno Haible  <bruno@clisp.org>
17732
17733         striconveh: Don't malloc memory if the result buffer is sufficient.
17734         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17735         buffer if its size is sufficient.
17736         Reported by Ludovic Courtès <ludo@gnu.org>.
17737
17738 2010-07-13  Bruno Haible  <bruno@clisp.org>
17739
17740         strtod: Add safety check.
17741         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17742
17743 2010-07-12  Bruno Haible  <bruno@clisp.org>
17744
17745         Unify tests that set gl_cv_func_ldexpl_no_libm.
17746         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17747         gl_FUNC_LDEXPL.
17748         (gl_FUNC_LDEXPL): Invoke it.
17749         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17750
17751 2010-07-12  Bruno Haible  <bruno@clisp.org>
17752
17753         Unify tests that set gl_cv_func_ldexp_no_libm.
17754         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17755         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17756         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17757         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17758         * modules/strtod (Files): Add m4/ldexp.m4.
17759
17760 2010-07-12  Bruno Haible  <bruno@clisp.org>
17761
17762         Unify tests that set gl_cv_func_frexpl_no_libm.
17763         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17764         gl_FUNC_FREXPL_NO_LIBM.
17765         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17766         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17767
17768 2010-07-12  Bruno Haible  <bruno@clisp.org>
17769
17770         Unify tests that set gl_cv_func_frexp_no_libm.
17771         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17772         gl_FUNC_FREXP_NO_LIBM.
17773         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17774         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17775
17776 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17777
17778         memcoll: clarify sizes versus lengths, document better, and tweak perf
17779         * lib/memcoll.c (strcoll_loop, memcoll0):
17780         Improve quality of descriptive comments.  Name variables
17781         consistently as to whether they are lengths (which do not include
17782         terminating null) versus sizes (which do).
17783         * lib/xmemcoll.c (xmemcoll0): Likewise.
17784         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17785         returned when s1size == 0; this is easier to compile and saves
17786         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17787
17788 2010-07-12  Bruno Haible  <bruno@clisp.org>
17789
17790         Tests for module '_Exit'.
17791         * modules/_Exit-tests: New file.
17792         * tests/test-_Exit.sh: New file.
17793         * tests/test-_Exit.c: New file.
17794
17795         New module '_Exit'.
17796         * lib/stdlib.in.h (__attribute__): New macro.
17797         (_Exit): New declaration.
17798         * lib/_Exit.c: New file.
17799         * m4/_Exit.m4: New file.
17800         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17801         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17802         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17803         * modules/_Exit: New file.
17804         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17805         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17806
17807 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17808
17809         strtod: make it more-accurate typically, and don't require libm
17810         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17811         Include limits.h.  Don't include string.h.
17812         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17813         (locale_isspace): New function, so that no casts are needed to
17814         check whether *s is a space.
17815         (ldexp): Provide an unused dummy if not available.
17816         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17817         (strtod): Use them.  This implementation prefers to use the
17818         underlying strtod if available, falling back on our own code
17819         only to fix known bugs.  This is more likely to produce an
17820         accurate result.  Also, it avoids the use of libm functions.
17821         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17822         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17823         was absent, but it caused a test failure with coreutils.
17824         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17825         with libm.
17826         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17827         * modules/strtod-tests (Makefile.am): Likewise.
17828
17829 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17830             Bruno Haible  <bruno@clisp.org>
17831
17832         unistr/u8-strchr: Optimize ASCII argument case.
17833         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17834
17835 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17836
17837         (x)memcoll: minor tweaks
17838         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17839         is after the type that it qualifies.
17840         (memcoll0): Likewise.
17841         * lib/memcoll.h (memcoll0): Likewise.
17842         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17843         * lib/xmemcoll.h (xmemcoll0): Likewise.
17844         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17845         differs from memcoll in that the NUL byte is part of the argument.
17846         Omit the abort-checks, as performance is a real issue here.  Plus,
17847         the checks were wrong anyway (an off-by-one error).  Omit local
17848         variable 'diff', as it's a bit clearer that way.
17849         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17850         no longer needed.
17851
17852 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17853
17854         (x)memcoll: speedup when input is known to be NUL delimited
17855         * lib/memcoll.c: Include stdlib.
17856         (memcoll0): New function.
17857         (strcoll_loop): New function, refactored for use in both memcoll
17858         and memcoll0.
17859         * lib/memcoll.h (memcoll0): Add prototype.
17860         * lib/xmemcoll.c (xmemcoll0): New function.
17861         (collate_error): New function, refactored for use in both xmemcoll
17862         and xmemcoll0.
17863         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17864         * m4/memcoll.m4: add inline invocation.
17865
17866 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17867
17868         * build-aux/bootstrap: Remove any local translations
17869         from the translation project synchronization directory,
17870         so that local only translations are not distributed.
17871
17872 2010-07-04  Bruno Haible  <bruno@clisp.org>
17873
17874         fsusage: Clarify which code applies to which platforms.
17875         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17876         platform.
17877         * lib/fsusage.c (get_fs_usage): Likewise.
17878
17879 2010-07-04  Bruno Haible  <bruno@clisp.org>
17880
17881         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17882         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17883         Reported by Martin Lambers <marlam@marlam.de>.
17884
17885 2010-07-04  Jim Meyering  <meyering@redhat.com>
17886
17887         hash: once again explicitly disallow insertion of NULL
17888         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17889         inserting a NULL pointer cannot work with these functions.
17890         Add a comment with details.
17891         This reverts part of the 2010-07-01 commit, 5bef1a35
17892         "hash: extend module to deal with non-pointer keys".
17893
17894 2010-07-01  Bruno Haible  <bruno@clisp.org>
17895
17896         stdbool: Update doc.
17897         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17898         Info from Christian Weisgerber <naddy@mips.inka.de>.
17899
17900 2010-07-01  Jim Meyering  <meyering@redhat.com>
17901
17902         hash: extend module to deal with non-pointer keys
17903         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17904         but that allows insertion of non-pointer entries.
17905         Do not disallow an ENTRY value of NULL.
17906         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17907         * lib/hash.h (hash_insert0): Declare.
17908
17909 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17910
17911         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17912         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17913         not present (i.e. with autoconf 2.59 and when using gettextize, not
17914         gnulib), require AC_GNU_SOURCE instead.
17915
17916 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17917
17918         idpriv-drop: Fix tests.
17919         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17920         not to the test-idpriv-droptemp program.
17921
17922 2010-06-29  Bruno Haible  <bruno@clisp.org>
17923
17924         string: Fix syntax error with g++ 2.96.
17925         * lib/string.in.h (__pure__): Remove definition.
17926         (_GL_ATTRIBUTE_PURE): New macro.
17927         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17928         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17929         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17930
17931 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17932
17933         unitypes: Fix bug introduced on 2010-05-18.
17934         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17935
17936 2010-06-22  Eric Blake  <eblake@redhat.com>
17937
17938         memmem: slight optimization
17939         * lib/str-two-way.h (critical_factorization): Update comments.
17940         Reduce work during factorization phase.
17941         Reported by Carlos Bueno <carlos@bueno.org>.
17942
17943 2010-06-21  Bruno Haible  <bruno@clisp.org>
17944
17945         Fix HAVE_CALLOC_POSIX misnomer.
17946         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17947         !HAVE_CALLOC_POSIX.
17948         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17949         HAVE_CALLOC_POSIX.
17950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17951         instead of HAVE_CALLOC_POSIX.
17952         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17953         HAVE_CALLOC_POSIX.
17954
17955         Use modern idiom for calloc() replacement.
17956         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17957         AC_FUNC_CALLOC.
17958         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17959         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17960         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17961         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17962         (gl_REPLACE_CALLOC): New macro.
17963
17964 2010-06-21  Bruno Haible  <bruno@clisp.org>
17965
17966         Fix HAVE_REALLOC_POSIX misnomer.
17967         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17968         !HAVE_REALLOC_POSIX.
17969         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17970         HAVE_REALLOC_POSIX.
17971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17972         instead of HAVE_REALLOC_POSIX.
17973         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17974         HAVE_REALLOC_POSIX.
17975
17976         Use modern idiom for realloc() replacement.
17977         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17978         AC_FUNC_REALLOC.
17979         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17980         Autoconf's AC_FUNC_REALLOC.
17981         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17982         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17983         (gl_REPLACE_REALLOC): New macro.
17984         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17985
17986 2010-06-21  Bruno Haible  <bruno@clisp.org>
17987
17988         Fix HAVE_MALLOC_POSIX misnomer.
17989         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17990         !HAVE_MALLOC_POSIX.
17991         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17992         HAVE_MALLOC_POSIX.
17993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17994         instead of HAVE_MALLOC_POSIX.
17995         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17996         HAVE_MALLOC_POSIX.
17997
17998         Use modern idiom for malloc() replacement.
17999         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18000         AC_FUNC_MALLOC.
18001         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18002         Autoconf's AC_FUNC_MALLOC.
18003         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18004         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18005         (gl_REPLACE_MALLOC): New macro.
18006         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18007
18008 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18009
18010         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18011         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18012         This macro takes 3 arguments, not 4.
18013
18014 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18015
18016         ipv6: fix detection under mingw
18017         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18018         in6_addr.
18019
18020 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18021
18022         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18023         that strtod() works when cross-compiling to a glibc version known
18024         to work.
18025
18026 2010-06-15  Bruno Haible  <bruno@clisp.org>
18027
18028         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18029
18030 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18031
18032         select: Correct timeout.
18033         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18034
18035 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18036
18037         git-version-gen: init shell var to avoid env var influence
18038         * build-aux/git-version-gen (v): Init shell var to empty.
18039
18040 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18041
18042         priv-set: Don't assume that priv.h exists merely because getppriv does.
18043         See Jan Andersen's bug report about AIX 5L in
18044         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18045         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18046         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18047         * lib/priv-set.h: Likewise.
18048         * tests/test-priv-set.c: Likewise.
18049
18050 2010-06-13  Bruno Haible  <bruno@clisp.org>
18051
18052         relocatable: Make it easier to test whether to install wrappers.
18053         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18054         RELOCATABLE_VIA_WRAPPER.
18055
18056 2010-06-13  Bruno Haible  <bruno@clisp.org>
18057
18058         gnulib-tool: Display specified modules and dependencies differently.
18059         * gnulib-tool (func_show_module_list): New function.
18060         (func_import, func_create_testdir): Invoke it.
18061         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18062
18063 2010-06-13  Bruno Haible  <bruno@clisp.org>
18064
18065         gnulib-tool: Align code of func_import and func_create_testdir.
18066         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18067         specified_modules.
18068
18069 2010-06-12  Jim Meyering  <meyering@redhat.com>
18070
18071         test-inttostr: avoid spurious failure on Solaris 9
18072         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18073         to accept "%ju".  Reported by Bruno Haible.
18074
18075 2010-06-11  Jim Meyering  <meyering@redhat.com>
18076
18077         test-sys_socket: mark variables as used more readably
18078         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18079         as "used" explicitly via (void) statement casts.  This is more
18080         readable than using them in an artificial return expression.
18081         Suggestion from Bruno Haible.
18082
18083 2010-06-11  Bruno Haible  <bruno@clisp.org>
18084
18085         Avoid some more warnings from "gcc -Wwrite-strings".
18086         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18087         to 'const char *'.
18088         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18089         * tests/test-c-strcasestr.c (main): Likewise.
18090         * tests/test-mbscasestr1.c (main): Likewise.
18091         * tests/test-mbscasestr2.c (main): Likewise.
18092         * tests/test-memmem.c (main): Likewise.
18093         * tests/test-strstr.c (main): Likewise.
18094         * tests/test-strcasestr.c (main): Likewise.
18095
18096 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18097
18098         init.sh: change framework_failure_ to fail with status 99, not 1
18099         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18100         automake's parallel-tests rule that this is an unexpected failure,
18101         even if the test is listed in XFAIL_TESTS.
18102
18103 2010-06-11  Jim Meyering  <meyering@redhat.com>
18104
18105         test-inttostr: avoid warnings about 4-6KB literal strings
18106         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18107         Include "macros.h", for its definition of ASSERT.
18108         (CK): s/assert/ASSERT/
18109         * modules/inttostr-tests (Files): Add macros.h.
18110
18111         init.sh: don't use $ME_ or skip_ before they are defined
18112         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18113         their first uses.  Also hoist their companions: warn_, fail_,
18114         framework_failure_, $stderr_fileno.  Prompted by a patch from
18115         Stefano Lattarini.
18116
18117         test-sys_socket: avoid set-but-not-used warnings from gcc
18118         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18119         avoid warning about set-but-not-used variables.
18120
18121         test-xvasprintf: avoid 'const' discard warnings
18122         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18123         "const" when assigning from literal strings.
18124         (test_xasprintf): Add "void" in function argument list to placate
18125         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18126
18127         tests: avoid compilation warnings in argmatch and exclude tests...
18128         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18129         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18130         Since it always exits, declare with the "noreturn" attribute.
18131         * tests/test-argmatch.c: Likewise.
18132
18133         tests: avoid 'const' discard warnings in mbsstr tests
18134         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18135         * tests/test-mbsstr2.c (main): Likewise.
18136
18137         test-verify: avoid warning from gcc's -Wmissing-declarations
18138         * tests/test-verify.c (function): Declare to be static.
18139
18140         test-inttostr.c: include <string.h> for use of strcmp
18141         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18142
18143         test-linkat: avoid failed assertion on "other" architectures
18144         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18145         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18146         sparc: https://bugs.launchpad.net/bugs/591968
18147
18148 2010-06-11  Jim Meyering  <meyering@redhat.com>
18149
18150         printf.m4: avoid autoconf's "Expanded Before Required" warning
18151         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18152         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18153         autoconf warning.
18154
18155 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18156
18157         Replacement header templates are now named with ".in", not "_".
18158         * doc/gnulib-intro.texi: Correct.
18159
18160 2010-06-10  Jim Meyering  <meyering@redhat.com>
18161
18162         inttostr-tests: depend on snprintf, not snprintf-posix
18163         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18164         snprintf-posix, to avoid this aclocal failure:
18165           missing file gnulib-tests/vasnprintf.c
18166           configure.ac:45: error: expected source file, required through \
18167           AC_LIBSOURCES, not found
18168
18169 2010-06-10  Jim Meyering  <meyering@redhat.com>
18170
18171         inttostr: add a new function, inttostr, and tests
18172         The namesake function was not available.  The existence of the
18173         template file, inttostr.c makes its addition nontrivial.
18174         * lib/anytostr.c: Rename from inttostr.c.
18175         (anytostr): Rename from inttostr.
18176         * lib/inttostr.c: New file.
18177         * modules/inttostr (Files): Add anytostr.c.
18178         (Makefile.am): Set lib_SOURCES instead of ...
18179         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18180         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18181         * lib/offtostr.c: Likewise.
18182         * lib/uinttostr.c: Likewise.
18183         * lib/umaxtostr.c: Likewise.
18184         * modules/inttostr-tests: New file.
18185         * tests/test-inttostr.c: New file.  Test these functions.
18186
18187 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18188             Bruno Haible  <bruno@clisp.org>
18189
18190         Add "Extending Gnulib" chapter to manual.
18191         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18192         chapter.
18193         (Extending Gnulib): New chapter.
18194         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18195         chapter.
18196
18197 2010-06-09  Bruno Haible  <bruno@clisp.org>
18198
18199         Avoid relocwrapper link errors due to gnulib replacement functions.
18200         * lib/areadlink.c: Use the system's malloc, realloc functions.
18201         (areadlink): Set errno to ENOMEM explicitly.
18202         * modules/areadlink (Depends-on): Remove malloc-posix.
18203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18204
18205 2010-06-09  Bruno Haible  <bruno@clisp.org>
18206
18207         Avoid relocwrapper link errors due to gnulib replacement functions.
18208         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18209         * lib/malloca.c: Likewise.
18210         * lib/relocatable.c: Likewise.
18211         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18212         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18213         * lib/setenv.c: Use the system's malloc, realloc functions.
18214         * lib/strerror.c: Use the system's sprintf function.
18215         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18216
18217 2010-06-04  Bruno Haible  <bruno@clisp.org>
18218
18219         Prefer documented low-level autoconf macro names.
18220         * m4/lib-link.m4: Use m4_translit instead of translit.
18221         * m4/environ.m4: Likewise.
18222         * m4/mathfunc.m4: Likewise.
18223         * m4/onceonly.m4: Likewise.
18224         * m4/stdint.m4: Likewise.
18225         Suggested by Eric Blake.
18226
18227 2010-06-04  Martin Lambers  <marlam@marlam.de>
18228             Bruno Haible  <bruno@clisp.org>
18229
18230         havelib: Allow library names with '+' characters.
18231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18232         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18233
18234 2010-06-09  Bruno Haible  <bruno@clisp.org>
18235
18236         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18237         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18238         realloc failed.
18239
18240 2010-06-08  Peter Simons  <simons@cryp.to>
18241
18242         maint.mk: make the news-check rule more configurable
18243         * top/maint.mk (news-check-lines-spec): New variable.
18244         (news-check): Use "sed -n 1,10p" in place of "head".
18245
18246 2010-06-07  Jim Meyering  <meyering@redhat.com>
18247
18248         do-release-commit-and-tag: fix typo in --help
18249         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18250
18251         regex: avoid new dead-code warning with gcc-4.6.0
18252         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18253         if-block containing a while-loop.  It's been unused for at least
18254         5 years.
18255
18256 2010-06-05  Bruno Haible  <bruno@clisp.org>
18257
18258         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18259         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18260
18261 2010-06-04  Bruno Haible  <bruno@clisp.org>
18262
18263         Update to GNU gettext 0.18.1.
18264         * modules/gettext (configure.ac): Require gettext infrastructure from
18265         version 0.18.1.
18266
18267 2010-06-03  Bruno Haible  <bruno@clisp.org>
18268
18269         Don't use AC_LIBOBJ with file names in subdirectories.
18270         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18271         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18272         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18273         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18274         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18275         gl_LIBUNISTRING_LIBSOURCE.
18276         (Makefile.am): Augment lib_SOURCES here, conditionally.
18277         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18278
18279 2010-06-03  Bruno Haible  <bruno@clisp.org>
18280
18281         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18282         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18283         expansion does not end with a newline.
18284         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18285         unnecessary newline.
18286
18287 2010-06-03  Bruno Haible  <bruno@clisp.org>
18288
18289         Reduce dependencies.
18290         * tests/test-quotearg.h: New file, extracted from
18291         tests/test-quotearg.c.
18292         * tests/test-quotearg-simple.c: New file, extracted from
18293         tests/test-quotearg.c.
18294         * tests/test-quotearg.c: Don't include <ctype.h>.
18295         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18296         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18297         use_quote_double_quotes, use_quotearg_colon): Moved to
18298         tests/test-quotearg.h.
18299         (results_g, flag_results, custom_quotes, custom_results): Moved
18300         to tests/test-quotearg-simple.c.
18301         (main): Moved the part that does not depend on gettext to
18302         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18303         performed.
18304         * modules/quotearg-simple: New file.
18305         * modules/quotearg-simple-tests: New file.
18306         * modules/quotearg (Depends-on): Add quotearg-simple.
18307         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18308         (Files): Add tests/test-quotearg.h.
18309         Reported by Paolo Bonzini.
18310
18311 2010-06-03  Bruno Haible  <bruno@clisp.org>
18312
18313         Reduce dependencies.
18314         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18315
18316 2010-06-03  Bruno Haible  <bruno@clisp.org>
18317
18318         time: Undefine more broken macros.
18319         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18320         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18321         Reported by Eric Blake.
18322
18323 2010-06-03  Bruno Haible  <bruno@clisp.org>
18324
18325         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18326         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18327         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18328         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18329         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18330         Reported by Ludovic Courtès <ludo@gnu.org>.
18331
18332 2010-06-02  Eric Blake  <eblake@redhat.com>
18333
18334         time: work with mingw + pthreads-win32 library
18335         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18336         if timespec is defined only in pthread.h.
18337         * modules/time (Makefile.am): Substitute it.
18338         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18339         <pthread.h>, when needed.
18340         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18341         from the library.
18342
18343 2010-05-31  Bruno Haible  <bruno@clisp.org>
18344
18345         Avoid expanding two macros in the wrong order.
18346         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18347         gl_LIBUNISTRING if it is defined.
18348         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18349         autoconf >= 2.64.
18350         Reported by Ludovic Courtès <ludo@gnu.org>.
18351
18352 2010-05-27  Jim Meyering  <meyering@redhat.com>
18353
18354         maint.mk: also prohibit "#undef" of always-defined symbols
18355         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18356         Allow more than one space before the symbol name.
18357         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18358         the regexp uses alternation.
18359
18360 2010-05-26  Eric Blake  <eblake@redhat.com>
18361
18362         maint.mk: avoid echo -e
18363         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18364         Convert all uses of echo -* to printf.
18365         Reported by Matthias Bolte.
18366
18367 2010-05-25  Bruno Haible  <bruno@clisp.org>
18368
18369         Update to GNU gettext 0.18, part 2.
18370         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18371         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18372
18373 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18374
18375         Add missing include in test-pwrite.c.
18376         * tests/test-pwrite.c: Include string.h, for strcmp.
18377
18378 2010-05-24  Bruno Haible  <bruno@clisp.org>
18379
18380         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18381
18382 2010-05-24  Bruno Haible  <bruno@clisp.org>
18383
18384         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18385         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18386         iconveh_error argument.
18387         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18388         U_STRCONV_TO_LOCALE.
18389         * lib/unistr/u16-strcoll.c: Likewise.
18390         * lib/unistr/u32-strcoll.c: Likewise.
18391         * modules/unistr/u8-strcoll (Depends-on): Add
18392         uniconv/u8-strconv-to-enc, localcharset. Remove
18393         uniconv/u8-strconv-to-locale.
18394         (configure.ac): Bump version number.
18395         * modules/unistr/u16-strcoll (Depends-on): Add
18396         uniconv/u16-strconv-to-enc, localcharset. Remove
18397         uniconv/u16-strconv-to-locale.
18398         (configure.ac): Bump version number.
18399         * modules/unistr/u32-strcoll (Depends-on): Add
18400         uniconv/u32-strconv-to-enc, localcharset. Remove
18401         uniconv/u32-strconv-to-locale.
18402         (configure.ac): Bump version number.
18403
18404 2010-05-24  Bruno Haible  <bruno@clisp.org>
18405
18406         Avoid a test failure on NetBSD 5.0.
18407         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18408         an iconv() bug.
18409
18410 2010-05-24  Bruno Haible  <bruno@clisp.org>
18411
18412         Adjust #include directive style.
18413         * modules/regex (Includes): Recommend to write <regex.h>.
18414
18415 2010-05-24  Bruno Haible  <bruno@clisp.org>
18416
18417         regex: Don't require alloca.
18418         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18419         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18420         only inside if (0).
18421
18422 2010-05-23  Jim Meyering  <meyering@redhat.com>
18423
18424         test-renameat.c: include <sys/stat.h>
18425         * tests/test-renameat.c: Include <sys/stat.h>; required for
18426         definition of S_IS* macros.
18427
18428 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18429
18430         Update maintainer documentation for 'relocatable-prog' module.
18431         * doc/relocatable-maint.texi: Update.
18432         Comments by Bruno Haible.
18433
18434 2010-05-23  Bruno Haible  <bruno@clisp.org>
18435
18436         git-merge-changelog: Enable --split-merged-entry by default.
18437         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18438         (usage): Don't mention this option any more.
18439         Reported by Ralf Wildenhues.
18440
18441 2010-05-23  Jim Meyering  <meyering@redhat.com>
18442
18443         test-pwrite: do not leave behind a test file named "out"
18444         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18445         The trivial-looking use of init.sh is really necessary.
18446         It ensures that the temporary file, "out", is created in
18447         a temporary directory, and removed upon termination.
18448         * tests/test-pwrite.sh: Re-add file.
18449         * modules/pwrite-tests: Reference it.
18450
18451 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18452
18453         Fix output redirection buglet in init.sh.
18454         * tests/init.sh: Fix redirection of stderr.
18455
18456 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18457
18458         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18459
18460 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18461
18462         * modules/valgrind-tests: New file.
18463         * m4/valgrind-tests.m4: New file.
18464         * doc/valgrind-tests.texi: New file.
18465         * doc/gnulib.texi (Running self-tests under valgrind): New
18466         section.
18467
18468 2010-05-19  Bruno Haible  <bruno@clisp.org>
18469
18470         Clean up dead code in recent commit.
18471         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18472         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18473         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18474         Suggested by Paolo Bonzini.
18475
18476 2010-05-19  Bruno Haible  <bruno@clisp.org>
18477
18478         Avoid valgrind error reports from libunistring.
18479         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18480         * modules/libunistring (Files): Add it.
18481         * modules/libunistring-optional (Files): Likewise.
18482
18483 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18484             Bruno Haible  <bruno@clisp.org>
18485
18486         New module 'libunistring-optional'.
18487         * modules/libunistring-optional: New file.
18488         * m4/libunistring-base.m4: New file.
18489         * m4/libunistring-optional.m4: New file.
18490         * lib/unicase.in.h: Renamed from lib/unicase.h.
18491         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18492         * lib/unictype.in.h: Renamed from lib/unictype.h.
18493         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18494         * lib/uniname.in.h: Renamed from lib/uniname.h.
18495         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18496         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18497         * lib/unistr.in.h: Renamed from lib/unistr.h.
18498         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18499         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18500         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18501         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18502         gl_LIBUNISTRING. If the library was found, determine the installed
18503         version and set LIBUNISTRING_VERSION.
18504         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18505         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18506         handle a configuration option --with-included-libunistring.
18507         * modules/libunistring (Files): Add m4/absolute-header.m4.
18508         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18509         Add m4/libunistring-base.m4.
18510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18511         (Makefile.am): Build unicase.h from unicase.in.h.
18512         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18513         Add m4/libunistring-base.m4.
18514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18515         (Makefile.am): Build uniconv.h from uniconv.in.h.
18516         * modules/unictype/base (Files): Use unictype.in.h instead of
18517         unictype.h. Add m4/libunistring-base.m4.
18518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18519         (Makefile.am): Build unictype.h from unictype.in.h.
18520         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18521         Add m4/libunistring-base.m4.
18522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18523         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18524         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18525         Add m4/libunistring-base.m4.
18526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18527         (Makefile.am): Build uniname.h from uniname.in.h.
18528         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18529         Add m4/libunistring-base.m4.
18530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18531         (Makefile.am): Build uninorm.h from uninorm.in.h.
18532         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18533         unistdio.h. Add m4/libunistring-base.m4.
18534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18535         (Makefile.am): Build unistdio.h from unistdio.in.h.
18536         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18537         Add m4/libunistring-base.m4.
18538         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18539         (Makefile.am): Build unistr.h from unistr.in.h.
18540         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18541         Add m4/libunistring-base.m4.
18542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18543         (Makefile.am): Build unitypes.h from unitypes.in.h.
18544         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18545         Add m4/libunistring-base.m4.
18546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18547         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18548         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18549         uniwidth.h. Add m4/libunistring-base.m4.
18550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18551         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18552         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18553         instead of augmenting lib_SOURCES.
18554         * modules/unicase/empty-suffix-context: Likewise.
18555         * modules/unicase/locale-language: Likewise.
18556         * modules/unicase/tolower: Likewise.
18557         * modules/unicase/totitle: Likewise.
18558         * modules/unicase/toupper: Likewise.
18559         * modules/unicase/u8-casecmp: Likewise.
18560         * modules/unicase/u8-casecoll: Likewise.
18561         * modules/unicase/u8-casefold: Likewise.
18562         * modules/unicase/u8-casexfrm: Likewise.
18563         * modules/unicase/u8-ct-casefold: Likewise.
18564         * modules/unicase/u8-ct-tolower: Likewise.
18565         * modules/unicase/u8-ct-totitle: Likewise.
18566         * modules/unicase/u8-ct-toupper: Likewise.
18567         * modules/unicase/u8-is-cased: Likewise.
18568         * modules/unicase/u8-is-casefolded: Likewise.
18569         * modules/unicase/u8-is-lowercase: Likewise.
18570         * modules/unicase/u8-is-titlecase: Likewise.
18571         * modules/unicase/u8-is-uppercase: Likewise.
18572         * modules/unicase/u8-prefix-context: Likewise.
18573         * modules/unicase/u8-suffix-context: Likewise.
18574         * modules/unicase/u8-tolower: Likewise.
18575         * modules/unicase/u8-totitle: Likewise.
18576         * modules/unicase/u8-toupper: Likewise.
18577         * modules/unicase/u16-casecmp: Likewise.
18578         * modules/unicase/u16-casecoll: Likewise.
18579         * modules/unicase/u16-casefold: Likewise.
18580         * modules/unicase/u16-casexfrm: Likewise.
18581         * modules/unicase/u16-ct-casefold: Likewise.
18582         * modules/unicase/u16-ct-tolower: Likewise.
18583         * modules/unicase/u16-ct-totitle: Likewise.
18584         * modules/unicase/u16-ct-toupper: Likewise.
18585         * modules/unicase/u16-is-cased: Likewise.
18586         * modules/unicase/u16-is-casefolded: Likewise.
18587         * modules/unicase/u16-is-lowercase: Likewise.
18588         * modules/unicase/u16-is-titlecase: Likewise.
18589         * modules/unicase/u16-is-uppercase: Likewise.
18590         * modules/unicase/u16-prefix-context: Likewise.
18591         * modules/unicase/u16-suffix-context: Likewise.
18592         * modules/unicase/u16-tolower: Likewise.
18593         * modules/unicase/u16-totitle: Likewise.
18594         * modules/unicase/u16-toupper: Likewise.
18595         * modules/unicase/u32-casecmp: Likewise.
18596         * modules/unicase/u32-casecoll: Likewise.
18597         * modules/unicase/u32-casefold: Likewise.
18598         * modules/unicase/u32-casexfrm: Likewise.
18599         * modules/unicase/u32-ct-casefold: Likewise.
18600         * modules/unicase/u32-ct-tolower: Likewise.
18601         * modules/unicase/u32-ct-totitle: Likewise.
18602         * modules/unicase/u32-ct-toupper: Likewise.
18603         * modules/unicase/u32-is-cased: Likewise.
18604         * modules/unicase/u32-is-casefolded: Likewise.
18605         * modules/unicase/u32-is-lowercase: Likewise.
18606         * modules/unicase/u32-is-titlecase: Likewise.
18607         * modules/unicase/u32-is-uppercase: Likewise.
18608         * modules/unicase/u32-prefix-context: Likewise.
18609         * modules/unicase/u32-suffix-context: Likewise.
18610         * modules/unicase/u32-tolower: Likewise.
18611         * modules/unicase/u32-totitle: Likewise.
18612         * modules/unicase/u32-toupper: Likewise.
18613         * modules/unicase/ulc-casecmp: Likewise.
18614         * modules/unicase/ulc-casecoll: Likewise.
18615         * modules/unicase/ulc-casexfrm: Likewise.
18616         * modules/uniconv/u8-conv-from-enc: Likewise.
18617         * modules/uniconv/u8-conv-to-enc: Likewise.
18618         * modules/uniconv/u8-strconv-from-enc: Likewise.
18619         * modules/uniconv/u8-strconv-from-locale: Likewise.
18620         * modules/uniconv/u8-strconv-to-enc: Likewise.
18621         * modules/uniconv/u8-strconv-to-locale: Likewise.
18622         * modules/uniconv/u16-conv-from-enc: Likewise.
18623         * modules/uniconv/u16-conv-to-enc: Likewise.
18624         * modules/uniconv/u16-strconv-from-enc: Likewise.
18625         * modules/uniconv/u16-strconv-from-locale: Likewise.
18626         * modules/uniconv/u16-strconv-to-enc: Likewise.
18627         * modules/uniconv/u16-strconv-to-locale: Likewise.
18628         * modules/uniconv/u32-conv-from-enc: Likewise.
18629         * modules/uniconv/u32-conv-to-enc: Likewise.
18630         * modules/uniconv/u32-strconv-from-enc: Likewise.
18631         * modules/uniconv/u32-strconv-from-locale: Likewise.
18632         * modules/uniconv/u32-strconv-to-enc: Likewise.
18633         * modules/uniconv/u32-strconv-to-locale: Likewise.
18634         * modules/unictype/bidicategory-byname: Likewise.
18635         * modules/unictype/bidicategory-name: Likewise.
18636         * modules/unictype/bidicategory-of: Likewise.
18637         * modules/unictype/bidicategory-test: Likewise.
18638         * modules/unictype/block-list: Likewise.
18639         * modules/unictype/block-test: Likewise.
18640         * modules/unictype/category-C: Likewise.
18641         * modules/unictype/category-Cc: Likewise.
18642         * modules/unictype/category-Cf: Likewise.
18643         * modules/unictype/category-Cn: Likewise.
18644         * modules/unictype/category-Co: Likewise.
18645         * modules/unictype/category-Cs: Likewise.
18646         * modules/unictype/category-L: Likewise.
18647         * modules/unictype/category-Ll: Likewise.
18648         * modules/unictype/category-Lm: Likewise.
18649         * modules/unictype/category-Lo: Likewise.
18650         * modules/unictype/category-Lt: Likewise.
18651         * modules/unictype/category-Lu: Likewise.
18652         * modules/unictype/category-M: Likewise.
18653         * modules/unictype/category-Mc: Likewise.
18654         * modules/unictype/category-Me: Likewise.
18655         * modules/unictype/category-Mn: Likewise.
18656         * modules/unictype/category-N: Likewise.
18657         * modules/unictype/category-Nd: Likewise.
18658         * modules/unictype/category-Nl: Likewise.
18659         * modules/unictype/category-No: Likewise.
18660         * modules/unictype/category-P: Likewise.
18661         * modules/unictype/category-Pc: Likewise.
18662         * modules/unictype/category-Pd: Likewise.
18663         * modules/unictype/category-Pe: Likewise.
18664         * modules/unictype/category-Pf: Likewise.
18665         * modules/unictype/category-Pi: Likewise.
18666         * modules/unictype/category-Po: Likewise.
18667         * modules/unictype/category-Ps: Likewise.
18668         * modules/unictype/category-S: Likewise.
18669         * modules/unictype/category-Sc: Likewise.
18670         * modules/unictype/category-Sk: Likewise.
18671         * modules/unictype/category-Sm: Likewise.
18672         * modules/unictype/category-So: Likewise.
18673         * modules/unictype/category-Z: Likewise.
18674         * modules/unictype/category-Zl: Likewise.
18675         * modules/unictype/category-Zp: Likewise.
18676         * modules/unictype/category-Zs: Likewise.
18677         * modules/unictype/category-and: Likewise.
18678         * modules/unictype/category-and-not: Likewise.
18679         * modules/unictype/category-byname: Likewise.
18680         * modules/unictype/category-name: Likewise.
18681         * modules/unictype/category-none: Likewise.
18682         * modules/unictype/category-of: Likewise.
18683         * modules/unictype/category-or: Likewise.
18684         * modules/unictype/category-test: Likewise.
18685         * modules/unictype/combining-class: Likewise.
18686         * modules/unictype/ctype-alnum: Likewise.
18687         * modules/unictype/ctype-alpha: Likewise.
18688         * modules/unictype/ctype-blank: Likewise.
18689         * modules/unictype/ctype-cntrl: Likewise.
18690         * modules/unictype/ctype-digit: Likewise.
18691         * modules/unictype/ctype-graph: Likewise.
18692         * modules/unictype/ctype-lower: Likewise.
18693         * modules/unictype/ctype-print: Likewise.
18694         * modules/unictype/ctype-punct: Likewise.
18695         * modules/unictype/ctype-space: Likewise.
18696         * modules/unictype/ctype-upper: Likewise.
18697         * modules/unictype/ctype-xdigit: Likewise.
18698         * modules/unictype/decimal-digit: Likewise.
18699         * modules/unictype/digit: Likewise.
18700         * modules/unictype/mirror: Likewise.
18701         * modules/unictype/numeric: Likewise.
18702         * modules/unictype/property-alphabetic: Likewise.
18703         * modules/unictype/property-ascii-hex-digit: Likewise.
18704         * modules/unictype/property-bidi-arabic-digit: Likewise.
18705         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18706         * modules/unictype/property-bidi-block-separator: Likewise.
18707         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18708         * modules/unictype/property-bidi-common-separator: Likewise.
18709         * modules/unictype/property-bidi-control: Likewise.
18710         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18711         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18712         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18713         * modules/unictype/property-bidi-european-digit: Likewise.
18714         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18715         * modules/unictype/property-bidi-left-to-right: Likewise.
18716         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18717         * modules/unictype/property-bidi-other-neutral: Likewise.
18718         * modules/unictype/property-bidi-pdf: Likewise.
18719         * modules/unictype/property-bidi-segment-separator: Likewise.
18720         * modules/unictype/property-bidi-whitespace: Likewise.
18721         * modules/unictype/property-byname: Likewise.
18722         * modules/unictype/property-combining: Likewise.
18723         * modules/unictype/property-composite: Likewise.
18724         * modules/unictype/property-currency-symbol: Likewise.
18725         * modules/unictype/property-dash: Likewise.
18726         * modules/unictype/property-decimal-digit: Likewise.
18727         * modules/unictype/property-default-ignorable-code-point: Likewise.
18728         * modules/unictype/property-deprecated: Likewise.
18729         * modules/unictype/property-diacritic: Likewise.
18730         * modules/unictype/property-extender: Likewise.
18731         * modules/unictype/property-format-control: Likewise.
18732         * modules/unictype/property-grapheme-base: Likewise.
18733         * modules/unictype/property-grapheme-extend: Likewise.
18734         * modules/unictype/property-grapheme-link: Likewise.
18735         * modules/unictype/property-hex-digit: Likewise.
18736         * modules/unictype/property-hyphen: Likewise.
18737         * modules/unictype/property-id-continue: Likewise.
18738         * modules/unictype/property-id-start: Likewise.
18739         * modules/unictype/property-ideographic: Likewise.
18740         * modules/unictype/property-ids-binary-operator: Likewise.
18741         * modules/unictype/property-ids-trinary-operator: Likewise.
18742         * modules/unictype/property-ignorable-control: Likewise.
18743         * modules/unictype/property-iso-control: Likewise.
18744         * modules/unictype/property-join-control: Likewise.
18745         * modules/unictype/property-left-of-pair: Likewise.
18746         * modules/unictype/property-line-separator: Likewise.
18747         * modules/unictype/property-logical-order-exception: Likewise.
18748         * modules/unictype/property-lowercase: Likewise.
18749         * modules/unictype/property-math: Likewise.
18750         * modules/unictype/property-non-break: Likewise.
18751         * modules/unictype/property-not-a-character: Likewise.
18752         * modules/unictype/property-numeric: Likewise.
18753         * modules/unictype/property-other-alphabetic: Likewise.
18754         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18755         * modules/unictype/property-other-grapheme-extend: Likewise.
18756         * modules/unictype/property-other-id-continue: Likewise.
18757         * modules/unictype/property-other-id-start: Likewise.
18758         * modules/unictype/property-other-lowercase: Likewise.
18759         * modules/unictype/property-other-math: Likewise.
18760         * modules/unictype/property-other-uppercase: Likewise.
18761         * modules/unictype/property-paired-punctuation: Likewise.
18762         * modules/unictype/property-paragraph-separator: Likewise.
18763         * modules/unictype/property-pattern-syntax: Likewise.
18764         * modules/unictype/property-pattern-white-space: Likewise.
18765         * modules/unictype/property-private-use: Likewise.
18766         * modules/unictype/property-punctuation: Likewise.
18767         * modules/unictype/property-quotation-mark: Likewise.
18768         * modules/unictype/property-radical: Likewise.
18769         * modules/unictype/property-sentence-terminal: Likewise.
18770         * modules/unictype/property-soft-dotted: Likewise.
18771         * modules/unictype/property-space: Likewise.
18772         * modules/unictype/property-terminal-punctuation: Likewise.
18773         * modules/unictype/property-test: Likewise.
18774         * modules/unictype/property-titlecase: Likewise.
18775         * modules/unictype/property-unassigned-code-value: Likewise.
18776         * modules/unictype/property-unified-ideograph: Likewise.
18777         * modules/unictype/property-uppercase: Likewise.
18778         * modules/unictype/property-variation-selector: Likewise.
18779         * modules/unictype/property-white-space: Likewise.
18780         * modules/unictype/property-xid-continue: Likewise.
18781         * modules/unictype/property-xid-start: Likewise.
18782         * modules/unictype/property-zero-width: Likewise.
18783         * modules/unictype/scripts: Likewise.
18784         * modules/unictype/syntax-c-ident: Likewise.
18785         * modules/unictype/syntax-c-whitespace: Likewise.
18786         * modules/unictype/syntax-java-ident: Likewise.
18787         * modules/unictype/syntax-java-whitespace: Likewise.
18788         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18789         * modules/unilbrk/u8-width-linebreaks: Likewise.
18790         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18791         * modules/unilbrk/u16-width-linebreaks: Likewise.
18792         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18793         * modules/unilbrk/u32-width-linebreaks: Likewise.
18794         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18795         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18796         * modules/uniname/uniname: Likewise.
18797         * modules/uninorm/canonical-decomposition: Likewise.
18798         * modules/uninorm/composition: Likewise.
18799         * modules/uninorm/decomposing-form: Likewise.
18800         * modules/uninorm/decomposition: Likewise.
18801         * modules/uninorm/filter: Likewise.
18802         * modules/uninorm/nfc: Likewise.
18803         * modules/uninorm/nfd: Likewise.
18804         * modules/uninorm/nfkc: Likewise.
18805         * modules/uninorm/nfkd: Likewise.
18806         * modules/uninorm/u8-normalize: Likewise.
18807         * modules/uninorm/u8-normcmp: Likewise.
18808         * modules/uninorm/u8-normcoll: Likewise.
18809         * modules/uninorm/u8-normxfrm: Likewise.
18810         * modules/uninorm/u16-normalize: Likewise.
18811         * modules/uninorm/u16-normcmp: Likewise.
18812         * modules/uninorm/u16-normcoll: Likewise.
18813         * modules/uninorm/u16-normxfrm: Likewise.
18814         * modules/uninorm/u32-normalize: Likewise.
18815         * modules/uninorm/u32-normcmp: Likewise.
18816         * modules/uninorm/u32-normcoll: Likewise.
18817         * modules/uninorm/u32-normxfrm: Likewise.
18818         * modules/unistdio/u8-asnprintf: Likewise.
18819         * modules/unistdio/u8-asprintf: Likewise.
18820         * modules/unistdio/u8-snprintf: Likewise.
18821         * modules/unistdio/u8-sprintf: Likewise.
18822         * modules/unistdio/u8-u8-asnprintf: Likewise.
18823         * modules/unistdio/u8-u8-asprintf: Likewise.
18824         * modules/unistdio/u8-u8-snprintf: Likewise.
18825         * modules/unistdio/u8-u8-sprintf: Likewise.
18826         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18827         * modules/unistdio/u8-u8-vasprintf: Likewise.
18828         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18829         * modules/unistdio/u8-u8-vsprintf: Likewise.
18830         * modules/unistdio/u8-vasnprintf: Likewise.
18831         * modules/unistdio/u8-vasprintf: Likewise.
18832         * modules/unistdio/u8-vsnprintf: Likewise.
18833         * modules/unistdio/u8-vsprintf: Likewise.
18834         * modules/unistdio/u16-asnprintf: Likewise.
18835         * modules/unistdio/u16-asprintf: Likewise.
18836         * modules/unistdio/u16-snprintf: Likewise.
18837         * modules/unistdio/u16-sprintf: Likewise.
18838         * modules/unistdio/u16-u16-asnprintf: Likewise.
18839         * modules/unistdio/u16-u16-asprintf: Likewise.
18840         * modules/unistdio/u16-u16-snprintf: Likewise.
18841         * modules/unistdio/u16-u16-sprintf: Likewise.
18842         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18843         * modules/unistdio/u16-u16-vasprintf: Likewise.
18844         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18845         * modules/unistdio/u16-u16-vsprintf: Likewise.
18846         * modules/unistdio/u16-vasnprintf: Likewise.
18847         * modules/unistdio/u16-vasprintf: Likewise.
18848         * modules/unistdio/u16-vsnprintf: Likewise.
18849         * modules/unistdio/u16-vsprintf: Likewise.
18850         * modules/unistdio/u32-asnprintf: Likewise.
18851         * modules/unistdio/u32-asprintf: Likewise.
18852         * modules/unistdio/u32-snprintf: Likewise.
18853         * modules/unistdio/u32-sprintf: Likewise.
18854         * modules/unistdio/u32-u32-asnprintf: Likewise.
18855         * modules/unistdio/u32-u32-asprintf: Likewise.
18856         * modules/unistdio/u32-u32-snprintf: Likewise.
18857         * modules/unistdio/u32-u32-sprintf: Likewise.
18858         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18859         * modules/unistdio/u32-u32-vasprintf: Likewise.
18860         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18861         * modules/unistdio/u32-u32-vsprintf: Likewise.
18862         * modules/unistdio/u32-vasnprintf: Likewise.
18863         * modules/unistdio/u32-vasprintf: Likewise.
18864         * modules/unistdio/u32-vsnprintf: Likewise.
18865         * modules/unistdio/u32-vsprintf: Likewise.
18866         * modules/unistdio/ulc-asnprintf: Likewise.
18867         * modules/unistdio/ulc-asprintf: Likewise.
18868         * modules/unistdio/ulc-fprintf: Likewise.
18869         * modules/unistdio/ulc-snprintf: Likewise.
18870         * modules/unistdio/ulc-sprintf: Likewise.
18871         * modules/unistdio/ulc-vasnprintf: Likewise.
18872         * modules/unistdio/ulc-vasprintf: Likewise.
18873         * modules/unistdio/ulc-vfprintf: Likewise.
18874         * modules/unistdio/ulc-vsnprintf: Likewise.
18875         * modules/unistdio/ulc-vsprintf: Likewise.
18876         * modules/unistr/u8-check: Likewise.
18877         * modules/unistr/u8-chr: Likewise.
18878         * modules/unistr/u8-cmp: Likewise.
18879         * modules/unistr/u8-cmp2: Likewise.
18880         * modules/unistr/u8-cpy: Likewise.
18881         * modules/unistr/u8-cpy-alloc: Likewise.
18882         * modules/unistr/u8-endswith: Likewise.
18883         * modules/unistr/u8-mblen: Likewise.
18884         * modules/unistr/u8-mbsnlen: Likewise.
18885         * modules/unistr/u8-mbtouc: Likewise.
18886         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18887         * modules/unistr/u8-mbtoucr: Likewise.
18888         * modules/unistr/u8-move: Likewise.
18889         * modules/unistr/u8-next: Likewise.
18890         * modules/unistr/u8-prev: Likewise.
18891         * modules/unistr/u8-set: Likewise.
18892         * modules/unistr/u8-startswith: Likewise.
18893         * modules/unistr/u8-stpcpy: Likewise.
18894         * modules/unistr/u8-stpncpy: Likewise.
18895         * modules/unistr/u8-strcat: Likewise.
18896         * modules/unistr/u8-strchr: Likewise.
18897         * modules/unistr/u8-strcmp: Likewise.
18898         * modules/unistr/u8-strcoll: Likewise.
18899         * modules/unistr/u8-strcpy: Likewise.
18900         * modules/unistr/u8-strcspn: Likewise.
18901         * modules/unistr/u8-strdup: Likewise.
18902         * modules/unistr/u8-strlen: Likewise.
18903         * modules/unistr/u8-strmblen: Likewise.
18904         * modules/unistr/u8-strmbtouc: Likewise.
18905         * modules/unistr/u8-strncat: Likewise.
18906         * modules/unistr/u8-strncmp: Likewise.
18907         * modules/unistr/u8-strncpy: Likewise.
18908         * modules/unistr/u8-strnlen: Likewise.
18909         * modules/unistr/u8-strpbrk: Likewise.
18910         * modules/unistr/u8-strrchr: Likewise.
18911         * modules/unistr/u8-strspn: Likewise.
18912         * modules/unistr/u8-strstr: Likewise.
18913         * modules/unistr/u8-strtok: Likewise.
18914         * modules/unistr/u8-to-u16: Likewise.
18915         * modules/unistr/u8-to-u32: Likewise.
18916         * modules/unistr/u8-uctomb: Likewise.
18917         * modules/unistr/u16-check: Likewise.
18918         * modules/unistr/u16-chr: Likewise.
18919         * modules/unistr/u16-cmp: Likewise.
18920         * modules/unistr/u16-cmp2: Likewise.
18921         * modules/unistr/u16-cpy: Likewise.
18922         * modules/unistr/u16-cpy-alloc: Likewise.
18923         * modules/unistr/u16-endswith: Likewise.
18924         * modules/unistr/u16-mblen: Likewise.
18925         * modules/unistr/u16-mbsnlen: Likewise.
18926         * modules/unistr/u16-mbtouc: Likewise.
18927         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18928         * modules/unistr/u16-mbtoucr: Likewise.
18929         * modules/unistr/u16-move: Likewise.
18930         * modules/unistr/u16-next: Likewise.
18931         * modules/unistr/u16-prev: Likewise.
18932         * modules/unistr/u16-set: Likewise.
18933         * modules/unistr/u16-startswith: Likewise.
18934         * modules/unistr/u16-stpcpy: Likewise.
18935         * modules/unistr/u16-stpncpy: Likewise.
18936         * modules/unistr/u16-strcat: Likewise.
18937         * modules/unistr/u16-strchr: Likewise.
18938         * modules/unistr/u16-strcmp: Likewise.
18939         * modules/unistr/u16-strcoll: Likewise.
18940         * modules/unistr/u16-strcpy: Likewise.
18941         * modules/unistr/u16-strcspn: Likewise.
18942         * modules/unistr/u16-strdup: Likewise.
18943         * modules/unistr/u16-strlen: Likewise.
18944         * modules/unistr/u16-strmblen: Likewise.
18945         * modules/unistr/u16-strmbtouc: Likewise.
18946         * modules/unistr/u16-strncat: Likewise.
18947         * modules/unistr/u16-strncmp: Likewise.
18948         * modules/unistr/u16-strncpy: Likewise.
18949         * modules/unistr/u16-strnlen: Likewise.
18950         * modules/unistr/u16-strpbrk: Likewise.
18951         * modules/unistr/u16-strrchr: Likewise.
18952         * modules/unistr/u16-strspn: Likewise.
18953         * modules/unistr/u16-strstr: Likewise.
18954         * modules/unistr/u16-strtok: Likewise.
18955         * modules/unistr/u16-to-u32: Likewise.
18956         * modules/unistr/u16-to-u8: Likewise.
18957         * modules/unistr/u16-uctomb: Likewise.
18958         * modules/unistr/u32-check: Likewise.
18959         * modules/unistr/u32-chr: Likewise.
18960         * modules/unistr/u32-cmp: Likewise.
18961         * modules/unistr/u32-cmp2: Likewise.
18962         * modules/unistr/u32-cpy: Likewise.
18963         * modules/unistr/u32-cpy-alloc: Likewise.
18964         * modules/unistr/u32-endswith: Likewise.
18965         * modules/unistr/u32-mblen: Likewise.
18966         * modules/unistr/u32-mbsnlen: Likewise.
18967         * modules/unistr/u32-mbtouc: Likewise.
18968         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18969         * modules/unistr/u32-mbtoucr: Likewise.
18970         * modules/unistr/u32-move: Likewise.
18971         * modules/unistr/u32-next: Likewise.
18972         * modules/unistr/u32-prev: Likewise.
18973         * modules/unistr/u32-set: Likewise.
18974         * modules/unistr/u32-startswith: Likewise.
18975         * modules/unistr/u32-stpcpy: Likewise.
18976         * modules/unistr/u32-stpncpy: Likewise.
18977         * modules/unistr/u32-strcat: Likewise.
18978         * modules/unistr/u32-strchr: Likewise.
18979         * modules/unistr/u32-strcmp: Likewise.
18980         * modules/unistr/u32-strcoll: Likewise.
18981         * modules/unistr/u32-strcpy: Likewise.
18982         * modules/unistr/u32-strcspn: Likewise.
18983         * modules/unistr/u32-strdup: Likewise.
18984         * modules/unistr/u32-strlen: Likewise.
18985         * modules/unistr/u32-strmblen: Likewise.
18986         * modules/unistr/u32-strmbtouc: Likewise.
18987         * modules/unistr/u32-strncat: Likewise.
18988         * modules/unistr/u32-strncmp: Likewise.
18989         * modules/unistr/u32-strncpy: Likewise.
18990         * modules/unistr/u32-strnlen: Likewise.
18991         * modules/unistr/u32-strpbrk: Likewise.
18992         * modules/unistr/u32-strrchr: Likewise.
18993         * modules/unistr/u32-strspn: Likewise.
18994         * modules/unistr/u32-strstr: Likewise.
18995         * modules/unistr/u32-strtok: Likewise.
18996         * modules/unistr/u32-to-u16: Likewise.
18997         * modules/unistr/u32-to-u8: Likewise.
18998         * modules/unistr/u32-uctomb: Likewise.
18999         * modules/uniwbrk/u8-wordbreaks: Likewise.
19000         * modules/uniwbrk/u16-wordbreaks: Likewise.
19001         * modules/uniwbrk/u32-wordbreaks: Likewise.
19002         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19003         * modules/uniwbrk/wordbreak-property: Likewise.
19004         * modules/uniwidth/u8-strwidth: Likewise.
19005         * modules/uniwidth/u8-width: Likewise.
19006         * modules/uniwidth/u16-strwidth: Likewise.
19007         * modules/uniwidth/u16-width: Likewise.
19008         * modules/uniwidth/u32-strwidth: Likewise.
19009         * modules/uniwidth/u32-width: Likewise.
19010         * modules/uniwidth/width: Likewise.
19011         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19012         with $(LIBUNISTRING).
19013         * modules/unicase/ignorable-tests: Likewise.
19014         * modules/unicase/locale-language-tests: Likewise.
19015         * modules/unicase/tolower-tests: Likewise.
19016         * modules/unicase/totitle-tests: Likewise.
19017         * modules/unicase/toupper-tests: Likewise.
19018         * modules/unicase/u8-casecmp-tests: Likewise.
19019         * modules/unicase/u8-casecoll-tests: Likewise.
19020         * modules/unicase/u8-casefold-tests: Likewise.
19021         * modules/unicase/u8-is-cased-tests: Likewise.
19022         * modules/unicase/u8-is-casefolded-tests: Likewise.
19023         * modules/unicase/u8-is-lowercase-tests: Likewise.
19024         * modules/unicase/u8-is-titlecase-tests: Likewise.
19025         * modules/unicase/u8-is-uppercase-tests: Likewise.
19026         * modules/unicase/u8-tolower-tests: Likewise.
19027         * modules/unicase/u8-totitle-tests: Likewise.
19028         * modules/unicase/u8-toupper-tests: Likewise.
19029         * modules/unicase/u16-casecmp-tests: Likewise.
19030         * modules/unicase/u16-casecoll-tests: Likewise.
19031         * modules/unicase/u16-casefold-tests: Likewise.
19032         * modules/unicase/u16-is-cased-tests: Likewise.
19033         * modules/unicase/u16-is-casefolded-tests: Likewise.
19034         * modules/unicase/u16-is-lowercase-tests: Likewise.
19035         * modules/unicase/u16-is-titlecase-tests: Likewise.
19036         * modules/unicase/u16-is-uppercase-tests: Likewise.
19037         * modules/unicase/u16-tolower-tests: Likewise.
19038         * modules/unicase/u16-totitle-tests: Likewise.
19039         * modules/unicase/u16-toupper-tests: Likewise.
19040         * modules/unicase/u32-casecmp-tests: Likewise.
19041         * modules/unicase/u32-casecoll-tests: Likewise.
19042         * modules/unicase/u32-casefold-tests: Likewise.
19043         * modules/unicase/u32-is-cased-tests: Likewise.
19044         * modules/unicase/u32-is-casefolded-tests: Likewise.
19045         * modules/unicase/u32-is-lowercase-tests: Likewise.
19046         * modules/unicase/u32-is-titlecase-tests: Likewise.
19047         * modules/unicase/u32-is-uppercase-tests: Likewise.
19048         * modules/unicase/u32-tolower-tests: Likewise.
19049         * modules/unicase/u32-totitle-tests: Likewise.
19050         * modules/unicase/u32-toupper-tests: Likewise.
19051         * modules/unicase/ulc-casecmp-tests: Likewise.
19052         * modules/unicase/ulc-casecoll-tests: Likewise.
19053         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19054         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19055         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19056         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19057         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19058         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19059         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19060         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19061         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19062         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19063         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19064         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19065         * modules/unictype/bidicategory-byname-tests: Likewise.
19066         * modules/unictype/bidicategory-name-tests: Likewise.
19067         * modules/unictype/bidicategory-of-tests: Likewise.
19068         * modules/unictype/bidicategory-test-tests: Likewise.
19069         * modules/unictype/block-list-tests: Likewise.
19070         * modules/unictype/block-of-tests: Likewise.
19071         * modules/unictype/block-test-tests: Likewise.
19072         * modules/unictype/category-C-tests: Likewise.
19073         * modules/unictype/category-Cc-tests: Likewise.
19074         * modules/unictype/category-Cf-tests: Likewise.
19075         * modules/unictype/category-Cn-tests: Likewise.
19076         * modules/unictype/category-Co-tests: Likewise.
19077         * modules/unictype/category-Cs-tests: Likewise.
19078         * modules/unictype/category-L-tests: Likewise.
19079         * modules/unictype/category-Ll-tests: Likewise.
19080         * modules/unictype/category-Lm-tests: Likewise.
19081         * modules/unictype/category-Lo-tests: Likewise.
19082         * modules/unictype/category-Lt-tests: Likewise.
19083         * modules/unictype/category-Lu-tests: Likewise.
19084         * modules/unictype/category-M-tests: Likewise.
19085         * modules/unictype/category-Mc-tests: Likewise.
19086         * modules/unictype/category-Me-tests: Likewise.
19087         * modules/unictype/category-Mn-tests: Likewise.
19088         * modules/unictype/category-N-tests: Likewise.
19089         * modules/unictype/category-Nd-tests: Likewise.
19090         * modules/unictype/category-Nl-tests: Likewise.
19091         * modules/unictype/category-No-tests: Likewise.
19092         * modules/unictype/category-P-tests: Likewise.
19093         * modules/unictype/category-Pc-tests: Likewise.
19094         * modules/unictype/category-Pd-tests: Likewise.
19095         * modules/unictype/category-Pe-tests: Likewise.
19096         * modules/unictype/category-Pf-tests: Likewise.
19097         * modules/unictype/category-Pi-tests: Likewise.
19098         * modules/unictype/category-Po-tests: Likewise.
19099         * modules/unictype/category-Ps-tests: Likewise.
19100         * modules/unictype/category-S-tests: Likewise.
19101         * modules/unictype/category-Sc-tests: Likewise.
19102         * modules/unictype/category-Sk-tests: Likewise.
19103         * modules/unictype/category-Sm-tests: Likewise.
19104         * modules/unictype/category-So-tests: Likewise.
19105         * modules/unictype/category-Z-tests: Likewise.
19106         * modules/unictype/category-Zl-tests: Likewise.
19107         * modules/unictype/category-Zp-tests: Likewise.
19108         * modules/unictype/category-Zs-tests: Likewise.
19109         * modules/unictype/category-and-not-tests: Likewise.
19110         * modules/unictype/category-and-tests: Likewise.
19111         * modules/unictype/category-byname-tests: Likewise.
19112         * modules/unictype/category-name-tests: Likewise.
19113         * modules/unictype/category-none-tests: Likewise.
19114         * modules/unictype/category-of-tests: Likewise.
19115         * modules/unictype/category-or-tests: Likewise.
19116         * modules/unictype/category-test-withtable-tests: Likewise.
19117         * modules/unictype/combining-class-tests: Likewise.
19118         * modules/unictype/ctype-alnum-tests: Likewise.
19119         * modules/unictype/ctype-alpha-tests: Likewise.
19120         * modules/unictype/ctype-blank-tests: Likewise.
19121         * modules/unictype/ctype-cntrl-tests: Likewise.
19122         * modules/unictype/ctype-digit-tests: Likewise.
19123         * modules/unictype/ctype-graph-tests: Likewise.
19124         * modules/unictype/ctype-lower-tests: Likewise.
19125         * modules/unictype/ctype-print-tests: Likewise.
19126         * modules/unictype/ctype-punct-tests: Likewise.
19127         * modules/unictype/ctype-space-tests: Likewise.
19128         * modules/unictype/ctype-upper-tests: Likewise.
19129         * modules/unictype/ctype-xdigit-tests: Likewise.
19130         * modules/unictype/decimal-digit-tests: Likewise.
19131         * modules/unictype/digit-tests: Likewise.
19132         * modules/unictype/mirror-tests: Likewise.
19133         * modules/unictype/numeric-tests: Likewise.
19134         * modules/unictype/property-alphabetic-tests: Likewise.
19135         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19136         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19137         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19138         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19139         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19140         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19141         * modules/unictype/property-bidi-control-tests: Likewise.
19142         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19143         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19144         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19145         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19146         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19147         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19148         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19149         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19150         * modules/unictype/property-bidi-pdf-tests: Likewise.
19151         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19152         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19153         * modules/unictype/property-byname-tests: Likewise.
19154         * modules/unictype/property-combining-tests: Likewise.
19155         * modules/unictype/property-composite-tests: Likewise.
19156         * modules/unictype/property-currency-symbol-tests: Likewise.
19157         * modules/unictype/property-dash-tests: Likewise.
19158         * modules/unictype/property-decimal-digit-tests: Likewise.
19159         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19160         * modules/unictype/property-deprecated-tests: Likewise.
19161         * modules/unictype/property-diacritic-tests: Likewise.
19162         * modules/unictype/property-extender-tests: Likewise.
19163         * modules/unictype/property-format-control-tests: Likewise.
19164         * modules/unictype/property-grapheme-base-tests: Likewise.
19165         * modules/unictype/property-grapheme-extend-tests: Likewise.
19166         * modules/unictype/property-grapheme-link-tests: Likewise.
19167         * modules/unictype/property-hex-digit-tests: Likewise.
19168         * modules/unictype/property-hyphen-tests: Likewise.
19169         * modules/unictype/property-id-continue-tests: Likewise.
19170         * modules/unictype/property-id-start-tests: Likewise.
19171         * modules/unictype/property-ideographic-tests: Likewise.
19172         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19173         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19174         * modules/unictype/property-ignorable-control-tests: Likewise.
19175         * modules/unictype/property-iso-control-tests: Likewise.
19176         * modules/unictype/property-join-control-tests: Likewise.
19177         * modules/unictype/property-left-of-pair-tests: Likewise.
19178         * modules/unictype/property-line-separator-tests: Likewise.
19179         * modules/unictype/property-logical-order-exception-tests: Likewise.
19180         * modules/unictype/property-lowercase-tests: Likewise.
19181         * modules/unictype/property-math-tests: Likewise.
19182         * modules/unictype/property-non-break-tests: Likewise.
19183         * modules/unictype/property-not-a-character-tests: Likewise.
19184         * modules/unictype/property-numeric-tests: Likewise.
19185         * modules/unictype/property-other-alphabetic-tests: Likewise.
19186         * modules/unictype/property-other-default-ignorable-code-point-tests:
19187         Likewise.
19188         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19189         * modules/unictype/property-other-id-continue-tests: Likewise.
19190         * modules/unictype/property-other-id-start-tests: Likewise.
19191         * modules/unictype/property-other-lowercase-tests: Likewise.
19192         * modules/unictype/property-other-math-tests: Likewise.
19193         * modules/unictype/property-other-uppercase-tests: Likewise.
19194         * modules/unictype/property-paired-punctuation-tests: Likewise.
19195         * modules/unictype/property-paragraph-separator-tests: Likewise.
19196         * modules/unictype/property-pattern-syntax-tests: Likewise.
19197         * modules/unictype/property-pattern-white-space-tests: Likewise.
19198         * modules/unictype/property-private-use-tests: Likewise.
19199         * modules/unictype/property-punctuation-tests: Likewise.
19200         * modules/unictype/property-quotation-mark-tests: Likewise.
19201         * modules/unictype/property-radical-tests: Likewise.
19202         * modules/unictype/property-sentence-terminal-tests: Likewise.
19203         * modules/unictype/property-soft-dotted-tests: Likewise.
19204         * modules/unictype/property-space-tests: Likewise.
19205         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19206         * modules/unictype/property-test-tests: Likewise.
19207         * modules/unictype/property-titlecase-tests: Likewise.
19208         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19209         * modules/unictype/property-unified-ideograph-tests: Likewise.
19210         * modules/unictype/property-uppercase-tests: Likewise.
19211         * modules/unictype/property-variation-selector-tests: Likewise.
19212         * modules/unictype/property-white-space-tests: Likewise.
19213         * modules/unictype/property-xid-continue-tests: Likewise.
19214         * modules/unictype/property-xid-start-tests: Likewise.
19215         * modules/unictype/property-zero-width-tests: Likewise.
19216         * modules/unictype/scripts-tests: Likewise.
19217         * modules/unictype/syntax-c-ident-tests: Likewise.
19218         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19219         * modules/unictype/syntax-java-ident-tests: Likewise.
19220         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19221         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19222         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19223         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19224         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19225         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19226         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19227         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19228         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19229         * modules/uniname/uniname-tests: Likewise.
19230         * modules/uninorm/canonical-decomposition-tests: Likewise.
19231         * modules/uninorm/compat-decomposition-tests: Likewise.
19232         * modules/uninorm/composition-tests: Likewise.
19233         * modules/uninorm/decomposing-form-tests: Likewise.
19234         * modules/uninorm/decomposition-tests: Likewise.
19235         * modules/uninorm/filter-tests: Likewise.
19236         * modules/uninorm/nfc-tests: Likewise.
19237         * modules/uninorm/nfd-tests: Likewise.
19238         * modules/uninorm/nfkc-tests: Likewise.
19239         * modules/uninorm/nfkd-tests: Likewise.
19240         * modules/uninorm/u8-normcmp-tests: Likewise.
19241         * modules/uninorm/u8-normcoll-tests: Likewise.
19242         * modules/uninorm/u16-normcmp-tests: Likewise.
19243         * modules/uninorm/u16-normcoll-tests: Likewise.
19244         * modules/uninorm/u32-normcmp-tests: Likewise.
19245         * modules/uninorm/u32-normcoll-tests: Likewise.
19246         * modules/unistdio/u8-asnprintf-tests: Likewise.
19247         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19248         * modules/unistdio/u8-vasprintf-tests: Likewise.
19249         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19250         * modules/unistdio/u8-vsprintf-tests: Likewise.
19251         * modules/unistdio/u16-asnprintf-tests: Likewise.
19252         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19253         * modules/unistdio/u16-vasprintf-tests: Likewise.
19254         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19255         * modules/unistdio/u16-vsprintf-tests: Likewise.
19256         * modules/unistdio/u32-asnprintf-tests: Likewise.
19257         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19258         * modules/unistdio/u32-vasprintf-tests: Likewise.
19259         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19260         * modules/unistdio/u32-vsprintf-tests: Likewise.
19261         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19262         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19263         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19264         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19265         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19266         * modules/unistr/u8-check-tests: Likewise.
19267         * modules/unistr/u8-chr-tests: Likewise.
19268         * modules/unistr/u8-cmp-tests: Likewise.
19269         * modules/unistr/u8-cmp2-tests: Likewise.
19270         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19271         * modules/unistr/u8-cpy-tests: Likewise.
19272         * modules/unistr/u8-mblen-tests: Likewise.
19273         * modules/unistr/u8-mbsnlen-tests: Likewise.
19274         * modules/unistr/u8-mbtouc-tests: Likewise.
19275         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19276         * modules/unistr/u8-mbtoucr-tests: Likewise.
19277         * modules/unistr/u8-move-tests: Likewise.
19278         * modules/unistr/u8-next-tests: Likewise.
19279         * modules/unistr/u8-prev-tests: Likewise.
19280         * modules/unistr/u8-set-tests: Likewise.
19281         * modules/unistr/u8-stpcpy-tests: Likewise.
19282         * modules/unistr/u8-stpncpy-tests: Likewise.
19283         * modules/unistr/u8-strcat-tests: Likewise.
19284         * modules/unistr/u8-strcmp-tests: Likewise.
19285         * modules/unistr/u8-strcoll-tests: Likewise.
19286         * modules/unistr/u8-strcpy-tests: Likewise.
19287         * modules/unistr/u8-strdup-tests: Likewise.
19288         * modules/unistr/u8-strlen-tests: Likewise.
19289         * modules/unistr/u8-strmblen-tests: Likewise.
19290         * modules/unistr/u8-strmbtouc-tests: Likewise.
19291         * modules/unistr/u8-strncat-tests: Likewise.
19292         * modules/unistr/u8-strncmp-tests: Likewise.
19293         * modules/unistr/u8-strncpy-tests: Likewise.
19294         * modules/unistr/u8-strnlen-tests: Likewise.
19295         * modules/unistr/u8-to-u16-tests: Likewise.
19296         * modules/unistr/u8-to-u32-tests: Likewise.
19297         * modules/unistr/u8-uctomb-tests: Likewise.
19298         * modules/unistr/u16-check-tests: Likewise.
19299         * modules/unistr/u16-chr-tests: Likewise.
19300         * modules/unistr/u16-cmp-tests: Likewise.
19301         * modules/unistr/u16-cmp2-tests: Likewise.
19302         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19303         * modules/unistr/u16-cpy-tests: Likewise.
19304         * modules/unistr/u16-mblen-tests: Likewise.
19305         * modules/unistr/u16-mbsnlen-tests: Likewise.
19306         * modules/unistr/u16-mbtouc-tests: Likewise.
19307         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19308         * modules/unistr/u16-mbtoucr-tests: Likewise.
19309         * modules/unistr/u16-move-tests: Likewise.
19310         * modules/unistr/u16-next-tests: Likewise.
19311         * modules/unistr/u16-prev-tests: Likewise.
19312         * modules/unistr/u16-set-tests: Likewise.
19313         * modules/unistr/u16-stpcpy-tests: Likewise.
19314         * modules/unistr/u16-stpncpy-tests: Likewise.
19315         * modules/unistr/u16-strcat-tests: Likewise.
19316         * modules/unistr/u16-strcmp-tests: Likewise.
19317         * modules/unistr/u16-strcoll-tests: Likewise.
19318         * modules/unistr/u16-strcpy-tests: Likewise.
19319         * modules/unistr/u16-strdup-tests: Likewise.
19320         * modules/unistr/u16-strlen-tests: Likewise.
19321         * modules/unistr/u16-strmblen-tests: Likewise.
19322         * modules/unistr/u16-strmbtouc-tests: Likewise.
19323         * modules/unistr/u16-strncat-tests: Likewise.
19324         * modules/unistr/u16-strncmp-tests: Likewise.
19325         * modules/unistr/u16-strncpy-tests: Likewise.
19326         * modules/unistr/u16-strnlen-tests: Likewise.
19327         * modules/unistr/u16-to-u32-tests: Likewise.
19328         * modules/unistr/u16-to-u8-tests: Likewise.
19329         * modules/unistr/u16-uctomb-tests: Likewise.
19330         * modules/unistr/u32-check-tests: Likewise.
19331         * modules/unistr/u32-chr-tests: Likewise.
19332         * modules/unistr/u32-cmp-tests: Likewise.
19333         * modules/unistr/u32-cmp2-tests: Likewise.
19334         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19335         * modules/unistr/u32-cpy-tests: Likewise.
19336         * modules/unistr/u32-mblen-tests: Likewise.
19337         * modules/unistr/u32-mbsnlen-tests: Likewise.
19338         * modules/unistr/u32-mbtouc-tests: Likewise.
19339         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19340         * modules/unistr/u32-mbtoucr-tests: Likewise.
19341         * modules/unistr/u32-move-tests: Likewise.
19342         * modules/unistr/u32-next-tests: Likewise.
19343         * modules/unistr/u32-prev-tests: Likewise.
19344         * modules/unistr/u32-set-tests: Likewise.
19345         * modules/unistr/u32-stpcpy-tests: Likewise.
19346         * modules/unistr/u32-stpncpy-tests: Likewise.
19347         * modules/unistr/u32-strcat-tests: Likewise.
19348         * modules/unistr/u32-strcmp-tests: Likewise.
19349         * modules/unistr/u32-strcoll-tests: Likewise.
19350         * modules/unistr/u32-strcpy-tests: Likewise.
19351         * modules/unistr/u32-strdup-tests: Likewise.
19352         * modules/unistr/u32-strlen-tests: Likewise.
19353         * modules/unistr/u32-strmblen-tests: Likewise.
19354         * modules/unistr/u32-strmbtouc-tests: Likewise.
19355         * modules/unistr/u32-strncat-tests: Likewise.
19356         * modules/unistr/u32-strncmp-tests: Likewise.
19357         * modules/unistr/u32-strncpy-tests: Likewise.
19358         * modules/unistr/u32-strnlen-tests: Likewise.
19359         * modules/unistr/u32-to-u16-tests: Likewise.
19360         * modules/unistr/u32-to-u8-tests: Likewise.
19361         * modules/unistr/u32-uctomb-tests: Likewise.
19362         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19363         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19364         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19365         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19366         * modules/uniwidth/u8-strwidth-tests: Likewise.
19367         * modules/uniwidth/u8-width-tests: Likewise.
19368         * modules/uniwidth/u16-strwidth-tests: Likewise.
19369         * modules/uniwidth/u16-width-tests: Likewise.
19370         * modules/uniwidth/u32-strwidth-tests: Likewise.
19371         * modules/uniwidth/u32-width-tests: Likewise.
19372         * modules/uniwidth/width-tests: Likewise.
19373
19374 2010-05-18  Richard Jones  <rjones@redhat.com>
19375
19376         doc: users.txt: list hivex
19377         * users.txt: Add hivex.
19378
19379 2010-05-18  Richard Jones  <rjones@redhat.com>
19380
19381         doc: users.txt: list febootstrap
19382         * users.txt: Add febootstrap.
19383
19384 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19385
19386         bootstrap: fix an error when gnulib is not used as a git submodule
19387         * build-aux/bootstrap (gnulib_path): If its length is zero then
19388         assign "gnulib" to it.
19389         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19390
19391 2010-05-16  Bruno Haible  <bruno@clisp.org>
19392
19393         Avoid autoconf warnings about AM_ICONV.
19394         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19395         2.64.
19396
19397 2010-05-16  Bruno Haible  <bruno@clisp.org>
19398
19399         absolute-header: Make the macro usable in more situations.
19400         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19401         from gl_ABSOLUTE_HEADER.
19402         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19403
19404 2010-05-16  James Youngman  <jay@gnu.org>
19405
19406         doc: update users.txt
19407         * users.txt: Add CSSC.
19408
19409 2010-05-16  Jim Meyering  <meyering@redhat.com>
19410
19411         init.sh: fix an error in the previous change; add more comments
19412         * tests/init.sh: Compare exit code in loop against 9, not 2.
19413         Patch by Bruno Haible.
19414         Make the two tests more similar by adding an empty "then" clause.
19415         Add comments.
19416
19417         init.sh: avoid unnecessary shell re-exec
19418         * tests/init.sh: Improve the re-exec-required check to first test the
19419         current shell.  If it passes the test, do not search for a shell that
19420         does pass, and do not re-exec.  This test is particularly contorted to
19421         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19422         of $(...) evokes a syntax error and causes immediate shell exit with
19423         status 2.  Bruno Haible reported that the re-exec made it impossible
19424         to single-step through any init.sh-using script.
19425
19426 2010-05-16  Bruno Haible  <bruno@clisp.org>
19427
19428         Fix collision between gnulib's and libintl's printf replacements.
19429         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19430         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19431         (printf): When using GNU C, map the __printf__ function to rpl_printf
19432         via __asm__. When not using GNU C, define rpl_printf instead of
19433         __printf__.
19434         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19435         commit.
19436         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19437         commit.
19438         * m4/asm-underscore.m4: New file.
19439         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19440         * modules/stdio (Files): Add m4/asm-underscore.m4.
19441         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19442         Reported by Ben Pfaff.
19443
19444 2010-05-16  Bruno Haible  <bruno@clisp.org>
19445
19446         verify: Avoid skipping the test on openSUSE 11.0.
19447         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19448
19449 2010-05-13  Bruno Haible  <bruno@clisp.org>
19450
19451         Avoid useless warnings from G++.
19452         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19453         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19454         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19455
19456 2010-05-11  Jim Meyering  <meyering@redhat.com>
19457
19458         maint.mk: tweak preceding change
19459         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19460         regexps tighter by anchoring at EOL, and make the new group "shy"
19461         for slightly decreased overhead.
19462
19463 2010-05-11  Eric Blake  <eblake@redhat.com>
19464
19465         maint.mk: gnulib doesn't guarantee NSIG
19466         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19467
19468 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19469
19470         test-pwrite.c: Remove unused variable declaration.
19471         * tests/test-pwrite.c (main): Remove read_buf declaration.
19472
19473         Remove useless test-pwrite.sh file.
19474         * tests/test-pwrite.sh: Delete file.
19475         * modules/pwrite-tests: Remove references.
19476         Reported by Bruno Haible.
19477
19478 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19479
19480         init.sh: fix a typo
19481         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19482
19483 2010-05-10  Jim Meyering  <meyering@redhat.com>
19484
19485         maint.mk: avoid using a temporary file in the always-defined-macros check
19486         * top/maint.mk (.re-defmac): Remove rule.
19487         (gl_trap_): Remove definition.
19488         (sc_prohibit_always-defined_macros): Rewrite not to create and
19489         depend on a temporary file.  Instead, depend on GNU grep's ability
19490         to read a list of regular expressions from stdin when given "-f -".
19491
19492 2010-05-09  Bruno Haible  <bruno@clisp.org>
19493
19494         Update to GNU gettext 0.18, part 1.
19495         * m4/gettext.m4: Update to GNU gettext 0.18.
19496         * m4/intl.m4: Likewise.
19497         * m4/po.m4: Likewise.
19498         * modules/gettext (Files): Add m4/fcntl-o.m4.
19499         (configure.ac): Require gettext infrastructure from version 0.18.
19500
19501 2010-05-09  Jim Meyering  <meyering@redhat.com>
19502
19503         init.sh: enable MALLOC_PERTURB_
19504         * tests/init.sh: Enable glibc's malloc-perturbing option.
19505
19506         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19507         With my recent change in init.sh from the two-line form:
19508             -#   : ${srcdir=.}
19509             -#   . "$srcdir/init.sh"; path_prepend_ .
19510             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19511         I noticed that using the one-line form would cause this test
19512         to fail with a false-positive, or to stop working altogether,
19513         depending on whether help-version changed or all the tests did.
19514         * top/maint.mk (_hv_regex): Remove this definition.
19515         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19516         (_hv_regex_strong): Use a stronger regex to check for conformance.
19517         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19518         Give a separate diagnostic for lack of conforming use.
19519
19520         maint.mk: prohibit definition of symbols defined by gnulib
19521         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19522         definition of symbols defined by gnulib.
19523
19524 2010-05-09  Bruno Haible  <bruno@clisp.org>
19525
19526         acl: Avoid test failure on Cygwin-hosted mingw.
19527         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19528
19529 2010-05-09  Bruno Haible  <bruno@clisp.org>
19530
19531         error: Use system's fcntl function.
19532         * lib/error.c (fcntl): Undefine.
19533
19534 2010-05-09  Jim Meyering  <meyering@redhat.com>
19535
19536         verify: adjust formatting to be more consistent
19537         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19538         argument-list '('s, and after one comma.
19539
19540 2010-05-09  Bruno Haible  <bruno@clisp.org>
19541
19542         error: More reliable output on mingw.
19543         * lib/error.c: Include <windows.h>.
19544         (is_open): New function.
19545         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19546         defined.
19547
19548 2010-05-09  Bruno Haible  <bruno@clisp.org>
19549
19550         vasnprintf: Fix syntax errors in libintl build on mingw.
19551         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19552         pad_ourselves and prec_ourselves after use.
19553
19554 2010-05-08  Bruno Haible  <bruno@clisp.org>
19555
19556         * lib/config.charset: Update comments for Cygwin 1.7.
19557         * lib/localcharset.c: Likewise.
19558
19559 2010-05-07  Jim Meyering  <meyering@redhat.com>
19560
19561         init.sh: improve comments
19562         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19563         . "${srcdir=.}/init.sh"; path_prepend_ .
19564         Add a note about path_prepend_ and the alternative of using
19565         TESTS_ENVIRONMENT.
19566
19567 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19568
19569         exclude: Unescape hashed patterns in wildcard mode.
19570         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19571         to the hash list.
19572         * tests/test-exclude8.sh: New test case.
19573         * modules/exclude-tests: Add new test.
19574
19575 2010-05-05  Eric Blake  <eblake@redhat.com>
19576
19577         verify: automate tests
19578         * modules/verify-tests: New module.
19579         * tests/test-verify.sh: New file.
19580         * tests/test-verify.c: Guard each negative test with a unique id.
19581         Also avoid warning about unused left hand of comma expressions.
19582
19583 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19584
19585         Further improvements to verify.h, suggested by Eric Blake.
19586         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19587         the GL_* versions, to avoid collision with OpenGL.
19588         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19589         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19590         than testing merely whether it's defined.
19591
19592         Modify verify.h to pacify gcc -Wredundant_decls.
19593         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19594         These use the prefix "GL_" since they're likely to be useful elsewhere.
19595         We may need to break them out into a different .h file.
19596         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19597         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19598         of verify_function__.
19599
19600 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19601
19602         Tests for module pwrite.
19603         * modules/pwrite-tests: New file.
19604         * tests/test-pwrite.sh: New file.
19605         * tests/test-pwrite.c: New file.
19606
19607         New module pwrite.
19608         * lib/unistd.in.h (pwrite): New declaration.
19609         * lib/pwrite.c: New file, from glibc with modifications.
19610         * m4/pwrite.m4: New file.
19611         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19612         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19613         REPLACE_PWRITE.
19614         * modules/pwrite: New file.
19615         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19616         REPLACE_PWRITE.
19617         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19618         * doc/posix-functions/pwrite.texi: Mention the new module.
19619
19620 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19621
19622         pread: Update documentation.
19623         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19624
19625 2010-05-04  Eric Blake  <eblake@redhat.com>
19626
19627         docs: update cygwin progress
19628         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19629         this bug.
19630         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19631         Added in cygwin 1.7.2.
19632         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19633         Likewise.
19634         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19635         Likewise.
19636         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19637         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19638         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19639         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19640         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19641         Mention nproc module.
19642         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19643         bug in cygwin 1.7.5 addition.
19644         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19645         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19646         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19647         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19648         1.7.5.
19649         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19650         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19651         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19652         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19653         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19654         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19655         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19656         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19657         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19658         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19659         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19660         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19661         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19662         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19663         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19664         Likewise.
19665         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19666         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19667         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19668         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19669         Likewise.
19670         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19671         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19672         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19673         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19674         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19675         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19676         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19677         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19678         Likewise.
19679         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19680         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19681         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19682         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19683         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19684         Likewise.
19685         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19686         Likewise.
19687         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19688         Likewise.
19689         * doc/glibc-functions/xdrrec_endofrecord.texi
19690         (xdrrec_endofrecord): Likewise.
19691         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19692         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19693         Likewise.
19694         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19695         Likewise.
19696
19697 2010-05-04  Jim Meyering  <meyering@redhat.com>
19698
19699         gendocs.sh: make its "-s FILE" option more useful
19700         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19701         $PACKAGE to reflect the probably-different basename of "FILE".
19702
19703 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19704
19705         bootstrap: don't ignore download_po_files failure
19706         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19707         failure.
19708
19709 2010-05-03  Jim Meyering  <meyering@redhat.com>
19710
19711         maint.mk: allow to pass options to gendocs.sh
19712         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19713         (gendocs_options_): New overridable variable.
19714
19715         gnu-web-doc-update: don't ignore configure or build failure
19716         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19717
19718         announce-gen: backslash-escape '@'s in --help output
19719         * build-aux/announce-gen: Fix syntax errors.
19720
19721         maint.mk, announce-gen: allow project-specific announcement mail headers
19722         * top/maint.mk (translation_project_): Define default.
19723         (announcement_Cc_, announcement_mail_headers_): Likewise.
19724         (announcement): Invoke announce-gen with new --mail-headers option.
19725         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19726
19727         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19728         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19729         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19730         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19731         line in the "err2" output file when running "make check" in verbose
19732         mode (i.e., with set -x enabled).
19733
19734 2010-05-03  Bruno Haible  <bruno@clisp.org>
19735
19736         wctob: Fix for weird platforms.
19737         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19738         argument value.
19739
19740 2010-05-03  Jim Meyering  <meyering@redhat.com>
19741
19742         maint.mk: prohibit unwarranted use of <strings.h>
19743         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19744         strings.h in a file that does not also use strcasecmp, strncasecmp,
19745         ffs or ffsll.
19746
19747         maint.mk: remove obsolete comments
19748         * top/maint.mk: Remove stale, commented-out rules.
19749
19750 2010-05-02  Bruno Haible  <bruno@clisp.org>
19751
19752         wcwidth: Declare also when it's aliased.
19753         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19754         macro.
19755
19756 2010-05-02  Bruno Haible  <bruno@clisp.org>
19757
19758         Fix regression from 2010-04-25.
19759         * gnulib-tool (func_modules_transitive_closure): Check the status of
19760         all modules, not only of the tests that are of the form foo-tests where
19761         foo is a module.
19762
19763 2010-05-02  Bruno Haible  <bruno@clisp.org>
19764
19765         wctob: Work around nasty Cygwin 1.7.2 bug.
19766         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19767         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19768
19769 2010-05-01  Bruno Haible  <bruno@clisp.org>
19770
19771         fpurge: Sharper test.
19772         * tests/test-fpurge.c (main): Add one more ftell check.
19773         * modules/fpurge-tests (Depends-on): Add ftell.
19774         Suggested by Eric Blake.
19775
19776 2010-05-01  Bruno Haible  <bruno@clisp.org>
19777
19778         ftello: Another test.
19779         * tests/test-ftello3.c: New file.
19780         * modules/ftello-tests (Files): Add it.
19781         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19782         MOSTLYCLEANFILES.
19783
19784         ftell: Another test.
19785         * tests/test-ftell3.c: New file.
19786         * modules/ftell-tests (Files): Add it.
19787         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19788         MOSTLYCLEANFILES.
19789
19790 2010-05-01  Bruno Haible  <bruno@clisp.org>
19791
19792         ftell, ftello: Work around Solaris bug.
19793         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19794         * lib/ftello.c: Include stdio-impl.h.
19795         (ftello): On Solaris, when _IOWRT is set, compute the result without
19796         looking at _IOREAD.
19797         * modules/ftello (Files): Add lib/stdio-impl.h.
19798         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19799         * doc/posix-functions/ftello.texi: Likewise.
19800         Reported by Eric Blake.
19801
19802 2010-05-01  Bruno Haible  <bruno@clisp.org>
19803
19804         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19805         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19806         the _IOWRT flag is also set.
19807
19808 2010-05-01  Bruno Haible  <bruno@clisp.org>
19809
19810         Fix doc about a HP-UX stdio bug.
19811         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19812         * doc/posix-functions/ftello.texi: Likewise.
19813
19814 2010-05-01  Bruno Haible  <bruno@clisp.org>
19815
19816         lseek test: Fix failure on Solaris.
19817         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19818         output.
19819
19820 2010-04-30  Jim Meyering  <meyering@redhat.com>
19821
19822         bootstrap: don't ignore failure to generate po*/Makevars
19823         * build-aux/bootstrap (with_gettext): Don't ignore failure
19824         to create po/Makevars or runtime-po/Makevars.
19825
19826 2010-04-29  Eric Blake  <eblake@redhat.com>
19827
19828         headers: relax license to LGPLv2+
19829         * modules/fcntl-h (License): Relax license.
19830         * modules/getopt-posix (License): Likewise.
19831         * modules/locale (License): Likewise.
19832         * modules/math (License): Likewise.
19833         * modules/pty (License): Likewise.
19834         * modules/sched (License): Likewise.
19835         * modules/search (License): Likewise.
19836         * modules/spawn (License): Likewise.
19837         * modules/stdarg (License): Likewise.
19838         * modules/sysexits (License): Likewise.
19839
19840 2010-04-29  Jim Meyering  <meyering@redhat.com>
19841
19842         inttypes: relax license to LGPLv2+
19843         * modules/inttypes (License): Relax license.
19844
19845 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19846
19847         * top/maint.mk (indent): Run twice to produce idempotent results.
19848
19849 2010-04-28  Bruno Haible  <bruno@clisp.org>
19850
19851         getdate: Generate getdate.c in the source directory.
19852         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19853         MOSTLYCLEANFILES.
19854         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19855
19856 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19857
19858         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19859         is not declared as a const *; avoid warnings in that case.
19860
19861 2010-04-28  Eric Blake  <eblake@redhat.com>
19862
19863         canonicalize-lgpl: avoid compiler warning
19864         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19865         declaration' / 'extraneous semicolon' warning with some compilers.
19866         Reported by Andreas Gruenbacher.
19867
19868 2010-04-28  Jim Meyering  <meyering@redhat.com>
19869
19870         init.sh: ensure a more reliable exit status when exiting via trap
19871         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19872         Inspired by patches from Dmitry V. Levin.
19873         Also trap on signal 3 (SIGQUIT).
19874
19875 2010-04-27  Bruno Haible  <bruno@clisp.org>
19876
19877         Update doc about utimes().
19878         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19879         'utimens' module.
19880         Reported by Andreas Gruenbacher <agruen@suse.de>.
19881
19882 2010-04-27  Eric Blake  <eblake@redhat.com>
19883
19884         full-read, full-write: relax license
19885         * modules/full-read (License): Drop to LGPLv2+.
19886         * modules/full-write (License): Likewise.
19887         * modules/safe-read (License): Likewise.
19888         * modules/safe-write (License): Likewise.
19889
19890         pthread: mention library for linking
19891         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19892
19893 2010-04-27  Jim Meyering  <meyering@redhat.com>
19894
19895         maint.mk: fix a bug introduced in last change
19896         * top/maint.mk (gl_assured_headers_): Now that all names are on
19897         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19898         is not anchored to end of word, it should be adequate.
19899
19900         maint.mk: avoid side-effect in latest syntax-check
19901         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19902         to run commands via $(shell...), and hence to incur cost only when
19903         the new rule is actually run.
19904
19905         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19906         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19907         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19908         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19909         (gl_assured_headers_, az_, AZ_): Define.
19910         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19911
19912 2010-04-26  Jim Meyering  <jim@meyering.net>
19913             Bruno Haible  <bruno@clisp.org>
19914
19915         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19916         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19917         Prompted by an exchange with Gilles Espinasse.
19918
19919 2010-04-26  Jim Meyering  <meyering@redhat.com>
19920
19921         git-version-gen: aesthetic tweak
19922         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19923         so that the command remains on a single line.
19924
19925 2010-04-26  Eric Blake  <eblake@redhat.com>
19926
19927         git-version-gen: allow use on EBCDIC hosts
19928         * build-aux/git-version-gen (dirty): Use literal rather than tying
19929         ourselves to ascii.
19930         Reported by Steve Goetze.
19931
19932 2010-04-25  Bruno Haible  <bruno@clisp.org>
19933
19934         netdb: Add support for GNULIB_POSIXCHECK.
19935         * lib/netdb.in.h: Include warn-on-use.h.
19936         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19937         functions are used when GNULIB_POSIXCHECK is defined and the
19938         getaddrinfo module is not in use.
19939         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19940         freeaddrinfo, gai_strerror, getnameinfo are declared.
19941         * modules/netdb (Depends-on): Add warn-on-use.
19942         (Makefile.am): Include warn-on-use.h in netdb.h.
19943
19944 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19945
19946         build: avoid "make check" failure without .git/ directory
19947         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19948         there is no .git/ directory.
19949
19950 2010-04-25  Bruno Haible  <bruno@clisp.org>
19951
19952         ptsname: Fix misuse of ttyname_r.
19953         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19954         of errno.
19955
19956 2010-04-25  Bruno Haible  <bruno@clisp.org>
19957
19958         ttyname_r: Make it work on Solaris 10.
19959         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19960         if the system function has the POSIX declaration. Test whether the
19961         function fails if the buffer is less than 128 bytes large.
19962         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19963         system's ttyname_r function. Provide a reasonably large buffer.
19964         * modules/ttyname_r (Depends-on): Add extensions.
19965         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19966
19967 2010-04-25  Bruno Haible  <bruno@clisp.org>
19968
19969         Use the 'extensions' module for some more functions on Solaris.
19970         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19971         module.
19972         * doc/posix-functions/ctime_r.texi: Likewise.
19973         * doc/posix-functions/getgrgid_r.texi: Likewise.
19974         * doc/posix-functions/getgrnam_r.texi: Likewise.
19975         * doc/posix-functions/getpwnam_r.texi: Likewise.
19976         * doc/posix-functions/getpwuid_r.texi: Likewise.
19977         * doc/posix-functions/readdir_r.texi: Likewise.
19978         * doc/posix-functions/sigwait.texi: Likewise.
19979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19980         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19981
19982 2010-04-25  Bruno Haible  <bruno@clisp.org>
19983
19984         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19986         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19987         * lib/ttyname_r.c: Include <limits.h>.
19988         (ttyname_r): Define using the system's ttyname_r function, if it exists
19989         and not on Solaris.
19990         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19991         set.
19992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19993         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19994         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19995         Reported by Simon Josefsson.
19996
19997 2010-04-25  Bruno Haible  <bruno@clisp.org>
19998
19999         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20000         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20001         * doc/posix-functions/ctime_r.texi: Likewise.
20002         * doc/posix-functions/getgrgid_r.texi: Likewise.
20003         * doc/posix-functions/getgrnam_r.texi: Likewise.
20004         * doc/posix-functions/getlogin_r.texi: Likewise.
20005         * doc/posix-functions/getpwnam_r.texi: Likewise.
20006         * doc/posix-functions/getpwuid_r.texi: Likewise.
20007         * doc/posix-functions/readdir_r.texi: Likewise.
20008         * doc/posix-functions/sigwait.texi: Likewise.
20009         * doc/posix-functions/ttyname_r.texi: Likewise.
20010         Reported by Simon Josefsson.
20011
20012 2010-04-25  Bruno Haible  <bruno@clisp.org>
20013
20014         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20015         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20016         also to --create-testdir.
20017         (func_acceptable): Don't consider the status of *-tests modules here.
20018         (func_modules_transitive_closure): Consider it here, before including a
20019         test module.
20020         (func_import, func_create_testdir): Set inc_all_direct_tests,
20021         inc_all_indirect_tests.
20022         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20023         --create-testdir and --create-megatestdir.
20024
20025 2010-04-25  Bruno Haible  <bruno@clisp.org>
20026
20027         gnulib-tool: Add --without-*-tests options.
20028         * gnulib-tool (func_usage): Document the --without-*-tests options.
20029         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20030         excl_unportable_tests): New variables.
20031         Fail if they are specified with --import or --update.
20032         (func_acceptable): Respect the excl_*_tests variables.
20033         (func_import): Set the excl_*_tests variables to empty.
20034
20035 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20036             Bruno Haible  <bruno@clisp.org>
20037
20038         Work around a MacOS X 10.4 bug with openpty.
20039         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20040         * tests/test-openpty.c (main): Close the master side explicitly.
20041
20042 2010-04-25  Bruno Haible  <bruno@clisp.org>
20043
20044         strnlen: Fix a C++ test error on MacOS X and Solaris.
20045         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20046         the function is not declared.
20047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20048         Simon Josefsson.
20049
20050 2010-04-24  Bruno Haible  <bruno@clisp.org>
20051
20052         Avoid a gcc warning.
20053         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20054         of correct type for %08lx directive.
20055         Reported by Eric Blake.
20056
20057 2010-04-24  Bruno Haible  <bruno@clisp.org>
20058
20059         vasnprintf: Correct errno value in case of out-of-memory.
20060         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20061         or sprintf. Use the errno value from SNPRINTF or sprintf.
20062         Reported by Ian Beckwith <ianb@erislabs.net>.
20063
20064 2010-04-24  Bruno Haible  <bruno@clisp.org>
20065
20066         ansi-c++-opt: Find correct compiler when cross-compiling.
20067         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20068         AC_CHECK_PROGS.
20069         Reported by Simon Josefsson.
20070
20071 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20072
20073         vc-list-files: Add support for subversion
20074         * build-aux/vc-list-files: Use "svn list" to generate the list of
20075         files controlled by subversion.
20076
20077 2010-04-23  Jim Meyering  <meyering@redhat.com>
20078
20079         vc-list-files tests: convert to use init.sh
20080         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20081         path_prepend_.
20082         Use Exit, not exit.
20083         Use skip_ rather than open coding it.
20084         Remove trap set-up and compare definitions.
20085         * tests/test-vc-list-files-git.sh: Likewise.
20086         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20087
20088 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20089
20090         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20091         backup files.
20092
20093 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20094
20095         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20096
20097 2010-04-20  Eric Blake  <eblake@redhat.com>
20098
20099         tests: be robust to ignored SIGPIPE
20100         * tests/test-select-in.sh: Consume all output.
20101         * tests/test-lseek.sh: Check correct exit status, while avoiding
20102         EPIPE.
20103
20104 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20105             Bruno Haible  <bruno@clisp.org>
20106
20107         visibility: Don't use -fvisibility if it leads to a warning.
20108         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20109         yes, don't pretend that visibility works if it leads to a warning.
20110         Reported by Mike Gran <spk121@yahoo.com>.
20111
20112 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20113
20114         * build-aux/bootstrap: Use "git -h" for testing for supported options
20115         instead of "git --help".  The short-form option only shows a summary,
20116         and doesn't layout the full man page.  Grep for the full option name
20117         in the summary, too.
20118
20119 2010-04-19  Bruno Haible  <bruno@clisp.org>
20120
20121         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20122         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20123         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20124         mention of RELOCATABLE_STRIP.
20125         Reported by Sylvain Beucler <beuc@beuc.net>.
20126
20127 2010-04-19  Bruno Haible  <bruno@clisp.org>
20128
20129         * lib/diffseq.h: Fix typo in comment.
20130         Reported by Eric Blake.
20131
20132 2010-04-19  Bruno Haible  <bruno@clisp.org>
20133
20134         ioctl: Move autoconf macro to a .m4 file.
20135         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20136         * modules/ioctl (Files): Add it.
20137         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20138         Reported by Ian Beckwith <ianb@erislabs.net>.
20139
20140 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20141             Bruno Haible  <bruno@clisp.org>
20142
20143         diffseq: Accommodate use-case with abstract arrays.
20144         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20145         is not defined.
20146         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20147         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20148
20149 2010-04-18  Bruno Haible  <bruno@clisp.org>
20150
20151         * doc/posix-headers/stdbool.texi: More precise wording.
20152
20153 2010-04-17  Jim Meyering  <meyering@redhat.com>
20154
20155         maint.mk: use gnu-style indentation in an embedded perl script
20156         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20157         Rename variable: s/two/last_two_bytes/
20158
20159 2010-04-16  Eric Blake  <eblake@redhat.com>
20160
20161         test-stdbool: skip test that fails with Solaris CC
20162         * tests/test-stdbool.c (f): Skip test that causes compilation
20163         error under buggy C++ compiler.
20164         * lib/stdbool.in.h: Document the limitation.
20165         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20166
20167         setenv: allow compilation with C++
20168         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20169         register keyword.
20170
20171         stdint: allow test to pass with C++
20172         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20173
20174         getopt: allow compilation with C++
20175         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20176         struct.
20177         * lib/getopt.c (_getopt_internal_r): Use correct type.
20178         Reported by Dagobert Michelson, via Joel E. Denny.
20179
20180 2010-04-16  Bruno Haible  <bruno@clisp.org>
20181
20182         Override netdb.h always.
20183         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20184         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20185         Reported by Ludovic Courtès <ludo@gnu.org>.
20186
20187 2010-04-15  Bruno Haible  <bruno@clisp.org>
20188
20189         openpty: Fix mistake from 2010-03-21.
20190         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20191         Reported by Simon Josefsson.
20192
20193 2010-04-15  Eric Blake  <eblake@redhat.com>
20194
20195         test-forkpty: fix expected signature
20196         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20197         Reported by Simon Josefsson.
20198
20199 2010-04-15  Jim Meyering  <meyering@redhat.com>
20200
20201         maint.mk: texinfo_suffix_re_: correct the default regexp
20202         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20203
20204         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20205         make it configurable via texinfo_suffix_re_.
20206
20207 2010-04-14  Eric Blake  <eblake@redhat.com>
20208
20209         strtok_r: relax license to LGPLv2+
20210         * modules/strtok_r (License): Relax license.
20211         Reported by Matthias Bolte.
20212
20213 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20214
20215         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20216         version 1.4.4 by default instead of requiring the libgcrypt
20217         version used during build.  This makes it possible to use the
20218         application with older but still binary compatible libgcrypt
20219         versions.
20220
20221 2010-04-13  Eric Blake  <eblake@redhat.com>
20222
20223         getopt-gnu: match recent glibc fixes and posix ruling
20224         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20225         '+' handling, when requesting extensions.
20226         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20227         'W;' handling.
20228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20229         * doc/posix-functions/getopt.texi (getopt): Document this.
20230         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20231         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20232         Likewise.
20233
20234         getopt: merge bug fixes from glibc
20235         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20236         diagnostics.  Honor '+:' correctly.  Reject ';'.
20237
20238         getopt-posix: detect MacOS bug
20239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20240         optind when missing a required argument.
20241         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20242         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20243         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20244         Likewise.
20245
20246         getopt-posix: avoid spurious failure on Solaris
20247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20248         an indicator that setting optind=1 is sufficient for reset.
20249
20250         getopt-posix: avoid spurious failure on FreeBSD
20251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20252         in POSIX mode, since the m4 test uses it.
20253
20254         gnulib-tool: silence warning on BSD sh
20255         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20256
20257 2010-04-13  Jim Meyering  <meyering@redhat.com>
20258
20259         doc: users.txt: GNU patch now uses gnulib
20260         * users.txt: Add patch.
20261
20262 2010-04-12  Jim Meyering  <meyering@redhat.com>
20263
20264         maint.mk: generate more concise timing data for syntax-check rules
20265         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20266         " done" from each line that reports a syntax-check test duration.
20267
20268 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20269
20270         git-version-gen: use "git update-index..." rather than "git status"
20271         * build-aux/git-version-gen: Use git update-index --refresh, not
20272         "git status".  With some versions of git, "git status" would fail
20273         to update the index and result in an unwarranted "-dirty" suffix.
20274
20275 2010-04-11  Jim Meyering  <meyering@redhat.com>
20276
20277         openat: correct formatting (no semantic change)
20278         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20279         Suggested by Bruno Haible.
20280
20281 2010-04-11  Bruno Haible  <bruno@clisp.org>
20282
20283         Stricter declaration checking in testdirs.
20284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20285         If for_tests is true, augment AM_CPPFLAGS to define
20286         GNULIB_STRICT_CHECKING.
20287         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20288         GNULIB_STRICT_CHECKING is defined, verify that the function is
20289         declared.
20290
20291 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20292             Bruno Haible  <bruno@clisp.org>
20293
20294         libunistring: Improve configure output.
20295         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20296         Don't say "consider installing GNU libunistring" when checking again
20297         with libiconv.
20298
20299 2010-04-11  Bruno Haible  <bruno@clisp.org>
20300
20301         libunistring: Correct value of $LTLIBUNISTRING.
20302         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20303         correct the value of $LTLIBUNISTRING.
20304
20305 2010-04-11  Bruno Haible  <bruno@clisp.org>
20306
20307         havelib: Add static libraries to LIBS in the right order.
20308         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20309         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20310
20311 2010-04-11  Bruno Haible  <bruno@clisp.org>
20312
20313         libunistring: Detect libunistring also when it depends on libiconv.
20314         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20315         the second AC_LIB_HAVE_LINKFLAGS invocation.
20316
20317 2010-04-11  James Youngman  <jay@gnu.org>
20318
20319         close-stream: declare local scalars to be "const"
20320         * lib/close-stream.c (close_stream): Make boolean variables const
20321         to document the fact that we set but do not change them.
20322
20323 2010-04-11  Bruno Haible  <bruno@clisp.org>
20324
20325         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20326
20327 2010-04-11  Jim Meyering  <meyering@redhat.com>
20328
20329         maint.mk: don't include dist-check.mk
20330         * top/maint.mk: Remove bogus include directive.
20331
20332         maint.mk: improve empty-line-at-EOF check
20333         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20334         solution, rather than tail+Perl-based one.  The latter would read
20335         a few kilobytes from the end of each file, and did not handle empty
20336         files properly.
20337
20338         maint.mk: print the elapsed time for each syntax-check rule
20339         * top/maint.mk (sc_m_rules_): Save start time in a file.
20340         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20341         (local-check): Interpose the .z rules
20342
20343 2010-04-11  Jim Meyering  <meyering@redhat.com>
20344
20345         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20346         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20347         empty file with one that ends in an empty line.
20348
20349 2010-04-10  Bruno Haible  <bruno@clisp.org>
20350
20351         mkdir: Make it work on mingw64.
20352         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20353         * lib/mkdir.c: Update comment.
20354         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20355
20356 2010-04-10  Bruno Haible  <bruno@clisp.org>
20357
20358         Don't override improved macro from newer autoconf.
20359         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20360         autoconf >= 2.62.
20361         Reported by Joel E. Denny <jdenny@clemson.edu>.
20362
20363 2010-04-10  Jim Meyering  <meyering@redhat.com>
20364
20365         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20366         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20367
20368         maint.mk: correct a diagnostic
20369         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20370         in diagnostic; now use $prohibit.
20371
20372 2010-04-10  Bruno Haible  <address@hidden>
20373
20374         fchownat: Fix a C++ test error on Solaris 8.
20375         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20376         the function does not exist.
20377
20378 2010-04-10  Bruno Haible  <bruno@clisp.org>
20379
20380         vasnprintf: Add more tests.
20381         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20382         (test_function): Test converting an invalid wide string.
20383
20384         vasnprintf: Correct handling of unconvertible wide string arguments.
20385         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20386         VASNPRINTF.
20387         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20388         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20389         smaller than the expected maximum need for the directive. Set errno to
20390         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20391         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20393         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20394         * modules/vasnprintf (Files): Add m4/printf.m4.
20395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20396
20397 2010-04-10  Bruno Haible  <bruno@clisp.org>
20398
20399         vasnprintf: Fix crash in %ls directive.
20400         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20401         string is passed as argument to %ls, with no precision and no width.
20402         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20403
20404 2010-04-10  Bruno Haible  <bruno@clisp.org>
20405
20406         vasnprintf: Fix multiple test failures on mingw.
20407         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20408         _snprintf, or snwprintf, not _snwprintf.
20409
20410 2010-04-10  Bruno Haible  <bruno@clisp.org>
20411
20412         write: Fix a C++ test error on mingw.
20413         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20414
20415 2010-04-10  Bruno Haible  <bruno@clisp.org>
20416
20417         vasnprintf test: Reduce code duplication.
20418         * tests/test-vasnprintf.c (test_function): New function, extracted from
20419         test_vasnprintf.
20420         (test_vasnprintf, test_asnprintf): Invoke it.
20421
20422 2010-04-10  Bruno Haible  <bruno@clisp.org>
20423
20424         strnlen: Fix warning in C++ mode on MacOS X.
20425         * lib/string.in.h (strnlen): Use the modern idiom.
20426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20427         defining strnlen as a macro already in <config.h>.
20428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20429         REPLACE_STRNLEN.
20430         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20431         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20432
20433 2010-04-08  James Youngman  <jay@gnu.org>
20434
20435         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20436         the example.
20437
20438 2010-04-09  Jim Meyering  <meyering@redhat.com>
20439
20440         maint.mk: print better diagnostic when there is no $(_hv_file)
20441         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20442         announce that when $(_hv_file) (aka help-version) does not exist.
20443
20444         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20445         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20446         not try to interpret its random input bytes.  Jarno Rajahalme reported
20447         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20448         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20449         (mktempd_): Likewise, just in case.
20450
20451         ftruncate: add two years to projected module removal date: 2012
20452         * m4/ftruncate.m4: Adjust comments.
20453
20454         ftruncate: mark module as obsolete; even MinGW provides it, now
20455         * modules/ftruncate (Status): Obsolete.
20456         (Notice): Say that.
20457         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20458         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20459
20460 2010-04-08  Bruno Haible  <bruno@clisp.org>
20461
20462         Fix side effects from tests-related modules.
20463         * modules/dprintf-posix (Comment): New section.
20464         * modules/fprintf-posix (Comment): Likewise.
20465         * modules/obstack-printf-posix (Comment): Likewise.
20466         * modules/printf-posix (Comment): Likewise.
20467         * modules/snprintf-posix (Comment): Likewise.
20468         * modules/sprintf-posix (Comment): Likewise.
20469         * modules/vasnprintf-posix (Comment): Likewise.
20470         * modules/vasprintf-posix (Comment): Likewise.
20471         * modules/vdprintf-posix (Comment): Likewise.
20472         * modules/vfprintf-posix (Comment): Likewise.
20473         * modules/vprintf-posix (Comment): Likewise.
20474         * modules/vsnprintf-posix (Comment): Likewise.
20475         * modules/vsprintf-posix (Comment): Likewise.
20476         * modules/xprintf-posix (Comment): Likewise.
20477         * modules/xvasprintf-posix (Comment): Likewise.
20478         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20479         * modules/floorf-tests (Depends-on): Likewise.
20480         * modules/round-tests (Depends-on): Likewise.
20481         * modules/roundf-tests (Depends-on): Likewise.
20482         * modules/trunc-tests (Depends-on): Likewise.
20483         * modules/truncf-tests (Depends-on): Likewise.
20484         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20485         'fprintf-posix' module is not present.
20486         * tests/test-floorf2.c (check): Likewise.
20487         * tests/test-trunc2.c (check): Likewise.
20488         * tests/test-truncf2.c (check): Likewise.
20489         * tests/test-round2.c (equal): Likewise.
20490         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20491
20492 2010-04-07  Karl Berry  <karl@gnu.org>
20493
20494         * config/srclist.txt,
20495         * config/srclistvars.sh,
20496         * config/srclist-update: doc fixes.
20497
20498 2010-04-07  Jim Meyering  <meyering@redhat.com>
20499
20500         maint.mk: add a PATH crosschecking syntax-check rule
20501         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20502         Useful if you use a test like the one in help-version (coreutils,
20503         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20504         printed by prog --version.
20505
20506 2010-04-06  Bruno Haible  <bruno@clisp.org>
20507
20508         Fix link error on mingw.
20509         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20510         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20511
20512 2010-04-06  Bruno Haible  <bruno@clisp.org>
20513
20514         Assume rmdir exists.
20515         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20516
20517 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20518
20519         doc: update users.txt
20520         * users.txt: Add gcal.
20521
20522 2010-04-06  Jim Meyering  <meyering@redhat.com>
20523
20524         init.sh: simply unset TMPDIR rather than risking env -i
20525         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20526         although it probably works fine on all Unix-based systems, some
20527         systems (Cygwin?) cannot tolerate a totally cleared environment.
20528         Suggestion from Eric Blake.
20529
20530 2010-04-06  Jim Meyering  <meyering@redhat.com>
20531
20532         init.sh: portability fix: use env's POSIX-specified -i option not -u
20533         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20534         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20535
20536 2010-04-05  Bruno Haible  <bruno@clisp.org>
20537
20538         btowc: Work around Cygwin 1.7.2 bug.
20539         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20540         does not map NUL to 0.
20541         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20542
20543 2010-04-05  Bruno Haible  <bruno@clisp.org>
20544
20545         Make the multithread modules work on Cygwin 1.7.2.
20546         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20547         imported symbols can be declared weak, so that it returns "no" on
20548         Cygwin 1.7.2.
20549
20550 2010-04-05  Bruno Haible  <bruno@clisp.org>
20551
20552         Use the module 'strncat'.
20553         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20554
20555         Tests for module 'strncat'.
20556         * modules/strncat-tests: New file.
20557         * tests/test-strncat.c: New file.
20558
20559         New module 'strncat'.
20560         * lib/string.in.h (strncat): New declaration.
20561         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20562         * m4/strncat.m4: New file, based on m4/memchr.m4.
20563         * modules/strncat: New file.
20564         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20565         is declared.
20566         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20567         REPLACE_STRNCAT.
20568         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20569         REPLACE_STRNCAT.
20570         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20571         module.
20572         * tests/test-string-c++.cc: Check signature of strncat.
20573
20574 2010-04-05  Jim Meyering  <meyering@redhat.com>
20575
20576         xstrtoumax-tests: convert to use init.sh
20577         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20578         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20579         Use Exit, not exit.
20580         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20581
20582         xstrtoimax-tests: convert to use init.sh
20583         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20584         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20585         Use Exit, not exit.
20586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20587
20588 2010-04-05  Bruno Haible  <bruno@clisp.org>
20589
20590         sys_socket: Avoid #define replacements in C++ mode.
20591         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20592         warning to the function if possible, rather than #defining the symbol
20593         to a dysfunctional alias.
20594
20595 2010-04-05  Bruno Haible  <bruno@clisp.org>
20596
20597         fseeko: Fix C++ test error on mingw.
20598         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20599         gl_FUNC_FSEEKO.
20600         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20601         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20603         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20604
20605 2010-04-05  Bruno Haible  <bruno@clisp.org>
20606
20607         duplocale: Improve test output.
20608         * tests/test-duplocale.c (main): Print reason for skipped test.
20609
20610 2010-04-05  Bruno Haible  <bruno@clisp.org>
20611
20612         Assume rmdir exists.
20613         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20614         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20615
20616 2010-04-05  Bruno Haible  <bruno@clisp.org>
20617
20618         Fix link error on Solaris 8 with cc.
20619         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20620
20621 2010-04-05  Bruno Haible  <bruno@clisp.org>
20622
20623         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20624         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20625
20626 2010-04-05  Bruno Haible  <bruno@clisp.org>
20627
20628         vasprintf: Update documentation.
20629         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20630
20631 2010-04-05  Bruno Haible  <bruno@clisp.org>
20632
20633         ptsname: Improve test.
20634         * tests/test-ptsname.c (main): Also try the various master names of BSD
20635         systems.
20636
20637 2010-04-05  Bruno Haible  <bruno@clisp.org>
20638
20639         memchr: Avoid a possible C++ test error.
20640         * lib/string.in.h (memchr): Provide declaration if function is missing.
20641         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20642         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20644         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20645
20646 2010-04-05  Bruno Haible  <bruno@clisp.org>
20647
20648         strtok_r: Improve idiom.
20649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20650         AC_LIBOBJ is used.
20651
20652 2010-04-05  Bruno Haible  <bruno@clisp.org>
20653
20654         strdup: Improve idiom.
20655         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20656         AC_LIBOBJ is used.
20657         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20658         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20659         when AC_LIBOBJ is used.
20660
20661 2010-04-05  Bruno Haible  <bruno@clisp.org>
20662
20663         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20664         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20665         don't set REPLACE_MBSINIT to 1.
20666         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20667         don't set REPLACE_MBRTOWC to 1.
20668         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20669         exist, don't set REPLACE_MBSRTOWCS to 1.
20670         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20671         exist, don't set REPLACE_MBSNRTOWCS to 1.
20672         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20673         don't set REPLACE_WCRTOMB to 1.
20674         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20675         exist, don't set REPLACE_WCSRTOMBS to 1.
20676         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20677         exist, don't set REPLACE_WCSNRTOMBS to 1.
20678
20679 2010-04-05  Bruno Haible  <bruno@clisp.org>
20680
20681         ldexpl: Improve idiom.
20682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20683         make sure to set HAVE_DECL_LDEXPL to 0.
20684
20685 2010-04-05  Jim Meyering  <meyering@redhat.com>
20686
20687         xstrtol-tests: convert to use init.sh
20688         * modules/xstrtol-tests (Files): Add tests/init.sh.
20689         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20690         Use Exit, not exit.
20691         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20692
20693         atexit-tests: convert to use init.sh
20694         * modules/atexit-tests (Files): Add tests/init.sh.
20695         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20696         Use Exit, not exit.
20697         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20698
20699         init.sh: fix typo
20700         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20701
20702         init.sh: make it easier for a test script to write to the tty, ...
20703         when using automake's parallel-tests mode.
20704         * tests/init.sh (stderr_fileno_): Define overridable variable.
20705         (warn_): New function, to use it.
20706         (fail_, skip_, framework_failure_): Use warn_.
20707
20708 2010-04-04  Bruno Haible  <bruno@clisp.org>
20709
20710         btowc: Avoid warning.
20711         * lib/btowc.c: Include <stdlib.h>.
20712         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20713
20714 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20715             Bruno Haible  <bruno@clisp.org>
20716
20717         wchar: Port to NetBSD 1.5.
20718         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20719         * lib/wctype.in.h (WEOF): Likewise.
20720
20721 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20722             Bruno Haible  <bruno@clisp.org>
20723
20724         Port extended stdio to NetBSD 1.5.
20725         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20726         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20727         older.
20728
20729 2010-04-04  Bruno Haible  <bruno@clisp.org>
20730
20731         string: Remove unused substitution.
20732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20733         HAVE_DECL_STRERROR.
20734         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20735
20736 2010-04-04  Bruno Haible  <bruno@clisp.org>
20737
20738         strtod: Avoid a possible C++ test error.
20739         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20740         set REPLACE_STRTOD.
20741
20742 2010-04-04  Bruno Haible  <bruno@clisp.org>
20743
20744         strerror: Update documentation.
20745         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20746
20747 2010-04-04  Bruno Haible  <bruno@clisp.org>
20748
20749         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20750         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20751         _GL_CXXALIAS_SYS_CAST.
20752
20753 2010-04-04  Bruno Haible  <bruno@clisp.org>
20754
20755         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20756         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20757         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20758         REPLACE_FREXPL to 1.
20759         * doc/posix-functions/frexpl.texi: Update documentation.
20760
20761 2010-04-04  Bruno Haible  <bruno@clisp.org>
20762
20763         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20764         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20765
20766 2010-04-04  Bruno Haible  <bruno@clisp.org>
20767
20768         Implement nanosleep for native Windows.
20769         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20770
20771 2010-04-04  Bruno Haible  <bruno@clisp.org>
20772
20773         math: Fix some C++ test errors on Solaris 8.
20774         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20775
20776 2010-04-04  Bruno Haible  <bruno@clisp.org>
20777
20778         math: Fix some C++ test errors on Cygwin.
20779         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20780         truncl): Provide declaration if the system does not have it.
20781         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20782         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20783         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20784         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20785         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20786         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20787         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20788         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20789         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20790         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20791         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20792         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20793         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20794         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20795         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20796         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20798         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20799         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20800         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20801         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20802         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20803
20804 2010-04-04  Bruno Haible  <bruno@clisp.org>
20805
20806         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20807         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20808         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20809         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20810         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20811         * m4/isinf.m4 (gl_ISINF): Likewise.
20812         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20813
20814 2010-04-04  Bruno Haible  <bruno@clisp.org>
20815
20816         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20817         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20818
20819 2010-04-04  Bruno Haible  <bruno@clisp.org>
20820
20821         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20822         * modules/tmpfile (configure.ac): Update.
20823
20824         tmpfile: Fix C++ test error on mingw.
20825         * lib/stdio.in.h (tmpfile): New declaration.
20826         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20827         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20828         * modules/tmpfile (Depends-on): Add stdio.
20829         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20830         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20831         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20832         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20833         REPLACE_TMPFILE.
20834         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20835
20836 2010-04-04  Bruno Haible  <bruno@clisp.org>
20837
20838         ioctl: Fix C++ test error on mingw.
20839         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20840         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20841         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20842
20843 2010-04-03  Bruno Haible  <bruno@clisp.org>
20844
20845         wcwidth: Fix C++ test error on mingw.
20846         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20848         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20849
20850 2010-04-03  Bruno Haible  <bruno@clisp.org>
20851
20852         nanosleep: Fix C++ test error on mingw.
20853         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20854         * lib/time.in.h (nanosleep): Use modern idiom.
20855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20856         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20857         REPLACE_NANOSLEEP to 1.
20858         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20859         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20860
20861 2010-04-03  Bruno Haible  <bruno@clisp.org>
20862
20863         strptime: Fix C++ test error on mingw.
20864         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20865         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20866         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20867         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20869         not REPLACE_STRPTIME.
20870         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20871         REPLACE_STRPTIME.
20872
20873 2010-04-03  Bruno Haible  <bruno@clisp.org>
20874
20875         timegm: Fix C++ test error on mingw.
20876         * lib/time.in.h (timegm): Use modern idiom.
20877         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20878         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20880         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20881
20882 2010-04-03  Bruno Haible  <bruno@clisp.org>
20883
20884         timegm: Assume declaration if function exists.
20885         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20886         if it exists. Don't clobber ac_cv_func_timegm.
20887
20888 2010-04-03  Bruno Haible  <bruno@clisp.org>
20889
20890         time_r: Fix C++ test error on mingw.
20891         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20892         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20893         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20895         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20896
20897 2010-04-03  Bruno Haible  <bruno@clisp.org>
20898
20899         time_r: Minor updates.
20900         * modules/time_r (Description): Mention the provided functions.
20901         * lib/time_r.c: Don't include <string.h>.
20902         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20903         * doc/posix-functions/localtime_r.texi: Likewise.
20904
20905 2010-04-03  Bruno Haible  <bruno@clisp.org>
20906
20907         time: Fix regression introduced on 2010-03-08.
20908         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20909         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20910
20911 2010-04-03  Jim Meyering  <meyering@redhat.com>
20912
20913         maint.mk: don't silently disable project-specific syntax-check rules
20914         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20915         that they need to convert their project-specific syntax-check rules
20916         to use the new _sc_search_regexp.
20917
20918 2010-04-03  Bruno Haible  <bruno@clisp.org>
20919
20920         fchdir: Fix regression introduced on 2010-03-08.
20921         * lib/unistd.in.h (fchdir): Fix declaration.
20922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20924         REPLACE_FCHDIR.
20925         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20926         REPLACE_FCHDIR.
20927
20928 2010-04-03  Bruno Haible  <bruno@clisp.org>
20929
20930         getpagesize: Fix C++ test error on mingw.
20931         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20932         system does not declare the function.
20933         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20934         declared.
20935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20936         HAVE_DECL_GETPAGESIZE.
20937         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20938
20939 2010-04-03  Bruno Haible  <bruno@clisp.org>
20940
20941         stdio: Make C++ tests work on mingw.
20942         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20943         does not declare the function.
20944
20945 2010-04-03  Bruno Haible  <bruno@clisp.org>
20946
20947         ftello: Fix C++ test error on mingw.
20948         * lib/stdio.in.h (ftello): Use modern idiom.
20949         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20950         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20951         is missing and that it needs to be replaced.
20952         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20954         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20955
20956 2010-04-03  Bruno Haible  <bruno@clisp.org>
20957
20958         fseeko: Fix C++ test error on mingw.
20959         * lib/stdio.in.h (fseeko): Use modern idiom.
20960         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20962         is missing and that it needs to be replaced.
20963         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20965         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20966
20967 2010-04-03  Bruno Haible  <bruno@clisp.org>
20968
20969         mkstemp: Fix C++ test error on mingw.
20970         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20972         function is missing and that it needs to be replaced.
20973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20974         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20975
20976 2010-04-03  Bruno Haible  <bruno@clisp.org>
20977
20978         stpncpy: Fix C++ test error on mingw.
20979         * lib/string.in.h (stpncpy): Use modern idiom.
20980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20981         function is missing and that it needs to be replaced.
20982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20983         REPLACE_STPNCPY.
20984         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20985
20986 2010-04-03  Bruno Haible  <bruno@clisp.org>
20987
20988         sys_stat: Fix C++ test error on mingw.
20989         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20990         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20991
20992 2010-04-03  Bruno Haible  <bruno@clisp.org>
20993
20994         pty: Update doc.
20995         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20996
20997 2010-04-03  Bruno Haible  <bruno@clisp.org>
20998
20999         unistd: Fix C++ test error on mingw.
21000         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21001
21002 2010-04-03  Bruno Haible  <bruno@clisp.org>
21003
21004         Update doc regarding mingw.
21005         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21006         * doc/glibc-functions/login_tty.texi: Likewise.
21007         * doc/glibc-functions/forkpty.texi: Likewise.
21008
21009 2010-04-03  Bruno Haible  <bruno@clisp.org>
21010
21011         stdlib: Avoid compilation failure of c-strtold on mingw.
21012         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21013
21014 2010-04-03  Bruno Haible  <bruno@clisp.org>
21015
21016         locale: Make C++ tests work on Cygwin and mingw.
21017         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21018         cannot provide the function.
21019         Reported by Simon Josefsson.
21020
21021 2010-04-03  Bruno Haible  <bruno@clisp.org>
21022
21023         localename: Port to MacOS X 10.6.
21024         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21025         memory layout of the locales in MacOS X 10.6 as well.
21026         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21027
21028 2010-04-02  Bruno Haible  <bruno@clisp.org>
21029
21030         gnulib-tool: Ensure that long-running tests are executed last.
21031         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21032         running tests after the one for the other tests.
21033
21034 2010-04-02  Bruno Haible  <bruno@clisp.org>
21035
21036         gnulib-tool: Ensure the tests in the main directory are executed first.
21037         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21038         start with the current directory.
21039
21040 2010-04-02  Bruno Haible  <bruno@clisp.org>
21041
21042         Tests for module 'havelib', moved here from GNU gettext.
21043         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21044         modifications.
21045         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21046         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21047         with modifications.
21048         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21049         modifications.
21050         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21051         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21052         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21053         with modifications.
21054         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21055         with modifications.
21056         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21057         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21058         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21059         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21060         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21061         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21062         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21063         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21064         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21065         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21066         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21067         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21068         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21069         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21070         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21071         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21072         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21073         with modifications.
21074         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21075         with modifications.
21076         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21077         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21078         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21079         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21080         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21081         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21082         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21083         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21084         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21085         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21086         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21087         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21088         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21089         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21090         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21091         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21092         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21093         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21094         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21095         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21096         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21097         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21098         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21099         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21100         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21101         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21102         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21103         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21104         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21105         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21106         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21107         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21108         * tests/havelib/rpathx/rpathx.c: New file, from
21109         gettext/autoconf-lib-link.
21110         * tests/havelib/rpathx/Makefile.am: New file, from
21111         gettext/autoconf-lib-link.
21112         * tests/havelib/rpathx/configure.ac: New file, from
21113         gettext/autoconf-lib-link with modifications.
21114         * tests/havelib/rpathy/rpathy.c: New file, from
21115         gettext/autoconf-lib-link.
21116         * tests/havelib/rpathy/Makefile.am: New file, from
21117         gettext/autoconf-lib-link.
21118         * tests/havelib/rpathy/configure.ac: New file, from
21119         gettext/autoconf-lib-link with modifications.
21120         * tests/havelib/rpathz/rpathz.c: New file, from
21121         gettext/autoconf-lib-link.
21122         * tests/havelib/rpathz/Makefile.am: New file, from
21123         gettext/autoconf-lib-link.
21124         * tests/havelib/rpathz/configure.ac: New file, from
21125         gettext/autoconf-lib-link with modifications.
21126         * tests/havelib/rpathlx/usex.c: New file, from
21127         gettext/autoconf-lib-link.
21128         * tests/havelib/rpathlx/Makefile.am: New file, from
21129         gettext/autoconf-lib-link.
21130         * tests/havelib/rpathlx/configure.ac: New file, from
21131         gettext/autoconf-lib-link with modifications.
21132         * tests/havelib/rpathly/usey.c: New file, from
21133         gettext/autoconf-lib-link.
21134         * tests/havelib/rpathly/Makefile.am: New file, from
21135         gettext/autoconf-lib-link.
21136         * tests/havelib/rpathly/configure.ac: New file, from
21137         gettext/autoconf-lib-link with modifications.
21138         * tests/havelib/rpathlz/usez.c: New file, from
21139         gettext/autoconf-lib-link.
21140         * tests/havelib/rpathlz/Makefile.am: New file, from
21141         gettext/autoconf-lib-link.
21142         * tests/havelib/rpathlz/configure.ac: New file, from
21143         gettext/autoconf-lib-link with modifications.
21144         * tests/havelib/rpathlyx/usey.c: New file, from
21145         gettext/autoconf-lib-link.
21146         * tests/havelib/rpathlyx/Makefile.am: New file, from
21147         gettext/autoconf-lib-link.
21148         * tests/havelib/rpathlyx/configure.ac: New file, from
21149         gettext/autoconf-lib-link with modifications.
21150         * tests/havelib/rpathlzyx/usez.c: New file, from
21151         gettext/autoconf-lib-link.
21152         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21153         gettext/autoconf-lib-link.
21154         * tests/havelib/rpathlzyx/configure.ac: New file, from
21155         gettext/autoconf-lib-link with modifications.
21156         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21157         with modifications.
21158
21159 2010-04-02  Bruno Haible  <bruno@clisp.org>
21160
21161         gnulib-tool: Create distributed built sources also for the tests.
21162         * gnulib-tool (func_create_testdir): Also generate distributed built
21163         sources in the tests directory.
21164
21165 2010-04-02  Bruno Haible  <bruno@clisp.org>
21166
21167         gnulib-tool: Obey user's environment variables.
21168         * gnulib-tool (func_create_testdir): When creating built sources,
21169         respect the environment variables for autoconf, automake, etc. given by
21170         the user.
21171
21172 2010-04-02  Bruno Haible  <bruno@clisp.org>
21173
21174         gnulib-tool: Provide the value of --m4-base to modules.
21175         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21176         of gl_m4_base.
21177
21178 2010-04-02  Eric Blake  <eblake@redhat.com>
21179
21180         maint.mk: fix some fallout
21181         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21182         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21183
21184 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21185
21186         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21187         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21188         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21189         (sc_cast_of_x_alloc_return_value): Likewise.
21190         (sc_cast_of_alloca_return_value): Likewise.
21191         (sc_space_tab): Likewise.
21192         (sc_prohibit_atoi_atof): Likewise.
21193         (sc_prohibit_magic_number_exit): Likewise.
21194         (sc_error_exit_success): Likewise.
21195         (sc_file_system): Likewise.
21196         (sc_prohibit_have_config_h): Likewise.
21197         (sc_require_config_h): Likewise.
21198         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21199         (sc_obsolete_symbols): Likewise.
21200         (sc_changelog): Likewise.
21201         (sc_program_name): Likewise.
21202         (sc_the_the): Likewise.
21203         (sc_trailing_blank): Likewise.
21204         (sc_two_space_separator_in_usage): Likewise.
21205         (sc_useless_cpp_parens): Likewise.
21206         (sc_GPL_version): Likewise.
21207         (sc_GFDL_version): Likewise.
21208         (sc_texinfo_acronym): Likewise.
21209         (sc_prohibit_cvs_keyword): Likewise.
21210         (sc_prohibit_stat_st_blocks): Likewise.
21211         (sc_prohibit_S_IS_definition): Likewise.
21212         (sc_redundant_const): Likewise.
21213         (sc_makefile_TAB_only_indentation): Likewise.
21214         (sc_m4_quote_check): Likewise.
21215         (sc_makefile_path_separator_check): Likewise.
21216         (sc_copyright_check): Likewise.
21217         (sc_Wundef_boolean): Likewise.
21218         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21219
21220         maint.mk: match 0 or more whitespace-before-function-call '('
21221         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21222         that have zero or two-and-more spaces between the function name
21223         and the open parenthesis.
21224         (sc_error_message_warn_fatal): Likewise.
21225         (sc_error_message_uppercase): Likewise.
21226         (sc_error_message_period): Likewise.
21227
21228 2010-03-31  Eric Blake  <eblake@redhat.com>
21229
21230         maint.mk: check for [ as well as test
21231         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21232         Based on a libvirt report by Matthias Bolte.
21233
21234         gnumakefile: don't squelch _version output
21235         * top/GNUmakefile (_version): Create one-shot dependency rather
21236         than using $(shell) when version must be regenerated.
21237         (_autoreconf): Run verbosely, by default.
21238
21239         sys_time: avoid compiler warnings
21240         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21241         unconditional, fixing regression from 2010-03-29.
21242         Reported by Simon Josefsson.
21243
21244 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21245
21246         maint.mk: s/_header_without_use/_sc_header_without_use/
21247         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21248         (sc_prohibit_assert_without_use): Use the new name.
21249         (sc_prohibit_close_stream_without_use): Likewise.
21250         (sc_prohibit_getopt_without_use): Likewise.
21251         (sc_prohibit_quotearg_without_use): Likewise.
21252         (sc_prohibit_quote_without_use): Likewise.
21253         (sc_prohibit_long_options_without_use): Likewise.
21254         (sc_prohibit_inttostr_without_use): Likewise.
21255         (sc_prohibit_ignore_value_without_use): Likewise.
21256         (sc_prohibit_error_without_use): Likewise.
21257         (sc_prohibit_xalloc_without_use): Likewise.
21258         (sc_prohibit_hash_without_use): Likewise.
21259         (sc_prohibit_hash_pjw_without_use): Likewise.
21260         (sc_prohibit_safe_read_without_use): Likewise.
21261         (sc_prohibit_argmatch_without_use): Likewise.
21262         (sc_prohibit_canonicalize_without_use): Likewise.
21263         (sc_prohibit_root_dev_ino_without_use): Likewise.
21264         (sc_prohibit_openat_without_use): Likewise.
21265         (sc_prohibit_c_ctype_without_use): Likewise.
21266         (sc_prohibit_signal_without_use): Likewise.
21267         (sc_prohibit_intprops_without_use): Likewise.
21268
21269 2010-03-30  Eric Blake  <eblake@redhat.com>
21270
21271         maint: improve module indicators
21272         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21273         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21274         columns, and avoid extra macro expansion.
21275
21276         fdopendir: work around FreeBSD bug
21277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21278         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21279         * modules/dirent (Makefile.am): Substitute it.
21280         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21281         declaration.
21282         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21283         fix.
21284         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21285
21286 2010-03-29  Bruno Haible  <bruno@clisp.org>
21287
21288         Emit #pragma system_header after the inclusion guard, not before.
21289         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21290         guard that spans the entire file, not before. This enables an
21291         optimization in GCC's preprocessor.
21292         * lib/ctype.in.h: Likewise.
21293         * lib/dirent.in.h: Likewise.
21294         * lib/errno.in.h: Likewise.
21295         * lib/float.in.h: Likewise.
21296         * lib/getopt.in.h: Likewise.
21297         * lib/iconv.in.h: Likewise.
21298         * lib/langinfo.in.h: Likewise.
21299         * lib/locale.in.h: Likewise.
21300         * lib/math.in.h: Likewise.
21301         * lib/netdb.in.h: Likewise.
21302         * lib/netinet_in.in.h: Likewise.
21303         * lib/pty.in.h: Likewise.
21304         * lib/sched.in.h: Likewise.
21305         * lib/se-selinux.in.h: Likewise.
21306         * lib/search.in.h: Likewise.
21307         * lib/spawn.in.h: Likewise.
21308         * lib/stdarg.in.h: Likewise.
21309         * lib/stdint.in.h: Likewise.
21310         * lib/string.in.h: Likewise.
21311         * lib/strings.in.h: Likewise.
21312         * lib/sys_file.in.h: Likewise.
21313         * lib/sys_ioctl.in.h: Likewise.
21314         * lib/sys_time.in.h: Likewise.
21315         * lib/sys_times.in.h: Likewise.
21316         * lib/sys_utsname.in.h: Likewise.
21317         * lib/sys_wait.in.h: Likewise.
21318         * lib/sysexits.in.h: Likewise.
21319         * lib/wctype.in.h: Likewise.
21320
21321 2010-03-28  James Youngman  <jay@gnu.org>
21322
21323         save-cwd: don't leak a file descriptor when the caller execs.
21324         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21325         saved file descriptor.
21326         * modules/save-cwd (Depends-on): Depend on cloexec.
21327
21328 2010-03-29  Bruno Haible  <bruno@clisp.org>
21329
21330         Remove vestiges of fts-lgpl module.
21331         * lib/fts_.h: Assume GNULIB_FTS is 1.
21332         * lib/fts.c: Likewise.
21333         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21334
21335 2010-03-28  Bruno Haible  <bruno@clisp.org>
21336
21337         Fix definition of tests witness macro.
21338         * gnulib-tool (func_import): Fix definition of witness macro.
21339
21340 2010-03-28  Bruno Haible  <bruno@clisp.org>
21341
21342         Fix ioctl's protoype on glibc systems.
21343         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21344         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21345         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21346         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21347         signature. If not, arrange to replace the ioctl function.
21348         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21349         REPLACE_IOCTL.
21350         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21351         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21352         Reported by Ludovic Courtès <ludo@gnu.org>.
21353
21354 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21355
21356         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21357         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21358         made it so grep -r --include=GLOB* ... did not work.
21359
21360 2010-03-26  Jim Meyering  <meyering@redhat.com>
21361             Eric Blake  <eblake@redhat.com>
21362
21363         maint.mk: prohibit use of test's -o and -a operators
21364         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21365
21366 2010-03-28  Bruno Haible  <bruno@clisp.org>
21367
21368         Remove unused GNULIB_XYZ macro definitions.
21369         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21370         invocation.
21371
21372 2010-03-28  Bruno Haible  <bruno@clisp.org>
21373
21374         Mark privileged tests modules.
21375         * modules/idpriv-drop-tests (Status): New section.
21376         * modules/idpriv-droptemp-tests (Status): New section.
21377
21378 2010-03-28  Bruno Haible  <bruno@clisp.org>
21379
21380         Split C++ tests into separate tests modules.
21381         * modules/dirent-c++-tests: New file, extracted from
21382         modules/dirent-tests.
21383         * modules/dirent-tests: Depend on it.
21384         * modules/fcntl-h-c++-tests: New file, extracted from
21385         modules/fcntl-h-tests.
21386         * modules/fcntl-h-tests: Depend on it.
21387         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21388         * modules/glob-tests: Depend on it.
21389         * modules/iconv-h-c++-tests: New file, extracted from
21390         modules/iconv-h-tests.
21391         * modules/iconv-h-tests: Depend on it.
21392         * modules/langinfo-c++-tests: New file, extracted from
21393         modules/langinfo-tests.
21394         * modules/langinfo-tests: Depend on it.
21395         * modules/locale-c++-tests: New file, extracted from
21396         modules/locale-tests.
21397         * modules/locale-tests: Depend on it.
21398         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21399         * modules/math-tests: Depend on it.
21400         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21401         * modules/pty-tests: Depend on it.
21402         * modules/search-c++-tests: New file, extracted from
21403         modules/search-tests.
21404         * modules/search-tests: Depend on it.
21405         * modules/signal-c++-tests: New file, extracted from
21406         modules/signal-tests.
21407         * modules/signal-tests: Depend on it.
21408         * modules/spawn-c++-tests: New file, extracted from
21409         modules/spawn-tests.
21410         * modules/spawn-tests: Depend on it.
21411         * modules/stdio-c++-tests: New file, extracted from
21412         modules/stdio-tests.
21413         * modules/stdio-tests: Depend on it.
21414         * modules/stdlib-c++-tests: New file, extracted from
21415         modules/stdlib-tests.
21416         * modules/stdlib-tests: Depend on it.
21417         * modules/string-c++-tests: New file, extracted from
21418         modules/string-tests.
21419         * modules/string-tests: Depend on it.
21420         * modules/sys_ioctl-c++-tests: New file, extracted from
21421         modules/sys_ioctl-tests.
21422         * modules/sys_ioctl-tests: Depend on it.
21423         * modules/sys_select-c++-tests: New file, extracted from
21424         modules/sys_select-tests.
21425         * modules/sys_select-tests: Depend on it.
21426         * modules/sys_socket-c++-tests: New file, extracted from
21427         modules/sys_socket-tests.
21428         * modules/sys_socket-tests: Depend on it.
21429         * modules/sys_stat-c++-tests: New file, extracted from
21430         modules/sys_stat-tests.
21431         * modules/sys_stat-tests: Depend on it.
21432         * modules/sys_time-c++-tests: New file, extracted from
21433         modules/sys_time-tests.
21434         * modules/sys_time-tests: Depend on it.
21435         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21436         * modules/time-tests: Depend on it.
21437         * modules/unistd-c++-tests: New file, extracted from
21438         modules/unistd-tests.
21439         * modules/unistd-tests: Depend on it.
21440         * modules/wchar-c++-tests: New file, extracted from
21441         modules/wchar-tests.
21442         * modules/wchar-tests: Depend on it.
21443         * modules/wctype-c++-tests: New file, extracted from
21444         modules/wctype-tests.
21445         * modules/wctype-tests: Depend on it.
21446         Reported by Simon Josefsson.
21447
21448 2010-03-28  Bruno Haible  <bruno@clisp.org>
21449
21450         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21451         * gnulib-tool (func_exists_module): New function, extracted from
21452         func_verify_module.
21453         (func_verify_module): Use it.
21454         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21455         'foo' only if 'foo' exists.
21456         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21457         module.
21458
21459 2010-03-28  Bruno Haible  <bruno@clisp.org>
21460
21461         gnulib-tool: Add support for special categories of tests.
21462         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21463         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21464         (func_usage): Document them.
21465         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21466         inc_unportable_tests, inc_all_tests): New variables.
21467         (func_acceptable): Consider these variables.
21468         (func_modules_transitive_closure): Make it work when the 'Status' field
21469         consists of multiple words.
21470         (func_import): Store and restore the values of inc_cxx_tests,
21471         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21472         inc_all_tests in gnulib-comp.m4.
21473         (func_create_testdir): Set inc_all_tests to true.
21474         * doc/gnulib.texi (Extra tests modules): New section.
21475         Suggested by Jim Meyering.
21476
21477 2010-03-28  Bruno Haible  <bruno@clisp.org>
21478
21479         ansi-c++-opt: Allow turning off the C++ build by default.
21480         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21481         gl_CXX_CHOICE_DEFAULT_NO is defined.
21482         Requested by Eric Blake.
21483
21484 2010-03-28  Bruno Haible  <bruno@clisp.org>
21485
21486         unistd: Avoid #define replacements in C++ mode.
21487         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21488         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21489         setsockopt, shutdown, select): In C++, attach a warning to the function
21490         if possible, rather than #defining the symbol to a dysfunctional alias.
21491         Reported by John W. Eaton <jwe@gnu.org>.
21492
21493 2010-03-28  Bruno Haible  <bruno@clisp.org>
21494
21495         Fix link errors on mingw.
21496         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21497         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21498         $(LIBSOCKET).
21499         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21500         $(LIBSOCKET).
21501
21502 2010-03-28  Bruno Haible  <bruno@clisp.org>
21503             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21504
21505         lib-ignore: Determine different options for different compilers.
21506         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21507         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21508         Add comments.
21509         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21510         * NEWS: Mention the change.
21511
21512 2010-03-27  Bruno Haible  <bruno@clisp.org>
21513
21514         Remove unused GNULIB_XYZ macro definitions.
21515         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21516         * modules/fseek (configure.ac): Likewise.
21517         * modules/ioctl (configure.ac): Likewise.
21518         * modules/open (configure.ac): Likewise.
21519         * modules/stdlib-safer (configure.ac): Likewise.
21520
21521 2010-03-27  Bruno Haible  <bruno@clisp.org>
21522
21523         Add a remark about certain modules.
21524         * modules/malloc (Comment): New section.
21525         * modules/realloc (Comment): Likewise.
21526         * modules/sigpipe (Comment): Likewise.
21527
21528 2010-03-27  Bruno Haible  <bruno@clisp.org>
21529
21530         Resolve conflict between the two kinds of module indicators.
21531         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21532         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21533         * modules/canonicalize (configure.ac): Invoke
21534         gl_MODULE_INDICATOR_FOR_TESTS.
21535         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21536         GNULIB_XYZ.
21537         * tests/test-dirent-c++.cc: Likewise.
21538         * tests/test-dirent-safer.c: Likewise.
21539         * tests/test-dup2.c: Likewise.
21540         * tests/test-fchdir.c: Likewise.
21541         * tests/test-fcntl-h-c++.cc: Likewise.
21542         * tests/test-getopt.c: Likewise.
21543         * tests/test-getopt.h: Likewise.
21544         * tests/test-langinfo-c++.cc: Likewise.
21545         * tests/test-locale-c++.cc: Likewise.
21546         * tests/test-math-c++.cc: Likewise.
21547         * tests/test-pty-c++.cc: Likewise.
21548         * tests/test-search-c++.cc: Likewise.
21549         * tests/test-signal-c++.cc: Likewise.
21550         * tests/test-spawn-c++.cc: Likewise.
21551         * tests/test-stdio-c++.cc: Likewise.
21552         * tests/test-stdlib-c++.cc: Likewise.
21553         * tests/test-string-c++.cc: Likewise.
21554         * tests/test-sys_ioctl-c++.cc: Likewise.
21555         * tests/test-sys_select-c++.cc: Likewise.
21556         * tests/test-sys_socket-c++.cc: Likewise.
21557         * tests/test-sys_stat-c++.cc: Likewise.
21558         * tests/test-sys_time-c++.cc: Likewise.
21559         * tests/test-time-c++.cc: Likewise.
21560         * tests/test-unistd-c++.cc: Likewise.
21561         * tests/test-wchar-c++.cc: Likewise.
21562         * tests/uninorm/test-u8-nfc.c: Likewise.
21563         * tests/uninorm/test-u8-nfd.c: Likewise.
21564         * tests/uninorm/test-u8-nfkc.c: Likewise.
21565         * tests/uninorm/test-u8-nfkd.c: Likewise.
21566         * tests/uninorm/test-u16-nfc.c: Likewise.
21567         * tests/uninorm/test-u16-nfd.c: Likewise.
21568         * tests/uninorm/test-u16-nfkc.c: Likewise.
21569         * tests/uninorm/test-u16-nfkd.c: Likewise.
21570         * tests/uninorm/test-u32-nfc.c: Likewise.
21571         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21572         * tests/uninorm/test-u32-nfd.c: Likewise.
21573         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21574         * tests/uninorm/test-u32-nfkc.c: Likewise.
21575         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21576         * tests/uninorm/test-u32-nfkd.c: Likewise.
21577         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21578         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21579
21580 2010-03-27  Bruno Haible  <bruno@clisp.org>
21581
21582         Distinguish two kinds of module indicators.
21583         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21584         gl_MODULE_INDICATOR.
21585         (gl_MODULE_INDICATOR): New macro.
21586         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21587         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21588         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21589         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21590         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21591         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21592         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21593         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21594         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21595         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21596         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21597         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21600         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21603         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21604         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21605         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21606         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21607         * modules/cloexec (configure.ac): Likewise.
21608         * modules/getopt-gnu (configure.ac): Likewise.
21609         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21610         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21611         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21612         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21613
21614 2010-03-27  Bruno Haible  <bruno@clisp.org>
21615
21616         New module description field 'Comment'.
21617         * gnulib-tool: New option --extract-comment.
21618         (func_usage): Document it.
21619         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21620         (func_get_comment): New function.
21621         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21622
21623 2010-03-27  Bruno Haible  <bruno@clisp.org>
21624
21625         Addendum to 2010-02-07 commit.
21626         * gnulib-tool (func_usage): Document --extract-applicability option.
21627
21628 2010-03-27  Bruno Haible  <bruno@clisp.org>
21629
21630         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21631         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21632         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21633         rather than link errors.
21634
21635 2010-03-27  Bruno Haible  <bruno@clisp.org>
21636
21637         Avoid side effects from tests-related modules on the compilation of lib.
21638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21639         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21640         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21641         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21642         macro.
21643         (func_import): Define a witness macro. Assign it a value that depends
21644         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21645         tests-related modules.
21646         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21647         Reported by Jim Meyering.
21648
21649 2010-03-27  Bruno Haible  <bruno@clisp.org>
21650
21651         Factorize common .m4 code.
21652         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21653         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21654         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21655         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21656         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21657         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21658         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21659         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21660         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21661         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21662         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21663         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21664         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21665         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21666         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21667         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21668         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21669         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21671         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21672         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21673         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21674         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21675         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21676         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21677         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21678         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21679         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21680         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21681         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21682         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21683         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21684
21685 2010-03-27  Bruno Haible  <bruno@clisp.org>
21686
21687         Fix a compilation error on Cygwin with g++ >= 4.3.
21688         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21689         if it is undefined or if we alias it to chmod.
21690         (lstat): Don't warn about the use of this function if it is undefined
21691         or if we alias it to stat.
21692         Reported by Simon Josefsson.
21693
21694 2010-03-27  Bruno Haible  <bruno@clisp.org>
21695
21696         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21697         * modules/getlogin (configure.ac): Update.
21698
21699         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21700         * modules/getlogin_r (configure.ac): Update.
21701
21702         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21704         * modules/inet_ntop (configure.ac): Update.
21705
21706         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21707         * modules/inet_pton (configure.ac): Update.
21708
21709         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21710         * modules/mbslen (configure.ac): Update.
21711
21712         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21713         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21714         * modules/forkpty (configure.ac): Update.
21715         * modules/openpty (configure.ac): Update.
21716
21717 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21718
21719         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21720         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21721
21722 2010-03-25  Eric Blake  <eblake@redhat.com>
21723
21724         maint: use pragma consistently across replacement headers
21725         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21726         * lib/dirent.in.h (system_header): Likewise.
21727         * lib/errno.in.h (system_header): Likewise.
21728         * lib/float.in.h (system_header): Likewise.
21729         * lib/getopt.in.h (system_header): Likewise.
21730         * lib/iconv.in.h (system_header): Likewise.
21731         * lib/inttypes.in.h (system_header): Likewise.
21732         * lib/langinfo.in.h (system_header): Likewise.
21733         * lib/locale.in.h (system_header): Likewise.
21734         * lib/math.in.h (system_header): Likewise.
21735         * lib/netdb.in.h (system_header): Likewise.
21736         * lib/netinet_in.in.h (system_header): Likewise.
21737         * lib/pty.in.h (system_header): Likewise.
21738         * lib/sched.in.h (system_header): Likewise.
21739         * lib/se-selinux.in.h (system_header): Likewise.
21740         * lib/search.in.h (system_header): Likewise.
21741         * lib/spawn.in.h (system_header): Likewise.
21742         * lib/stdarg.in.h (system_header): Likewise.
21743         * lib/stdint.in.h (system_header): Likewise.
21744         * lib/string.in.h (system_header): Likewise.
21745         * lib/strings.in.h (system_header): Likewise.
21746         * lib/sys_file.in.h (system_header): Likewise.
21747         * lib/sys_ioctl.in.h (system_header): Likewise.
21748         * lib/sys_socket.in.h (system_header): Likewise.
21749         * lib/sys_times.in.h (system_header): Likewise.
21750         * lib/sys_utsname.in.h (system_header): Likewise.
21751         * lib/sys_wait.in.h (system_header): Likewise.
21752         * lib/sysexits.in.h (system_header): Likewise.
21753         * lib/unistd.in.h (system_header): Likewise.
21754         * lib/wctype.in.h (system_header): Likewise.
21755
21756         arpa/inet: fix mingw compilation warning
21757         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21758         Reported by Matthew Bolte.
21759
21760 2010-03-25  Bruno Haible  <bruno@clisp.org>
21761
21762         Avoid collision between gnulib wrapper and libintl wrapper.
21763         * lib/printf.c (printf): Don't define if a printf wrapper is already
21764         defined in intl/printf.c.
21765         Reported by Michel Boaventura <michel@michelboaventura.com>.
21766
21767 2010-03-25  Bruno Haible  <bruno@clisp.org>
21768
21769         Use ANSI C.
21770         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21771
21772 2010-03-25  Bruno Haible  <bruno@clisp.org>
21773
21774         Minor formatting changes.
21775         * lib/acosl.c: Insert space before function argument list.
21776         * lib/argz.c: Likewise.
21777         * lib/asinl.c: Likewise.
21778         * lib/expl.c: Likewise.
21779         * lib/gen-uni-tables.c: Likewise.
21780         * lib/gettext.h: Likewise.
21781         * lib/glthread/lock.h: Likewise.
21782         * lib/tanl.c: Likewise.
21783         * lib/uniname/uniname.c: Likewise.
21784         * tests/test-idpriv-drop.c: Likewise.
21785         * tests/test-idpriv-droptemp.c: Likewise.
21786         * tests/test-lock.c: Likewise.
21787         * tests/test-tls.c: Likewise.
21788         * lib/argp-help.c: Insert space before function-like macro argument
21789         list.
21790         * lib/memcmp.c: Likewise.
21791         * tests/test-base64.c: Likewise.
21792         * lib/localename.c: Insert space before sizeof's argument list.
21793         * lib/safe-alloc.h: Likewise.
21794         * lib/file-set.h: Insert space before macro argument list.
21795         * tests/test-argp.c: Likewise.
21796         * lib/argp-namefrob.h: Insert space before function parameter list.
21797         * lib/getaddrinfo.c: Likewise.
21798         * lib/netdb.in.h: Likewise.
21799         * lib/parse-duration.h: Likewise.
21800         * lib/parse-duration.c: Likewise.
21801         * lib/poll.c: Likewise.
21802         * lib/select.c: Likewise.
21803         * lib/trim.h: Likewise.
21804         * tests/test-usleep.c: Likewise.
21805         * lib/ldexpl.c: Insert space before function parameter list and before
21806         function argument list.
21807         * lib/logl.c: Likewise.
21808         * lib/sqrtl.c: Likewise.
21809         * lib/trim.c: Likewise.
21810         * lib/cosl.c: Use GNU style indentation. Insert space before function
21811         argument list.
21812         * lib/sinl.c: Likewise.
21813         * lib/tsearch.c: Insert space after 'for'.
21814         Reported by Jim Meyering.
21815
21816 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21817
21818         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21819         config header before grepping, as it's not present before
21820         autoreconf/configure are run.  Reported by Simon Josefsson.
21821
21822 2010-03-23  Bruno Haible  <bruno@clisp.org>
21823
21824         pt_chown: Make it work with automake < 1.11.
21825         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21826         Reported by Simon Josefsson.
21827
21828 2010-03-23  Bruno Haible  <bruno@clisp.org>
21829
21830         pt_chown: Don't depend on GPLed modules.
21831         * lib/pt_chown.c: Don't include idpriv.h.
21832         (main): Don't drop privileges.
21833         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21834         Reported by Simon Josefsson.
21835
21836 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21837
21838         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21839         suggestions from karl@freefriends.org (Karl Berry).
21840
21841 2010-03-22  Eric Blake  <eblake@redhat.com>
21842
21843         gethostname: further tweaks
21844         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21845         are overriding gethostname.
21846         Suggested by Bruno Haible.
21847
21848 2010-03-21  Bruno Haible  <bruno@clisp.org>
21849
21850         Fix comments.
21851         * lib/forkpty.c (rpl_forkpty): Fix comment.
21852         * lib/openpty.c (rpl_openpty): Likewise.
21853         Reported by Eric Blake.
21854
21855 2010-03-22  Eric Blake  <eblake@redhat.com>
21856
21857         gethostname: fix build on mingw
21858         * lib/unistd.in.h (includes): Work around fact that mingw
21859         <winsock2.h> re-includes <unistd.h>, by avoiding any
21860         redeclarations if we are being included by <winsock2.h>.
21861         Reported by Matthias Bolte.
21862
21863 2010-03-21  Bruno Haible  <bruno@clisp.org>
21864
21865         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21866         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21867         modifications.
21868         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21869         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21870         provide the replacement.
21871         * modules/forkpty (Depends-on): Add openpty, login_tty.
21872         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21873         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21874         * doc/glibc-functions/forkpty.texi: More supported platforms.
21875         * config/srclist.txt: Add forkpty.c (commented).
21876
21877 2010-03-21  Bruno Haible  <bruno@clisp.org>
21878
21879         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21880         (Makefile.am): Verify that PTY_LIB is defined.
21881
21882         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21883
21884 2010-03-21  Bruno Haible  <bruno@clisp.org>
21885
21886         Tests for module 'login_tty'.
21887         * modules/login_tty-tests: New file.
21888         * tests/test-login_tty.c: New file.
21889
21890         New module 'login_tty'.
21891         * lib/login_tty.c: New file.
21892         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21893         * modules/login_tty: New file.
21894         * doc/glibc-functions/login_tty.texi: Mention the new module.
21895
21896 2010-03-21  Bruno Haible  <bruno@clisp.org>
21897
21898         login_tty: Documentation.
21899         * doc/glibc-functions/login_tty.texi: New file.
21900         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21901
21902 2010-03-21  Bruno Haible  <bruno@clisp.org>
21903
21904         pty: Consistent macro naming.
21905         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21906         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21907         * modules/pty (configure.ac): Update.
21908
21909 2010-03-21  Bruno Haible  <bruno@clisp.org>
21910
21911         Tests for openpty: Make stricter.
21912         * tests/test-openpty.c (main): Add test of canonical processing and
21913         erase.
21914         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21915
21916         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21917         * lib/openpty.c (openpty): New replacement function.
21918         * lib/pty.in.h: Include <termios.h>.
21919         (openpty): Update declaration. Add comments.
21920         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21921         is not declared, arrange to provide the replacement. Check for _getpty
21922         and posix_openpt.
21923         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21924         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21925         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21926         * modules/pty-tests (test_pty_c___LDADD): New variable.
21927         * doc/glibc-functions/openpty.texi: More supported platforms.
21928
21929 2010-03-21  Bruno Haible  <bruno@clisp.org>
21930
21931         setenv: Tweaks.
21932         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21933         the test program.
21934         * doc/posix-functions/setenv.texi: Update platforms list.
21935
21936 2010-03-21  Bruno Haible  <bruno@clisp.org>
21937
21938         New module 'unlockpt'.
21939         * lib/unlockpt.c: New file, from glibc with modifications.
21940         * m4/unlockpt.m4: New file.
21941         * modules/unlockpt: New file.
21942         * lib/stdlib.in.h (unlockpt): New declaration.
21943         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21944         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21945         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21946         HAVE_UNLOCKPT.
21947         * doc/posix-functions/unlockpt.texi: Mention the new module.
21948         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21949         * config/srclist.txt: Add unlockpt.c (commented).
21950
21951 2010-03-21  Jim Meyering  <meyering@redhat.com>
21952
21953         maint.mk: prohibit inclusion of "intprops.h" without use
21954         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21955
21956 2010-03-21  Bruno Haible  <bruno@clisp.org>
21957
21958         New module 'grantpt'.
21959         * lib/grantpt.c: New file, from glibc with modifications.
21960         * m4/grantpt.m4: New file.
21961         * modules/grantpt: New file.
21962         * lib/stdlib.in.h (grantpt): New declaration.
21963         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21964         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21965         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21966         HAVE_GRANTPT.
21967         * doc/posix-functions/grantpt.texi: Mention the new module.
21968         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21969         * config/srclist.txt: Add grantpt.c (commented).
21970
21971 2010-03-21  Bruno Haible  <bruno@clisp.org>
21972
21973         New module 'pt_chown'.
21974         * lib/pt_chown.c: New file, from glibc with modifications.
21975         * lib/pty-private.h: New file, from glibc with modifications.
21976         * modules/pt_chown: New file.
21977         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21978
21979 2010-03-21  Bruno Haible  <bruno@clisp.org>
21980
21981         Tests for module 'ptsname'.
21982         * modules/ptsname-tests: New file.
21983         * tests/test-ptsname.c: New file.
21984
21985         New module 'ptsname'.
21986         * lib/ptsname.c: New file, from glibc with modifications.
21987         * m4/ptsname.m4: New file.
21988         * modules/ptsname: New file.
21989         * lib/stdlib.in.h (ptsname): New declaration.
21990         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21991         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21992         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21993         HAVE_PTSNAME.
21994         * doc/posix-functions/ptsname.texi: Mention the new module.
21995         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21996         * config/srclist.txt: Add ptsname.c (commented).
21997
21998 2010-03-21  Bruno Haible  <bruno@clisp.org>
21999
22000         Tests for module 'ttyname_r'.
22001         * modules/ttyname_r-tests: New file.
22002         * tests/test-ttyname_r.c: New file.
22003
22004         New module 'ttyname_r'.
22005         * lib/ttyname_r.c: New file.
22006         * m4/ttyname_r.m4: New file.
22007         * modules/ttyname_r: New file.
22008         * lib/unistd.in.h (ttyname_r): New declaration.
22009         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22010         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22011         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22012         HAVE_TTYNAME_R.
22013         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22014         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22015
22016 2010-03-20  Bruno Haible  <bruno@clisp.org>
22017
22018         signal: Undefine macro definitions in C++ mode.
22019         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22020         sigfillset): Undefine macro definitions from the system header in C++
22021         mode.
22022         Reported by John W. Eaton <jwe@gnu.org>.
22023
22024 2010-03-20  Bruno Haible  <bruno@clisp.org>
22025
22026         Ensure no #include statements inside extern "C" { ... }.
22027         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22028         contain #include statements.
22029         * lib/time.in.h: Likewise.
22030
22031 2010-03-20  Bruno Haible  <bruno@clisp.org>
22032
22033         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22034         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22035         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22036         Reported by John W. Eaton <jwe@gnu.org>.
22037
22038 2010-03-20  Bruno Haible  <bruno@clisp.org>
22039
22040         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22041         Reported by Jim Meyering.
22042
22043 2010-03-20  Bruno Haible  <bruno@clisp.org>
22044
22045         pipe: Set errno upon failure.
22046         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22047         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22048         errno value in error message.
22049
22050 2010-03-20  Bruno Haible  <bruno@clisp.org>
22051             Jim Meyering  <meyering@redhat.com>
22052
22053         lchown: Avoid "unused variable" warning.
22054         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22055
22056 2010-03-20  Bruno Haible  <bruno@clisp.org>
22057
22058         Work around unlink() bug on MacOS X 10.5.6.
22059         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22060         attempting to unlink a parent directory.
22061         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22062         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22063         activate for the replacement function.
22064         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22065
22066 2010-03-20  Bruno Haible  <bruno@clisp.org>
22067
22068         Fix link errors on Solaris 8.
22069         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22070         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22071
22072 2010-03-19  Jim Meyering  <meyering@redhat.com>
22073
22074         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22075         The _LIBC implementation of build_range_exp correctly honors the
22076         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22077         However, the non-_LIBC implementation would ignore that syntax-bit
22078         flag and return REG_ERANGE unconditionally.
22079         This change makes it honor that flag.
22080         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22081         Make two pointer parameters "const".
22082         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22083         (parse_bracket_exp): Update caller.
22084
22085         regex.m4: correct the reversed range endpoint ([b-a]) test
22086         * m4/regex.m4: When requiring that [b-a] evoke failure,
22087         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22088         test pass once again for x86-based systems.
22089
22090 2010-03-19  Bruno Haible  <bruno@clisp.org>
22091
22092         scandir: Fix link error on Solaris 8.
22093         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22094         macros.
22095
22096 2010-03-19  Bruno Haible  <bruno@clisp.org>
22097
22098         getusershell: Fix documentation.
22099         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22100         module.
22101         * doc/glibc-functions/setusershell.texi: Likewise.
22102
22103         getusershell: Provide declaration, missing on Solaris 9.
22104         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22105         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22106         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22107         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22109         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22110         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22111         HAVE_GETUSERSHELL.
22112         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22113
22114 2010-03-19  Bruno Haible  <bruno@clisp.org>
22115
22116         wctype: Provide iswblank function.
22117         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22118         exists and is fine.
22119         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22120         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22121         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22122         * doc/posix-functions/iswblank.texi: Update.
22123
22124 2010-03-19  Bruno Haible  <bruno@clisp.org>
22125
22126         Tests of module 'pty' in C++ mode.
22127         * modules/pty-tests: New file.
22128         * tests/test-pty-c++.cc: New file.
22129         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22130
22131 2010-03-19  Eric Blake  <eblake@redhat.com>
22132
22133         logb: fix documentation
22134         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22135         1.5 declaration bug.
22136
22137         forkpty, openpty: prefer glibc's const-safe prototype
22138         * lib/forkpty.c (rpl_forkpty): New file.
22139         * lib/openpty.c (rpl_openpty): Likewise.
22140         * modules/forkpty (Files): Distribute it.
22141         * modules/openpty (Files): Likewise.
22142         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22143         check...
22144         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22145         replacement for for non-const BSD signature.
22146         * modules/pty (Makefile.am): Substitute witnesses.
22147         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22148         * tests/test-forkpty.c: Update signature check.
22149         * tests/test-openpty.c: Likewise.
22150         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22151         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22152
22153         forkpty, openpty: split functions into new modules
22154         * modules/pty (Makefile.am): Substitute new witnesses.
22155         (Libraries): Move library detection...
22156         * modules/forkpty: ...into new module.
22157         * modules/openpty: Another new module.
22158         * modules/pty-tests: Rename and split...
22159         * modules/forkpty-tests: ...to this...
22160         * modules/openpty-tests: ...and this.
22161         * tests/test-pty.c: Rename and split...
22162         * tests/test-forkpty.c: ...to this...
22163         * tests/test-openpty.c: ...and this.
22164         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22165         (gl_PTY): Split library searching...
22166         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22167         (gl_FORKPTY, gl_OPENPTY): New macros.
22168         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22169         * NEWS: Mention the split.
22170         * MODULES.html.sh (Misc): Document the modules.
22171         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22172         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22173
22174         pty: improve replacement header
22175         * lib/pty.in.h: New file.
22176         * modules/pty (Files): Ship it.
22177         (Makefile.am): Always build replacement.
22178         * m4/pty.m4: Rename...
22179         * m4/pty_h.m4: ...to this.
22180         (gl_PTY): Modernize setting of witness macros; update check of
22181         forkpty to take proper advantage of cache.
22182         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22183
22184         getopt: avoid compiler warning
22185         * lib/getopt.c (attribute_hidden): Remove unused macro.
22186
22187 2010-03-18  Bruno Haible  <bruno@clisp.org>
22188
22189         Fix link errors on Solaris 8.
22190         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22191         * modules/search-tests (test_search_c___LDADD): Likewise.
22192         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22193         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22194         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22195         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22196         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22197         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22198         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22199
22200 2010-03-18  Bruno Haible  <bruno@clisp.org>
22201
22202         Fix bug introduced on 2010-03-14.
22203         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22204         (gl_SPAWN_H): Require it.
22205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22206         Reported by Simon Josefsson.
22207
22208 2010-03-18  Bruno Haible  <bruno@clisp.org>
22209
22210         Fix typo introduced on 2009-12-31.
22211         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22212         posix_spawn_file_actions_adddup2.
22213
22214 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22215         and Eric Blake  <eblake@redhat.com>
22216
22217         test-vc-list-files-git: make more robust
22218         * tests/test-vc-list-files-git.sh: Unset problematic environment
22219         variables.  Chain commands together.
22220
22221 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22222
22223         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22224         `AC_CHECK_DECL' invocation.
22225
22226 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22227
22228         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22229         appears before executable statements. Suggested by Petr Sumbera
22230         <Petr.Sumbera@Sun.COM>.
22231
22232 2010-03-14  Bruno Haible  <bruno@clisp.org>
22233
22234         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22235         portability problems. Instead use a simpler test.
22236         (main): Check that invalid arguments are rejected only on Linux.
22237
22238 2010-03-14  Bruno Haible  <bruno@clisp.org>
22239
22240         Fix bug introduced on 2009-12-31.
22241         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22242         gl_PREREQ_SYS_H_WINSOCK2 always.
22243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22244         SYS_SOCKET_H variable.
22245         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22246         Update comments.
22247         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22248         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22249         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22250         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22251         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22252
22253 2010-03-14  Bruno Haible  <bruno@clisp.org>
22254
22255         Fix values returned by sinl, cosl.
22256         * lib/trigl.h: Add specification comments.
22257         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22258         that combines the values from the precomputed table with the values of
22259         the Chebyshev polynomials.
22260
22261 2010-03-14  Bruno Haible  <bruno@clisp.org>
22262
22263         Fix compilation error when modules 'posix_spawn[p]' are not used.
22264         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22266
22267 2010-03-14  Bruno Haible  <bruno@clisp.org>
22268
22269         Fix compilation error on mingw when module 'time_r' is not used.
22270         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22271         is 1.
22272         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22273         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22274         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22275         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22276
22277 2010-03-14  Bruno Haible  <bruno@clisp.org>
22278
22279         Fix compilation error with Sun C.
22280         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22281         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22282         instead of GCC specific ULONG_LONG_MAX.
22283         * lib/xstrtoll.c: Likewise.
22284         * lib/xstrtoull.c: Likewise.
22285
22286 2010-03-13  Bruno Haible  <bruno@clisp.org>
22287
22288         Allow the user to disable C++ code and tests.
22289         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22290         (gl_PROG_ANSI_CXX): Require it.
22291
22292 2010-03-13  Bruno Haible  <bruno@clisp.org>
22293
22294         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22295         cases.
22296
22297 2010-03-13  Bruno Haible  <bruno@clisp.org>
22298
22299         Test that gnulib does not break the standard C++ headers.
22300         * tests/test-locale-c++2.cc: New file.
22301         * modules/locale-tests (Files): Add it.
22302         (Makefile.am): Compile it for test-locale-c++.
22303         * tests/test-math-c++2.cc: New file.
22304         * modules/math-tests (Files): Add it.
22305         (Makefile.am): Compile it for test-math-c++.
22306         * tests/test-signal-c++2.cc: New file.
22307         * modules/signal-tests (Files): Add it.
22308         (Makefile.am): Compile it for test-signal-c++.
22309         * tests/test-stdio-c++2.cc: New file.
22310         * modules/stdio-tests (Files): Add it.
22311         (Makefile.am): Compile it for test-stdio-c++.
22312         * tests/test-stdlib-c++2.cc: New file.
22313         * modules/stdlib-tests (Files): Add it.
22314         (Makefile.am): Compile it for test-stdlib-c++.
22315         * tests/test-string-c++2.cc: New file.
22316         * modules/string-tests (Files): Add it.
22317         (Makefile.am): Compile it for test-string-c++.
22318         * tests/test-time-c++2.cc: New file.
22319         * modules/time-tests (Files): Add it.
22320         (Makefile.am): Compile it for test-time-c++.
22321         Reported by John W. Eaton <jwe@gnu.org>.
22322
22323 2010-03-13  Bruno Haible  <bruno@clisp.org>
22324
22325         * gnulib-tool (func_usage): Clarify which options are available for
22326         --create-testdir and --create-megatestdir.
22327
22328 2010-03-13  Bruno Haible  <bruno@clisp.org>
22329
22330         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22331         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22332         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22333         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22334         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22335         when appropriate.
22336         Reported by Jim Meyering.
22337
22338 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22339
22340         * gnulib-tool (func_import): Explain origin of code.
22341
22342 2010-03-12  Bruno Haible  <bruno@clisp.org>
22343
22344         Fix problem with automake's definition of CXXLINK.
22345         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22346         Reported by Simon Josefsson and Ludovic Courtès.
22347
22348 2010-03-12  Bruno Haible  <bruno@clisp.org>
22349
22350         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22351         stable releases.
22352
22353 2010-03-11  Bruno Haible  <bruno@clisp.org>
22354
22355         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22356         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22357         whether the system provides one variant or multiple variants of the
22358         function.
22359         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22360         C++ compilers.
22361         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22362         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22363         Reported by Jim Meyering.
22364
22365 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22366
22367         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22368
22369 2010-03-08  Bruno Haible  <bruno@clisp.org>
22370
22371         gnulib-tool: Add support for --libtool in --create-testdir.
22372         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22373         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22374
22375 2010-03-08  Eric Blake  <eblake@redhat.com>
22376
22377         gnulib-tool.texi: mention possibility of git submodule
22378         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22379         submodules.
22380         * doc/.gitignore: Ignore another generated file.
22381
22382 2010-03-08  Karl Berry  <karl@gnu.org>
22383
22384         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22385         of committing gnulib files while skipping others.
22386
22387 2010-03-07  Bruno Haible  <bruno@clisp.org>
22388
22389         Tests of module 'wctype' in C++ mode.
22390         * tests/test-wctype-c++.cc: New file.
22391         * modules/wctype-tests (Files): Add it and tests/signature.h.
22392         (Depends-on): Add ansi-c++-opt.
22393         (Makefile.am): Arrange to compile and run test-wctype-c++.
22394
22395         Tests of module 'wchar' in C++ mode.
22396         * tests/test-wchar-c++.cc: New file.
22397         * modules/wchar-tests (Files): Add it and tests/signature.h.
22398         (Depends-on): Add ansi-c++-opt.
22399         (Makefile.am): Arrange to compile and run test-wchar-c++.
22400         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22401         gl_MODULE_INDICATOR.
22402
22403         Tests of module 'unistd' in C++ mode.
22404         * tests/test-unistd-c++.cc: New file.
22405         * modules/unistd-tests (Files): Add it and tests/signature.h.
22406         (Depends-on): Add ansi-c++-opt.
22407         (Makefile.am): Arrange to compile and run test-unistd-c++.
22408         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22409         gl_MODULE_INDICATOR.
22410
22411         Tests of module 'time' in C++ mode.
22412         * tests/test-time-c++.cc: New file.
22413         * modules/time-tests (Files): Add it and tests/signature.h.
22414         (Depends-on): Add ansi-c++-opt.
22415         (Makefile.am): Arrange to compile and run test-time-c++.
22416         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22417
22418         Tests of module 'sys_time' in C++ mode.
22419         * tests/test-sys_time-c++.cc: New file.
22420         * modules/sys_time-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_time-c++.
22423         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22424         gl_MODULE_INDICATOR.
22425
22426         Tests of module 'sys_stat' in C++ mode.
22427         * tests/test-sys_stat-c++.cc: New file.
22428         * modules/sys_stat-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_stat-c++.
22431         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22432         gl_MODULE_INDICATOR.
22433
22434         Tests of module 'sys_socket' in C++ mode.
22435         * tests/test-sys_socket-c++.cc: New file.
22436         * modules/sys_socket-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_socket-c++.
22439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22440         gl_MODULE_INDICATOR.
22441
22442         Tests of module 'sys_select' in C++ mode.
22443         * tests/test-sys_select-c++.cc: New file.
22444         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22445         (Depends-on): Add ansi-c++-opt.
22446         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22447         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22448         gl_MODULE_INDICATOR.
22449
22450         Tests of module 'sys_ioctl' in C++ mode.
22451         * tests/test-sys_ioctl-c++.cc: New file.
22452         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22453         (Depends-on): Add ansi-c++-opt.
22454         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22456         gl_MODULE_INDICATOR.
22457
22458         Tests of module 'string' in C++ mode.
22459         * tests/test-string-c++.cc: New file.
22460         * modules/string-tests (Files): Add it and tests/signature.h.
22461         (Depends-on): Add ansi-c++-opt.
22462         (Makefile.am): Arrange to compile and run test-string-c++.
22463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22464         gl_MODULE_INDICATOR.
22465
22466         Tests of module 'stdlib' in C++ mode.
22467         * tests/test-stdlib-c++.cc: New file.
22468         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22469         (Depends-on): Add ansi-c++-opt.
22470         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22471         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22472         gl_MODULE_INDICATOR.
22473
22474         Tests of module 'stdio' in C++ mode.
22475         * tests/test-stdio-c++.cc: New file.
22476         * modules/stdio-tests (Files): Add it and tests/signature.h.
22477         (Depends-on): Add ansi-c++-opt.
22478         (Makefile.am): Arrange to compile and run test-stdio-c++.
22479         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22480         gl_MODULE_INDICATOR.
22481
22482         Tests of module 'spawn' in C++ mode.
22483         * tests/test-spawn-c++.cc: New file.
22484         * modules/spawn-tests (Files): Add it and tests/signature.h.
22485         (Depends-on): Add ansi-c++-opt.
22486         (Makefile.am): Arrange to compile and run test-spawn-c++.
22487         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22488         gl_MODULE_INDICATOR.
22489
22490         Tests of module 'signal' in C++ mode.
22491         * tests/test-signal-c++.cc: New file.
22492         * modules/signal-tests (Files): Add it and tests/signature.h.
22493         (Depends-on): Add ansi-c++-opt.
22494         (Makefile.am): Arrange to compile and run test-signal-c++.
22495         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22496         gl_MODULE_INDICATOR.
22497
22498         Tests of module 'search' in C++ mode.
22499         * tests/test-search-c++.cc: New file.
22500         * modules/search-tests (Files): Add it and tests/signature.h.
22501         (Depends-on): Add ansi-c++-opt.
22502         (Makefile.am): Arrange to compile and run test-search-c++.
22503         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22504         gl_MODULE_INDICATOR.
22505
22506         Tests of module 'math' in C++ mode.
22507         * tests/test-math-c++.cc: New file.
22508         * modules/math-tests (Files): Add it and tests/signature.h.
22509         (Depends-on): Add ansi-c++-opt.
22510         (Makefile.am): Arrange to compile and run test-math-c++.
22511         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22512
22513         Tests of module 'locale' in C++ mode.
22514         * tests/test-locale-c++.cc: New file.
22515         * modules/locale-tests (Files): Add it and tests/signature.h.
22516         (Depends-on): Add ansi-c++-opt.
22517         (Makefile.am): Arrange to compile and run test-locale-c++.
22518         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22519         gl_MODULE_INDICATOR.
22520
22521         Tests of module 'langinfo' in C++ mode.
22522         * tests/test-langinfo-c++.cc: New file.
22523         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22524         (Depends-on): Add ansi-c++-opt.
22525         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22526         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22527         gl_MODULE_INDICATOR.
22528
22529         Tests of module 'iconv-h' in C++ mode.
22530         * tests/test-iconv-h-c++.cc: New file.
22531         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22532         (Depends-on): Add ansi-c++-opt.
22533         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22534
22535         Tests of module 'glob' in C++ mode.
22536         * tests/test-glob-c++.cc: New file.
22537         * modules/glob-tests (Files): Add it.
22538         (Depends-on): Add ansi-c++-opt.
22539         (Makefile.am): Arrange to compile and run test-glob-c++.
22540
22541         Tests of module 'fcntl-h' in C++ mode.
22542         * tests/test-fcntl-h-c++.cc: New file.
22543         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22544         (Depends-on): Add ansi-c++-opt.
22545         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22546         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22547         gl_MODULE_INDICATOR.
22548
22549         Tests of module 'dirent' in C++ mode.
22550         * tests/test-dirent-c++.cc: New file.
22551         * modules/dirent-tests (Files): Add it and tests/signature.h.
22552         (Depends-on): Add ansi-c++-opt.
22553         (Makefile.am): Arrange to compile and run test-dirent-c++.
22554         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22555         gl_MODULE_INDICATOR.
22556
22557         New module 'ansi-c++-opt'.
22558         * modules/ansi-c++-opt: New file.
22559         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22560
22561         Document C++ namespace mode.
22562         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22563
22564         wctype: Avoid #define replacements in C++ mode.
22565         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22566         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22567         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22568         In C++, define a namespaced alias symbol.
22569         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22570         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22571         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22572         rule.
22573
22574         wchar: Avoid #define replacements in C++ mode.
22575         * lib/wchar.in.h: Include c++defs.h.
22576         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22577         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22578         symbol.
22579         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22580         * modules/wchar (Depends-on): Add c++defs.
22581         (Makefile.am): Update wchar.h rule.
22582
22583         unistd: Avoid #define replacements in C++ mode.
22584         * lib/unistd.in.h: Include c++defs.h.
22585         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22586         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22587         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22588         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22589         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22590         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22591         symbol.
22592         (environ): Update.
22593         * modules/unistd (Depends-on): Add c++defs.
22594         (Makefile.am): Update unistd.h rule.
22595
22596         time: Avoid #define replacements in C++ mode.
22597         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22598         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22599         define a namespaced alias symbol.
22600         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22601         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22602         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22603         * modules/time (Depends-on): Add c++defs, warn-on-use.
22604         (Makefile.am): Update time.h rule.
22605         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22606         * modules/nanosleep (configure.ac): Likewise.
22607         * modules/strptime (configure.ac): Likewise.
22608         * modules/timegm (configure.ac): Likewise.
22609
22610         sys_time: Avoid #define replacements in C++ mode.
22611         * lib/sys_time.in.h: Include c++defs.h.
22612         (gettimeofday): In C++, define a namespaced alias symbol.
22613         * modules/sys_time (Depends-on): Add c++defs.
22614         (Makefile.am): Update sys/time.h rule.
22615
22616         sys_stat: Avoid #define replacements in C++ mode.
22617         * lib/sys_stat.in.h: Include c++defs.h.
22618         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22619         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22620         namespaced alias symbol.
22621         In C++, define a namespaced alias symbol.
22622         * modules/sys_stat (Depends-on): Add c++defs.
22623         (Makefile.am): Update sys/stat.h rule.
22624
22625         sys_socket: Avoid #define replacements in C++ mode.
22626         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22627         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22628         definitions also when the system has a <sys/socket.h>.
22629         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22630         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22631         In C++, define a namespaced alias symbol.
22632         * modules/sys_socket (Depends-on): Add c++defs.
22633         (Makefile.am): Update sys/socket.h rule.
22634
22635         sys_select: Avoid #define replacements in C++ mode.
22636         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22637         definitions also when the system has a <sys/select.h>.
22638         (select): In C++, define a namespaced alias symbol.
22639         * modules/sys_select (Depends-on): Add c++defs.
22640         (Makefile.am): Update sys/select.h rule.
22641
22642         sys_ioctl: Avoid #define replacements in C++ mode.
22643         * lib/sys_ioctl.in.h: Include c++defs.h.
22644         (ioctl): In C++, define a namespaced alias symbol.
22645         * modules/sys_ioctl (Depends-on): Add c++defs.
22646         (Makefile.am): Update sys/ioctl.h rule.
22647
22648         string: Avoid #define replacements in C++ mode.
22649         * lib/string.in.h: Include c++defs.h.
22650         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22651         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22652         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22653         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22654         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22655         * modules/string (Depends-on): Add c++defs.
22656         (Makefile.am): Update string.h rule.
22657
22658         stdlib: Avoid #define replacements in C++ mode.
22659         * lib/stdlib.in.h: Include c++defs.h.
22660         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22661         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22662         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22663         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22664         symbol.
22665         * modules/stdlib (Depends-on): Add c++defs.
22666         (Makefile.am): Update stdlib.h rule.
22667
22668         stdio: Avoid #define replacements in C++ mode.
22669         * lib/stdio.in.h: Include c++defs.h.
22670         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22671         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22672         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22673         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22674         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22675         namespaced alias symbol.
22676         * modules/stdio (Depends-on): Add c++defs.
22677         (Makefile.am): Update stdio.h rule.
22678
22679         spawn: Avoid #define replacements in C++ mode.
22680         * lib/spawn.in.h: Include c++defs.h.
22681         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22682         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22683         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22684         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22685         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22686         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22687         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22688         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22689         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22690         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22691         In C++, define a namespaced alias symbol.
22692         * modules/spawn (Depends-on): Add c++defs.
22693         (Makefile.am): Update spawn.h rule.
22694
22695         signal: Avoid #define replacements in C++ mode.
22696         * lib/signal.in.h: Include c++defs.h.
22697         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22698         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22699         namespaced alias symbol.
22700         * modules/signal (Depends-on): Add c++defs.
22701         (Makefile.am): Update signal.h rule.
22702
22703         search: Avoid #define replacements in C++ mode.
22704         * lib/search.in.h: Include c++defs.h.
22705         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22706         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22707         symbol.
22708         * modules/search (Depends-on): Add c++defs.
22709         (Makefile.am): Update search.h rule.
22710
22711         math: Avoid #define replacements in C++ mode.
22712         * lib/math.in.h: Include c++defs.h.
22713         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22714         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22715         trunc, truncl): In C++, define a namespaced alias symbol.
22716         * modules/math (Depends-on): Add c++defs.
22717         (Makefile.am): Update math.h rule.
22718
22719         locale: Avoid #define replacements in C++ mode.
22720         * lib/locale.in.h: Include c++defs.h.
22721         (duplocale): In C++, define a namespaced alias symbol.
22722         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22723         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22724         * modules/locale (Depends-on): Add c++defs.
22725         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22726
22727         langinfo: Avoid #define replacements in C++ mode.
22728         * lib/langinfo.in.h: Include c++defs.h.
22729         (nl_langinfo): In C++, define a namespaced alias symbol.
22730         * modules/langinfo (Depends-on): Add c++defs.
22731         (Makefile.am): Update langinfo.h rule.
22732
22733         iconv-h: Avoid #define replacements in C++ mode.
22734         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22735         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22736         symbol.
22737         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22738         whenever iconv is present.
22739         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22740         (Makefile.am): Update iconv.h rule.
22741
22742         glob: Avoid #define replacements in C++ mode.
22743         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22744         (_gl_glob_errfunc_fn): New type.
22745         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22746         symbol.
22747         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22748         (Makefile.am): Update glob.h rule.
22749
22750         fcntl-h: Avoid #define replacements in C++ mode.
22751         * lib/fcntl.in.h: Include c++defs.h.
22752         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22753         * modules/fcntl-h (Depends-on): Add c++defs.
22754         (Makefile.am): Update fcntl.h rule.
22755
22756         dirent: Avoid #define replacements in C++ mode.
22757         * lib/dirent.in.h: Include c++defs.h.
22758         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22759         namespaced alias symbol.
22760         (dirfd): Update declaration.
22761         * modules/dirent (Depends-on): Add c++defs.
22762         (Makefile.am): Update dirent.h rule.
22763
22764         ctype: Make it usable in C++ code.
22765         * lib/ctype.in.h: Include c++defs.h.
22766         (isblank): Declare as extern "C".
22767         * modules/ctype (Depends-on): Add c++defs.
22768         (Makefile.am): Update ctype.h rule.
22769
22770         New module 'c++defs'.
22771         * modules/c++defs: New file.
22772         * build-aux/c++defs.h: New file.
22773         Reported by John W. Eaton <jwe@gnu.org>.
22774
22775 2010-03-07  Bruno Haible  <bruno@clisp.org>
22776
22777         logb: Provide missing declaration for Cygwin.
22778         * lib/math.in.h (logb): New declaration.
22779         * m4/logb.m4: New file.
22780         * modules/logb (Files): Add m4/logb.m4.
22781         (Depends-on): Add math.
22782         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22783         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22785         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22786         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22787
22788 2010-03-07  Bruno Haible  <bruno@clisp.org>
22789
22790         Fix test-cond link error.
22791         * tests/test-cond.c: Include <stdio.h>.
22792
22793 2010-03-07  Bruno Haible  <bruno@clisp.org>
22794
22795         Fix test-dirent-safer link error.
22796         * modules/dirent-safer-tests (Makefile.am): Define
22797         test_dirent_safer_LDADD.
22798
22799 2010-03-07  Bruno Haible  <bruno@clisp.org>
22800
22801         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22802         among default module list.
22803
22804 2010-03-07  Bruno Haible  <bruno@clisp.org>
22805
22806         Fix link error on platforms with GNU libiconv.
22807         * modules/unistr/u8-strcoll-tests (Makefile): Define
22808         test_u8_strcoll_LDADD.
22809         * modules/unistr/u16-strcoll-tests (Makefile): Define
22810         test_u16_strcoll_LDADD.
22811         * modules/unistr/u32-strcoll-tests (Makefile): Define
22812         test_u32_strcoll_LDADD.
22813
22814 2010-03-07  Bruno Haible  <bruno@clisp.org>
22815
22816         Use POSIX declarations for socket functions.
22817         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22818         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22819         rpl_sendto): Change declaration to match POSIX.
22820         * lib/connect.c (rpl_connect): Likewise.
22821         * lib/accept.c (rpl_accept): Likewise.
22822         * lib/bind.c (rpl_bind): Likewise.
22823         * lib/getpeername.c (rpl_getpeername): Likewise.
22824         * lib/getsockname.c (rpl_getsockname): Likewise.
22825         * lib/recv.c (rpl_recv): Likewise.
22826         * lib/send.c (rpl_send): Likewise.
22827         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22828         * lib/sendto.c (rpl_sendto): Likewise.
22829
22830 2010-03-06  Bruno Haible  <bruno@clisp.org>
22831
22832         Clarify access, euidaccess, faccessat.
22833         * doc/posix-functions/faccessat.texi: Mention security problem under
22834         "Other problems", not "Portability problems".
22835         * doc/posix-functions/access.texi: Likewise. Mention a related security
22836         problem.
22837         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22838         * lib/euidaccess.c: Add comments about platforms.
22839         * lib/unistd.in.h (access, euidaccess): Add warnings.
22840
22841 2010-03-07  Bruno Haible  <bruno@clisp.org>
22842
22843         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22844         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22845         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22846         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22847         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22848         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22849         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22850         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22851         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22853         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22854         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22855         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22856         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22857         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22858         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22859         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22860         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22861         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22862         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22863         Likewise.
22864         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22865         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22866         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22867         Likewise.
22868         * tests/test-spawn.c (main): Make it work when
22869         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22870
22871 2010-03-07  Bruno Haible  <bruno@clisp.org>
22872
22873         Fix incorrect Makefile.am generation in German locale.
22874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22875         Execute sed command with character range in C locale.
22876
22877 2010-03-06  Bruno Haible  <bruno@clisp.org>
22878
22879         Tests for module 'iconv-h'.
22880         * modules/iconv-h-tests: New file.
22881         * tests/test-iconv-h.c: New file.
22882
22883         New module 'iconv-h'.
22884         * modules/iconv-h: New file.
22885         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22886         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22887         (configure.ac): Remove gl_ICONV_H.
22888         (Makefile.am): Remove rule for iconv.h.
22889
22890 2010-03-06  Bruno Haible  <bruno@clisp.org>
22891
22892         More consistent naming of *.m4 files.
22893         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22894         * modules/wctype (Files): Update.
22895
22896         More consistent naming of *.m4 files.
22897         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22898         * modules/wchar (Files): Update.
22899
22900 2010-03-06  Jim Meyering  <meyering@redhat.com>
22901
22902         euidaccess: relax license to LGPLv2+
22903         * modules/euidaccess (License): Relax to LGPLv2+.
22904
22905 2010-03-06  Bruno Haible  <bruno@clisp.org>
22906
22907         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22908         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22909         (Makefile.am): Augment lib_SOURCES instead.
22910
22911 2010-03-04  Jim Meyering  <meyering@redhat.com>
22912
22913         utime: remove obsolete module
22914         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22915         unnecessary for years, and has been marked as obsolete for 10 months.
22916         * modules/utime: Remove file.
22917         * lib/utime.c: Remove file.
22918         * m4/utime.m4: Remove file.
22919         * m4/utimes-null.m4: Remove file.
22920         * doc/posix-functions/utime.texi (utime): Remove reference to
22921         the module.  Move the sole "fixed by gnulib" item into the
22922         "problems not fixed by Gnulib" list.
22923         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22924
22925 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22926
22927         * modules/exit (License): Relax license to LGPLv2+.
22928         (Status): Mark as obsolete.
22929         * NEWS: Mention deprecated 'exit' module.
22930         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22931         of now obsolete 'exit'.
22932
22933 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22934
22935         fts-lgpl: remove unused module
22936         * modules/fts-lgpl: Remove.
22937         * MODULES.html.sh (func_all_modules): Adjust.
22938         * check-module (find_included_lib_files): Adjust.
22939         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22940
22941 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22942
22943         copy-acl: enhance Solaris ACL error handling
22944         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22945         * lib/set-mode-acl.c (qset_acl): Likewise.
22946
22947 2010-03-02  Bruno Haible  <bruno@clisp.org>
22948
22949         spawn: Don't override the system defined values on FreeBSD 8.
22950         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22951         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22952         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22953         if HAVE_POSIX_SPAWN is 1.
22954         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22955
22956 2010-03-01  Bruno Haible  <bruno@clisp.org>
22957
22958         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22959         regarding Automake.
22960
22961 2010-02-25  Bruno Haible  <bruno@clisp.org>
22962
22963         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22964         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22965         setting, not afterwards.
22966         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22967
22968 2010-02-24  Eric Blake  <eblake@redhat.com>
22969
22970         bootstrap, git-version-gen: use timestamp
22971         * build-aux/git-version-gen (scriptversion): Force UTC.
22972         * build-aux/bootstrap (scriptversion): New variable.
22973
22974         bootstrap: allow older git
22975         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22976         older than 1.6.4.  Requested by the libvirt project.
22977
22978 2010-02-23  Eric Blake  <eblake@redhat.com>
22979
22980         warn-on-use: work with old autoconf
22981         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22982         AS_VAR semantics of autoconf 2.60.
22983         Reported by Bruno Haible.
22984
22985         bootstrap: improve some comments
22986         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22987         clarification comments.
22988
22989         gettimeofday: provide correct function
22990         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22991         when replacement is declared, otherwise provide gettimeofday.
22992         Reported by Michael Goffioul.
22993
22994 2010-02-23  Jim Meyering  <meyering@redhat.com>
22995
22996         lib-ignore: relax license to "unlimited", not LGPLv2+
22997         * modules/lib-ignore (License): Relax to "unlimited".
22998
22999 2010-02-23  Jim Meyering  <meyering@redhat.com>
23000
23001         lib-ignore: relax license to LGPLv2+
23002         * modules/lib-ignore (License): Relax to LGPLv2+.
23003
23004 2010-02-22  Eric Blake  <eblake@redhat.com>
23005
23006         lseek: avoid bash 3.2 broken pipe bug
23007         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23008         warning from bash 3.2.
23009         Reported by Ben Pfaff, with analysis from Bruno Haible.
23010
23011         bootstrap: support non-FSF copyright holder
23012         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23013         bootstrap.conf override of COPYRIGHT_HOLDER.
23014         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23015
23016         bootstrap: interoperate with gettext 0.14.1
23017         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23018
23019         bootstrap: allow for alternate submodule location
23020         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23021         hardcoding submodule location.
23022         (gnulib_mk): Allow direct use of Makefile.am.
23023
23024         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23025         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23026         rather than reconfiguring where the submodule points.
23027
23028         gettimeofday: restore support for platforms that lack function
23029         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23030         replacement if function is missing.
23031         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23032         * modules/sys_time (Makefile.am): Substitute it.
23033         * lib/sys_time.in.h (gettimeofday): Check it.
23034         Reported by Michael Goffioul.
23035
23036 2010-02-21  Bruno Haible  <bruno@clisp.org>
23037
23038         * lib/stdio.in.h (obstack_printf): Fix typo.
23039
23040 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23041
23042         vc-list-files: use bzr ls's -R option
23043         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23044         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23045
23046 2010-02-21  Jim Meyering  <meyering@redhat.com>
23047
23048         init.sh: fix EXEEXT shims to work also for names like test-prog
23049         * tests/init.sh: Re-exec a better shell, when needed.
23050         If the current shell lacks support for posix $(...), an init.sh-using
23051         test will now try to find a shell that supports that.  If EXEEXT is
23052         nonempty, we also require support for hyphen-in-alias-name and shell
23053         substitutions like ${var#glob}.  Failure to find such a shell results
23054         in a skipped test.
23055
23056 2010-02-21  Bruno Haible  <bruno@clisp.org>
23057
23058         Really work around around "broken pipe" error message from bash 3.2.
23059         * gnulib-tool (func_reset_sigpipe): Remove function.
23060         (echo): In bash 3.2, define to a function that uses printf.
23061         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23062
23063 2010-02-20  Bruno Haible  <bruno@clisp.org>
23064
23065         Restore support for automake 1.9.6 with autoconf 2.61.
23066         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23067         Reported by James Youngman <jay@gnu.org>.
23068
23069 2010-02-20  Bruno Haible  <bruno@clisp.org>
23070
23071         Improve *printf warning condition.
23072         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23073         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23074         and the function is overridden due to SIGPIPE emulation.
23075
23076 2010-02-20  Bruno Haible  <bruno@clisp.org>
23077
23078         * lib/stdio.in.h: Tweak comments.
23079
23080 2010-02-19  Bruno Haible  <bruno@clisp.org>
23081
23082         Make it easier to find modules. New gnulib-tool option '--find'.
23083         * gnulib-tool: New option --find.
23084         (func_usage): Document it.
23085         (func_sanitize_modulelist): New function, extracted from
23086         func_all_modules.
23087         (func_all_modules): Invoke it.
23088         * doc/gnulib-tool.texi (Which modules?): New node.
23089
23090 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23091
23092         * lib/sys_select.in.h: Provide select replacement even if
23093         sys/select.h exists on a system, for Interix.
23094
23095 2010-02-18  Jim Meyering  <meyering@redhat.com>
23096
23097         init.sh: don't use $(...) just yet
23098         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23099         to accommodate e.g., Solaris' /bin/sh.
23100
23101 2010-02-17  Bruno Haible  <bruno@clisp.org>
23102
23103         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23104         Reported by Ludovic Courtès <ludo@gnu.org>.
23105
23106 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23107
23108         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23109         linking with -lintl.
23110
23111 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23112
23113         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23114         if not provided by the system's netdb.h.  Reported by
23115         ludo@gnu.org (Ludovic Courtès).
23116
23117 2010-02-15  Jim Meyering  <meyering@redhat.com>
23118
23119         init.sh: improve portability and efficiency
23120         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23121         "dummy" in a for loop.
23122         Use '!', not '^' to select the complement of a character set used
23123         in a "case" statement.
23124         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23125         Suggestions from Eric Blake.
23126
23127         init.sh: automatically accommodate programs with the .exe suffix
23128         Automatically arrange for an invocation of "prog" to execute the
23129         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23130         may use the simpler "prog", yet still work when built on a system
23131         that requires specifying the added suffix.
23132         Do this by constructing a function named "prog" that invokes
23133         "prog.exe" for each .exe file in selected directories.
23134         * tests/init.sh (find_exe_basenames_): New function.
23135         (create_exe_shim_functions_): New function.
23136         (path_prepend_): Use it.
23137
23138         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23139         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23140         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23141
23142 2010-02-14  Jim Meyering  <meyering@redhat.com>
23143
23144         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23145         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23146         (sc_prohibit_hash_pjw_without_use): New rule.
23147
23148         maint.mk: allow the default upload destination dir to be overridden
23149         * top/maint.mk (upload_dest_dir_): Define with a default that
23150         preserves the status quo.
23151         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23152         Reported by Peter Simons.
23153
23154         maint.mk: prohibit inclusion of "hash.h" without_use
23155         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23156
23157 2010-02-10  Jim Meyering  <meyering@redhat.com>
23158
23159         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23160         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23161
23162 2010-02-09  Eric Blake  <ebb9@byu.net>
23163         and Bruno Haible  <bruno@clisp.org>
23164
23165         obstack-printf-posix: ensure declaration
23166         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23167         extracted from gl_FUNC_OBSTACK_PRINTF.
23168         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23169         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23170         Likewise.
23171         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23172         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23173         0.
23174
23175 2010-02-08  Bruno Haible  <bruno@clisp.org>
23176
23177         gnulib-tool: Fix typo in 2010-02-07 commit.
23178         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23179         Reported by Eric Blake.
23180
23181 2010-02-07  Bruno Haible  <bruno@clisp.org>
23182
23183         gnulib-tool: Fix up caching patches.
23184         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23185         option --no-cache. Use associative arrays when supported by the shell.
23186         (sed_comments): New variable.
23187         (modcache): Renamed from do_cache.
23188         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23189         abbreviate unnecessarily.
23190         (have_associative): New variable.
23191         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23192         way also for ksh and zsh.
23193         (func_init_sed_convert_to_cache_statements): New function, extracted
23194         from func_cache_lookup_module. Add support for associative arrays.
23195         Don't set the c_MODULE_cached variable here. Ignore all lines before
23196         the first field header. Remove only the final newline, not all trailing
23197         newlines. Support empty fields correctly. Limit the use of 'eval' to
23198         assignments.
23199         (func_get_description, func_get_status, func_get_notice,
23200         func_get_applicability, func_get_filelist, func_get_dependencies,
23201         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23202         func_get_automake_snippet, func_get_include_directive,
23203         func_get_link_directive, func_get_license, func_get_maintainer):
23204         Update documentation. List the unoptimized code first. Add support for
23205         associative arrays. Limit the use of 'eval' to assignments.
23206         (func_get_applicability): Undo stylistic pessimisations.
23207         (func_get_automake_snippet, func_get_include_directive): Reduce code
23208         duplication.
23209         (func_modules_transitive_closure, func_modules_add_dummy,
23210         func_modules_notice, func_modules_to_filelist, func_add_file,
23211         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23212         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23213         func_create_testdir, func_create_megatestdir): Update documentation.
23214
23215 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23216
23217         * gnulib-tool (func_cache_lookup_module): Store the module name
23218         belonging to the cache variable; error out if two different
23219         module names map to the same cache variable name.
23220
23221 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23222
23223         gnulib-tool: Make caching optional.
23224         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23225         Update matching short versions of --no-changelog.
23226         (func_usage): Update.
23227         (sed_extract_cache_prog): Renamed from ...
23228         (sed_extract_prog): ... this; revert to old extraction script.
23229         (func_get_description, func_get_status)
23230         (func_get_notice, func_get_applicability, func_get_filelist)
23231         (func_get_dependencies, func_get_autoconf_early_snippet)
23232         (func_get_autoconf_snippet, func_get_automake_snippet)
23233         (func_get_include_directive, func_get_link_directive)
23234         (func_get_license, func_get_maintainer): If $do_cache is false,
23235         use old, non-caching extraction scripts.
23236         Suggestion by Bruno Haible.
23237
23238 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23239
23240         gnulib-tool: cache module metainformation.
23241         * gnulib-tool (sed_extract_prog): Match newline before each
23242         header, and rewrite header to a shell variable suffix.
23243         (func_cache_var, func_cache_lookup_module): New functions,
23244         to turn a module name into a cache variable prefix, and to
23245         look up and cache module metainformation.
23246         (func_get_description, func_get_status)
23247         (func_get_notice, func_get_applicability, func_get_filelist)
23248         (func_get_dependencies, func_get_autoconf_early_snippet)
23249         (func_get_autoconf_snippet, func_get_automake_snippet)
23250         (func_get_include_directive, func_get_link_directive)
23251         (func_get_license, func_get_maintainer): Use
23252         func_cache_lookup_module.
23253
23254 2010-02-07  Bruno Haible  <bruno@clisp.org>
23255
23256         fnctl: Fix missing dependency.
23257         * modules/fcntl (Depends-on): Add getdtablesize.
23258         Reported by John W. Eaton <jwe@gnu.org>.
23259
23260 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23261
23262         Argp: fix recognition of short alias options.
23263
23264         * lib/argp-parse.c (convert_options): Fix improper use of
23265         `|' between character values.
23266         * tests/test-argp.c (group1_option): New alias option
23267         --read (-r).
23268         (group1_parser): Special handling for 'r'.
23269         (test15): New test case.
23270         (test_fun): Add test15.
23271         * tests/test-argp-2.sh: Update expected --help and --usage
23272         outputs.
23273
23274 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23275
23276         * tests/test-argp.c: Fix indentation.
23277
23278 2010-02-04  Eric Blake  <ebb9@byu.net>
23279
23280         gettimeofday: expose type of second argument
23281         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23282         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23283         * tests/test-gettimeofday.c: Use it to silence warning.
23284         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23285         the issue.
23286
23287 2010-02-03  Jim Meyering  <meyering@redhat.com>
23288
23289         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23290         * lib/regcomp.c (TYPE_SIGNED): Define.
23291         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23292
23293         regcomp.c: avoid a new -Wshadow warning
23294         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23295
23296 2010-02-01  Jim Meyering  <meyering@redhat.com>
23297
23298         removing useless parentheses in cpp #define directives
23299         For motivation, see commit c0221df4, "define STREQ(a,b)
23300         consistently, removing useless parentheses"
23301         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23302         * lib/mountlist.c (MNT_IGNORE): Likewise.
23303         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23304
23305 2010-02-01  Eric Blake  <ebb9@byu.net>
23306
23307         sys_time: use link-warning
23308         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23309         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23310         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23311         * modules/sys_time (Depends-on): Add warn-on-use.
23312         (Makefile.am): Always build replacement.
23313         (configure.ac): Update substitutions.
23314         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23315         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23316         bother with SYS_TIME_H.
23317         * modules/gettimeofday (configure.ac): Declare indicator.
23318         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23319         in use.
23320
23321         closein-tests: silence compiler warning
23322         * tests/test-closein.c (main): Ignore fread result.
23323         * modules/closein-tests (Depends-on): Add ignore-value.
23324
23325         tests: silence warning about system return
23326         * tests/test-areadlink-with-size.c (main): Ignore system result.
23327         * tests/test-areadlink.c (main): Likewise.
23328         * tests/test-areadlinkat-with-size.c (main): Likewise.
23329         * tests/test-areadlinkat.c (main): Likewise.
23330         * tests/test-canonicalize-lgpl.c (main): Likewise.
23331         * tests/test-canonicalize.c (main): Likewise.
23332         * tests/test-chown.c (main): Likewise.
23333         * tests/test-fchownat.c (main): Likewise.
23334         * tests/test-fdutimensat.c (main): Likewise.
23335         * tests/test-fstatat.c (main): Likewise.
23336         * tests/test-futimens.c (main): Likewise.
23337         * tests/test-lchown.c (main): Likewise.
23338         * tests/test-link.c (main): Likewise.
23339         * tests/test-linkat.c (main): Likewise.
23340         * tests/test-lstat.c (main): Likewise.
23341         * tests/test-mkdir.c (main): Likewise.
23342         * tests/test-mkdirat.c (main): Likewise.
23343         * tests/test-mkfifo.c (main): Likewise.
23344         * tests/test-mkfifoat.c (main): Likewise.
23345         * tests/test-mknod.c (main): Likewise.
23346         * tests/test-readlink.c (main): Likewise.
23347         * tests/test-remove.c (main): Likewise.
23348         * tests/test-rename.c (main): Likewise.
23349         * tests/test-renameat.c (main): Likewise.
23350         * tests/test-rmdir.c (main): Likewise.
23351         * tests/test-symlink.c (main): Likewise.
23352         * tests/test-symlinkat.c (main): Likewise.
23353         * tests/test-unlink.c (main): Likewise.
23354         * tests/test-unlinkat.c (main): Likewise.
23355         * tests/test-utimens.c (main): Likewise.
23356         * tests/test-utimensat.c (main): Likewise.
23357         * modules/areadlink-tests (Depends-on): Add ignore-value.
23358         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23359         * modules/areadlinkat-tests (Depends-on): Likewise.
23360         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23361         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23362         * modules/canonicalize-tests (Depends-on): Likewise.
23363         * modules/chown-tests (Depends-on): Likewise.
23364         * modules/fdutimensat-tests (Depends-on): Likewise.
23365         * modules/futimens-tests (Depends-on): Likewise.
23366         * modules/lchown-tests (Depends-on): Likewise.
23367         * modules/link-tests (Depends-on): Likewise.
23368         * modules/linkat-tests (Depends-on): Likewise.
23369         * modules/lstat-tests (Depends-on): Likewise.
23370         * modules/mkdir-tests (Depends-on): Likewise.
23371         * modules/mkfifo-tests (Depends-on): Likewise.
23372         * modules/mkfifoat-tests (Depends-on): Likewise.
23373         * modules/mknod-tests (Depends-on): Likewise.
23374         * modules/openat-tests (Depends-on): Likewise.
23375         * modules/readlink-tests (Depends-on): Likewise.
23376         * modules/remove-tests (Depends-on): Likewise.
23377         * modules/rename-tests (Depends-on): Likewise.
23378         * modules/renameat-tests (Depends-on): Likewise.
23379         * modules/rmdir-tests (Depends-on): Likewise.
23380         * modules/symlink-tests (Depends-on): Likewise.
23381         * modules/symlinkat-tests (Depends-on): Likewise.
23382         * modules/unlink-tests (Depends-on): Likewise.
23383         * modules/utimens-tests (Depends-on): Likewise.
23384         * modules/utimensat-tests (Depends-on): Likewise.
23385
23386 2010-01-31  Bruno Haible  <bruno@clisp.org>
23387
23388         Perform the same test for many <math.h> functions.
23389         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23390         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23391         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23392         of gl_MATHFUNC.
23393         * modules/acos (configure.ac): Likewise.
23394         * modules/asin (configure.ac): Likewise.
23395         * modules/atan (configure.ac): Likewise.
23396         * modules/atan2 (configure.ac): Likewise.
23397         * modules/cbrt (configure.ac): Likewise.
23398         * modules/copysign (configure.ac): Likewise.
23399         * modules/cos (configure.ac): Likewise.
23400         * modules/cosh (configure.ac): Likewise.
23401         * modules/erf (configure.ac): Likewise.
23402         * modules/erfc (configure.ac): Likewise.
23403         * modules/exp (configure.ac): Likewise.
23404         * modules/fmod (configure.ac): Likewise.
23405         * modules/hypot (configure.ac): Likewise.
23406         * modules/j0 (configure.ac): Likewise.
23407         * modules/j1 (configure.ac): Likewise.
23408         * modules/jn (configure.ac): Likewise.
23409         * modules/lgamma (configure.ac): Likewise.
23410         * modules/log (configure.ac): Likewise.
23411         * modules/log10 (configure.ac): Likewise.
23412         * modules/log1p (configure.ac): Likewise.
23413         * modules/pow (configure.ac): Likewise.
23414         * modules/remainder (configure.ac): Likewise.
23415         * modules/sin (configure.ac): Likewise.
23416         * modules/sinh (configure.ac): Likewise.
23417         * modules/tan (configure.ac): Likewise.
23418         * modules/tanh (configure.ac): Likewise.
23419         * modules/y0 (configure.ac): Likewise.
23420         * modules/y1 (configure.ac): Likewise.
23421         * modules/yn (configure.ac): Likewise.
23422         Suggested by Paolo Bonzini.
23423
23424 2010-01-31  Bruno Haible  <bruno@clisp.org>
23425
23426         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23427
23428 2010-01-31  Bruno Haible  <bruno@clisp.org>
23429
23430         Work around getdelim() bug on FreeBSD 8.0.
23431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23432         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23433         not work.
23434         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23435         is 1.
23436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23437         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23438         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23439         a non-zero size.
23440         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23441
23442 2010-01-31  Bruno Haible  <bruno@clisp.org>
23443
23444         Work around getline() bug on FreeBSD 8.0.
23445         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23446         and a non-zero size.
23447         * tests/test-getline.c (main): Likewise.
23448         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23449         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23450
23451 2010-01-28  Eric Blake  <ebb9@byu.net>
23452
23453         regex: fix build failure
23454         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23455         platforms.
23456
23457 2010-01-28  Jim Meyering  <meyering@redhat.com>
23458
23459         regex: do not ignore memory allocation failure
23460         * lib/regex_internal.c (create_cd_newstate): Detect
23461         re_node_set_init_copy failure.   Extracted from glibc commit
23462         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23463
23464         regex: sync more white-space changes from libc
23465         * lib/regex_internal.c: White-space only changes.
23466         * lib/regexec.c: Likewise.
23467
23468         regex: add many uses of __attribute_warn_unused_result__
23469         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23470         * lib/regexec.c: Likewise.
23471         Extracted from a messy glibc commit.
23472
23473         regcomp.c: spelling and merge-artifact from glibc
23474         * lib/regcomp.c: Merge remainder of glibc's
23475         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23476
23477         regcomp.c: sync white-space changes from glibc
23478         * lib/regcomp.c: Merge to accommodate white space
23479         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23480
23481         regcomp.c: do not ignore internal return values
23482         * lib/regcomp.c: Do not ignore internal return values.
23483         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23484         but without its white-space changes and spelling fixes.
23485
23486         regex_internal.h: define __attribute_warn_unused_result__
23487         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23488
23489         maint: add a syntax-check rule to check for vulnerable Makefile.in
23490         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23491
23492 2010-01-27  Jim Meyering  <meyering@redhat.com>
23493
23494         ncftpput-ftp: clean up spaces
23495         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23496         Remove trailing blanks.
23497
23498 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23499
23500         * build-aux/git-version-gen: Fix copyright statement.
23501         * build-aux/gnupload: Likewise.
23502         * tests/test-arcfour.c: Likewise.
23503         * tests/test-arctwo.c: Likewise.
23504         * tests/test-count-one-bits.c: Likewise.
23505         * tests/test-crc.c: Likewise.
23506         * tests/test-des.c: Likewise.
23507         * tests/test-gc-arcfour.c: Likewise.
23508         * tests/test-gc-arctwo.c: Likewise.
23509         * tests/test-gc-des.c: Likewise.
23510         * tests/test-gc-hmac-md5.c: Likewise.
23511         * tests/test-gc-hmac-sha1.c: Likewise.
23512         * tests/test-gc-md2.c: Likewise.
23513         * tests/test-gc-md4.c: Likewise.
23514         * tests/test-gc-md5.c: Likewise.
23515         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23516         * tests/test-gc-rijndael.c: Likewise.
23517         * tests/test-gc-sha1.c: Likewise.
23518         * tests/test-gc.c: Likewise.
23519         * tests/test-gethostname.c: Likewise.
23520         * tests/test-gettimeofday.c: Likewise.
23521         * tests/test-hash.c: Likewise.
23522         * tests/test-hmac-md5.c: Likewise.
23523         * tests/test-hmac-sha1.c: Likewise.
23524         * tests/test-md2.c: Likewise.
23525         * tests/test-md4.c: Likewise.
23526         * tests/test-md5.c: Likewise.
23527         * tests/test-memchr.c: Likewise.
23528         * tests/test-memchr2.c: Likewise.
23529         * tests/test-memcmp.c: Likewise.
23530         * tests/test-memmem.c: Likewise.
23531         * tests/test-memrchr.c: Likewise.
23532         * tests/test-rawmemchr.c: Likewise.
23533         * tests/test-read-file.c: Likewise.
23534         * tests/test-rijndael.c: Likewise.
23535         * tests/test-sockets.c: Likewise.
23536         * tests/test-strchrnul.c: Likewise.
23537         * tests/test-strstr.c: Likewise.
23538         * tests/test-strtod.c: Likewise.
23539         * build-aux/ncftpput-ftp: Likewise.
23540
23541 2010-01-26  Eric Blake  <ebb9@byu.net>
23542
23543         ignore-value: update recommended header name
23544         * modules/ignore-value (Include): Only use <> for headers that
23545         exist in glibc.
23546
23547 2010-01-26  Jim Meyering  <meyering@redhat.com>
23548
23549         test-userspec.c: avoid compiler warnings
23550         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23551         and "initialization discards qualifiers..." warnings.
23552         Put the first "uid" in its own scope, and make char* members "const".
23553
23554 2010-01-25  Bruno Haible  <bruno@clisp.org>
23555
23556         gnulib-tool: Make warning diagnostics consistent.
23557         * gnulib-tool (func_warning): New function.
23558         Use it everywhere where gnulib-tool produces output to stderr and it is
23559         not a fatal error.
23560
23561 2010-01-25  Bruno Haible  <bruno@clisp.org>
23562
23563         Fix test dependencies.
23564         * modules/xstrtol-tests (Depends-on): Add inttypes.
23565         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23566
23567 2010-01-25 Pádraig Brady <P@draigBrady.com>
23568
23569         syntax-check: detect incorrect boolean macro values in config.h
23570         * modules/maintainer-makefile (configure.ac): Parameterize the location
23571         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23572         The logic is from Eric Blake and the location indicated by Jim Meyering.
23573         Note the more natural CONFIG_HEADER name is prohibited by automake
23574         for backwards compatibility reasons.
23575         * top/maint.mk (sc_Wundef_boolean): New rule.
23576
23577 2010-01-25  Jim Meyering  <meyering@redhat.com>
23578
23579         bootstrap: detect MacOS 10.6's shasum, too
23580         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23581         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23582
23583 2010-01-23  Jim Meyering  <meyering@redhat.com>
23584
23585         xstrtoll: new module
23586         * modules/xstrtoll: New file.
23587         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23588         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23589         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23590         ./configure fails if you use this module and lack "long long".
23591         * modules/xstrtoll-tests: New module.
23592         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23593         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23594         new init.sh-based test framework.
23595
23596 2010-01-24  Bruno Haible  <bruno@clisp.org>
23597
23598         Tests for module 'yn'.
23599         * modules/yn-tests: New file.
23600         * tests/test-yn.c: New file.
23601
23602         Tests for module 'y1'.
23603         * modules/y1-tests: New file.
23604         * tests/test-y1.c: New file.
23605
23606         Tests for module 'y0'.
23607         * modules/y0-tests: New file.
23608         * tests/test-y0.c: New file.
23609
23610         Tests for module 'tanh'.
23611         * modules/tanh-tests: New file.
23612         * tests/test-tanh.c: New file.
23613
23614         Tests for module 'tan'.
23615         * modules/tan-tests: New file.
23616         * tests/test-tan.c: New file.
23617
23618         Tests for module 'sqrt'.
23619         * modules/sqrt-tests: New file.
23620         * tests/test-sqrt.c: New file.
23621
23622         Tests for module 'sinh'.
23623         * modules/sinh-tests: New file.
23624         * tests/test-sinh.c: New file.
23625
23626         Tests for module 'sin'.
23627         * modules/sin-tests: New file.
23628         * tests/test-sin.c: New file.
23629
23630         Tests for module 'rint'.
23631         * modules/rint-tests: New file.
23632         * tests/test-rint.c: New file.
23633
23634         Tests for module 'remainder'.
23635         * modules/remainder-tests: New file.
23636         * tests/test-remainder.c: New file.
23637
23638         Tests for module 'pow'.
23639         * modules/pow-tests: New file.
23640         * tests/test-pow.c: New file.
23641
23642         Tests for module 'nextafter'.
23643         * modules/nextafter-tests: New file.
23644         * tests/test-nextafter.c: New file.
23645
23646         Tests for module 'modf'.
23647         * modules/modf-tests: New file.
23648         * tests/test-modf.c: New file.
23649
23650         Tests for module 'logb'.
23651         * modules/logb-tests: New file.
23652         * tests/test-logb.c: New file.
23653
23654         Tests for module 'log1p'.
23655         * modules/log1p-tests: New file.
23656         * tests/test-log1p.c: New file.
23657
23658         Tests for module 'log10'.
23659         * modules/log10-tests: New file.
23660         * tests/test-log10.c: New file.
23661
23662         Tests for module 'log'.
23663         * modules/log-tests: New file.
23664         * tests/test-log.c: New file.
23665
23666         Tests for module 'lgamma'.
23667         * modules/lgamma-tests: New file.
23668         * tests/test-lgamma.c: New file.
23669
23670         Tests for module 'ldexp'.
23671         * modules/ldexp-tests: New file.
23672         * tests/test-ldexp.c: New file.
23673
23674         Tests for module 'jn'.
23675         * modules/jn-tests: New file.
23676         * tests/test-jn.c: New file.
23677
23678         Tests for module 'j1'.
23679         * modules/j1-tests: New file.
23680         * tests/test-j1.c: New file.
23681
23682         Tests for module 'j0'.
23683         * modules/j0-tests: New file.
23684         * tests/test-j0.c: New file.
23685
23686         Tests for module 'hypot'.
23687         * modules/hypot-tests: New file.
23688         * tests/test-hypot.c: New file.
23689
23690         Tests for module 'fmod'.
23691         * modules/fmod-tests: New file.
23692         * tests/test-fmod.c: New file.
23693
23694         Tests for module 'fabs'.
23695         * modules/fabs-tests: New file.
23696         * tests/test-fabs.c: New file.
23697
23698         Tests for module 'exp'.
23699         * modules/exp-tests: New file.
23700         * tests/test-exp.c: New file.
23701
23702         Tests for module 'erfc'.
23703         * modules/erfc-tests: New file.
23704         * tests/test-erfc.c: New file.
23705
23706         Tests for module 'erf'.
23707         * modules/erf-tests: New file.
23708         * tests/test-erf.c: New file.
23709
23710         Tests for module 'cosh'.
23711         * modules/cosh-tests: New file.
23712         * tests/test-cosh.c: New file.
23713
23714         Tests for module 'cos'.
23715         * modules/cos-tests: New file.
23716         * tests/test-cos.c: New file.
23717
23718         Tests for module 'copysign'.
23719         * modules/copysign-tests: New file.
23720         * tests/test-copysign.c: New file.
23721
23722         Tests for module 'cbrt'.
23723         * modules/cbrt-tests: New file.
23724         * tests/test-cbrt.c: New file.
23725
23726         Tests for module 'atan2'.
23727         * modules/atan2-tests: New file.
23728         * tests/test-atan2.c: New file.
23729
23730         Tests for module 'atan'.
23731         * modules/atan-tests: New file.
23732         * tests/test-atan.c: New file.
23733
23734         Tests for module 'asin'.
23735         * modules/asin-tests: New file.
23736         * tests/test-asin.c: New file.
23737
23738         Tests for module 'acos'.
23739         * modules/acos-tests: New file.
23740         * tests/test-acos.c: New file.
23741
23742 2010-01-24  Bruno Haible  <bruno@clisp.org>
23743
23744         Fix tests for common <math.h> functions.
23745         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23746         code snippet that references the function pointer, rather than merely
23747         calling the function. Substitute the FUNC_LIBM variable.
23748         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23749         * modules/acos (configure.ac): Likewise.
23750         * modules/asin (configure.ac): Likewise.
23751         * modules/atan (configure.ac): Likewise.
23752         * modules/atan2 (configure.ac): Likewise.
23753         * modules/cbrt (configure.ac): Likewise.
23754         * modules/copysign (configure.ac): Likewise.
23755         * modules/cos (configure.ac): Likewise.
23756         * modules/cosh (configure.ac): Likewise.
23757         * modules/erf (configure.ac): Likewise.
23758         * modules/erfc (configure.ac): Likewise.
23759         * modules/exp (configure.ac): Likewise.
23760         * modules/fabs (configure.ac): Likewise.
23761         * modules/fmod (configure.ac): Likewise.
23762         * modules/hypot (configure.ac): Likewise.
23763         * modules/j0 (configure.ac): Likewise.
23764         * modules/j1 (configure.ac): Likewise.
23765         * modules/jn (configure.ac): Likewise.
23766         * modules/ldexp (configure.ac): Likewise.
23767         * modules/lgamma (configure.ac): Likewise.
23768         * modules/log (configure.ac): Likewise.
23769         * modules/log10 (configure.ac): Likewise.
23770         * modules/log1p (configure.ac): Likewise.
23771         * modules/logb (configure.ac): Likewise.
23772         * modules/modf (configure.ac): Likewise.
23773         * modules/nextafter (configure.ac): Likewise.
23774         * modules/pow (configure.ac): Likewise.
23775         * modules/remainder (configure.ac): Likewise.
23776         * modules/rint (configure.ac): Likewise.
23777         * modules/sin (configure.ac): Likewise.
23778         * modules/sinh (configure.ac): Likewise.
23779         * modules/tan (configure.ac): Likewise.
23780         * modules/tanh (configure.ac): Likewise.
23781         * modules/y0 (configure.ac): Likewise.
23782         * modules/y1 (configure.ac): Likewise.
23783         * modules/yn (configure.ac): Likewise.
23784
23785 2010-01-24  Bruno Haible  <bruno@clisp.org>
23786
23787         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23788         * tests/test-acosl.c (x): New variable.
23789         (main): Store argument in x and fetch it from x.
23790         * tests/test-asinl.c (x): New variable.
23791         (main): Store argument in x and fetch it from x.
23792         * tests/test-atanl.c (x): New variable.
23793         (main): Store argument in x and fetch it from x.
23794         * tests/test-cosl.c (x): New variable.
23795         (main): Store argument in x and fetch it from x.
23796         * tests/test-expl.c (x): New variable.
23797         (main): Store argument in x and fetch it from x.
23798         * tests/test-logl.c (x): New variable.
23799         (main): Store argument in x and fetch it from x.
23800         * tests/test-sinl.c (x): New variable.
23801         (main): Store argument in x and fetch it from x.
23802         * tests/test-sqrtl.c (x): New variable.
23803         (main): Store argument in x and fetch it from x.
23804         * tests/test-tanl.c (x): New variable.
23805         (main): Store argument in x and fetch it from x.
23806
23807 2010-01-24  Bruno Haible  <bruno@clisp.org>
23808
23809         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23810         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23811         assignments to the initial TESTS_ENVIRONMENT.
23812         * doc/gnulib.texi (Unit test modules): Document it.
23813         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23814         TESTS_ENVIRONMENT.
23815         * modules/btowc-tests (Makefile.am): Likewise.
23816         * modules/c-stack-tests (Makefile.am): Likewise.
23817         * modules/c-strcase-tests (Makefile.am): Likewise.
23818         * modules/copy-file-tests (Makefile.am): Likewise.
23819         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23820         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23821         * modules/mbrtowc-tests (Makefile.am): Likewise.
23822         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23823         * modules/mbscasestr-tests (Makefile.am): Likewise.
23824         * modules/mbschr-tests (Makefile.am): Likewise.
23825         * modules/mbscspn-tests (Makefile.am): Likewise.
23826         * modules/mbsinit-tests (Makefile.am): Likewise.
23827         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23828         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23829         * modules/mbspbrk-tests (Makefile.am): Likewise.
23830         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23831         * modules/mbsrchr-tests (Makefile.am): Likewise.
23832         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23833         * modules/mbsspn-tests (Makefile.am): Likewise.
23834         * modules/mbsstr-tests (Makefile.am): Likewise.
23835         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23836         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23837         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23838         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23839         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23840         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23841         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23842         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23843         * modules/wcrtomb-tests (Makefile.am): Likewise.
23844         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23845         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23846         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23847         assignments from TESTS_ENVIRONMENT.
23848         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23849         augmentation.
23850         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23851         * modules/atexit-tests (Makefile.am): Likewise.
23852         * modules/binary-io-tests (Makefile.am): Likewise.
23853         * modules/closein-tests (Makefile.am): Likewise.
23854         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23855         * modules/exclude-tests (Makefile.am): Likewise.
23856         * modules/fflush-tests (Makefile.am): Likewise.
23857         * modules/fpending-tests (Makefile.am): Likewise.
23858         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23859         * modules/freadahead-tests (Makefile.am): Likewise.
23860         * modules/freadptr-tests (Makefile.am): Likewise.
23861         * modules/freadseek-tests (Makefile.am): Likewise.
23862         * modules/fseek-tests (Makefile.am): Likewise.
23863         * modules/fseeko-tests (Makefile.am): Likewise.
23864         * modules/ftell-tests (Makefile.am): Likewise.
23865         * modules/ftello-tests (Makefile.am): Likewise.
23866         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23867         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23868         * modules/lseek-tests (Makefile.am): Likewise.
23869         * modules/parse-duration-tests (Makefile.am): Likewise.
23870         * modules/perror-tests (Makefile.am): Likewise.
23871         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23872         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23873         * modules/pipe-tests (Makefile.am): Likewise.
23874         * modules/pread-tests (Makefile.am): Likewise.
23875         * modules/printf-posix-tests (Makefile.am): Likewise.
23876         * modules/select-tests (Makefile.am): Likewise.
23877         * modules/sigpipe-tests (Makefile.am): Likewise.
23878         * modules/tsearch-tests (Makefile.am): Likewise.
23879         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23880         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23881         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23882         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23883         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23884         * modules/version-etc-tests (Makefile.am): Likewise.
23885         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23886         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23887         * modules/xalloc-die-tests (Makefile.am): Likewise.
23888         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23889         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23890         * modules/xstrtol-tests (Makefile.am): Likewise.
23891         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23892         * modules/yesno-tests (Makefile.am): Likewise.
23893         Suggested by Jim Meyering.
23894
23895 2010-01-24  Bruno Haible  <bruno@clisp.org>
23896
23897         More documentation.
23898         * doc/gnulib.texi (Writing modules): New chapter.
23899         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23900         the new chapter.
23901
23902 2010-01-24  Jim Meyering  <meyering@redhat.com>
23903
23904         maint.mk: do not prepend "./" after filtering
23905         * top/maint.mk (_prepend_srcdir_prefix): New variable
23906         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23907         "./" when $(srcdir) is ".".
23908
23909         define STREQ(a,b) consistently, removing useless parentheses
23910         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23911         since the only risk is that "a" or "b" contains an unparenthesized
23912         comma, but if either did that, STREQ would have 3 or more arguments.
23913         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23914         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23915         * lib/hash-triple.c (STREQ): Likewise.
23916         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23917         * lib/getugroups.c (STREQ): Likewise.
23918
23919 2010-01-23  Jim Meyering  <meyering@redhat.com>
23920
23921         maint.mk: fix syntax-check in a non-srcdir build directory
23922         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23923         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23924
23925 2010-01-22  Jim Meyering  <meyering@redhat.com>
23926
23927         userspec: add unit tests
23928         * tests/test-userspec.c: New file.
23929         * modules/userspec-tests: Likewise.
23930
23931 2010-01-21  Jim Meyering  <meyering@redhat.com>
23932
23933         maint.mk: handle source file names containing "." robustly
23934         * top/maint.mk (_dot_escaped_srcdir): Define.
23935         (VC_LIST): Use it in LHS of sed substitution.
23936
23937 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23938
23939         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23940         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23941         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23942         from a non-srcdir build.
23943
23944 2010-01-20  Eric Blake  <ebb9@byu.net>
23945
23946         warn-on-use: use instead of link-warning
23947         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23948         * modules/unistd (Depends-on, Makefile.am): Likewise.
23949         * modules/arpa_inet (Depends-on): Replace link-warning with
23950         warn-on-use.
23951         (Makefile.am): Update rules accordingly.
23952         * modules/ctype (Depends-on, Makefile.am): Likewise.
23953         * modules/dirent (Depends-on, Makefile.am): Likewise.
23954         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23955         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23956         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23957         * modules/locale (Depends-on, Makefile.am): Likewise.
23958         * modules/math (Depends-on, Makefile.am): Likewise.
23959         * modules/search (Depends-on, Makefile.am): Likewise.
23960         * modules/signal (Depends-on, Makefile.am): Likewise.
23961         * modules/spawn (Depends-on, Makefile.am): Likewise.
23962         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23963         * modules/string (Depends-on, Makefile.am): Likewise.
23964         * modules/strings (Depends-on, Makefile.am): Likewise.
23965         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23966         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23967         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23968         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23969         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23970         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23971         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23972         * modules/wchar (Depends-on, Makefile.am): Likewise.
23973         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23974         should be poisoned.
23975         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23976         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23977         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23978         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23979         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23980         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23981         * m4/math_h.m4 (gl_MATH_H): Likewise.
23982         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23983         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23984         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23985         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23986         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23987         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23988         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23989         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23991         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23992         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23994         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23995         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23996         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23997         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23998         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23999         GL_LINK_WARNING.
24000         * lib/ctype.in.h: Likewise.
24001         * lib/dirent.in.h: Likewise.
24002         * lib/fcntl.in.h: Likewise.
24003         * lib/inttypes.in.h: Likewise.
24004         * lib/langinfo.in.h: Likewise.
24005         * lib/locale.in.h: Likewise.
24006         * lib/math.in.h: Likewise.
24007         * lib/search.in.h: Likewise.
24008         * lib/signal.in.h: Likewise.
24009         * lib/spawn.in.h: Likewise.
24010         * lib/stdio.in.h: Likewise.
24011         * lib/stdlib.in.h: Likewise.
24012         * lib/string.in.h: Likewise.
24013         * lib/strings.in.h: Likewise.
24014         * lib/sys_file.in.h: Likewise.
24015         * lib/sys_ioctl.in.h: Likewise.
24016         * lib/sys_select.in.h: Likewise.
24017         * lib/sys_socket.in.h: Likewise.
24018         * lib/sys_stat.in.h: Likewise.
24019         * lib/sys_times.in.h: Likewise.
24020         * lib/sys_utsname.in.h: Likewise.
24021         * lib/unistd.in.h: Likewise.
24022         * lib/wchar.in.h: Likewise.
24023
24024 2010-01-20  Bruno Haible  <bruno@clisp.org>
24025
24026         Avoid duplicate -lm.
24027         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24028         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24029         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24031         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24032         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24033         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24034         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24035         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24036         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24037         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24038         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24039         Reported by Paolo Bonzini.
24040
24041 2010-01-19  Bruno Haible  <bruno@clisp.org>
24042
24043         langinfo, nl_langinfo: Relicense under LGPLv2+.
24044         * modules/langinfo (License): Change to LGPLv2+.
24045         * modules/nl_langinfo (License): Likewise.
24046         Patch by David Lutterkort <lutter@redhat.com>.
24047
24048 2010-01-19  Bruno Haible  <bruno@clisp.org>
24049
24050         Avoid compilation error with cc on OSF/1 5.1.
24051         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24052         statement, not before.
24053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24054
24055 2010-01-18  Bruno Haible  <bruno@clisp.org>
24056
24057         Avoid a link error due to the __printf__ symbol.
24058         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24059         and 2.6.x.
24060         (__format__, __printf__): Remove definitions.
24061         * lib/argp-fmtstream.h: Likewise.
24062         * lib/argp.h: Likewise.
24063         * lib/error.h: Likewise.
24064         * lib/vasnprintf.h: Likewise.
24065         * lib/xprintf.h: Likewise.
24066         * lib/xvasprintf.h: Likewise.
24067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24068
24069 2010-01-18  Bruno Haible  <bruno@clisp.org>
24070
24071         Tests for module 'tanl'.
24072         * modules/tanl-tests: New file.
24073         * tests/test-tanl.c: New file.
24074
24075         Tests for module 'sqrtl'.
24076         * modules/sqrtl-tests: New file.
24077         * tests/test-sqrtl.c: New file.
24078
24079         Tests for module 'sinl'.
24080         * modules/sinl-tests: New file.
24081         * tests/test-sinl.c: New file.
24082
24083         Tests for module 'logl'.
24084         * modules/logl-tests: New file.
24085         * tests/test-logl.c: New file.
24086
24087         Tests for module 'expl'.
24088         * modules/expl-tests: New file.
24089         * tests/test-expl.c: New file.
24090
24091         Tests for module 'cosl'.
24092         * modules/cosl-tests: New file.
24093         * tests/test-cosl.c: New file.
24094
24095         Tests for module 'atanl'.
24096         * modules/atanl-tests: New file.
24097         * tests/test-atanl.c: New file.
24098
24099         Tests for module 'asinl'.
24100         * modules/asinl-tests: New file.
24101         * tests/test-asinl.c: New file.
24102
24103         Tests for module 'acosl'.
24104         * modules/acosl-tests: New file.
24105         * tests/test-acosl.c: New file.
24106
24107         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24108         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24109         tanl): Use the standard gnulib idiom.
24110         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24111         * lib/sinl.c: Likewise.
24112         * lib/tanl.c: Don't include trigl.c.
24113         (kernel_tanl): Make static.
24114         * lib/sincosl.c: Include trigl.h first.
24115         * lib/trigl.c: Likewise.
24116         * m4/acosl.m4: New file.
24117         * m4/asinl.m4: New file.
24118         * m4/atanl.m4: New file.
24119         * m4/cosl.m4: New file.
24120         * m4/expl.m4: New file.
24121         * m4/logl.m4: New file.
24122         * m4/sinl.m4: New file.
24123         * m4/sqrtl.m4: New file.
24124         * m4/tanl.m4: New file.
24125         * m4/mathl.m4: Remove file.
24126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24127         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24128         Don't initialize GNULIB_MATHL.
24129         * modules/acosl: New file.
24130         * modules/asinl: New file.
24131         * modules/atanl: New file.
24132         * modules/cosl: New file.
24133         * modules/expl: New file.
24134         * modules/logl: New file.
24135         * modules/sinl: New file.
24136         * modules/sqrtl: New file.
24137         * modules/tanl: New file.
24138         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24139         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24140         substitute GNULIB_MATHL.
24141         * modules/mathl: Rewritten.
24142         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24143         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24144         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24145         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24146         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24147         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24148         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24149         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24150         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24151
24152 2010-01-18  Bruno Haible  <bruno@clisp.org>
24153
24154         sqrt: Make gl_FUNC_SQRT requirable.
24155         * m4/sqrt.m4: New file.
24156         * modules/sqrt (Files): Add it.
24157         (configure.ac): Invoke gl_FUNC_SQRT.
24158
24159 2010-01-18  Bruno Haible  <bruno@clisp.org>
24160
24161         New modules for common <math.h> functions.
24162         * m4/mathfunc.m4: New file.
24163         * modules/acos: New file.
24164         * modules/asin: New file.
24165         * modules/atan: New file.
24166         * modules/atan2: New file.
24167         * modules/cbrt: New file.
24168         * modules/copysign: New file.
24169         * modules/cos: New file.
24170         * modules/cosh: New file.
24171         * modules/erf: New file.
24172         * modules/erfc: New file.
24173         * modules/exp: New file.
24174         * modules/fabs: New file.
24175         * modules/fmod: New file.
24176         * modules/hypot: New file.
24177         * modules/j0: New file.
24178         * modules/j1: New file.
24179         * modules/jn: New file.
24180         * modules/ldexp: New file.
24181         * modules/lgamma: New file.
24182         * modules/log: New file.
24183         * modules/log10: New file.
24184         * modules/log1p: New file.
24185         * modules/logb: New file.
24186         * modules/modf: New file.
24187         * modules/nextafter: New file.
24188         * modules/pow: New file.
24189         * modules/remainder: New file.
24190         * modules/rint: New file.
24191         * modules/sin: New file.
24192         * modules/sinh: New file.
24193         * modules/sqrt: New file.
24194         * modules/tan: New file.
24195         * modules/tanh: New file.
24196         * modules/y0: New file.
24197         * modules/y1: New file.
24198         * modules/yn: New file.
24199         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24200         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24201         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24202         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24203         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24204         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24205         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24206         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24207         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24208         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24209         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24210         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24211         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24212         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24213         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24214         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24215         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24216         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24217         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24218         * doc/posix-functions/log.texi: Mention the 'log' module.
24219         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24220         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24221         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24222         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24223         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24224         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24225         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24226         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24227         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24228         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24229         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24230         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24231         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24232         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24233         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24234         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24235
24236 2010-01-18  Jim Meyering  <meyering@redhat.com>
24237
24238         ignore-value: relax license to LGPLv2+
24239         * modules/ignore-value (License): Relax to LGPLv2+.
24240
24241         getdate: don't leak when TZ contains two or more '"'s
24242         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24243         double quote in TZ after the first one.
24244
24245         readtokens: do not leak internal token_lengths buffer
24246         * lib/readtokens.c (readtokens): Free the local, lengths,
24247         when the supplied "token_lengths" parameter is NULL.
24248
24249 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24250
24251         Fix a couple of missing LIBTHREAD link failures on AIX.
24252         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24253         $(LIBTHREAD).
24254         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24255
24256         Link test-poll against INET_PTON_LIB.
24257         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24258         for inet_pton on Solaris 10.
24259
24260 2010-01-17  Bruno Haible  <bruno@clisp.org>
24261
24262         unistdio/*-sprintf: Fix typo in module description.
24263         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24264         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24265         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24266         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24267         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24268         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24269         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24271
24272 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24273
24274         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24275         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24276         variables in shell case patterns, for AIX and HP-UX ksh.
24277
24278         Split large sed scripts, for HP-UX sed.
24279         * modules/stdio: Split sed scripts around 50 sed commands,
24280         to avoid HP-UX limit of 99 commands, in the near future.
24281         * modules/string: Likewise.
24282         * modules/unistd: Likewise.
24283
24284         gnulib-tool: avoid writing in the current directory.
24285         * gnulib-tool (func_emit_lib_Makefile_am)
24286         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24287         not in the current directory, so concurrent gnulib-tool
24288         instances do not interfere.
24289
24290 2010-01-16  Jim Meyering  <meyering@redhat.com>
24291
24292         doc: update users.txt
24293         * users.txt: Add grep.
24294         (diffutils, gzip): Update URLs.
24295
24296 2010-01-12  Bruno Haible  <bruno@clisp.org>
24297
24298         posix_spawn: Avoid test failure on Cygwin.
24299         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24300         characters.
24301         Reported by Simon Josefsson.
24302
24303 2010-01-12  Bruno Haible  <bruno@clisp.org>
24304
24305         * tests/test-cond.c (main): When skipping the test, show the reason.
24306
24307 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24308
24309         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24310
24311 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24312
24313         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24314         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24315
24316 2010-01-12  Eric Blake  <ebb9@byu.net>
24317
24318         build: guarantee AS_VAR_IF
24319         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24320         (gl_AS_VAR_IF): Move...
24321         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24322         Reported by Simon Josefsson.
24323
24324 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24325
24326         * lib/stdio.in.h: Fix typo.
24327
24328 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24329
24330         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24331         libgpg-error.
24332
24333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24334
24335         * tests/test-xalloc-die.sh: Use $EXEEXT.
24336
24337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24338             Bruno Haible  <bruno@clisp.org>
24339
24340         getlogin, getlogin_r: Avoid test failure.
24341         * tests/test-getlogin.c: Include <stdio.h>.
24342         (main): Skip the test when the function fails because stdin is not a
24343         tty.
24344         * tests/test-getlogin_r.c: Include <stdio.h>.
24345         (main): Skip the test when the function fails because stdin is not a
24346         tty.
24347
24348 2010-01-11  Eric Blake  <ebb9@byu.net>
24349
24350         tests: avoid more large file warnings
24351         * tests/test-fflush.c: Avoid warning about ftell use.
24352         * tests/test-fseek.c: Avoid warning about fseek use.
24353
24354 2010-01-10  Bruno Haible  <bruno@clisp.org>
24355
24356         nproc: Work better on Linux when /proc and /sys are not mounted.
24357         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24358         as lower bound when, on glibc/Linux systems,
24359         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24360         Suggested by Pádraig Brady <P@draigbrady.com>.
24361         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24362
24363         nproc: Refactor.
24364         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24365         extracted from num_processors.
24366         (num_processors): Call it.
24367
24368 2010-01-11  Jim Meyering  <meyering@redhat.com>
24369
24370         utimecmp: avoid new warning from upcoming gcc-4.5.0
24371         * lib/utimecmp.c (BILLION): Define using #define rather than an
24372         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24373
24374 2010-01-11  Eric Blake  <ebb9@byu.net>
24375
24376         math: add portability warnings for classification macros
24377         * modules/math (Depends-on): Add warn-on-use.
24378         (Makefile.am): Provide new substitutions.
24379         * m4/math_h.m4 (gl_MATH_H): Require inline.
24380         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24381         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24382         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24383         implement warnings.
24384
24385         unistd: warn on use of environ without module
24386         * modules/unistd (Depends-on): Add warn-on-use.
24387         (Makefile.am): Provide new substitutions.
24388         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24389         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24390
24391         stdio: warn on suspicious uses
24392         * modules/stdio (Depends-on): Add warn-on-use.
24393         (Makefile.am): Provide new substitutions.
24394         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24395         fseeko.
24396         * lib/stdio.in.h (gets): Always warn on use.
24397         (fseek, ftell): Adjust when warnings are issued, and honor
24398         _GL_NO_LARGE_FILES as a way to silence the warning.
24399         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24400         any warning about large file offsets.
24401         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24402         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24403         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24404         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24405         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24406         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24407         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24408         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24409
24410         warn-on-use: new module
24411         * modules/warn-on-use: New file.
24412         * build-aux/warn-on-use.h: Likewise.
24413         * m4/warn-on-use.m4: Likewise.
24414         * MODULES.html.sh (Support for building): Mention it.
24415
24416 2010-01-10  Bruno Haible  <bruno@clisp.org>
24417
24418         Tests for module 'unistr/u32-strdup'.
24419         * modules/unistr/u32-strdup-tests: New file.
24420         * tests/unistr/test-u32-strdup.c: New file.
24421
24422         Tests for module 'unistr/u16-strdup'.
24423         * modules/unistr/u16-strdup-tests: New file.
24424         * tests/unistr/test-u16-strdup.c: New file.
24425
24426         Tests for module 'unistr/u8-strdup'.
24427         * modules/unistr/u8-strdup-tests: New file.
24428         * tests/unistr/test-u8-strdup.c: New file.
24429         * tests/unistr/test-strdup.h: New file.
24430
24431         Tests for module 'unistr/u32-strncmp'.
24432         * modules/unistr/u32-strncmp-tests: New file.
24433         * tests/unistr/test-u32-strncmp.c: New file.
24434
24435         Tests for module 'unistr/u16-strncmp'.
24436         * modules/unistr/u16-strncmp-tests: New file.
24437         * tests/unistr/test-u16-strncmp.c: New file.
24438
24439         Tests for module 'unistr/u8-strncmp'.
24440         * modules/unistr/u8-strncmp-tests: New file.
24441         * tests/unistr/test-u8-strncmp.c: New file.
24442         * tests/unistr/test-strncmp.h: New file.
24443
24444         Tests for module 'unistr/u32-strcoll'.
24445         * modules/unistr/u32-strcoll-tests: New file.
24446         * tests/unistr/test-u32-strcoll.c: New file.
24447
24448         Tests for module 'unistr/u16-strcoll'.
24449         * modules/unistr/u16-strcoll-tests: New file.
24450         * tests/unistr/test-u16-strcoll.c: New file.
24451
24452         Tests for module 'unistr/u8-strcoll'.
24453         * modules/unistr/u8-strcoll-tests: New file.
24454         * tests/unistr/test-u8-strcoll.c: New file.
24455
24456         Tests for module 'unistr/u32-strcmp'.
24457         * modules/unistr/u32-strcmp-tests: New file.
24458         * tests/unistr/test-u32-strcmp.c: New file.
24459         * tests/unistr/test-u32-strcmp.h: New file.
24460
24461         Tests for module 'unistr/u16-strcmp'.
24462         * modules/unistr/u16-strcmp-tests: New file.
24463         * tests/unistr/test-u16-strcmp.c: New file.
24464         * tests/unistr/test-u16-strcmp.h: New file.
24465
24466         Tests for module 'unistr/u8-strcmp'.
24467         * modules/unistr/u8-strcmp-tests: New file.
24468         * tests/unistr/test-u8-strcmp.c: New file.
24469         * tests/unistr/test-u8-strcmp.h: New file.
24470         * tests/unistr/test-strcmp.h: New file.
24471
24472         Tests for module 'unistr/u32-strncat'.
24473         * modules/unistr/u32-strncat-tests: New file.
24474         * tests/unistr/test-u32-strncat.c: New file.
24475
24476         Tests for module 'unistr/u16-strncat'.
24477         * modules/unistr/u16-strncat-tests: New file.
24478         * tests/unistr/test-u16-strncat.c: New file.
24479
24480         Tests for module 'unistr/u8-strncat'.
24481         * modules/unistr/u8-strncat-tests: New file.
24482         * tests/unistr/test-u8-strncat.c: New file.
24483         * tests/unistr/test-strncat.h: New file.
24484
24485         Tests for module 'unistr/u32-strcat'.
24486         * modules/unistr/u32-strcat-tests: New file.
24487         * tests/unistr/test-u32-strcat.c: New file.
24488
24489         Tests for module 'unistr/u16-strcat'.
24490         * modules/unistr/u16-strcat-tests: New file.
24491         * tests/unistr/test-u16-strcat.c: New file.
24492
24493         Tests for module 'unistr/u8-strcat'.
24494         * modules/unistr/u8-strcat-tests: New file.
24495         * tests/unistr/test-u8-strcat.c: New file.
24496         * tests/unistr/test-strcat.h: New file.
24497
24498         Tests for module 'unistr/u32-stpncpy'.
24499         * modules/unistr/u32-stpncpy-tests: New file.
24500         * tests/unistr/test-u32-stpncpy.c: New file.
24501
24502         Tests for module 'unistr/u16-stpncpy'.
24503         * modules/unistr/u16-stpncpy-tests: New file.
24504         * tests/unistr/test-u16-stpncpy.c: New file.
24505
24506         Tests for module 'unistr/u8-stpncpy'.
24507         * modules/unistr/u8-stpncpy-tests: New file.
24508         * tests/unistr/test-u8-stpncpy.c: New file.
24509         * tests/unistr/test-stpncpy.h: New file.
24510
24511         Tests for module 'unistr/u32-strncpy'.
24512         * modules/unistr/u32-strncpy-tests: New file.
24513         * tests/unistr/test-u32-strncpy.c: New file.
24514
24515         Tests for module 'unistr/u16-strncpy'.
24516         * modules/unistr/u16-strncpy-tests: New file.
24517         * tests/unistr/test-u16-strncpy.c: New file.
24518
24519         Tests for module 'unistr/u8-strncpy'.
24520         * modules/unistr/u8-strncpy-tests: New file.
24521         * tests/unistr/test-u8-strncpy.c: New file.
24522         * tests/unistr/test-strncpy.h: New file.
24523
24524         Tests for module 'unistr/u32-stpcpy'.
24525         * modules/unistr/u32-stpcpy-tests: New file.
24526         * tests/unistr/test-u32-stpcpy.c: New file.
24527
24528         Tests for module 'unistr/u16-stpcpy'.
24529         * modules/unistr/u16-stpcpy-tests: New file.
24530         * tests/unistr/test-u16-stpcpy.c: New file.
24531
24532         Tests for module 'unistr/u8-stpcpy'.
24533         * modules/unistr/u8-stpcpy-tests: New file.
24534         * tests/unistr/test-u8-stpcpy.c: New file.
24535         * tests/unistr/test-stpcpy.h: New file.
24536
24537         Tests for module 'unistr/u32-strcpy'.
24538         * modules/unistr/u32-strcpy-tests: New file.
24539         * tests/unistr/test-u32-strcpy.c: New file.
24540
24541         Tests for module 'unistr/u16-strcpy'.
24542         * modules/unistr/u16-strcpy-tests: New file.
24543         * tests/unistr/test-u16-strcpy.c: New file.
24544
24545         Tests for module 'unistr/u8-strcpy'.
24546         * modules/unistr/u8-strcpy-tests: New file.
24547         * tests/unistr/test-u8-strcpy.c: New file.
24548         * tests/unistr/test-strcpy.h: New file.
24549
24550         Tests for module 'unistr/u32-strnlen'.
24551         * modules/unistr/u32-strnlen-tests: New file.
24552         * tests/unistr/test-u32-strnlen.c: New file.
24553
24554         Tests for module 'unistr/u16-strnlen'.
24555         * modules/unistr/u16-strnlen-tests: New file.
24556         * tests/unistr/test-u16-strnlen.c: New file.
24557
24558         Tests for module 'unistr/u8-strnlen'.
24559         * modules/unistr/u8-strnlen-tests: New file.
24560         * tests/unistr/test-u8-strnlen.c: New file.
24561         * tests/unistr/test-strnlen.h: New file.
24562
24563         Tests for module 'unistr/u32-strlen'.
24564         * modules/unistr/u32-strlen-tests: New file.
24565         * tests/unistr/test-u32-strlen.c: New file.
24566
24567         Tests for module 'unistr/u16-strlen'.
24568         * modules/unistr/u16-strlen-tests: New file.
24569         * tests/unistr/test-u16-strlen.c: New file.
24570
24571         Tests for module 'unistr/u8-strlen'.
24572         * modules/unistr/u8-strlen-tests: New file.
24573         * tests/unistr/test-u8-strlen.c: New file.
24574
24575         Tests for module 'unistr/u32-prev'.
24576         * modules/unistr/u32-prev-tests: New file.
24577         * tests/unistr/test-u32-prev.c: New file.
24578
24579         Tests for module 'unistr/u16-prev'.
24580         * modules/unistr/u16-prev-tests: New file.
24581         * tests/unistr/test-u16-prev.c: New file.
24582
24583         Tests for module 'unistr/u8-prev'.
24584         * modules/unistr/u8-prev-tests: New file.
24585         * tests/unistr/test-u8-prev.c: New file.
24586
24587         Tests for module 'unistr/u32-next'.
24588         * modules/unistr/u32-next-tests: New file.
24589         * tests/unistr/test-u32-next.c: New file.
24590
24591         Tests for module 'unistr/u16-next'.
24592         * modules/unistr/u16-next-tests: New file.
24593         * tests/unistr/test-u16-next.c: New file.
24594
24595         Tests for module 'unistr/u8-next'.
24596         * modules/unistr/u8-next-tests: New file.
24597         * tests/unistr/test-u8-next.c: New file.
24598
24599         Tests for module 'unistr/u32-strmbtouc'.
24600         * modules/unistr/u32-strmbtouc-tests: New file.
24601         * tests/unistr/test-u32-strmbtouc.c: New file.
24602
24603         Tests for module 'unistr/u16-strmbtouc'.
24604         * modules/unistr/u16-strmbtouc-tests: New file.
24605         * tests/unistr/test-u16-strmbtouc.c: New file.
24606
24607         Tests for module 'unistr/u8-strmbtouc'.
24608         * modules/unistr/u8-strmbtouc-tests: New file.
24609         * tests/unistr/test-u8-strmbtouc.c: New file.
24610
24611         Tests for module 'unistr/u32-strmblen'.
24612         * modules/unistr/u32-strmblen-tests: New file.
24613         * tests/unistr/test-u32-strmblen.c: New file.
24614
24615         Tests for module 'unistr/u16-strmblen'.
24616         * modules/unistr/u16-strmblen-tests: New file.
24617         * tests/unistr/test-u16-strmblen.c: New file.
24618
24619         Tests for module 'unistr/u8-strmblen'.
24620         * modules/unistr/u8-strmblen-tests: New file.
24621         * tests/unistr/test-u8-strmblen.c: New file.
24622
24623         Tests for module 'unistr/u32-cpy-alloc'.
24624         * modules/unistr/u32-cpy-alloc-tests: New file.
24625         * tests/unistr/test-u32-cpy-alloc.c: New file.
24626
24627         Tests for module 'unistr/u16-cpy-alloc'.
24628         * modules/unistr/u16-cpy-alloc-tests: New file.
24629         * tests/unistr/test-u16-cpy-alloc.c: New file.
24630
24631         Tests for module 'unistr/u8-cpy-alloc'.
24632         * modules/unistr/u8-cpy-alloc-tests: New file.
24633         * tests/unistr/test-u8-cpy-alloc.c: New file.
24634         * tests/unistr/test-cpy-alloc.h: New file.
24635
24636         Tests for module 'unistr/u32-mbsnlen'.
24637         * modules/unistr/u32-mbsnlen-tests: New file.
24638         * tests/unistr/test-u32-mbsnlen.c: New file.
24639
24640         Tests for module 'unistr/u16-mbsnlen'.
24641         * modules/unistr/u16-mbsnlen-tests: New file.
24642         * tests/unistr/test-u16-mbsnlen.c: New file.
24643
24644         Tests for module 'unistr/u8-mbsnlen'.
24645         * modules/unistr/u8-mbsnlen-tests: New file.
24646         * tests/unistr/test-u8-mbsnlen.c: New file.
24647
24648         Tests for module 'unistr/u32-chr'.
24649         * modules/unistr/u32-chr-tests: New file.
24650         * tests/unistr/test-u32-chr.c: New file.
24651
24652         Tests for module 'unistr/u16-chr'.
24653         * modules/unistr/u16-chr-tests: New file.
24654         * tests/unistr/test-u16-chr.c: New file.
24655
24656         Tests for module 'unistr/u8-chr'.
24657         * modules/unistr/u8-chr-tests: New file.
24658         * tests/unistr/test-u8-chr.c: New file.
24659         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24660
24661         Tests for module 'unistr/u32-cmp2'.
24662         * modules/unistr/u32-cmp2-tests: New file.
24663         * tests/unistr/test-u32-cmp2.c: New file.
24664
24665         Tests for module 'unistr/u16-cmp2'.
24666         * modules/unistr/u16-cmp2-tests: New file.
24667         * tests/unistr/test-u16-cmp2.c: New file.
24668
24669         Tests for module 'unistr/u8-cmp2'.
24670         * modules/unistr/u8-cmp2-tests: New file.
24671         * tests/unistr/test-u8-cmp2.c: New file.
24672         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24673
24674         Tests for module 'unistr/u32-cmp'.
24675         * modules/unistr/u32-cmp-tests: New file.
24676         * tests/unistr/test-u32-cmp.c: New file.
24677
24678         Tests for module 'unistr/u16-cmp'.
24679         * modules/unistr/u16-cmp-tests: New file.
24680         * tests/unistr/test-u16-cmp.c: New file.
24681
24682         Tests for module 'unistr/u8-cmp'.
24683         * modules/unistr/u8-cmp-tests: New file.
24684         * tests/unistr/test-u8-cmp.c: New file.
24685         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24686
24687         Tests for module 'unistr/u32-set'.
24688         * modules/unistr/u32-set-tests: New file.
24689         * tests/unistr/test-u32-set.c: New file.
24690
24691         Tests for module 'unistr/u16-set'.
24692         * modules/unistr/u16-set-tests: New file.
24693         * tests/unistr/test-u16-set.c: New file.
24694
24695         Tests for module 'unistr/u8-set'.
24696         * modules/unistr/u8-set-tests: New file.
24697         * tests/unistr/test-u8-set.c: New file.
24698         * tests/unistr/test-set.h: New file.
24699
24700         Tests for module 'unistr/u32-move'.
24701         * modules/unistr/u32-move-tests: New file.
24702         * tests/unistr/test-u32-move.c: New file.
24703
24704         Tests for module 'unistr/u16-move'.
24705         * modules/unistr/u16-move-tests: New file.
24706         * tests/unistr/test-u16-move.c: New file.
24707
24708         Tests for module 'unistr/u8-move'.
24709         * modules/unistr/u8-move-tests: New file.
24710         * tests/unistr/test-u8-move.c: New file.
24711         * tests/unistr/test-move.h: New file.
24712
24713         Tests for module 'unistr/u32-cpy'.
24714         * modules/unistr/u32-cpy-tests: New file.
24715         * tests/unistr/test-u32-cpy.c: New file.
24716
24717         Tests for module 'unistr/u16-cpy'.
24718         * modules/unistr/u16-cpy-tests: New file.
24719         * tests/unistr/test-u16-cpy.c: New file.
24720
24721         Tests for module 'unistr/u8-cpy'.
24722         * modules/unistr/u8-cpy-tests: New file.
24723         * tests/unistr/test-u8-cpy.c: New file.
24724         * tests/unistr/test-cpy.h: New file.
24725
24726 2010-01-09  Bruno Haible  <bruno@clisp.org>
24727
24728         Tests for module 'unistr/u32-uctomb'.
24729         * modules/unistr/u32-uctomb-tests: New file.
24730         * tests/unistr/test-u32-uctomb.c: New file.
24731
24732         Tests for module 'unistr/u16-uctomb'.
24733         * modules/unistr/u16-uctomb-tests: New file.
24734         * tests/unistr/test-u16-uctomb.c: New file.
24735
24736         Tests for module 'unistr/u8-uctomb'.
24737         * modules/unistr/u8-uctomb-tests: New file.
24738         * tests/unistr/test-u8-uctomb.c: New file.
24739
24740         Tests for module 'unistr/u32-mbtoucr'.
24741         * modules/unistr/u32-mbtoucr-tests: New file.
24742         * tests/unistr/test-u32-mbtoucr.c: New file.
24743
24744         Tests for module 'unistr/u16-mbtoucr'.
24745         * modules/unistr/u16-mbtoucr-tests: New file.
24746         * tests/unistr/test-u16-mbtoucr.c: New file.
24747
24748         Tests for module 'unistr/u8-mbtoucr'.
24749         * modules/unistr/u8-mbtoucr-tests: New file.
24750         * tests/unistr/test-u8-mbtoucr.c: New file.
24751
24752         Tests for module 'unistr/u32-mbtouc'.
24753         * modules/unistr/u32-mbtouc-tests: New file.
24754         * tests/unistr/test-u32-mbtouc.c: New file.
24755
24756         Tests for module 'unistr/u16-mbtouc'.
24757         * modules/unistr/u16-mbtouc-tests: New file.
24758         * tests/unistr/test-u16-mbtouc.c: New file.
24759
24760         Tests for module 'unistr/u8-mbtouc'.
24761         * modules/unistr/u8-mbtouc-tests: New file.
24762         * tests/unistr/test-u8-mbtouc.c: New file.
24763
24764         Tests for module 'unistr/u32-mbtouc-unsafe'.
24765         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24766         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24767         * tests/unistr/test-u32-mbtouc.h: New file.
24768
24769         Tests for module 'unistr/u16-mbtouc-unsafe'.
24770         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24771         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24772         * tests/unistr/test-u16-mbtouc.h: New file.
24773
24774         Tests for module 'unistr/u8-mbtouc-unsafe'.
24775         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24776         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24777         * tests/unistr/test-u8-mbtouc.h: New file.
24778
24779         Tests for module 'unistr/u32-mblen'.
24780         * modules/unistr/u32-mblen-tests: New file.
24781         * tests/unistr/test-u32-mblen.c: New file.
24782
24783         Tests for module 'unistr/u16-mblen'.
24784         * modules/unistr/u16-mblen-tests: New file.
24785         * tests/unistr/test-u16-mblen.c: New file.
24786
24787         Tests for module 'unistr/u8-mblen'.
24788         * modules/unistr/u8-mblen-tests: New file.
24789         * tests/unistr/test-u8-mblen.c: New file.
24790
24791         Tests for module 'unistr/u32-to-u16'.
24792         * modules/unistr/u32-to-u16-tests: New file.
24793         * tests/unistr/test-u32-to-u16.c: New file.
24794
24795         Tests for module 'unistr/u32-to-u8'.
24796         * modules/unistr/u32-to-u8-tests: New file.
24797         * tests/unistr/test-u32-to-u8.c: New file.
24798
24799         Tests for module 'unistr/u16-to-u32'.
24800         * modules/unistr/u16-to-u32-tests: New file.
24801         * tests/unistr/test-u16-to-u32.c: New file.
24802
24803         Tests for module 'unistr/u16-to-u8'.
24804         * modules/unistr/u16-to-u8-tests: New file.
24805         * tests/unistr/test-u16-to-u8.c: New file.
24806
24807         Tests for module 'unistr/u8-to-u32'.
24808         * modules/unistr/u8-to-u32-tests: New file.
24809         * tests/unistr/test-u8-to-u32.c: New file.
24810
24811         Tests for module 'unistr/u8-to-u16'.
24812         * modules/unistr/u8-to-u16-tests: New file.
24813         * tests/unistr/test-u8-to-u16.c: New file.
24814
24815         Tests for module 'unistr/u32-check'.
24816         * modules/unistr/u32-check-tests: New file.
24817         * tests/unistr/test-u32-check.c: New file.
24818
24819         Tests for module 'unistr/u16-check'.
24820         * modules/unistr/u16-check-tests: New file.
24821         * tests/unistr/test-u16-check.c: New file.
24822
24823         Tests for module 'unistr/u8-check'.
24824         * modules/unistr/u8-check-tests: New file.
24825         * tests/unistr/test-u8-check.c: New file.
24826
24827         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24828         (category_equals): New function.
24829         (main): Add more tests.
24830         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24831
24832         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24833
24834 2010-01-10  Bruno Haible  <bruno@clisp.org>
24835
24836         unistr/u*-strcoll: Try harder to distinguish different strings.
24837         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24838         compare s1 and s2 to see if they are different.
24839
24840 2010-01-10  Bruno Haible  <bruno@clisp.org>
24841
24842         unistr/u*-stpncpy: Fix the return value.
24843         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24844         description of the return value consistent with stpncpy in glibc.
24845         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24846         written non-NUL unit.
24847
24848 2010-01-10  Bruno Haible  <bruno@clisp.org>
24849
24850         unistr/u*-next: Add missing dependencies.
24851         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24852         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24853         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24854
24855 2010-01-10  Bruno Haible  <bruno@clisp.org>
24856
24857         unistr/u8-mbsnlen: Fix return value for incomplete character.
24858         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24859         u8_mblen.
24860         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24861         Remove unistr/u8-mblen.
24862         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24863         u16_mblen.
24864         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24865         Remove unistr/u16-mblen.
24866
24867 2010-01-10  Bruno Haible  <bruno@clisp.org>
24868
24869         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24870         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24871         Reported by Brian Gough <bjg@gnu.org> and
24872         Chris Clayton <chris2553@googlemail.com> via
24873         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24874
24875 2010-01-09  Bruno Haible  <bruno@clisp.org>
24876
24877         unistr/u16-to-u32: Reject invalid input.
24878         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24879         u16_mbtouc.
24880         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24881         Remove unistr/u16-mbtouc.
24882
24883         unistr/u16-to-u8: Reject invalid input.
24884         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24885         u16_mbtouc.
24886         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24887         Remove unistr/u16-mbtouc.
24888
24889         unistr/u8-to-u32: Reject invalid input.
24890         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24891         u8_mbtouc.
24892         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24893         Remove unistr/u8-mbtouc.
24894
24895         unistr/u8-to-u16: Reject invalid input.
24896         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24897         u8_mbtouc.
24898         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24899         Remove unistr/u8-mbtouc.
24900
24901 2010-01-09  Bruno Haible  <bruno@clisp.org>
24902
24903         Tests for module 'getlogin'.
24904         * modules/getlogin-tests: New file.
24905         * tests/test-getlogin.c: New file.
24906
24907         New module 'getlogin'.
24908         * lib/unistd.in.h (getlogin): New declaration.
24909         * lib/getlogin.c: New file.
24910         * m4/getlogin.m4: New file.
24911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24912         HAVE_GETLOGIN.
24913         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24914         HAVE_GETLOGIN.
24915         * modules/getlogin: New file.
24916         * doc/posix-functions/getlogin.texi: Mention the new module.
24917         Reported by John W. Eaton <jwe@gnu.org>.
24918
24919 2010-01-09  Bruno Haible  <bruno@clisp.org>
24920
24921         getlogin_r: Support for native Windows.
24922         * lib/getlogin_r.c: Include <windows.h>
24923         (getlogin_r): Implement for native Windows.
24924         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24925         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24926         via John W. Eaton <jwe@gnu.org>.
24927
24928 2010-01-09  Bruno Haible  <bruno@clisp.org>
24929
24930         getlogin_r: Small fixes.
24931         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24932         succeeds.
24933         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24934         before testing whether getlogin_r is declared. No need to set
24935         HAVE_DECL_GETLOGIN_R to 1.
24936         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24937
24938 2010-01-09  Bruno Haible  <bruno@clisp.org>
24939
24940         * lib/unistd.in.h (getlogin_r): Add comment.
24941
24942 2010-01-09  Bruno Haible  <bruno@clisp.org>
24943
24944         Tests for module 'getlogin_r'.
24945         * modules/getlogin_r-tests: New file.
24946         * tests/test-getlogin_r.c: New file.
24947
24948 2010-01-09  Jim Meyering  <meyering@redhat.com>
24949
24950         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24951         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24952         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24953
24954 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24955
24956         * lib/dup2.c (rpl_dup2): Improve comment.
24957
24958 2010-01-08  Eric Blake  <ebb9@byu.net>
24959
24960         maint.mk: allow packages to add makefile @@ exceptions
24961         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24962         (sc_makefile_check): Rename...
24963         (sc_makefile_at_at_check): ...to this, and use hook.
24964
24965         dup2: work around mingw bug
24966         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24967         Reported by Simon Josefsson.
24968
24969 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24970
24971         glob: Fix C++ compilation.
24972         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24973         C++.
24974
24975 2010-01-07  Bruno Haible  <bruno@clisp.org>
24976
24977         Fix indentation of wctype.in.h, broken since 2007-01-06.
24978         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24979
24980 2010-01-07  Bruno Haible  <bruno@clisp.org>
24981
24982         mbslen: Avoid collision with system function.
24983         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24984         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24985         * m4/mbslen.m4: New file.
24986         * modules/mbslen (Files): Add it.
24987         (configure.ac): Invoke gl_MBSLEN.
24988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24989         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24990         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24991         via Ian Beckwith <ianb@erislabs.net>.
24992
24993 2010-01-07  Bruno Haible  <bruno@clisp.org>
24994
24995         dirent: Document the last fix.
24996         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24997
24998 2010-01-07  Bruno Haible  <bruno@clisp.org>
24999
25000         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25001         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25002         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25003         va_list are defined.
25004         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25005         Reported by Eric Blake.
25006
25007 2010-01-07  Bruno Haible  <bruno@clisp.org>
25008
25009         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25010         * modules/xlist (Depends-on): Add 'list',
25011         * modules/xoset (Depends-on): Add 'oset'.
25012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25013
25014 2010-01-07  Bruno Haible  <bruno@clisp.org>
25015
25016         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25017         * doc/posix-functions/strncasecmp.texi: Likewise.
25018
25019 2010-01-07  Bruno Haible  <bruno@clisp.org>
25020
25021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25022
25023 2010-01-07  John W. Eaton  <jwe@octave.org>
25024
25025         wctype: allow C++ use
25026         * lib/wctype.in.h: Add extern "C" block for C++.
25027
25028 2010-01-06  Eric Blake  <ebb9@byu.net>
25029
25030         maint.mk: detect incorrect GFDL usage
25031         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25032
25033 2010-01-06  Jim Meyering  <meyering@redhat.com>
25034         and Eric Blake  <ebb9@byu.net>
25035
25036         maint.mk: ignore multi-line copyright in NEWS
25037         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25038
25039 2010-01-06  Eric Blake  <ebb9@byu.net>
25040
25041         select: add missing dependency
25042         * modules/select-tests (Depends-on): Move sockets dependency...
25043         * modules/select (Depends-on): ...here.
25044         Reported by Ian Beckwith.
25045
25046         doc: regenerate INSTALL
25047         * doc/INSTALL: Reflect recent autoconf update.
25048         * doc/INSTALL.ISO: Likewise.
25049         * doc/INSTALL.UTF-8: Likewise.
25050
25051         pread: fix compilation on glibc
25052         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25053         Reported by Ralf Wildenhues.
25054
25055         dirent: fix test failure
25056         * lib/dirent.in.h (includes): Guarantee ino_t.
25057         Reported by Ralf Wildenhues.
25058
25059 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25060
25061         linkat, renameat: avoid bad free
25062         * lib/at-func2.c (at_func2): Fix typo.
25063         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25064
25065 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25066
25067         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25068         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25069         to avoid failure of symlink test later.
25070
25071 2010-01-06  Eric Blake  <ebb9@byu.net>
25072
25073         stdio, unistd: guarantee ssize_t
25074         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25075         2008 are exposed when needed.
25076         * lib/stdio.in.h (includes): Likewise.
25077         Reported by Ralf Wildenhues.
25078
25079 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25080
25081         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25082         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25083         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25084
25085 2010-01-06  Jim Meyering  <meyering@redhat.com>
25086
25087         readtokens: this module *does* require xalloc.h
25088         It uses only functions that were omitted by the old syntax-check rule.
25089         * lib/readtokens.c: Include "xalloc.h" once again.
25090         * modules/readtokens (Depends-on): Add xalloc.
25091         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25092
25093 2010-01-05  Eric Blake  <ebb9@byu.net>
25094
25095         maint: support 'make announcement' from a VPATH build
25096         * top/maint.mk (announcement): Look for correct NEWS file.
25097
25098 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25099
25100         utimens (fdutimens): ignore a negative FD, per contract
25101         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25102         when we have a valid file descriptor.  Otherwise, using a brand
25103         new glibc (with just-patched futimens that now fails with EBADF)
25104         would cause this function to fail with ENOSYS.
25105         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25106         See also http://bugzilla.redhat.com/552320.
25107
25108 2010-01-05  Eric Blake  <ebb9@byu.net>
25109
25110         strcase: document what it provides
25111         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25112         gnulib module.
25113         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25114         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25115
25116 2010-01-05  Jim Meyering  <meyering@redhat.com>
25117
25118         maint: remove useless inclusions of "xalloc.h"
25119         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25120         * lib/readtokens.c: Likewise.
25121         * lib/same.c: Likewise.
25122         * modules/getloadavg (Depends-on): Remove xalloc.
25123         * modules/readtokens: Likewise.
25124         * modules/same: Likewise.
25125
25126         maint.mk: include 4 more function names in alloca.h-checking regexp
25127         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25128         regexp.  Before, we would give a false-positive (saying alloca.h
25129         is included unnecessarily) when the only uses involved omitted symbols.
25130
25131         xalloc.h: use consistent formatting
25132         * lib/xalloc.h: Move declarations to start in the first column.
25133
25134 2010-01-05  Eric Blake  <ebb9@byu.net>
25135
25136         mkdir: avoid xalloc
25137         * lib/mkdir.c (includes): Drop unused header.
25138         Reported by John W. Eaton.
25139
25140 2010-01-04  Jim Meyering  <meyering@redhat.com>
25141
25142         nl_langinfo: avoid configure-time syntax error
25143         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25144         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25145         the empty string.  Don't let that provoke a shell syntax error.
25146
25147         regcomp, regexec, fnmatch: avoid array bounds read error
25148         * lib/regcomp.c (build_equiv_class): From glibc:
25149         Use only the low 24 bits of a findidx return value as an index
25150         into the weights array.  Patch by Ulrich Drepper:
25151         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25152         * lib/regexec.c (check_node_accept_bytes): Likewise.
25153         * lib/fnmatch_loop.c (FCT): Likewise.
25154
25155         regcomp: skip collseq lookup when there are no rules
25156         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25157         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25158
25159         regcomp: recognize ill-formed { } expressions
25160         * lib/regcomp.c (parse_dup_op): From glibc:
25161         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25162
25163         regcomp: fix typo in comment
25164         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25165         s/satisfy/satisfies/.
25166
25167         regcomp: sync from glibc: remove dead store
25168         * lib/regcomp.c (duplicate_node_closure): Remove useless
25169         search_duplicated_node call and dead store.
25170
25171         regcomp: sync from glibc; always use nl_langinfo
25172         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25173         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25174         * modules/regex (Depends-on): Add nl_langinfo.
25175
25176 2010-01-04  Eric Blake  <ebb9@byu.net>
25177
25178         fdopendir: fix configure test
25179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25180
25181 2010-01-01  Bruno Haible  <bruno@clisp.org>
25182
25183         wchar: Remove unused configure check.
25184         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25185
25186 2010-01-01  Eric Blake  <ebb9@byu.net>
25187
25188         headers: make check of system header explicit
25189         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25190         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25191         ourselves.
25192         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25195         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25196         internals.
25197         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25198         missing.
25199         Suggested by Bruno Haible.
25200
25201 2010-01-01  Jim Meyering  <meyering@redhat.com>
25202
25203         ChangeLog: tweak to eliminate unnecessary copyright line
25204         * ChangeLog: Remove a copyright line that was mistakenly updated
25205         by today's update-copyright run.  Reported by Eric Blake.
25206
25207         test-update-copyright: don't let envvar setting cause test failure
25208         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25209
25210 2010-01-01  Bruno Haible  <bruno@clisp.org>
25211
25212         localename: Avoid gcc warning.
25213         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25214         function if it is not used.
25215
25216 2010-01-01  Jim Meyering  <meyering@redhat.com>
25217
25218         update nearly all FSF copyright year lists to include 2010
25219         Use the same procedure as for 2009, outlined in
25220         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25221
25222         version-etc: set COPYRIGHT_YEAR to 2010
25223         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25224
25225 2009-12-31  Eric Blake  <ebb9@byu.net>
25226
25227         doc: correct availability of cygwin 1.5.x getopt
25228         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25229         variables.
25230         * doc/posix-functions/opterr.texi (opterr): Likewise.
25231         * doc/posix-functions/optind.texi (optind): Likewise.
25232         * doc/posix-functions/optopt.texi (optopt): Likewise.
25233         * doc/posix-functions/tzname.texi (tzname): Likewise.
25234
25235         openat: update maintainer
25236         * modules/openat (Maintainer): Add myself.
25237
25238         utimens: avoid shadowing warning
25239         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25240         buffers into one, to avoid shadowing, as well as avoiding a
25241         redundant stat.
25242         Reported by Jim Meyering.
25243
25244         test-dup2: avoid compiler warning
25245         * tests/test-dup2.c (is_inheritable): Only define if used.
25246
25247 2010-01-01  Bruno Haible  <bruno@clisp.org>
25248
25249         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25250         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25251         defined, use wctomb instead of wcrtomb.
25252
25253 2010-01-01  Bruno Haible  <bruno@clisp.org>
25254
25255         iconv: Reject native Solaris iconv.
25256         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25257         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25258
25259 2009-12-31  Bruno Haible  <bruno@clisp.org>
25260
25261         * tests/test-signal.c (main): Remove test of 'SIG'.
25262
25263 2009-12-31  Bruno Haible  <bruno@clisp.org>
25264
25265         spawn: Fix incomplete fix.
25266         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25267         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25268         warnings for GNULIB_POSIXCHECK again.
25269         Reported by Eric Blake.
25270
25271 2009-12-31  Bruno Haible  <bruno@clisp.org>
25272
25273         Avoid namespace pollution on glibc systems.
25274         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25275         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25276         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25277         glibc systems.
25278
25279 2009-12-31  Bruno Haible  <bruno@clisp.org>
25280
25281         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25282         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25283         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25285         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25286         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25287         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25288
25289 2009-12-31  Bruno Haible  <bruno@clisp.org>
25290
25291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25292         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25293         afterwards.
25294
25295 2009-12-31  Bruno Haible  <bruno@clisp.org>
25296
25297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25298         SYS_UTSNAME_H.
25299
25300 2009-12-31  Bruno Haible  <bruno@clisp.org>
25301
25302         spawn: Fix misapplied patch.
25303         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25304         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25305         warnings for GNULIB_POSIXCHECK.
25306
25307 2009-12-31  Bruno Haible  <bruno@clisp.org>
25308
25309         times: Update after sys_times changed.
25310         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25311         * modules/times (Files): Add it.
25312         (configure.ac): Invoke gl_FUNC_TIMES.
25313
25314 2009-12-31  Bruno Haible  <bruno@clisp.org>
25315
25316         Use AC_C_INLINE where necessary.
25317         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25318         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25320         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25321         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25322         * m4/mbiter.m4 (gl_MBITER): Likewise.
25323         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25324         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25325         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25326         * modules/u64 (configure.ac): Likewise.
25327
25328 2009-12-31  Bruno Haible  <bruno@clisp.org>
25329
25330         Use AC_C_INLINE instead of module 'inline' where possible.
25331         * modules/inline (Description): Clarify purpose.
25332         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25333         * modules/count-one-bits (Depends-on): Remove inline.
25334         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25335         * modules/openat (Depends-on): Remove inline.
25336         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25337         instead of depending on module 'inline'.
25338         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25339         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25340         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25341         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25342         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25343         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25344         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25345         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25346         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25347         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25348         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25349         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25350         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25351         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25352         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25353         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25354         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25355         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25356         Likewise.
25357         * modules/unictype/property-ascii-hex-digit (Depends-on,
25358         configure.ac): Likewise.
25359         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25360         configure.ac): Likewise.
25361         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25362         configure.ac): Likewise.
25363         * modules/unictype/property-bidi-block-separator (Depends-on,
25364         configure.ac): Likewise.
25365         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25366         configure.ac): Likewise.
25367         * modules/unictype/property-bidi-common-separator (Depends-on,
25368         configure.ac): Likewise.
25369         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25370         Likewise.
25371         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25372         configure.ac): Likewise.
25373         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25374         configure.ac): Likewise.
25375         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25376         configure.ac): Likewise.
25377         * modules/unictype/property-bidi-european-digit (Depends-on,
25378         configure.ac): Likewise.
25379         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25380         configure.ac): Likewise.
25381         * modules/unictype/property-bidi-left-to-right (Depends-on,
25382         configure.ac): Likewise.
25383         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25384         configure.ac): Likewise.
25385         * modules/unictype/property-bidi-other-neutral (Depends-on,
25386         configure.ac): Likewise.
25387         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25388         Likewise.
25389         * modules/unictype/property-bidi-segment-separator (Depends-on,
25390         configure.ac): Likewise.
25391         * modules/unictype/property-bidi-whitespace (Depends-on,
25392         configure.ac): Likewise.
25393         * modules/unictype/property-combining (Depends-on, configure.ac):
25394         Likewise.
25395         * modules/unictype/property-composite (Depends-on, configure.ac):
25396         Likewise.
25397         * modules/unictype/property-currency-symbol (Depends-on,
25398         configure.ac): Likewise.
25399         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25400         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25401         Likewise.
25402         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25403         configure.ac): Likewise.
25404         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25405         Likewise.
25406         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25407         Likewise.
25408         * modules/unictype/property-extender (Depends-on, configure.ac):
25409         Likewise.
25410         * modules/unictype/property-format-control (Depends-on, configure.ac):
25411         Likewise.
25412         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25413         Likewise.
25414         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25415         Likewise.
25416         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25417         Likewise.
25418         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25419         Likewise.
25420         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25421         Likewise.
25422         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25423         Likewise.
25424         * modules/unictype/property-id-start (Depends-on, configure.ac):
25425         Likewise.
25426         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25427         Likewise.
25428         * modules/unictype/property-ids-binary-operator (Depends-on,
25429         configure.ac): Likewise.
25430         * modules/unictype/property-ids-trinary-operator (Depends-on,
25431         configure.ac): Likewise.
25432         * modules/unictype/property-ignorable-control (Depends-on,
25433         configure.ac): Likewise.
25434         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25435         Likewise.
25436         * modules/unictype/property-join-control (Depends-on, configure.ac):
25437         Likewise.
25438         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25439         Likewise.
25440         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25441         Likewise.
25442         * modules/unictype/property-logical-order-exception (Depends-on,
25443         configure.ac): Likewise.
25444         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25445         Likewise.
25446         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25447         * modules/unictype/property-non-break (Depends-on, configure.ac):
25448         Likewise.
25449         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25450         Likewise.
25451         * modules/unictype/property-numeric (Depends-on, configure.ac):
25452         Likewise.
25453         * modules/unictype/property-other-alphabetic (Depends-on,
25454         configure.ac): Likewise.
25455         * modules/unictype/property-other-default-ignorable-code-point
25456         (Depends-on, configure.ac): Likewise.
25457         * modules/unictype/property-other-grapheme-extend (Depends-on,
25458         configure.ac): Likewise.
25459         * modules/unictype/property-other-id-continue (Depends-on,
25460         configure.ac): Likewise.
25461         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25462         Likewise.
25463         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25464         Likewise.
25465         * modules/unictype/property-other-math (Depends-on, configure.ac):
25466         Likewise.
25467         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25468         Likewise.
25469         * modules/unictype/property-paired-punctuation (Depends-on,
25470         configure.ac): Likewise.
25471         * modules/unictype/property-paragraph-separator (Depends-on,
25472         configure.ac): Likewise.
25473         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25474         Likewise.
25475         * modules/unictype/property-pattern-white-space (Depends-on,
25476         configure.ac): Likewise.
25477         * modules/unictype/property-private-use (Depends-on, configure.ac):
25478         Likewise.
25479         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25480         Likewise.
25481         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25482         Likewise.
25483         * modules/unictype/property-radical (Depends-on, configure.ac):
25484         Likewise.
25485         * modules/unictype/property-sentence-terminal (Depends-on,
25486         configure.ac): Likewise.
25487         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25488         Likewise.
25489         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25490         * modules/unictype/property-terminal-punctuation (Depends-on,
25491         configure.ac): Likewise.
25492         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25493         Likewise.
25494         * modules/unictype/property-unassigned-code-value (Depends-on,
25495         configure.ac): Likewise.
25496         * modules/unictype/property-unified-ideograph (Depends-on,
25497         configure.ac): Likewise.
25498         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25499         Likewise.
25500         * modules/unictype/property-variation-selector (Depends-on,
25501         configure.ac): Likewise.
25502         * modules/unictype/property-white-space (Depends-on, configure.ac):
25503         Likewise.
25504         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25505         Likewise.
25506         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25507         Likewise.
25508         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25509         Likewise.
25510         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25511         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25512         Likewise.
25513
25514 2009-12-31  Bruno Haible  <bruno@clisp.org>
25515
25516         Remove unnecessary AC_C_INLINE invocation.
25517         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25518         since 2009-08-21.
25519
25520 2009-12-31  Jim Meyering  <meyering@redhat.com>
25521
25522         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25523         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25524         With this change, we can all remove the gpg_key_ID = ... definition
25525         from our respective cfg.mk files.
25526
25527         maint.mk: create announcement template in ~/, not in /tmp
25528         * top/maint.mk (emit_upload_commands): Adjust.
25529         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25530         Remove temporary file, .ci-msg.
25531
25532 2009-12-31  Eric Blake  <ebb9@byu.net>
25533
25534         link-warning: always build headers with link warnings
25535         * modules/arpa_inet (Makefile.am): Always build replacement
25536         header.
25537         * modules/ctype (Makefile.am): Likewise.
25538         * modules/dirent (Makefile.am): Likewise.
25539         * modules/inttypes (Makefile.am): Likewise.
25540         * modules/langinfo (Makefile.am): Likewise.
25541         * modules/locale (Makefile.am): Likewise.
25542         * modules/spawn (Makefile.am): Likewise.
25543         * modules/sys_file (Makefile.am): Likewise.
25544         * modules/sys_ioctl (Makefile.am): Likewise.
25545         * modules/sys_select (Makefile.am): Likewise.
25546         * modules/sys_socket (Makefile.am): Likewise.
25547         * modules/sys_times (Makefile.am): Likewise.
25548         * modules/sys_utsname (Makefile.am): Likewise.
25549         * modules/sys_wait (Makefile.am): Likewise.
25550         * modules/wchar (Makefile.am): Likewise.
25551         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25552         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25553         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25554         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25555         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25556         Likewise.
25557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25558         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25559         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25560         Likewise.
25561         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25562         Likewise.
25563         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25564         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25565         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25567         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25568         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25569         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25570         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25571         (gl_WCHAR_H_DEFAULTS): Likewise.
25572
25573 2009-12-31  Eric Blake  <ebb9@byu.net>
25574
25575         signal, spawn: use link warnings
25576         * lib/signal.in.h (sigset_t): Make unconditional.
25577         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25578         (sigpending, sigprocmask, sigaction): Add link warnings.
25579         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25580         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25581         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25582         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25583         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25584         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25585         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25586         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25587         (posix_spawn_file_actions_destroy)
25588         (posix_spawn_file_actions_addopen)
25589         (posix_spawn_file_actions_addclose)
25590         (posix_spawn_file_actions_adddup2): Likewise.
25591         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25592         * tests/test-signal.c (main): Enhance test.
25593
25594         spawn: improve wrapper support
25595         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25596         (gl_SPAWN_H_DEFAULTS): New defaults.
25597         * modules/spawn (Makefile.am): Substitute them.
25598         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25599         Only declare if missing or broken.
25600
25601         sys_times, sys_utsname: use include_next
25602         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25603         header.
25604         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25605         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25606         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25607         * modules/sys_times (Depends-on): Add include_next.
25608         (Makefile.am): Substitute additional values.
25609         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25610         * lib/sys_times.in.h (includes): Include native header, if
25611         available.
25612         * lib/sys_utsname.in.h (includes): Likewise.
25613         * tests/test-sys_times.c (main): Enhance test.
25614
25615         fdutimensat: revert prior patch
25616         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25617         utimens.h.
25618         Reported by Bruno Haible.
25619
25620 2009-12-30  Eric Blake  <ebb9@byu.net>
25621
25622         sys_wait: drop link-warning dependency
25623         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25624         link-warning efforts.
25625         * lib/sys_wait.in.h: Likewise.
25626
25627         fdutimensat: remove bogus dependency
25628         * modules/fdutimensat (Depends-on): Drop inline.
25629
25630         unistd: fix typo
25631         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25632
25633 2009-12-30  Bruno Haible  <bruno@clisp.org>
25634
25635         Fix compilation error with Solaris cc.
25636         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25637         * lib/unicase/u16-is-invariant.c: Likewise.
25638         * lib/unicase/u32-is-invariant.c: Likewise.
25639         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25640
25641 2009-12-30  Bruno Haible  <bruno@clisp.org>
25642
25643         Fix test crash.
25644         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25645         locales.
25646         Reported by Simon Josefsson <simon@josefsson.org>.
25647
25648 2009-12-30  Bruno Haible  <bruno@clisp.org>
25649
25650         Fix compilation error on most platforms.
25651         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25652         Reported by Simon Josefsson <simon@josefsson.org>
25653         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25654
25655 2009-12-30  Eric Blake  <ebb9@byu.net>
25656
25657         futimens, utimensat: work around ntfs-3g bug
25658         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25659         a ctime bug is present, and expand workaround to cover ntfs-3g.
25660         * lib/utimens.c (fdutimens, lutimens): Likewise.
25661         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25662         (validate_timespec): Adjust return value.
25663         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25664         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25665         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25666
25667 2009-12-29  Eric Blake  <ebb9@byu.net>
25668
25669         link-warning: make usage consistent
25670         * modules/ctype (Depends-on): Add link-warning.
25671         (Makefile.am): Update rules accordingly.
25672         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25673         * modules/locale (Depends-on, Makefile.am): Likewise.
25674         * modules/sys_file (Makefile.am): Likewise.
25675         * modules/getopt-posix (Makefile.am): Delete unused link warning
25676         efforts.
25677         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25678         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25679         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25680         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25681
25682         stdio: remove unused variables
25683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25685         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25686
25687         tests: test more substitute headers
25688         * modules/ctype-tests: New file.
25689         * modules/dirent-tests: Likewise.
25690         * modules/spawn-tests: Likewise.
25691         * modules/sys_file-tests: Likewise.
25692         * modules/sys_ioctl-tests: Likewise.
25693         * modules/sys_wait-tests: Likewise.
25694         * tests/test-ctype.c: Likewise.
25695         * tests/test-dirent.c: Likewise.
25696         * tests/test-spawn.c: Likewise.
25697         * tests/test-sys_file.c: Likewise.
25698         * tests/test-sys_ioctl.c: Likewise.
25699         * tests/test-sys_wait.c: Likewise.
25700         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25701         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25702         whether or not flock is in use.
25703
25704         tests: remove License section from module
25705         * modules/arpa_inet-tests: Remove unneeded section.
25706         * modules/byteswap-tests: Likewise.
25707         * modules/ceilf-tests: Likewise.
25708         * modules/ceill-tests: Likewise.
25709         * modules/crypto/des-tests: Likewise.
25710         * modules/crypto/gc-arcfour-tests: Likewise.
25711         * modules/crypto/gc-arctwo-tests: Likewise.
25712         * modules/crypto/gc-des-tests: Likewise.
25713         * modules/crypto/gc-hmac-md5-tests: Likewise.
25714         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25715         * modules/crypto/gc-md2-tests: Likewise.
25716         * modules/crypto/gc-md4-tests: Likewise.
25717         * modules/crypto/gc-md5-tests: Likewise.
25718         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25719         * modules/crypto/gc-rijndael-tests: Likewise.
25720         * modules/crypto/gc-sha1-tests: Likewise.
25721         * modules/crypto/gc-tests: Likewise.
25722         * modules/crypto/md2-tests: Likewise.
25723         * modules/crypto/md4-tests: Likewise.
25724         * modules/fcntl-h-tests: Likewise.
25725         * modules/floorf-tests: Likewise.
25726         * modules/floorl-tests: Likewise.
25727         * modules/frexp-nolibm-tests: Likewise.
25728         * modules/frexp-tests: Likewise.
25729         * modules/frexpl-nolibm-tests: Likewise.
25730         * modules/frexpl-tests: Likewise.
25731         * modules/getaddrinfo-tests: Likewise.
25732         * modules/inttypes-tests: Likewise.
25733         * modules/isfinite-tests: Likewise.
25734         * modules/isinf-tests: Likewise.
25735         * modules/ldexpl-tests: Likewise.
25736         * modules/locale-tests: Likewise.
25737         * modules/math-tests: Likewise.
25738         * modules/netdb-tests: Likewise.
25739         * modules/netinet_in-tests: Likewise.
25740         * modules/printf-frexp-tests: Likewise.
25741         * modules/printf-frexpl-tests: Likewise.
25742         * modules/priv-set-tests: Likewise.
25743         * modules/random_r-tests: Likewise.
25744         * modules/round-tests: Likewise.
25745         * modules/roundf-tests: Likewise.
25746         * modules/roundl-tests: Likewise.
25747         * modules/search-tests: Likewise.
25748         * modules/select-tests: Likewise.
25749         * modules/signal-tests: Likewise.
25750         * modules/stdbool-tests: Likewise.
25751         * modules/stddef-tests: Likewise.
25752         * modules/stdint-tests: Likewise.
25753         * modules/stdio-tests: Likewise.
25754         * modules/stdlib-tests: Likewise.
25755         * modules/string-tests: Likewise.
25756         * modules/strings-tests: Likewise.
25757         * modules/sys_select-tests: Likewise.
25758         * modules/sys_socket-tests: Likewise.
25759         * modules/sys_stat-tests: Likewise.
25760         * modules/sys_time-tests: Likewise.
25761         * modules/sys_utsname-tests: Likewise.
25762         * modules/sysexits-tests: Likewise.
25763         * modules/time-tests: Likewise.
25764         * modules/trunc-tests: Likewise.
25765         * modules/truncf-tests: Likewise.
25766         * modules/truncl-tests: Likewise.
25767         * modules/tsearch-tests: Likewise.
25768         * modules/unistd-tests: Likewise.
25769         * modules/wchar-tests: Likewise.
25770         * modules/wctype-tests: Likewise.
25771
25772         tests: fix license on several tests
25773         * tests/test-des.c: Update to GPLv3+.
25774         * tests/test-flock.c: Likewise.
25775         * tests/test-fsync.c: Likewise.
25776         * tests/test-futimens.h: Likewise.
25777         * tests/test-gc-arcfour.c: Likewise.
25778         * tests/test-gc-arctwo.c: Likewise.
25779         * tests/test-gc-des.c: Likewise.
25780         * tests/test-gc-hmac-md5.c: Likewise.
25781         * tests/test-gc-hmac-sha1.c: Likewise.
25782         * tests/test-gc-md2.c: Likewise.
25783         * tests/test-gc-md4.c: Likewise.
25784         * tests/test-gc-md5.c: Likewise.
25785         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25786         * tests/test-gc-rijndael.c: Likewise.
25787         * tests/test-gc-sha1.c: Likewise.
25788         * tests/test-gc.c: Likewise.
25789         * tests/test-getcwd.c: Likewise.
25790         * tests/test-link.c: Likewise.
25791         * tests/test-link.h: Likewise.
25792         * tests/test-lutimens.h: Likewise.
25793         * tests/test-md2.c: Likewise.
25794         * tests/test-md4.c: Likewise.
25795         * tests/test-mkdir.h: Likewise.
25796         * tests/test-rename.c: Likewise.
25797         * tests/test-rename.h: Likewise.
25798         * tests/test-safe-alloc.c: Likewise.
25799         * tests/test-utimens-common.h: Likewise.
25800         * tests/test-utimens.h: Likewise.
25801
25802         maint: sync license texts
25803         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25804         * doc/gpl-3.0.texi: Revert copyright year update.
25805         * doc/lgpl-3.0.texi: Likewise.
25806
25807 2009-12-29  Jim Meyering  <meyering@redhat.com>
25808
25809         update nearly all FSF copyright year lists to include 2009
25810         The files named by the following are exempted:
25811             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25812               test -f "$dst" && { echo "$dst"; continue; }
25813               test -d "$dst" || continue
25814               echo "$dst"/$(basename "$src")
25815             done > exempt
25816             git ls-files tests/unictype >> exempt
25817         In the remaining files, convert to all-interval notation if
25818         - there is already at least one year interval like 2000-2003
25819         - the file is maintained by me
25820         - the file is in lib/uni*/, where that style already prevails
25821         Otherwise, use update-copyright's default.
25822
25823 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25824         and Eric Blake  <ebb9@byu.net>
25825
25826         tests: don't require debug system() to pass
25827         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25828         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25829         * tests/test-unlink.h (test_unlink_func): Likewise.
25830         * tests/test-fstatat.c (main): ...into callers.
25831         * tests/test-lstat.c (main): Likewise.
25832         * tests/test-rmdir.c (main): Likewise.
25833         * tests/test-unlink.c (main): Likewise.
25834         * tests/test-unlinkat.c (main): Likewise.
25835         * tests/test-areadlink-with-size.c (main): Don't require a
25836         debug-only system call to pass, aiding cross-testing to mingw.
25837         * tests/test-areadlink.c (main): Likewise.
25838         * tests/test-areadlinkat-with-size.c (main): Likewise.
25839         * tests/test-areadlinkat.c (main): Likewise.
25840         * tests/test-canonicalize-lgpl.c (main): Likewise.
25841         * tests/test-canonicalize.c (main): Likewise.
25842         * tests/test-chown.c (main): Likewise.
25843         * tests/test-fchownat.c (main): Likewise.
25844         * tests/test-lchown.c (main): Likewise.
25845         * tests/test-fdutimensat.c (main): Likewise.
25846         * tests/test-futimens.c (main): Likewise.
25847         * tests/test-link.c (main): Likewise.
25848         * tests/test-linkat.c (main): Likewise.
25849         * tests/test-mkdir.c (main): Likewise.
25850         * tests/test-mkdirat.c (main): Likewise.
25851         * tests/test-mkfifo.c (main): Likewise.
25852         * tests/test-mkfifoat.c (main): Likewise.
25853         * tests/test-mknod.c (main): Likewise.
25854         * tests/test-readlink.c (main): Likewise.
25855         * tests/test-remove.c (main): Likewise.
25856         * tests/test-rename.c (main): Likewise.
25857         * tests/test-renameat.c (main): Likewise.
25858         * tests/test-symlink.c (main): Likewise.
25859         * tests/test-symlinkat.c (main): Likewise.
25860         * tests/test-utimens.c (main): Likewise.
25861         * tests/test-utimensat.c (main): Likewise.
25862
25863 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25864
25865         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25866         on $(UNUSED_PARAMETER_H) to avoid build failure.
25867
25868 2009-12-28  Jim Meyering  <meyering@redhat.com>
25869
25870         update-copyright: you may specify a max. line length other than 72
25871         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25872
25873         maint: use consistent FSF copyright line syntax
25874         * lib/posixtm.c: Add missing comma in FSF copyright line.
25875         * lib/posixtm.h: Likewise.
25876         * lib/getugroups.c: Add missing ", Inc.".
25877
25878         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25879         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25880         FSF copyright line.  Remove trailing blanks.
25881
25882 2009-12-28  Eric Blake  <ebb9@byu.net>
25883
25884         test-dup2: reduce dependencies
25885         * modules/cloexec (Configure.ac): Set witness.
25886         * modules/dup2-tests (Depends-on): Drop cloexec.
25887         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25888         not present.
25889         Suggested by Bruno Haible.
25890
25891 2009-12-26  Bruno Haible  <bruno@clisp.org>
25892
25893         Remove an unneeded dependency.
25894         * modules/fseterr (Depends-on): Remove dup2.
25895
25896 2009-12-26  Eric Blake  <ebb9@byu.net>
25897
25898         tests: use macros.h in more places
25899         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25900         (ASSERT_STREAM): Provide default of stderr.
25901         * tests/test-dirent-safer.c: Include macros.h, using alternate
25902         stream for assertions.
25903         * tests/test-dup-safer.c: Likewise.
25904         * tests/test-freopen-safer.c: Likewise.
25905         * tests/test-getopt.c: Likewise.
25906         * tests/test-openat-safer.c: Likewise.
25907         * tests/test-pipe.c: Likewise.
25908         * tests/test-popen-safer.c: Likewise.
25909         * modules/dirent-safer-tests (Files): Include macros.h.
25910         * modules/unistd-safer-tests (Files): Likewise.
25911         * modules/freopen-safer-tests (Files): Likewise.
25912         * modules/getopt-posix-tests (Files): Likewise.
25913         * modules/openat-safer-tests (Files): Likewise.
25914         * modules/pipe-tests (Files): Likewise.
25915
25916 2009-12-26  Bruno Haible  <bruno@clisp.org>
25917
25918         javacomp: Portability fix.
25919         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25920         that it also works on Solaris.
25921
25922 2009-12-26  Bruno Haible  <bruno@clisp.org>
25923
25924         localename: Fix storage allocation of gl_locale_name_thread's result.
25925         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25926         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25927         all platforms that have 'uselocale'.
25928         (gl_locale_name_thread_unsafe): New function, extracted from
25929         gl_locale_name_thread.
25930         (gl_locale_name_thread): Call struniq on all platforms that have
25931         'uselocale'.
25932         * tests/test-localename.c (test_locale_name_thread): Check that the
25933         resulting strings are permanently allocated.
25934         * modules/localename-tests (Depends-on): Add strdup.
25935
25936 2009-12-26  Bruno Haible  <bruno@clisp.org>
25937
25938         * tests/test-localename.c (categories): Fill in the strings.
25939
25940 2009-12-26  Jim Meyering  <meyering@redhat.com>
25941
25942         isdir: complete the removal of m4/isdir.m4
25943         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25944
25945         isdir: clean up, since at least grep still uses it
25946         * lib/isdir.c: Include "isdir.h".
25947         (S_ISDIR): Remove now-unneeded definition.
25948         * modules/isdir (Files): Add lib/isdir.h.
25949         * lib/isdir.h: New file, with declaration.
25950         * m4/isdir.m4: Remove file -- unneeded.
25951
25952 2009-12-25  Bruno Haible  <bruno@clisp.org>
25953
25954         selinux-h: Make generated .h files standalone.
25955         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25956         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25957         * lib/se-selinux.in.h: Likewise.
25958         * modules/selinux-h (Depends-on): Add unused-parameter.
25959         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25960         selinux/selinux.h and selinux/context.h.
25961         Suggested by Eric Blake.
25962
25963 2009-12-25  Bruno Haible  <bruno@clisp.org>
25964
25965         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25966         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25967         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25968         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25969         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25970
25971 2009-12-24  Bruno Haible  <bruno@clisp.org>
25972
25973         openat: Fix warning.
25974         * lib/openat-proc.c: Include <unistd.h>.
25975
25976 2009-12-24  Bruno Haible  <bruno@clisp.org>
25977
25978         New module 'unused-parameter'.
25979         * build-aux/unused-parameter.h: New file, extracted from earlier
25980         gnulib-common.m4.
25981         * modules/unused-parameter: New file.
25982         * lib/unistr.h: Include unused-parameter.h.
25983         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25984         _GL_UNUSED.
25985         * modules/unistr/base (Depends-on): Add unused-parameter.
25986
25987 2009-12-24  Bruno Haible  <bruno@clisp.org>
25988
25989         Add missing dependencies to 'extensions' module.
25990         * m4/extensions.m4: Add comment.
25991         * modules/accept4 (Depends-on): Add extensions.
25992         * modules/dup3 (Depends-on): Likewise.
25993         * modules/fcntl (Depends-on): Likewise.
25994         * modules/futimens (Depends-on): Likewise.
25995         * modules/mknod (Depends-on): Likewise.
25996         * modules/pipe2 (Depends-on): Likewise.
25997         * modules/stat-time (Depends-on): Likewise.
25998         * modules/strcasestr-simple (Depends-on): Likewise.
25999         * modules/strsignal (Depends-on): Likewise.
26000         * modules/utimensat (Depends-on): Likewise.
26001         * modules/localcharset (Depends-on): Likewise. Needed because of
26002         gl_FCNTL_O_FLAGS.
26003         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26004         AC_TYPE_MBSTATE_T.
26005         * modules/wcsnrtombs (Depends-on): Likewise.
26006         * modules/wcsrtombs (Depends-on): Likewise.
26007
26008 2009-12-24  Bruno Haible  <bruno@clisp.org>
26009
26010         binary-io: Avoid gcc warning due to SET_BINARY.
26011         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26012         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26013
26014 2009-12-24  Bruno Haible  <bruno@clisp.org>
26015
26016         Avoid future namespace pollution on glibc systems.
26017         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26018         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26019         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26020         glibc systems.
26021
26022 2009-12-24  Bruno Haible  <bruno@clisp.org>
26023
26024         Refactor common macros used in tests.
26025         * tests/macros.h: New file.
26026         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26027         and/or <stdlib.h>, if appropriate.
26028         (ASSERT, SIZEOF): Remove macros.
26029         * tests/test-areadlink-with-size.c: Likewise.
26030         * tests/test-areadlinkat.c: Likewise.
26031         * tests/test-areadlinkat-with-size.c: Likewise.
26032         * tests/test-argmatch.c: Likewise.
26033         * tests/test-argv-iter.c: Likewise.
26034         * tests/test-array-mergesort.c: Likewise.
26035         * tests/test-array_list.c: Likewise.
26036         * tests/test-array_oset.c: Likewise.
26037         * tests/test-avltree_list.c: Likewise.
26038         * tests/test-avltree_oset.c: Likewise.
26039         * tests/test-avltreehash_list.c: Likewise.
26040         * tests/test-base64.c: Likewise.
26041         * tests/test-binary-io.c: Likewise.
26042         * tests/test-bitrotate.c: Likewise.
26043         * tests/test-btowc.c: Likewise.
26044         * tests/test-byteswap.c: Likewise.
26045         * tests/test-c-ctype.c: Likewise.
26046         * tests/test-c-stack.c: Likewise.
26047         * tests/test-c-strcasecmp.c: Likewise.
26048         * tests/test-c-strcasestr.c: Likewise.
26049         * tests/test-c-strncasecmp.c: Likewise.
26050         * tests/test-c-strstr.c: Likewise.
26051         * tests/test-canonicalize-lgpl.c: Likewise.
26052         * tests/test-canonicalize.c: Likewise.
26053         * tests/test-carray_list.c: Likewise.
26054         * tests/test-ceilf1.c: Likewise.
26055         * tests/test-ceilf2.c: Likewise.
26056         * tests/test-ceill.c: Likewise.
26057         * tests/test-chown.c: Likewise.
26058         * tests/test-cloexec.c: Likewise.
26059         * tests/test-copy-acl.c: Likewise.
26060         * tests/test-copy-file.c: Likewise.
26061         * tests/test-count-one-bits.c: Likewise.
26062         * tests/test-dprintf-posix.c: Likewise.
26063         * tests/test-dup2.c: Likewise.
26064         * tests/test-dup3.c: Likewise.
26065         * tests/test-duplocale.c: Likewise.
26066         * tests/test-fbufmode.c: Likewise.
26067         * tests/test-fchdir.c: Likewise.
26068         * tests/test-fchownat.c: Likewise.
26069         * tests/test-fcntl-safer.c: Likewise.
26070         * tests/test-fcntl.c: Likewise.
26071         * tests/test-fdopendir.c: Likewise.
26072         * tests/test-fdutimensat.c: Likewise.
26073         * tests/test-fflush2.c: Likewise.
26074         * tests/test-file-has-acl.c: Likewise.
26075         * tests/test-filevercmp.c: Likewise.
26076         * tests/test-flock.c: Likewise.
26077         * tests/test-floorf1.c: Likewise.
26078         * tests/test-floorf2.c: Likewise.
26079         * tests/test-floorl.c: Likewise.
26080         * tests/test-fnmatch.c: Likewise.
26081         * tests/test-fopen.h: Likewise.
26082         * tests/test-fpending.c: Likewise.
26083         * tests/test-fprintf-posix.c: Likewise.
26084         * tests/test-fpurge.c: Likewise.
26085         * tests/test-freadable.c: Likewise.
26086         * tests/test-freadahead.c: Likewise.
26087         * tests/test-freading.c: Likewise.
26088         * tests/test-freadptr.c: Likewise.
26089         * tests/test-freadptr2.c: Likewise.
26090         * tests/test-freadseek.c: Likewise.
26091         * tests/test-freopen.c: Likewise.
26092         * tests/test-frexp.c: Likewise.
26093         * tests/test-frexpl.c: Likewise.
26094         * tests/test-fseek.c: Likewise.
26095         * tests/test-fseeko.c: Likewise.
26096         * tests/test-fstatat.c: Likewise.
26097         * tests/test-fstrcmp.c: Likewise.
26098         * tests/test-fsync.c: Likewise.
26099         * tests/test-ftell.c: Likewise.
26100         * tests/test-ftello.c: Likewise.
26101         * tests/test-func.c: Likewise.
26102         * tests/test-futimens.c: Likewise.
26103         * tests/test-fwritable.c: Likewise.
26104         * tests/test-fwriting.c: Likewise.
26105         * tests/test-getcwd.c: Likewise.
26106         * tests/test-getdate.c: Likewise.
26107         * tests/test-getdelim.c: Likewise.
26108         * tests/test-getdtablesize.c: Likewise.
26109         * tests/test-getgroups.c: Likewise.
26110         * tests/test-getline.c: Likewise.
26111         * tests/test-getndelim2.c: Likewise.
26112         * tests/test-glob.c: Likewise.
26113         * tests/test-hash.c: Likewise.
26114         * tests/test-i-ring.c: Likewise.
26115         * tests/test-iconv-utf.c: Likewise.
26116         * tests/test-iconv.c: Likewise.
26117         * tests/test-idpriv-drop.c: Likewise.
26118         * tests/test-idpriv-droptemp.c: Likewise.
26119         * tests/test-inet_ntop.c: Likewise.
26120         * tests/test-inet_pton.c: Likewise.
26121         * tests/test-isblank.c: Likewise.
26122         * tests/test-isfinite.c: Likewise.
26123         * tests/test-isinf.c: Likewise.
26124         * tests/test-isnan.c: Likewise.
26125         * tests/test-isnand.h: Likewise.
26126         * tests/test-isnanf.h: Likewise.
26127         * tests/test-isnanl.h: Likewise.
26128         * tests/test-lchown.c: Likewise.
26129         * tests/test-ldexpl.c: Likewise.
26130         * tests/test-link.c: Likewise.
26131         * tests/test-linkat.c: Likewise.
26132         * tests/test-linked_list.c: Likewise.
26133         * tests/test-linkedhash_list.c: Likewise.
26134         * tests/test-localename.c: Likewise.
26135         * tests/test-lseek.c: Likewise.
26136         * tests/test-lstat.c: Likewise.
26137         * tests/test-mbmemcasecmp.c: Likewise.
26138         * tests/test-mbmemcasecoll.c: Likewise.
26139         * tests/test-mbrtowc.c: Likewise.
26140         * tests/test-mbscasecmp.c: Likewise.
26141         * tests/test-mbscasestr1.c: Likewise.
26142         * tests/test-mbscasestr2.c: Likewise.
26143         * tests/test-mbscasestr3.c: Likewise.
26144         * tests/test-mbscasestr4.c: Likewise.
26145         * tests/test-mbschr.c: Likewise.
26146         * tests/test-mbscspn.c: Likewise.
26147         * tests/test-mbsinit.c: Likewise.
26148         * tests/test-mbsncasecmp.c: Likewise.
26149         * tests/test-mbsnrtowcs.c: Likewise.
26150         * tests/test-mbspbrk.c: Likewise.
26151         * tests/test-mbspcasecmp.c: Likewise.
26152         * tests/test-mbsrchr.c: Likewise.
26153         * tests/test-mbsrtowcs.c: Likewise.
26154         * tests/test-mbsspn.c: Likewise.
26155         * tests/test-mbsstr1.c: Likewise.
26156         * tests/test-mbsstr2.c: Likewise.
26157         * tests/test-mbsstr3.c: Likewise.
26158         * tests/test-memchr.c: Likewise.
26159         * tests/test-memchr2.c: Likewise.
26160         * tests/test-memcmp.c: Likewise.
26161         * tests/test-memmem.c: Likewise.
26162         * tests/test-memrchr.c: Likewise.
26163         * tests/test-mkdir.c: Likewise.
26164         * tests/test-mkdirat.c: Likewise.
26165         * tests/test-mkfifo.c: Likewise.
26166         * tests/test-mkfifoat.c: Likewise.
26167         * tests/test-mknod.c: Likewise.
26168         * tests/test-nanosleep.c: Likewise.
26169         * tests/test-nl_langinfo.c: Likewise.
26170         * tests/test-obstack-printf.c: Likewise.
26171         * tests/test-open.c: Likewise.
26172         * tests/test-openat.c: Likewise.
26173         * tests/test-pipe-filter-gi1.c: Likewise.
26174         * tests/test-pipe-filter-gi2-main.c: Likewise.
26175         * tests/test-pipe-filter-ii1.c: Likewise.
26176         * tests/test-pipe-filter-ii2-main.c: Likewise.
26177         * tests/test-pipe2.c: Likewise.
26178         * tests/test-popen.h: Likewise.
26179         * tests/test-posixtm.c: Likewise.
26180         * tests/test-pread.c: Likewise.
26181         * tests/test-printf-frexp.c: Likewise.
26182         * tests/test-printf-frexpl.c: Likewise.
26183         * tests/test-printf-posix.c: Likewise.
26184         * tests/test-priv-set.c: Likewise.
26185         * tests/test-quotearg.c: Likewise.
26186         * tests/test-random_r.c: Likewise.
26187         * tests/test-rawmemchr.c: Likewise.
26188         * tests/test-rbtree_list.c: Likewise.
26189         * tests/test-rbtree_oset.c: Likewise.
26190         * tests/test-rbtreehash_list.c: Likewise.
26191         * tests/test-readlink.c: Likewise.
26192         * tests/test-remove.c: Likewise.
26193         * tests/test-rename.c: Likewise.
26194         * tests/test-renameat.c: Likewise.
26195         * tests/test-rmdir.c: Likewise.
26196         * tests/test-round1.c: Likewise.
26197         * tests/test-roundf1.c: Likewise.
26198         * tests/test-roundl.c: Likewise.
26199         * tests/test-safe-alloc.c: Likewise.
26200         * tests/test-sameacls.c: Likewise.
26201         * tests/test-set-mode-acl.c: Likewise.
26202         * tests/test-setenv.c: Likewise.
26203         * tests/test-sigaction.c: Likewise.
26204         * tests/test-signbit.c: Likewise.
26205         * tests/test-sleep.c: Likewise.
26206         * tests/test-snprintf-posix.c: Likewise.
26207         * tests/test-snprintf.c: Likewise.
26208         * tests/test-sprintf-posix.c: Likewise.
26209         * tests/test-stat-time.c: Likewise.
26210         * tests/test-stat.c: Likewise.
26211         * tests/test-strcasestr.c: Likewise.
26212         * tests/test-strchrnul.c: Likewise.
26213         * tests/test-strerror.c: Likewise.
26214         * tests/test-striconv.c: Likewise.
26215         * tests/test-striconveh.c: Likewise.
26216         * tests/test-striconveha.c: Likewise.
26217         * tests/test-strsignal.c: Likewise.
26218         * tests/test-strstr.c: Likewise.
26219         * tests/test-strtod.c: Likewise.
26220         * tests/test-strverscmp.c: Likewise.
26221         * tests/test-symlink.c: Likewise.
26222         * tests/test-symlinkat.c: Likewise.
26223         * tests/test-trunc1.c: Likewise.
26224         * tests/test-trunc2.c: Likewise.
26225         * tests/test-truncf1.c: Likewise.
26226         * tests/test-truncf2.c: Likewise.
26227         * tests/test-truncl.c: Likewise.
26228         * tests/test-uname.c: Likewise.
26229         * tests/test-unlink.c: Likewise.
26230         * tests/test-unlinkat.c: Likewise.
26231         * tests/test-unsetenv.c: Likewise.
26232         * tests/test-usleep.c: Likewise.
26233         * tests/test-utimens.c: Likewise.
26234         * tests/test-utimensat.c: Likewise.
26235         * tests/test-vasnprintf-posix.c: Likewise.
26236         * tests/test-vasnprintf-posix2.c: Likewise.
26237         * tests/test-vasnprintf.c: Likewise.
26238         * tests/test-vasprintf-posix.c: Likewise.
26239         * tests/test-vasprintf.c: Likewise.
26240         * tests/test-vdprintf-posix.c: Likewise.
26241         * tests/test-vfprintf-posix.c: Likewise.
26242         * tests/test-vprintf-posix.c: Likewise.
26243         * tests/test-vsnprintf-posix.c: Likewise.
26244         * tests/test-vsnprintf.c: Likewise.
26245         * tests/test-vsprintf-posix.c: Likewise.
26246         * tests/test-wcrtomb.c: Likewise.
26247         * tests/test-wcsnrtombs.c: Likewise.
26248         * tests/test-wcsrtombs.c: Likewise.
26249         * tests/test-wctype.c: Likewise.
26250         * tests/test-wcwidth.c: Likewise.
26251         * tests/test-xfprintf-posix.c: Likewise.
26252         * tests/test-xmemdup0.c: Likewise.
26253         * tests/test-xprintf-posix.c: Likewise.
26254         * tests/test-xvasprintf.c: Likewise.
26255         * tests/unicase/test-locale-language.c: Likewise.
26256         * tests/unicase/test-mapping-part1.h: Likewise.
26257         * tests/unicase/test-predicate-part1.h: Likewise.
26258         * tests/unicase/test-u8-casecmp.c: Likewise.
26259         * tests/unicase/test-u8-casecoll.c: Likewise.
26260         * tests/unicase/test-u8-casefold.c: Likewise.
26261         * tests/unicase/test-u8-is-cased.c: Likewise.
26262         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26263         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26264         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26265         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26266         * tests/unicase/test-u8-tolower.c: Likewise.
26267         * tests/unicase/test-u8-totitle.c: Likewise.
26268         * tests/unicase/test-u8-toupper.c: Likewise.
26269         * tests/unicase/test-u16-casecmp.c: Likewise.
26270         * tests/unicase/test-u16-casecoll.c: Likewise.
26271         * tests/unicase/test-u16-casefold.c: Likewise.
26272         * tests/unicase/test-u16-is-cased.c: Likewise.
26273         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26274         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26275         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26276         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26277         * tests/unicase/test-u16-tolower.c: Likewise.
26278         * tests/unicase/test-u16-totitle.c: Likewise.
26279         * tests/unicase/test-u16-toupper.c: Likewise.
26280         * tests/unicase/test-u32-casecmp.c: Likewise.
26281         * tests/unicase/test-u32-casecoll.c: Likewise.
26282         * tests/unicase/test-u32-casefold.c: Likewise.
26283         * tests/unicase/test-u32-is-cased.c: Likewise.
26284         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26285         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26286         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26287         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26288         * tests/unicase/test-u32-tolower.c: Likewise.
26289         * tests/unicase/test-u32-totitle.c: Likewise.
26290         * tests/unicase/test-u32-toupper.c: Likewise.
26291         * tests/unicase/test-ulc-casecmp.c: Likewise.
26292         * tests/unicase/test-ulc-casecoll.c: Likewise.
26293         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26294         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26295         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26296         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26297         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26298         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26299         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26300         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26301         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26302         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26303         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26304         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26305         * tests/unictype/test-bidi_byname.c: Likewise.
26306         * tests/unictype/test-bidi_name.c: Likewise.
26307         * tests/unictype/test-bidi_of.c: Likewise.
26308         * tests/unictype/test-bidi_test.c: Likewise.
26309         * tests/unictype/test-block_list.c: Likewise.
26310         * tests/unictype/test-block_of.c: Likewise.
26311         * tests/unictype/test-block_test.c: Likewise.
26312         * tests/unictype/test-categ_and.c: Likewise.
26313         * tests/unictype/test-categ_and_not.c: Likewise.
26314         * tests/unictype/test-categ_byname.c: Likewise.
26315         * tests/unictype/test-categ_name.c: Likewise.
26316         * tests/unictype/test-categ_none.c: Likewise.
26317         * tests/unictype/test-categ_of.c: Likewise.
26318         * tests/unictype/test-categ_or.c: Likewise.
26319         * tests/unictype/test-categ_test_withtable.c: Likewise.
26320         * tests/unictype/test-combining.c: Likewise.
26321         * tests/unictype/test-decdigit.c: Likewise.
26322         * tests/unictype/test-digit.c: Likewise.
26323         * tests/unictype/test-mirror.c: Likewise.
26324         * tests/unictype/test-numeric.c: Likewise.
26325         * tests/unictype/test-pr_byname.c: Likewise.
26326         * tests/unictype/test-pr_test.c: Likewise.
26327         * tests/unictype/test-predicate-part1.h: Likewise.
26328         * tests/unictype/test-scripts.c: Likewise.
26329         * tests/unictype/test-sy_c_ident.c: Likewise.
26330         * tests/unictype/test-sy_java_ident.c: Likewise.
26331         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26332         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26333         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26334         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26335         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26336         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26337         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26338         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26339         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26340         * tests/uninorm/test-compat-decomposition.c: Likewise.
26341         * tests/uninorm/test-composition.c: Likewise.
26342         * tests/uninorm/test-decomposing-form.c: Likewise.
26343         * tests/uninorm/test-decomposition.c: Likewise.
26344         * tests/uninorm/test-u8-nfc.c: Likewise.
26345         * tests/uninorm/test-u8-nfd.c: Likewise.
26346         * tests/uninorm/test-u8-nfkc.c: Likewise.
26347         * tests/uninorm/test-u8-nfkd.c: Likewise.
26348         * tests/uninorm/test-u8-normcmp.c: Likewise.
26349         * tests/uninorm/test-u8-normcoll.c: Likewise.
26350         * tests/uninorm/test-u16-nfc.c: Likewise.
26351         * tests/uninorm/test-u16-nfd.c: Likewise.
26352         * tests/uninorm/test-u16-nfkc.c: Likewise.
26353         * tests/uninorm/test-u16-nfkd.c: Likewise.
26354         * tests/uninorm/test-u16-normcmp.c: Likewise.
26355         * tests/uninorm/test-u16-normcoll.c: Likewise.
26356         * tests/uninorm/test-u32-nfc.c: Likewise.
26357         * tests/uninorm/test-u32-nfd.c: Likewise.
26358         * tests/uninorm/test-u32-nfkc.c: Likewise.
26359         * tests/uninorm/test-u32-nfkd.c: Likewise.
26360         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26361         * tests/uninorm/test-u32-normcmp.c: Likewise.
26362         * tests/uninorm/test-u32-normcoll.c: Likewise.
26363         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26364         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26365         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26366         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26367         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26368         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26369         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26370         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26371         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26372         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26373         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26374         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26375         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26376         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26377         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26378         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26379         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26380         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26381         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26382         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26383         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26384         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26385         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26386         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26387         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26388         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26389         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26390         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26391         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26392         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26393         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26394         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26395         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26396         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26397         * tests/uniwidth/test-u8-width.c: Likewise.
26398         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26399         * tests/uniwidth/test-u16-width.c: Likewise.
26400         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26401         * tests/uniwidth/test-u32-width.c: Likewise.
26402         * tests/uniwidth/test-uc_width.c: Likewise.
26403         * tests/uniwidth/test-uc_width2.c: Likewise.
26404         * modules/acl-tests (Files): Add tests/macros.h.
26405         * modules/areadlink-tests (Files): Likewise.
26406         * modules/areadlink-with-size-tests (Files): Likewise.
26407         * modules/areadlinkat-tests (Files): Likewise.
26408         * modules/areadlinkat-with-size-tests (Files): Likewise.
26409         * modules/argmatch-tests (Files): Likewise.
26410         * modules/argv-iter-tests (Files): Likewise.
26411         * modules/array-list-tests (Files): Likewise.
26412         * modules/array-mergesort-tests (Files): Likewise.
26413         * modules/array-oset-tests (Files): Likewise.
26414         * modules/avltree-list-tests (Files): Likewise.
26415         * modules/avltree-oset-tests (Files): Likewise.
26416         * modules/avltreehash-list-tests (Files): Likewise.
26417         * modules/base64-tests (Files): Likewise.
26418         * modules/binary-io-tests (Files): Likewise.
26419         * modules/bitrotate-tests (Files): Likewise.
26420         * modules/btowc-tests (Files): Likewise.
26421         * modules/byteswap-tests (Files): Likewise.
26422         * modules/c-ctype-tests (Files): Likewise.
26423         * modules/c-stack-tests (Files): Likewise.
26424         * modules/c-strcase-tests (Files): Likewise.
26425         * modules/c-strcasestr-tests (Files): Likewise.
26426         * modules/c-strstr-tests (Files): Likewise.
26427         * modules/canonicalize-lgpl-tests (Files): Likewise.
26428         * modules/canonicalize-tests (Files): Likewise.
26429         * modules/carray-list-tests (Files): Likewise.
26430         * modules/ceilf-tests (Files): Likewise.
26431         * modules/ceill-tests (Files): Likewise.
26432         * modules/chown-tests (Files): Likewise.
26433         * modules/cloexec-tests (Files): Likewise.
26434         * modules/copy-file-tests (Files): Likewise.
26435         * modules/count-one-bits-tests (Files): Likewise.
26436         * modules/dprintf-posix-tests (Files): Likewise.
26437         * modules/dup2-tests (Files): Likewise.
26438         * modules/dup3-tests (Files): Likewise.
26439         * modules/duplocale-tests (Files): Likewise.
26440         * modules/fbufmode-tests (Files): Likewise.
26441         * modules/fchdir-tests (Files): Likewise.
26442         * modules/fcntl-safer-tests (Files): Likewise.
26443         * modules/fcntl-tests (Files): Likewise.
26444         * modules/fdopendir-tests (Files): Likewise.
26445         * modules/fdutimensat-tests (Files): Likewise.
26446         * modules/fflush-tests (Files): Likewise.
26447         * modules/filevercmp-tests (Files): Likewise.
26448         * modules/flock-tests (Files): Likewise.
26449         * modules/floorf-tests (Files): Likewise.
26450         * modules/floorl-tests (Files): Likewise.
26451         * modules/fnmatch-tests (Files): Likewise.
26452         * modules/fopen-safer-tests (Files): Likewise.
26453         * modules/fopen-tests (Files): Likewise.
26454         * modules/fpending-tests (Files): Likewise.
26455         * modules/fprintf-posix-tests (Files): Likewise.
26456         * modules/fpurge-tests (Files): Likewise.
26457         * modules/freadable-tests (Files): Likewise.
26458         * modules/freadahead-tests (Files): Likewise.
26459         * modules/freading-tests (Files): Likewise.
26460         * modules/freadptr-tests (Files): Likewise.
26461         * modules/freadseek-tests (Files): Likewise.
26462         * modules/freopen-tests (Files): Likewise.
26463         * modules/frexp-nolibm-tests (Files): Likewise.
26464         * modules/frexp-tests (Files): Likewise.
26465         * modules/frexpl-nolibm-tests (Files): Likewise.
26466         * modules/frexpl-tests (Files): Likewise.
26467         * modules/fseek-tests (Files): Likewise.
26468         * modules/fseeko-tests (Files): Likewise.
26469         * modules/fstrcmp-tests (Files): Likewise.
26470         * modules/fsync-tests (Files): Likewise.
26471         * modules/ftell-tests (Files): Likewise.
26472         * modules/ftello-tests (Files): Likewise.
26473         * modules/func-tests (Files): Likewise.
26474         * modules/futimens-tests (Files): Likewise.
26475         * modules/fwritable-tests (Files): Likewise.
26476         * modules/fwriting-tests (Files): Likewise.
26477         * modules/getcwd-tests (Files): Likewise.
26478         * modules/getdate-tests (Files): Likewise.
26479         * modules/getdelim-tests (Files): Likewise.
26480         * modules/getdtablesize-tests (Files): Likewise.
26481         * modules/getgroups-tests (Files): Likewise.
26482         * modules/getline-tests (Files): Likewise.
26483         * modules/getndelim2-tests (Files): Likewise.
26484         * modules/glob-tests (Files): Likewise.
26485         * modules/hash-tests (Files): Likewise.
26486         * modules/i-ring-tests (Files): Likewise.
26487         * modules/iconv-tests (Files): Likewise.
26488         * modules/iconv_open-utf-tests (Files): Likewise.
26489         * modules/idpriv-drop-tests (Files): Likewise.
26490         * modules/idpriv-droptemp-tests (Files): Likewise.
26491         * modules/inet_ntop-tests (Files): Likewise.
26492         * modules/inet_pton-tests (Files): Likewise.
26493         * modules/isblank-tests (Files): Likewise.
26494         * modules/isfinite-tests (Files): Likewise.
26495         * modules/isinf-tests (Files): Likewise.
26496         * modules/isnan-tests (Files): Likewise.
26497         * modules/isnand-nolibm-tests (Files): Likewise.
26498         * modules/isnand-tests (Files): Likewise.
26499         * modules/isnanf-nolibm-tests (Files): Likewise.
26500         * modules/isnanf-tests (Files): Likewise.
26501         * modules/isnanl-nolibm-tests (Files): Likewise.
26502         * modules/isnanl-tests (Files): Likewise.
26503         * modules/lchown-tests (Files): Likewise.
26504         * modules/ldexpl-tests (Files): Likewise.
26505         * modules/link-tests (Files): Likewise.
26506         * modules/linkat-tests (Files): Likewise.
26507         * modules/linked-list-tests (Files): Likewise.
26508         * modules/linkedhash-list-tests (Files): Likewise.
26509         * modules/localename-tests (Files): Likewise.
26510         * modules/lseek-tests (Files): Likewise.
26511         * modules/lstat-tests (Files): Likewise.
26512         * modules/mbmemcasecmp-tests (Files): Likewise.
26513         * modules/mbmemcasecoll-tests (Files): Likewise.
26514         * modules/mbrtowc-tests (Files): Likewise.
26515         * modules/mbscasecmp-tests (Files): Likewise.
26516         * modules/mbscasestr-tests (Files): Likewise.
26517         * modules/mbschr-tests (Files): Likewise.
26518         * modules/mbscspn-tests (Files): Likewise.
26519         * modules/mbsinit-tests (Files): Likewise.
26520         * modules/mbsncasecmp-tests (Files): Likewise.
26521         * modules/mbsnrtowcs-tests (Files): Likewise.
26522         * modules/mbspbrk-tests (Files): Likewise.
26523         * modules/mbspcasecmp-tests (Files): Likewise.
26524         * modules/mbsrchr-tests (Files): Likewise.
26525         * modules/mbsrtowcs-tests (Files): Likewise.
26526         * modules/mbsspn-tests (Files): Likewise.
26527         * modules/mbsstr-tests (Files): Likewise.
26528         * modules/memchr-tests (Files): Likewise.
26529         * modules/memchr2-tests (Files): Likewise.
26530         * modules/memcmp-tests (Files): Likewise.
26531         * modules/memmem-tests (Files): Likewise.
26532         * modules/memrchr-tests (Files): Likewise.
26533         * modules/mkdir-tests (Files): Likewise.
26534         * modules/mkfifo-tests (Files): Likewise.
26535         * modules/mkfifoat-tests (Files): Likewise.
26536         * modules/mknod-tests (Files): Likewise.
26537         * modules/nanosleep-tests (Files): Likewise.
26538         * modules/nl_langinfo-tests (Files): Likewise.
26539         * modules/obstack-printf-tests (Files): Likewise.
26540         * modules/open-tests (Files): Likewise.
26541         * modules/openat-tests (Files): Likewise.
26542         * modules/pipe-filter-gi-tests (Files): Likewise.
26543         * modules/pipe-filter-ii-tests (Files): Likewise.
26544         * modules/pipe2-tests (Files): Likewise.
26545         * modules/popen-safer-tests (Files): Likewise.
26546         * modules/popen-tests (Files): Likewise.
26547         * modules/posixtm-tests (Files): Likewise.
26548         * modules/pread-tests (Files): Likewise.
26549         * modules/printf-frexp-tests (Files): Likewise.
26550         * modules/printf-frexpl-tests (Files): Likewise.
26551         * modules/printf-posix-tests (Files): Likewise.
26552         * modules/priv-set-tests (Files): Likewise.
26553         * modules/quotearg-tests (Files): Likewise.
26554         * modules/random_r-tests (Files): Likewise.
26555         * modules/rawmemchr-tests (Files): Likewise.
26556         * modules/rbtree-list-tests (Files): Likewise.
26557         * modules/rbtree-oset-tests (Files): Likewise.
26558         * modules/rbtreehash-list-tests (Files): Likewise.
26559         * modules/readlink-tests (Files): Likewise.
26560         * modules/remove-tests (Files): Likewise.
26561         * modules/rename-tests (Files): Likewise.
26562         * modules/renameat-tests (Files): Likewise.
26563         * modules/rmdir-tests (Files): Likewise.
26564         * modules/round-tests (Files): Likewise.
26565         * modules/roundf-tests (Files): Likewise.
26566         * modules/roundl-tests (Files): Likewise.
26567         * modules/safe-alloc-tests (Files): Likewise.
26568         * modules/setenv-tests (Files): Likewise.
26569         * modules/sigaction-tests (Files): Likewise.
26570         * modules/signbit-tests (Files): Likewise.
26571         * modules/sleep-tests (Files): Likewise.
26572         * modules/snprintf-posix-tests (Files): Likewise.
26573         * modules/snprintf-tests (Files): Likewise.
26574         * modules/sprintf-posix-tests (Files): Likewise.
26575         * modules/stat-tests (Files): Likewise.
26576         * modules/stat-time-tests (Files): Likewise.
26577         * modules/strcasestr-tests (Files): Likewise.
26578         * modules/strchrnul-tests (Files): Likewise.
26579         * modules/strerror-tests (Files): Likewise.
26580         * modules/striconv-tests (Files): Likewise.
26581         * modules/striconveh-tests (Files): Likewise.
26582         * modules/striconveha-tests (Files): Likewise.
26583         * modules/strsignal-tests (Files): Likewise.
26584         * modules/strstr-tests (Files): Likewise.
26585         * modules/strtod-tests (Files): Likewise.
26586         * modules/strverscmp-tests (Files): Likewise.
26587         * modules/symlink-tests (Files): Likewise.
26588         * modules/symlinkat-tests (Files): Likewise.
26589         * modules/trunc-tests (Files): Likewise.
26590         * modules/truncf-tests (Files): Likewise.
26591         * modules/truncl-tests (Files): Likewise.
26592         * modules/uname-tests (Files): Likewise.
26593         * modules/unicase/cased-tests (Files): Likewise.
26594         * modules/unicase/ignorable-tests (Files): Likewise.
26595         * modules/unicase/locale-language-tests (Files): Likewise.
26596         * modules/unicase/tolower-tests (Files): Likewise.
26597         * modules/unicase/totitle-tests (Files): Likewise.
26598         * modules/unicase/toupper-tests (Files): Likewise.
26599         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26600         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26601         * modules/unicase/u8-casefold-tests (Files): Likewise.
26602         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26603         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26604         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26605         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26606         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26607         * modules/unicase/u8-tolower-tests (Files): Likewise.
26608         * modules/unicase/u8-totitle-tests (Files): Likewise.
26609         * modules/unicase/u8-toupper-tests (Files): Likewise.
26610         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26611         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26612         * modules/unicase/u16-casefold-tests (Files): Likewise.
26613         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26614         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26615         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26616         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26617         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26618         * modules/unicase/u16-tolower-tests (Files): Likewise.
26619         * modules/unicase/u16-totitle-tests (Files): Likewise.
26620         * modules/unicase/u16-toupper-tests (Files): Likewise.
26621         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26622         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26623         * modules/unicase/u32-casefold-tests (Files): Likewise.
26624         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26625         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26626         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26627         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26628         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26629         * modules/unicase/u32-tolower-tests (Files): Likewise.
26630         * modules/unicase/u32-totitle-tests (Files): Likewise.
26631         * modules/unicase/u32-toupper-tests (Files): Likewise.
26632         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26633         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26634         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26635         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26636         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26637         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26638         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26639         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26640         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26641         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26642         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26643         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26644         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26645         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26646         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26647         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26648         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26649         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26650         * modules/unictype/block-list-tests (Files): Likewise.
26651         * modules/unictype/block-of-tests (Files): Likewise.
26652         * modules/unictype/block-test-tests (Files): Likewise.
26653         * modules/unictype/category-C-tests (Files): Likewise.
26654         * modules/unictype/category-Cc-tests (Files): Likewise.
26655         * modules/unictype/category-Cf-tests (Files): Likewise.
26656         * modules/unictype/category-Cn-tests (Files): Likewise.
26657         * modules/unictype/category-Co-tests (Files): Likewise.
26658         * modules/unictype/category-Cs-tests (Files): Likewise.
26659         * modules/unictype/category-L-tests (Files): Likewise.
26660         * modules/unictype/category-Ll-tests (Files): Likewise.
26661         * modules/unictype/category-Lm-tests (Files): Likewise.
26662         * modules/unictype/category-Lo-tests (Files): Likewise.
26663         * modules/unictype/category-Lt-tests (Files): Likewise.
26664         * modules/unictype/category-Lu-tests (Files): Likewise.
26665         * modules/unictype/category-M-tests (Files): Likewise.
26666         * modules/unictype/category-Mc-tests (Files): Likewise.
26667         * modules/unictype/category-Me-tests (Files): Likewise.
26668         * modules/unictype/category-Mn-tests (Files): Likewise.
26669         * modules/unictype/category-N-tests (Files): Likewise.
26670         * modules/unictype/category-Nd-tests (Files): Likewise.
26671         * modules/unictype/category-Nl-tests (Files): Likewise.
26672         * modules/unictype/category-No-tests (Files): Likewise.
26673         * modules/unictype/category-P-tests (Files): Likewise.
26674         * modules/unictype/category-Pc-tests (Files): Likewise.
26675         * modules/unictype/category-Pd-tests (Files): Likewise.
26676         * modules/unictype/category-Pe-tests (Files): Likewise.
26677         * modules/unictype/category-Pf-tests (Files): Likewise.
26678         * modules/unictype/category-Pi-tests (Files): Likewise.
26679         * modules/unictype/category-Po-tests (Files): Likewise.
26680         * modules/unictype/category-Ps-tests (Files): Likewise.
26681         * modules/unictype/category-S-tests (Files): Likewise.
26682         * modules/unictype/category-Sc-tests (Files): Likewise.
26683         * modules/unictype/category-Sk-tests (Files): Likewise.
26684         * modules/unictype/category-Sm-tests (Files): Likewise.
26685         * modules/unictype/category-So-tests (Files): Likewise.
26686         * modules/unictype/category-Z-tests (Files): Likewise.
26687         * modules/unictype/category-Zl-tests (Files): Likewise.
26688         * modules/unictype/category-Zp-tests (Files): Likewise.
26689         * modules/unictype/category-Zs-tests (Files): Likewise.
26690         * modules/unictype/category-and-not-tests (Files): Likewise.
26691         * modules/unictype/category-and-tests (Files): Likewise.
26692         * modules/unictype/category-byname-tests (Files): Likewise.
26693         * modules/unictype/category-name-tests (Files): Likewise.
26694         * modules/unictype/category-none-tests (Files): Likewise.
26695         * modules/unictype/category-of-tests (Files): Likewise.
26696         * modules/unictype/category-or-tests (Files): Likewise.
26697         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26698         * modules/unictype/combining-class-tests (Files): Likewise.
26699         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26700         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26701         * modules/unictype/ctype-blank-tests (Files): Likewise.
26702         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26703         * modules/unictype/ctype-digit-tests (Files): Likewise.
26704         * modules/unictype/ctype-graph-tests (Files): Likewise.
26705         * modules/unictype/ctype-lower-tests (Files): Likewise.
26706         * modules/unictype/ctype-print-tests (Files): Likewise.
26707         * modules/unictype/ctype-punct-tests (Files): Likewise.
26708         * modules/unictype/ctype-space-tests (Files): Likewise.
26709         * modules/unictype/ctype-upper-tests (Files): Likewise.
26710         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26711         * modules/unictype/decimal-digit-tests (Files): Likewise.
26712         * modules/unictype/digit-tests (Files): Likewise.
26713         * modules/unictype/mirror-tests (Files): Likewise.
26714         * modules/unictype/numeric-tests (Files): Likewise.
26715         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26716         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26717         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26718         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26719         Likewise.
26720         * modules/unictype/property-bidi-block-separator-tests (Files):
26721         Likewise.
26722         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26723         Likewise.
26724         * modules/unictype/property-bidi-common-separator-tests (Files):
26725         Likewise.
26726         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26727         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26728         Likewise.
26729         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26730         Likewise.
26731         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26732         Likewise.
26733         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26734         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26735         Likewise.
26736         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26737         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26738         Likewise.
26739         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26740         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26741         * modules/unictype/property-bidi-segment-separator-tests (Files):
26742         Likewise.
26743         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26744         * modules/unictype/property-byname-tests (Files): Likewise.
26745         * modules/unictype/property-combining-tests (Files): Likewise.
26746         * modules/unictype/property-composite-tests (Files): Likewise.
26747         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26748         * modules/unictype/property-dash-tests (Files): Likewise.
26749         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26750         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26751         Likewise.
26752         * modules/unictype/property-deprecated-tests (Files): Likewise.
26753         * modules/unictype/property-diacritic-tests (Files): Likewise.
26754         * modules/unictype/property-extender-tests (Files): Likewise.
26755         * modules/unictype/property-format-control-tests (Files): Likewise.
26756         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26757         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26758         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26759         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26760         * modules/unictype/property-hyphen-tests (Files): Likewise.
26761         * modules/unictype/property-id-continue-tests (Files): Likewise.
26762         * modules/unictype/property-id-start-tests (Files): Likewise.
26763         * modules/unictype/property-ideographic-tests (Files): Likewise.
26764         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26765         * modules/unictype/property-ids-trinary-operator-tests (Files):
26766         Likewise.
26767         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26768         * modules/unictype/property-iso-control-tests (Files): Likewise.
26769         * modules/unictype/property-join-control-tests (Files): Likewise.
26770         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26771         * modules/unictype/property-line-separator-tests (Files): Likewise.
26772         * modules/unictype/property-logical-order-exception-tests (Files):
26773         Likewise.
26774         * modules/unictype/property-lowercase-tests (Files): Likewise.
26775         * modules/unictype/property-math-tests (Files): Likewise.
26776         * modules/unictype/property-non-break-tests (Files): Likewise.
26777         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26778         * modules/unictype/property-numeric-tests (Files): Likewise.
26779         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26780         * modules/unictype/property-other-default-ignorable-code-point-tests
26781         (Files): Likewise.
26782         * modules/unictype/property-other-grapheme-extend-tests (Files):
26783         Likewise.
26784         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26785         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26786         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26787         * modules/unictype/property-other-math-tests (Files): Likewise.
26788         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26789         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26790         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26791         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26792         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26793         * modules/unictype/property-private-use-tests (Files): Likewise.
26794         * modules/unictype/property-punctuation-tests (Files): Likewise.
26795         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26796         * modules/unictype/property-radical-tests (Files): Likewise.
26797         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26798         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26799         * modules/unictype/property-space-tests (Files): Likewise.
26800         * modules/unictype/property-terminal-punctuation-tests (Files):
26801         Likewise.
26802         * modules/unictype/property-test-tests (Files): Likewise.
26803         * modules/unictype/property-titlecase-tests (Files): Likewise.
26804         * modules/unictype/property-unassigned-code-value-tests (Files):
26805         Likewise.
26806         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26807         * modules/unictype/property-uppercase-tests (Files): Likewise.
26808         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26809         * modules/unictype/property-white-space-tests (Files): Likewise.
26810         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26811         * modules/unictype/property-xid-start-tests (Files): Likewise.
26812         * modules/unictype/property-zero-width-tests (Files): Likewise.
26813         * modules/unictype/scripts-tests (Files): Likewise.
26814         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26815         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26816         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26817         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26818         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26819         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26820         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26821         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26822         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26823         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26824         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26825         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26826         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26827         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26828         * modules/uninorm/composition-tests (Files): Likewise.
26829         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26830         * modules/uninorm/decomposition-tests (Files): Likewise.
26831         * modules/uninorm/filter-tests (Files): Likewise.
26832         * modules/uninorm/nfc-tests (Files): Likewise.
26833         * modules/uninorm/nfd-tests (Files): Likewise.
26834         * modules/uninorm/nfkc-tests (Files): Likewise.
26835         * modules/uninorm/nfkd-tests (Files): Likewise.
26836         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26837         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26838         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26839         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26840         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26841         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26842         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26843         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26844         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26845         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26846         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26847         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26848         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26849         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26850         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26851         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26852         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26853         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26854         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26855         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26856         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26857         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26858         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26859         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26860         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26861         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26862         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26863         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26864         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26865         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26866         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26867         * modules/uniwidth/u8-width-tests (Files): Likewise.
26868         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26869         * modules/uniwidth/u16-width-tests (Files): Likewise.
26870         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26871         * modules/uniwidth/u32-width-tests (Files): Likewise.
26872         * modules/uniwidth/width-tests (Files): Likewise.
26873         * modules/unlink-tests (Files): Likewise.
26874         * modules/unsetenv-tests (Files): Likewise.
26875         * modules/usleep-tests (Files): Likewise.
26876         * modules/utimens-tests (Files): Likewise.
26877         * modules/utimensat-tests (Files): Likewise.
26878         * modules/vasnprintf-posix-tests (Files): Likewise.
26879         * modules/vasnprintf-tests (Files): Likewise.
26880         * modules/vasprintf-posix-tests (Files): Likewise.
26881         * modules/vasprintf-tests (Files): Likewise.
26882         * modules/vdprintf-posix-tests (Files): Likewise.
26883         * modules/vfprintf-posix-tests (Files): Likewise.
26884         * modules/vprintf-posix-tests (Files): Likewise.
26885         * modules/vsnprintf-posix-tests (Files): Likewise.
26886         * modules/vsnprintf-tests (Files): Likewise.
26887         * modules/vsprintf-posix-tests (Files): Likewise.
26888         * modules/wcrtomb-tests (Files): Likewise.
26889         * modules/wcsnrtombs-tests (Files): Likewise.
26890         * modules/wcsrtombs-tests (Files): Likewise.
26891         * modules/wctype-tests (Files): Likewise.
26892         * modules/wcwidth-tests (Files): Likewise.
26893         * modules/xmemdup0-tests (Files): Likewise.
26894         * modules/xprintf-posix-tests (Files): Likewise.
26895         * modules/xvasprintf-tests (Files): Likewise.
26896
26897 2009-12-24  Eric Blake  <ebb9@byu.net>
26898
26899         test-nanosleep: fix typo
26900         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26901         patch.
26902         Reported by Bruno Haible.
26903
26904 2009-12-24  Bruno Haible  <bruno@clisp.org>
26905
26906         Reduce namespace pollution on glibc systems.
26907         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26908         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26909         systems.
26910         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26911         <getopt.h> on glibc systems.
26912         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26913         systems.
26914         * lib/fcntl.c: Include <unistd.h> here instead.
26915
26916 2009-12-24  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26919
26920 2009-12-24  Eric Blake  <ebb9@byu.net>
26921
26922         tests: add signature checks
26923         * tests/signature.h (SIGNATURE_CHECK): New file.
26924         * modules/atexit-tests (Files): Use it.
26925         * modules/btowc-tests (Files): Likewise.
26926         * modules/canonicalize-lgpl-tests (Files): Likewise.
26927         * modules/ceilf-tests (Files): Likewise.
26928         * modules/ceill-tests (Files): Likewise.
26929         * modules/chown-tests (Files): Likewise.
26930         * modules/dprintf-posix-tests (Files): Likewise.
26931         * modules/dup2-tests (Files): Likewise.
26932         * modules/dup3-tests (Files): Likewise.
26933         * modules/duplocale-tests (Files): Likewise.
26934         * modules/fchdir-tests (Files): Likewise.
26935         * modules/fcntl-tests (Files): Likewise.
26936         * modules/fdopendir-tests (Files): Likewise.
26937         * modules/fflush-tests (Files): Likewise.
26938         * modules/flock-tests (Files): Likewise.
26939         * modules/floorf-tests (Files): Likewise.
26940         * modules/floorl-tests (Files): Likewise.
26941         * modules/fnmatch-tests (Files): Likewise.
26942         * modules/fopen-tests (Files): Likewise.
26943         * modules/fprintf-posix-tests (Files): Likewise.
26944         * modules/freopen-tests (Files): Likewise.
26945         * modules/frexp-nolibm-tests (Files): Likewise.
26946         * modules/frexp-tests (Files): Likewise.
26947         * modules/frexpl-nolibm-tests (Files): Likewise.
26948         * modules/frexpl-tests (Files): Likewise.
26949         * modules/fseek-tests (Files): Likewise.
26950         * modules/fseeko-tests (Files): Likewise.
26951         * modules/fsync-tests (Files): Likewise.
26952         * modules/ftell-tests (Files): Likewise.
26953         * modules/ftello-tests (Files): Likewise.
26954         * modules/futimens-tests (Files): Likewise.
26955         * modules/getaddrinfo-tests (Files): Likewise.
26956         * modules/getcwd-tests (Files): Likewise.
26957         * modules/getdelim-tests (Files): Likewise.
26958         * modules/getdtablesize-tests (Files): Likewise.
26959         * modules/getgroups-tests (Files): Likewise.
26960         * modules/gethostname-tests (Files): Likewise.
26961         * modules/getline-tests (Files): Likewise.
26962         * modules/getopt-posix-tests (Files): Likewise.
26963         * modules/gettimeofday-tests (Files): Likewise.
26964         * modules/glob-tests (Files): Likewise.
26965         * modules/iconv-tests (Files): Likewise.
26966         * modules/inet_ntop-tests (Files): Likewise.
26967         * modules/inet_pton-tests (Files): Likewise.
26968         * modules/isblank-tests (Files): Likewise.
26969         * modules/lchown-tests (Files): Likewise.
26970         * modules/ldexpl-tests (Files): Likewise.
26971         * modules/link-tests (Files): Likewise.
26972         * modules/linkat-tests (Files): Likewise.
26973         * modules/lseek-tests (Files): Likewise.
26974         * modules/lstat-tests (Files): Likewise.
26975         * modules/mbrtowc-tests (Files): Likewise.
26976         * modules/mbsinit-tests (Files): Likewise.
26977         * modules/mbsnrtowcs-tests (Files): Likewise.
26978         * modules/mbsrtowcs-tests (Files): Likewise.
26979         * modules/memchr-tests (Files): Likewise.
26980         * modules/memcmp-tests (Files): Likewise.
26981         * modules/memmem-tests (Files): Likewise.
26982         * modules/memrchr-tests (Files): Likewise.
26983         * modules/mkdir-tests (Files): Likewise.
26984         * modules/mkfifo-tests (Files): Likewise.
26985         * modules/mkfifoat-tests (Files): Likewise.
26986         * modules/mknod-tests (Files): Likewise.
26987         * modules/nanosleep-tests (Files): Likewise.
26988         * modules/nl_langinfo-tests (Files): Likewise.
26989         * modules/obstack-printf-tests (Files): Likewise.
26990         * modules/open-tests (Files): Likewise.
26991         * modules/openat-tests (Files): Likewise.
26992         * modules/perror-tests (Files): Likewise.
26993         * modules/pipe2-tests (Files): Likewise.
26994         * modules/poll-tests (Files): Likewise.
26995         * modules/popen-tests (Files): Likewise.
26996         * modules/posix_spawn-tests (Files): Likewise.
26997         * modules/posix_spawnp-tests (Files): Likewise.
26998         * modules/pread-tests (Files): Likewise.
26999         * modules/printf-posix-tests (Files): Likewise.
27000         * modules/pty-tests (Files): Likewise.
27001         * modules/random_r-tests (Files): Likewise.
27002         * modules/rawmemchr-tests (Files): Likewise.
27003         * modules/readlink-tests (Files): Likewise.
27004         * modules/remove-tests (Files): Likewise.
27005         * modules/rename-tests (Files): Likewise.
27006         * modules/renameat-tests (Files): Likewise.
27007         * modules/rmdir-tests (Files): Likewise.
27008         * modules/round-tests (Files): Likewise.
27009         * modules/roundf-tests (Files): Likewise.
27010         * modules/roundl-tests (Files): Likewise.
27011         * modules/select-tests (Files): Likewise.
27012         * modules/setenv-tests (Files): Likewise.
27013         * modules/sigaction-tests (Files): Likewise.
27014         * modules/sleep-tests (Files): Likewise.
27015         * modules/snprintf-posix-tests (Files): Likewise.
27016         * modules/snprintf-tests (Files): Likewise.
27017         * modules/sprintf-posix-tests (Files): Likewise.
27018         * modules/stat-tests (Files): Likewise.
27019         * modules/strcasestr-tests (Files): Likewise.
27020         * modules/strchrnul-tests (Files): Likewise.
27021         * modules/strerror-tests (Files): Likewise.
27022         * modules/strsignal-tests (Files): Likewise.
27023         * modules/strstr-tests (Files): Likewise.
27024         * modules/strtod-tests (Files): Likewise.
27025         * modules/strverscmp-tests (Files): Likewise.
27026         * modules/symlink-tests (Files): Likewise.
27027         * modules/symlinkat-tests (Files): Likewise.
27028         * modules/times-tests (Files): Likewise.
27029         * modules/trunc-tests (Files): Likewise.
27030         * modules/truncf-tests (Files): Likewise.
27031         * modules/truncl-tests (Files): Likewise.
27032         * modules/tsearch-tests (Files): Likewise.
27033         * modules/uname-tests (Files): Likewise.
27034         * modules/unlink-tests (Files): Likewise.
27035         * modules/unsetenv-tests (Files): Likewise.
27036         * modules/usleep-tests (Files): Likewise.
27037         * modules/utimensat-tests (Files): Likewise.
27038         * modules/vasprintf-tests (Files): Likewise.
27039         * modules/vdprintf-posix-tests (Files): Likewise.
27040         * modules/vfprintf-posix-tests (Files): Likewise.
27041         * modules/vprintf-posix-tests (Files): Likewise.
27042         * modules/vsnprintf-posix-tests (Files): Likewise.
27043         * modules/vsnprintf-tests (Files): Likewise.
27044         * modules/vsprintf-posix-tests (Files): Likewise.
27045         * modules/wcrtomb-tests (Files): Likewise.
27046         * modules/wcsnrtombs-tests (Files): Likewise.
27047         * modules/wcsrtombs-tests (Files): Likewise.
27048         * modules/wcwidth-tests (Files): Likewise.
27049         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27050         * tests/test-isinf.c (isinf): Likewise.
27051         * tests/test-isnan.c (isnan): Likewise.
27052         * tests/test-signbit.c (signbit): Likewise.
27053         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27054         declaration, either as macro or with correct signature.
27055         (select): Ensure function under test is declared with correct
27056         signature in correct header.
27057         * tests/test-atexit.c (atexit): Likewise.
27058         * tests/test-btowc.c (btowc): Likewise.
27059         * tests/test-canonicalize-lgpl.c (realpath)
27060         (canonicalize_file_name): Likewise.
27061         * tests/test-ceilf1.c (ceilf): Likewise.
27062         * tests/test-ceill.c (ceill): Likewise.
27063         * tests/test-chown.c (chown): Likewise.
27064         * tests/test-dprintf-posix.c (dprintf): Likewise.
27065         * tests/test-dup2.c (dup2): Likewise.
27066         * tests/test-dup3.c (dup3): Likewise.
27067         * tests/test-duplocale.c (duplocale): Likewise.
27068         * tests/test-fchdir.c (fchdir): Likewise.
27069         * tests/test-fchownat.c (fchownat): Likewise.
27070         * tests/test-fcntl.c (fcntl): Likewise.
27071         * tests/test-fdopendir.c (fdopendir): Likewise.
27072         * tests/test-fflush.c (fflush): Likewise.
27073         * tests/test-flock.c (flock): Likewise.
27074         * tests/test-floorf1.c (floorf): Likewise.
27075         * tests/test-floorl.c (floorl): Likewise.
27076         * tests/test-fnmatch.c (fnmatch): Likewise.
27077         * tests/test-fopen.c (fopen): Likewise.
27078         * tests/test-fprintf-posix.c (fprintf): Likewise.
27079         * tests/test-freopen.c (freopen): Likewise.
27080         * tests/test-frexp.c (frexp): Likewise.
27081         * tests/test-frexpl.c (frexpl): Likewise.
27082         * tests/test-fseek.c (fseek): Likewise.
27083         * tests/test-fseeko.c (fseeko): Likewise.
27084         * tests/test-fstatat.c (fstatat): Likewise.
27085         * tests/test-fsync.c (fsync): Likewise.
27086         * tests/test-ftell.c (ftell): Likewise.
27087         * tests/test-ftello.c (ftello): Likewise.
27088         * tests/test-futimens.c (futimens): Likewise.
27089         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27090         (gai_strerror): Likewise.
27091         * tests/test-getcwd.c (getcwd): Likewise.
27092         * tests/test-getdelim.c (getdelim): Likewise.
27093         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27094         * tests/test-getgroups.c (getgroups): Likewise.
27095         * tests/test-gethostname.c (gethostname): Likewise.
27096         * tests/test-getline.c (getline): Likewise.
27097         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27098         Likewise.
27099         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27100         * tests/test-glob.c (glob, globfree): Likewise.
27101         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27102         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27103         * tests/test-inet_pton.c (inet_pton): Likewise.
27104         * tests/test-isblank.c (isblank): Likewise.
27105         * tests/test-lchown.c (lchown): Likewise.
27106         * tests/test-ldexpl.c (ldexpl): Likewise.
27107         * tests/test-link.c (link): Likewise.
27108         * tests/test-linkat.c (linkat): Likewise.
27109         * tests/test-lseek.c (lseek): Likewise.
27110         * tests/test-lstat.c (lstat): Likewise.
27111         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27112         * tests/test-mbsinit.c (mbsinit): Likewise.
27113         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27114         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27115         * tests/test-memchr.c (memchr): Likewise.
27116         * tests/test-memcmp.c (memcmp): Likewise.
27117         * tests/test-memmem.c (memmem): Likewise.
27118         * tests/test-memrchr.c (memrchr): Likewise.
27119         * tests/test-mkdir.c (mkdir): Likewise.
27120         * tests/test-mkdirat.c (mkdirat): Likewise.
27121         * tests/test-mkfifo.c (mkfifo): Likewise.
27122         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27123         * tests/test-mknod.c (mknod): Likewise.
27124         * tests/test-nanosleep.c (nanosleep): Likewise.
27125         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27126         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27127         Likewise.
27128         * tests/test-open.c (open): Likewise.
27129         * tests/test-openat.c (openat): Likewise.
27130         * tests/test-perror.c (perror): Likewise.
27131         * tests/test-pipe2.c (pipe2): Likewise.
27132         * tests/test-poll.c (poll): Likewise.
27133         * tests/test-popen.c (popen, pclose): Likewise.
27134         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27135         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27136         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27137         (posix_spawn_file_actions_destroy)
27138         (posix_spawn_file_actions_addclose)
27139         (posix_spawn_file_actions_addopen)
27140         (posix_spawn_file_actions_adddup2): Likewise.
27141         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27142         * tests/test-pread.c (pread): Likewise.
27143         * tests/test-printf-posix.c (printf): Likewise.
27144         * tests/test-pty.c (openpty, forkpty): Likewise.
27145         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27146         (random_r): Likewise.
27147         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27148         * tests/test-readlink.c (readlink): Likewise.
27149         * tests/test-remove.c (remove): Likewise.
27150         * tests/test-rename.c (rename): Likewise.
27151         * tests/test-renameat.c (renameat): Likewise.
27152         * tests/test-rmdir.c (rmdir): Likewise.
27153         * tests/test-round1.c (round): Likewise.
27154         * tests/test-roundf1.c (roundf): Likewise.
27155         * tests/test-roundl.c (roundl): Likewise.
27156         * tests/test-setenv.c (setenv): Likewise.
27157         * tests/test-sigaction.c (sigaction): Likewise.
27158         * tests/test-sleep.c (sleep): Likewise.
27159         * tests/test-snprintf.c (snprintf): Likewise.
27160         * tests/test-sprintf-posix.c (sprintf): Likewise.
27161         * tests/test-stat.c (stat): Likewise.
27162         * tests/test-stpncpy.c (stpncpy): Likewise.
27163         * tests/test-strcasestr.c (strcasestr): Likewise.
27164         * tests/test-strchrnul.c (strchrnul): Likewise.
27165         * tests/test-strerror.c (strerror): Likewise.
27166         * tests/test-strsignal.c (strsignal): Likewise.
27167         * tests/test-strstr.c (strstr): Likewise.
27168         * tests/test-strtod.c (strtod): Likewise.
27169         * tests/test-strverscmp.c (strverscmp): Likewise.
27170         * tests/test-symlink.c (symlink): Likewise.
27171         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27172         * tests/test-times.c (times): Likewise.
27173         * tests/test-trunc1.c (trunc): Likewise.
27174         * tests/test-truncf1.c (truncf): Likewise.
27175         * tests/test-truncl.c (truncl): Likewise.
27176         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27177         Likewise.
27178         * tests/test-uname.c (uname): Likewise.
27179         * tests/test-unlink.c (unlink): Likewise.
27180         * tests/test-unlinkat.c (unlinkat): Likewise.
27181         * tests/test-unsetenv.c (unsetenv): Likewise.
27182         * tests/test-usleep.c (usleep): Likewise.
27183         * tests/test-utimensat.c (utimensat): Likewise.
27184         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27185         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27186         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27187         * tests/test-vprintf-posix.c (vprintf): Likewise.
27188         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27189         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27190         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27191         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27192         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27193         * tests/test-wcwidth.c (wcwidth): Likewise.
27194
27195         build: pull in conditional headers during GNULIB_POSIXCHECK
27196         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27197         definitions from any conditionally-included headers.
27198         * lib/stdlib.in.h (includes): Likewise.
27199         * lib/unistd.in.h (includes): Likewise.
27200
27201 2009-12-24  Bruno Haible  <bruno@clisp.org>
27202
27203         * tests/test-argv-iter.c: Include header file being tested immediately
27204         after config.h.
27205         * tests/test-base64.c: Likewise.
27206         * tests/test-flock.c: Likewise.
27207         * tests/test-fsync.c: Likewise.
27208         * tests/test-getdate.c: Likewise.
27209         * tests/test-getndelim2.c: Likewise.
27210         * tests/test-isfinite.c: Likewise.
27211         * tests/test-isinf.c: Likewise.
27212         * tests/test-strerror.c: Likewise.
27213         * tests/test-strsignal.c: Likewise.
27214
27215 2009-12-23  Eric Blake  <ebb9@byu.net>
27216
27217         unistd: work around cygwin bug
27218         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27219         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27220         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27221
27222 2009-12-23  Bruno Haible  <bruno@clisp.org>
27223
27224         localename: More tests.
27225         * tests/test-localename.c (SIZEOF): New macro.
27226         (categories): New variable.
27227         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27228         test_locale_name_default): Add test w.r.t. thread locale.
27229         (test_locale_name_thread): New function.
27230         (main): Invoke it.
27231
27232         localename: Make aware of thread locale.
27233         * lib/localename.h (gl_locale_name_thread): New declaration.
27234         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27235         behaviour with respect to thread locale.
27236         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27237         <langinfo.h>, glthread/lock.h.
27238         (SIZE_BITS): New macro.
27239         (string_hash): New function.
27240         (struct hash_node): New type.
27241         (HASH_TABLE_SIZE): New macro.
27242         (struniq_hash_table, struniq_lock): New variables.
27243         (struniq): New function.
27244         (gl_locale_name_thread): New function.
27245         (gl_locale_name): Invoke it.
27246         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27247         * modules/localename (Depends-on): Add lock.
27248         Reported by Mike Gran <spk121@yahoo.com>.
27249
27250 2009-12-23  Eric Blake  <ebb9@byu.net>
27251
27252         va-args: new module
27253         * modules/va-args: New file.
27254         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27255         * MODULES.html.sh (Core language properties): Mention it.
27256
27257         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27258         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27259         named alias for __attribute__((__unused__)).
27260         * lib/chown.c: Update client.
27261         * lib/fchmodat.c: Likewise.
27262         * lib/fts.c: Likewise.
27263         * lib/getdate.y: Likewise.
27264         * lib/getgroups.c: Likewise.
27265         * lib/getopt.c: Likewise.
27266         * lib/getugroups.c: Likewise.
27267         * lib/mkdir.c: Likewise.
27268         * lib/mkfifo.c: Likewise.
27269         * lib/mkfifoat.c: Likewise.
27270         * lib/mknod.c: Likewise.
27271         * lib/mknodat.c: Likewise.
27272         * lib/readlink.c: Likewise.
27273         * lib/se-context.in.h: Likewise.
27274         * lib/se-selinux.in.h: Likewise.
27275         * lib/sockets.c: Likewise.
27276         * lib/symlink.c: Likewise.
27277         * lib/symlinkat.c: Likewise.
27278         * lib/unicodeio.c: Likewise.
27279         * lib/unistr.h: Likewise.
27280         * tests/test-areadlink.c: Likewise.
27281         * tests/test-areadlinkat.c: Likewise.
27282         * tests/test-filenamecat.c: Likewise.
27283         * tests/test-fseeko.c: Likewise.
27284         * tests/test-ftello.c: Likewise.
27285         * tests/test-getdate.c: Likewise.
27286         * tests/test-getgroups.c: Likewise.
27287         * tests/test-gethostname.c: Likewise.
27288         * tests/test-quotearg.c: Likewise.
27289         * tests/test-version-etc.c: Likewise.
27290         * tests/test-xalloc-die.c: Likewise.
27291         * tests/test-xfprintf-posix.c: Likewise.
27292         * tests/test-xprintf-posix.c: Likewise.
27293         * tests/test-xvasprintf.c: Likewise.
27294
27295         tests: avoid compiler warnings
27296         * tests/test-fcntl.c (main): Delete unused parameters.
27297         * tests/test-freopen-safer.c (main): Likewise.
27298         * tests/test-xalloc-die.c (main): Mark unused parameters.
27299         * tests/test-fseeko.c (main): Likewise.
27300         * tests/test-ftello.c (main): Likewise.
27301         * tests/test-nanosleep.c (main): Avoid declaration warning.
27302         * tests/test-sleep.c (main): Likewise.
27303         * tests/test-unsetenv.c (main): Silence warning about string
27304         literal.
27305         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27306
27307 2009-12-23  Bruno Haible  <bruno@clisp.org>
27308
27309         * tests/test-localename.c (test_locale_name): New function, extracted
27310         from main. Also test mixed situations.
27311         (test_locale_name_posix, test_locale_name_environ,
27312         test_locale_name_default): New functions.
27313         (main): Invoke them all.
27314         * modules/localename-tests (configure.ac): Test for newlocale.
27315
27316 2009-12-23  Bruno Haible  <bruno@clisp.org>
27317
27318         unistd: Ensure getcwd gets declared before being overridden.
27319         * lib/unistd.in.h: Conditionally include <io.h>.
27320
27321 2009-12-22  Bruno Haible  <bruno@clisp.org>
27322
27323         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27324         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27325         (gl_WCHAR_H): Invoke it.
27326         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27327         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27328         Reported by Karl Berry <karl@freefriends.org>.
27329
27330 2009-12-22  Eric Blake  <ebb9@byu.net>
27331
27332         math, unistd: avoid redundant includes
27333         * lib/math.in.h (isnan): No need to re-include <math.h>.
27334         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27335
27336         getsubopt: work around cygwin bug
27337         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27338         avoid conflicting with system getsubopt.
27339         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27340         bug.
27341
27342         getopt: synchronize from glibc
27343         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27344         parameter order.  Adjust all callers.
27345         (_getopt_internal_r, main): Adjust quoting in error messages.
27346         Drop considerations for outdated POSIX 1003.2 error message.
27347         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27348         callers.
27349         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27350
27351         test-getopt: test stderr behavior
27352         * modules/getopt-posix-tests (Depends-on): Add dup2.
27353         * tests/test-getopt.c (ASSERT): Avoid stderr.
27354         (main): Move stderr to a temporary file.
27355         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27356         Instead, add parameter to inform caller if output occurred.
27357         (test_getopt): Adjust all existing tests to expect silence, and
27358         add new tests of leading ":".
27359         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27360         glibc shortcomings with leading "-:" or "+:" in optstring.
27361         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27362         Likewise.
27363         * doc/posix-functions/getopt.texi (getopt): Likewise.
27364
27365         test-getopt: enhance test
27366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27367         supports optind=0.
27368         * tests/test-getopt.c (OPTIND_MIN): Move...
27369         * tests/test-getopt.h (OPTIND_MIN): ...here.
27370         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27371         Require that optind=0 works, since modern BSD supports it in
27372         addition to optreset, and since coreutils expects it.
27373         (test_getopt_long_only): New test.
27374         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27375         glibc shortcomings with 'W;', and enforcement of optind=0.
27376         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27377         Likewise.
27378
27379 2009-12-21  Bruno Haible  <bruno@clisp.org>
27380
27381         localename: Improvements for MacOS X and Cygwin.
27382         * lib/localename.h (gl_locale_name_environ): New declaration.
27383         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27384         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27385         (gl_locale_name_posix): Invoke it.
27386         (gl_locale_name_default): Add comments. Use Windows native API also on
27387         Cygwin.
27388
27389 2009-12-21  Bruno Haible  <bruno@clisp.org>
27390
27391         Update list of Win32 locale ids.
27392         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27393         (LANG_SAMI): Renamed from LANG_SAAMI.
27394         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27395         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27396         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27397         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27398         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27399         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27400         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27401         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27402         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27403         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27404         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27405         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27406         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27407         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27408         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27409         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27410         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27411         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27412         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27413         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27414         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27415         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27416         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27417         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27418         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27419         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27420         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27421         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27422         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27423         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27424         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27425         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27426         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27427         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27428         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27429         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27430         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27431         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27432         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27433         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27434         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27435         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27436         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27437         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27438         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27439         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27440         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27441         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27442         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27443         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27444         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27445         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27446         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27447         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27448         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27449         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27450         Add more languages and countries for Sami, Sorbian. Add more countries
27451         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27452         for Pashto. Change country for Syriac, Tswana.
27453
27454 2009-12-21  Eric Blake  <ebb9@byu.net>
27455
27456         test-utimens: avoid spurious failure
27457         * tests/test-chown.h (nap): Factor...
27458         * tests/nap.h: ...into new file.
27459         * tests/test-lchown.h (nap): Avoid duplication.
27460         * tests/test-utimens-common.h (nap): Use shared implementation,
27461         necessary on file systems with 1-second resolution.
27462         * modules/chown-tests (Files): Include new file.
27463         * modules/fdutimensat-tests (Files): Likewise.
27464         * modules/futimens-tests (Files): Likewise.
27465         * modules/lchown-tests (Files): Likewise.
27466         * modules/openat-tests (Files): Likewise.
27467         * modules/utimens-tests (Files): Likewise.
27468         * modules/utimensat-tests (Files): Likewise.
27469
27470 2009-12-19  Eric Blake  <ebb9@byu.net>
27471
27472         futimens, utimensat: work around Linux bug
27473         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27474         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27475         * lib/utimensat.c (rpl_utimensat): Work around it.
27476         * lib/futimens.c (rpl_futimens): Adjust comment.
27477
27478         utimens: work around Linux ctime bug
27479         * lib/utimens.c (detect_ctime_bug): New helper function.
27480         (update_timespec): Differentiate between workaround needed for
27481         this bug vs. what is needed for systems that lack utimensat.
27482         (fdutimens, lutimens): Work around bug.
27483
27484         utimens: check for ctime update
27485         * tests/test-utimens-common.h (check_ctime): Define.
27486         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27487         * tests/test-futimens.h (test_futimens): Likewise.
27488         * tests/test-lutimens.h (test_lutimens): Likewise.
27489         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27490         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27491
27492 2009-12-19  Bruno Haible  <bruno@clisp.org>
27493
27494         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27495         * tests/test-dprintf-posix2.sh: New file.
27496         * tests/test-dprintf-posix2.c: New file.
27497         * modules/dprintf-posix-tests (Files): Add them.
27498         (configure.ac): Check for getrlimit and setrlimit.
27499         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27500
27501 2009-12-19  Bruno Haible  <bruno@clisp.org>
27502
27503         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27504         * tests/test-fprintf-posix3.sh: New file.
27505         * tests/test-fprintf-posix3.c: New file.
27506         * modules/fprintf-posix-tests (Files): Add them.
27507         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27508
27509 2009-12-19  Eric Blake  <ebb9@byu.net>
27510
27511         dirfd: fix prototype
27512         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27513         * lib/dirfd.c (dirfd): Likewise.
27514
27515         canonicalize: reduce memory usage
27516         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27517         allocation to size.
27518         Reported by Solar Designer <solar@openwall.com>.
27519
27520 2009-12-19  Bruno Haible  <bruno@clisp.org>
27521
27522         New module attribute 'Applicability'.
27523         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27524         * gnulib-tool: New option --extract-applicability.
27525         (func_usage): Document it.
27526         (sed_extract_prog): Recognize it.
27527         (func_get_applicability): New function.
27528         (func_import): Generalize handling of 'link-warning' module.
27529         * modules/link-warning (Applicability): New section.
27530         * modules/arg-nonnull (Applicability): New section.
27531         Repoted by Simon Josefsson <simon@josefsson.org>.
27532
27533 2009-12-19  Bruno Haible  <bruno@clisp.org>
27534
27535         fflush: tweak
27536         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27537         * lib/fseeko.c (rpl_fseeko): Likewise.
27538
27539 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27540
27541         * lib/gl_list.h: Fix typo in comment.
27542
27543 2009-12-16  Eric Blake  <ebb9@byu.net>
27544
27545         fcntl: use to simplify other modules
27546         * modules/cloexec (Depends-on): Add fcntl.
27547         * modules/fchdir (Depends-on): Likewise.
27548         * modules/fd-safer-flag (Depends-on): Likewise.
27549         * modules/unistd-safer (Depends-on): Likewise.
27550         * modules/dup3 (configure.ac): Set module indicator.
27551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27552         missing.
27553         * lib/fchdir.c (_gl_register_dup): Fix comment.
27554         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27555         * lib/dup-safer.c (dup_safer): Likewise.
27556         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27557         * lib/dup3.c (dup3): Likewise.
27558         * tests/test-fchdir.c (main): Enhance test.
27559         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27560
27561         fcntl: port portions of fcntl to mingw
27562         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27563         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27564         replacement for mingw.
27565         * modules/fcntl (Description): Update.
27566         (Depends-on): Add dup2.
27567         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27568         * modules/fcntl-h (Makefile.am): Substitute it.
27569         * lib/fcntl.in.h (fcntl): Update declaration.
27570         (F_DUPFD, F_GETFD): New macros, when needed.
27571         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27572         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27573         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27574         we now guarantee.
27575
27576         fcntl: work around cygwin bug in F_DUPFD
27577         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27578         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27579         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27580         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27581         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27582
27583         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27584         * modules/fcntl (Files): List new files.
27585         (configure.ac): Run a test.
27586         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27587         * lib/fcntl.c (rpl_fcntl): Likewise.
27588         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27589         (gl_FCNTL_H): Always replace fcntl.h.
27590         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27591         * lib/fcntl.in.h (fcntl): Declare replacement.
27592         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27593         needed, plus a witness.
27594         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27595         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27596         * tests/test-fcntl.c: New file.
27597         * modules/fcntl-tests: Likewise.
27598
27599         binary-io: avoid potential compilation warning
27600         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27601         directives.
27602
27603         fflush: avoid compilation error on NetBSD
27604         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27605         between off_t and fpos_t, since the latter is sometimes a struct.
27606         * lib/fseeko.c (rpl_fseeko): Likewise.
27607         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27608
27609 2009-12-15  Eric Blake  <ebb9@byu.net>
27610
27611         fcntl-h, stdio, sys_ioctl: fix declarations
27612         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27613         function must not take arguments.
27614         * lib/sys_ioctl.in.h (ioctl): Likewise.
27615         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27616         (open): Add a link warning.
27617
27618 2009-12-15  Jim Meyering  <meyering@redhat.com>
27619
27620         areadlink, areadlink-with-size: relax license to LGPLv2+
27621         * modules/areadlink (License): Relax to LGPLv2+.
27622         * modules/areadlink-with-size (License): Likewise.
27623
27624 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27625             Bruno Haible  <bruno@clisp.org>
27626
27627         *printf: Fix memory leak.
27628         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27629         * lib/vfprintf.c (vfprintf): Likewise.
27630         * lib/dprintf.c (dprintf): Likewise.
27631         * lib/vdprintf.c (vdprintf): Likewise.
27632
27633 2009-12-14  Eric Blake  <ebb9@byu.net>
27634
27635         accept4: adjust module dependencies
27636         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27637
27638         utimens: one more try at avoiding compiler warning
27639         * lib/utimens.c (lutimens): Lower scope of result.
27640
27641 2009-12-13  Bruno Haible  <bruno@clisp.org>
27642
27643         Move the malloc checking from module 'list' to new module 'xlist'.
27644         * modules/xlist: New file.
27645         * lib/gl_xlist.h: New file.
27646         * lib/gl_xlist.c: New file.
27647         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27648         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27649         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27650         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27651         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27652         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27653         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27654         gl_sortedlist_nx_add): New declarations.
27655         (struct gl_list_implementation): Rename and change methods accordingly.
27656         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27657         (gl_list_nx_create): Renamed from gl_list_create.
27658         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27659         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27660         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27661         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27662         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27663         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27664         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27665         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27666         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27667         gl_list_create_empty.
27668         (gl_list_nx_create): Renamed from gl_list_create.
27669         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27670         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27671         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27672         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27673         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27674         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27675         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27676         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27677         * lib/gl_array_list.c: Don't include xalloc.h.
27678         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27679         NULL upon out-of-memory.
27680         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27681         out-of-memory.
27682         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27683         Change return type to 'int'.
27684         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27685         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27686         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27687         upon out-of-memory.
27688         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27689         upon out-of-memory.
27690         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27691         upon out-of-memory.
27692         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27693         upon out-of-memory.
27694         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27695         out-of-memory.
27696         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27697         Update.
27698         (gl_array_list_implementation): Update.
27699         * lib/gl_carray_list.c: Don't include xalloc.h.
27700         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27701         Return NULL upon out-of-memory.
27702         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27703         out-of-memory.
27704         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27705         Change return type to 'int'.
27706         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27707         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27708         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27709         upon out-of-memory.
27710         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27711         upon out-of-memory.
27712         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27713         out-of-memory.
27714         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27715         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27716         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27717         Update.
27718         (gl_carray_list_implementation): Update.
27719         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27720         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27721         gl_linked_create_empty. Return NULL upon out-of-memory.
27722         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27723         out-of-memory.
27724         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27725         Change return type to 'int'. Return -1 upon out-of-memory.
27726         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27727         out-of-memory.
27728         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27729         upon out-of-memory.
27730         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27731         upon out-of-memory.
27732         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27733         NULL upon out-of-memory.
27734         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27735         upon out-of-memory.
27736         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27737         out-of-memory.
27738         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27739         Update.
27740         * lib/gl_linked_list.c: Don't include xalloc.h.
27741         (gl_linked_list_implementation): Update.
27742         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27743         (add_to_bucket): Change return type to 'int'.
27744         (gl_linkedhash_list_implementation): Update.
27745         * lib/gl_anytree_list1.h (free_subtree): New function.
27746         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27747         gl_tree_create_empty. Return NULL upon out-of-memory.
27748         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27749         Change return type to 'int'. Return -1 upon out-of-memory.
27750         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27751         out-of-memory.
27752         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27753         (gl_tree_remove_node): New function, moved here from
27754         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27755         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27756         Update.
27757         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27758         malloc, not xmalloc. Return NULL upon out-of-memory.
27759         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27760         out-of-memory.
27761         (gl_tree_remove_node_from_tree): New function, extracted from
27762         gl_tree_remove_node.
27763         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27764         upon out-of-memory.
27765         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27766         out-of-memory.
27767         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27768         upon out-of-memory.
27769         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27770         upon out-of-memory.
27771         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27772         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27773         not xmalloc. Return NULL upon out-of-memory.
27774         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27775         out-of-memory.
27776         (gl_tree_remove_node_from_tree): New function, extracted from
27777         gl_tree_remove_node.
27778         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27779         upon out-of-memory.
27780         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27781         out-of-memory.
27782         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27783         upon out-of-memory.
27784         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27785         upon out-of-memory.
27786         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27787         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27788         gl_anytree_list1.h before gl_anyavltree_list2.h.
27789         (gl_avltree_list_implementation): Update.
27790         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27791         gl_anytree_list1.h before gl_anyavltree_list2.h.
27792         (gl_rbtree_list_implementation): Update.
27793         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27794         Change return type to 'int'. Return -1 upon out-of-memory. Use
27795         __builtin_expect.
27796         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27797         (gl_avltreehash_list_implementation): Update.
27798         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27799         (gl_rbtreehash_list_implementation): Update.
27800         * modules/array-list (Depends-on): Remove xalloc.
27801         * modules/carray-list (Depends-on): Likewise.
27802         * modules/linked-list (Depends-on): Likewise.
27803         * modules/linkedhash-list (Depends-on): Likewise.
27804         * modules/avltree-list (Depends-on): Likewise.
27805         * modules/rbtree-list (Depends-on): Likewise.
27806         * modules/avltreehash-list (Depends-on): Likewise.
27807         * modules/rbtreehash-list (Depends-on): Likewise.
27808
27809         * modules/xsublist: New file.
27810         * lib/gl_xsublist.h: New file.
27811         * lib/gl_xsublist.c: New file.
27812         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27813         (gl_sublist_nx_create): New declaration.
27814         * lib/gl_sublist.c: Don't include xalloc.h.
27815         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27816         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27817         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27818         Change return type to 'int'. Return -1 upon out-of-memory.
27819         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27820         upon out-of-memory.
27821         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27822         NULL upon out-of-memory.
27823         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27824         upon out-of-memory.
27825         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27826         NULL upon out-of-memory.
27827         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27828         NULL upon out-of-memory.
27829         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27830         upon out-of-memory.
27831         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27832         (gl_sublist_list_implementation): Update.
27833         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27834         upon out-of-memory.
27835         * modules/sublist (Depends-on): Remove xalloc.
27836
27837         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27838         * tests/test-carray_list.c: Likewise.
27839         * tests/test-linked_list.c: Likewise.
27840         * tests/test-linkedhash_list.c: Likewise.
27841         * tests/test-avltree_list.c: Likewise.
27842         * tests/test-rbtree_list.c: Likewise.
27843         * tests/test-avltreehash_list.c: Likewise.
27844         * tests/test-rbtreehash_list.c: Likewise.
27845         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27846         * modules/carray-list-tests (Makefile.am): Likewise.
27847         * modules/linked-list-tests (Makefile.am): Likewise.
27848         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27849         * modules/avltree-list-tests (Makefile.am): Likewise.
27850         * modules/rbtree-list-tests (Makefile.am): Likewise.
27851         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27852         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27853
27854         * NEWS: Mention the changes.
27855
27856         * lib/clean-temp.c: Include gl_xlist.h.
27857         * modules/clean-temp (Depends-on): Add xlist.
27858
27859         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27860         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27861
27862         * tests/test-array_oset.c: Include gl_xlist.h.
27863         * modules/array-oset-tests (Depends-on): Add xlist.
27864
27865         Reported by José E. Marchesi <jemarch@gnu.org>.
27866
27867 2009-12-13  Bruno Haible  <bruno@clisp.org>
27868
27869         Move the malloc checking from module 'oset' to new module 'xoset'.
27870         * modules/xoset: New file.
27871         * lib/gl_xoset.h: New file.
27872         * lib/gl_xoset.c: New file.
27873         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27874         declarations.
27875         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27876         (struct gl_oset_implementation): Rename and change methods accordingly.
27877         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27878         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27879         'int'. Mark as __warn_unused_result__.
27880         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27881         gl_oset_create_empty.
27882         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27883         'int'.
27884         * lib/gl_array_oset.c: Don't include xalloc.h.
27885         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27886         malloc, not xmalloc.
27887         (grow): Change return type to 'int'. Don't call xalloc_die.
27888         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27889         to 'int'.
27890         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27891         'int'.
27892         (gl_array_oset_implementation): Update.
27893         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27894         gl_tree_create_empty.
27895         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27896         'int'.
27897         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27898         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27899         xmalloc.
27900         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27901         not xmalloc.
27902         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27903         xmalloc.
27904         (gl_avltree_oset_implementation): Update.
27905         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27906         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27907         xmalloc.
27908         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27909         not xmalloc.
27910         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27911         xmalloc.
27912         (gl_rbtree_oset_implementation): Update.
27913         * modules/array-oset (Depends-on): Remove xalloc.
27914         * modules/avltree-oset (Depends-on): Likewise.
27915         * modules/rbtree-oset (Depends-on): Likewise.
27916         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27917         * tests/test-avltree_oset.c: Likewise.
27918         * tests/test-rbtree_oset.c: Likewise.
27919         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27920         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27921         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27922         * NEWS: Mention the change.
27923
27924 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27925
27926         maint.mk: allow a project to override release-prep commands
27927         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27928         commands into a new rule.
27929         (release-prep): New rule.
27930         (release-prep-hook): New overridable variable.
27931
27932 2009-12-13  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27935
27936 2009-12-13  Jim Meyering  <meyering@redhat.com>
27937
27938         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27939         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27940
27941 2009-12-12  Bruno Haible  <bruno@clisp.org>
27942
27943         duplocale: Tweak.
27944         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27945
27946 2009-12-12  Karl Berry  <karl@gnu.org>
27947
27948         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27949
27950 2009-12-12  Bruno Haible  <bruno@clisp.org>
27951
27952         * m4/po.m4: Undo incorrect untabification.
27953
27954 2009-12-12  Bruno Haible  <bruno@clisp.org>
27955
27956         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27957         * modules/c-strtod (Depends-on): Add locale.
27958         * modules/c-strtold (Depends-on): Likewise.
27959
27960 2009-12-12  Bruno Haible  <bruno@clisp.org>
27961
27962         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27963
27964 2009-12-11  Eric Blake  <ebb9@byu.net>
27965
27966         setenv: relax requirement in light of POSIX ruling
27967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27968         not NULL.
27969         * tests/test-setenv.c (main): Relax test.
27970         * tests/test-unsetenv.c (main): Likewise.
27971         * doc/posix-functions/setenv.texi (setenv): Document this.
27972         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27973
27974 2009-12-11  Bruno Haible  <bruno@clisp.org>
27975
27976         New module 'fd-safer-flag'.
27977         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27978         * lib/dup-safer.c (dup_safer_flag): Remove function.
27979         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27980         * lib/fd-safer.c (fd_safer_flag): Remove function.
27981         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27982         * modules/cloexec (configure.ac): Drop indicator macro.
27983         * modules/fd-safer-flag: New file.
27984         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27985         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27986         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27987
27988 2009-12-11  Bruno Haible  <bruno@clisp.org>
27989
27990         Tests for module 'nl_langinfo'.
27991         * modules/nl_langinfo-tests: New file.
27992         * tests/test-nl_langinfo.sh: New file.
27993         * tests/test-nl_langinfo.c: New file.
27994
27995         New module 'nl_langinfo'.
27996         * lib/nl_langinfo.c: New file.
27997         * m4/nl_langinfo.m4: New file.
27998         * modules/nl_langinfo: New file.
27999         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28000
28001 2009-12-11  Bruno Haible  <bruno@clisp.org>
28002
28003         Tests for module 'langinfo'.
28004         * modules/langinfo-tests: New file.
28005         * tests/test-langinfo.c: New file.
28006
28007         New module 'langinfo'.
28008         * lib/langinfo.in.h: New file.
28009         * m4/langinfo_h.m4: New file.
28010         * modules/langinfo: New file.
28011         * doc/posix-headers/langinfo.texi: Mention the new module.
28012
28013 2009-12-11  Bruno Haible  <bruno@clisp.org>
28014
28015         * lib/config.charset: Untabify.
28016
28017 2009-12-11  Bruno Haible  <bruno@clisp.org>
28018
28019         * modules/unistd-safer (configure.ac): Drop indicator macro.
28020
28021 2009-12-11  Bruno Haible  <bruno@clisp.org>
28022
28023         Move pipe2-safer code to its own file.
28024         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28025         * lib/pipe-safer.c (pipe2_safer): Remove function.
28026         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28027         (Makefile.am): Add it to lib_SOURCES.
28028
28029 2009-12-10  Bruno Haible  <bruno@clisp.org>
28030
28031         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28032
28033 2009-12-10  Bruno Haible  <bruno@clisp.org>
28034
28035         Declare which arguments expect non-NULL values, for GCC and clang.
28036         * build-aux/arg-nonnull.h: New file.
28037         * modules/arg-nonnull: New file.
28038         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28039         (inet_ntop, inet_pton): Use it.
28040         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28041         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28042         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28043         (open, openat): Use it.
28044         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28045         (fnmatch): Use it.
28046         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28047         (getopt, getopt_long, getopt_long_only): Use it.
28048         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28049         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28050         Use it.
28051         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28052         (iconv_open): Use it.
28053         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28054         (strtoimax, strtoumax): Use it.
28055         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28056         (duplocale): Use it.
28057         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28058         (frexp, frexpl): Use it.
28059         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28060         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28061         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28062         (tsearch, tfind, tdelete, twalk): Use it.
28063         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28064         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28065         sigpending): Use it.
28066         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28067         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28068         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28069         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28070         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28071         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28072         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28073         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28074         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28075         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28076         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28077         Use it.
28078         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28079         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28080         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28081         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28082         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28083         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28084         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28085         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28086         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28087         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28088         strtoull, unsetenv): Use it.
28089         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28090         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28091         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28092         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28093         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28094         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28095         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28096         (strcasecmp, strncasecmp): Use it.
28097         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28098         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28099         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28100         rpl_setsockopt): Use it.
28101         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28102         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28103         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28104         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28105         (gettimeofday): Use it.
28106         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28107         (times): Use it.
28108         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28109         (uname): Use it.
28110         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28111         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28112         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28113         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28114         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28115         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28116         unlinkat, write): Use it.
28117         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28118         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28119         * lib/argv-iter.h: Include arg-nonnull.h.
28120         (_ATTRIBUTE_NONNULL_): Remove macro.
28121         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28122         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28123         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28124         optimization.
28125         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28126         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28127         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28128         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28129         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28130         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28131         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28132         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28133         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28134         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28135         * modules/dirent (Depends-on): Add arg-nonnull.
28136         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28137         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28138         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28139         * modules/fnmatch (Depends-on): Add arg-nonnull.
28140         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28141         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28142         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28143         * modules/glob (Depends-on): Add arg-nonnull.
28144         (Makefile.am): Insert arg-nonnull.h into glob.h.
28145         * modules/iconv_open (Depends-on): Add arg-nonnull.
28146         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28147         * modules/inttypes (Depends-on): Add arg-nonnull.
28148         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28149         * modules/locale (Depends-on): Add arg-nonnull.
28150         (Makefile.am): Insert arg-nonnull.h into locale.h.
28151         * modules/math (Depends-on): Add arg-nonnull.
28152         (Makefile.am): Insert arg-nonnull.h into math.h.
28153         * modules/netdb (Depends-on): Add arg-nonnull.
28154         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28155         * modules/search (Depends-on): Add arg-nonnull.
28156         (Makefile.am): Insert arg-nonnull.h into search.h.
28157         * modules/signal (Depends-on): Add arg-nonnull.
28158         (Makefile.am): Insert arg-nonnull.h into signal.h.
28159         * modules/spawn (Depends-on): Add arg-nonnull.
28160         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28161         * modules/stdio (Depends-on): Add arg-nonnull.
28162         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28163         * modules/stdlib (Depends-on): Add arg-nonnull.
28164         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28165         * modules/string (Depends-on): Add arg-nonnull.
28166         (Makefile.am): Insert arg-nonnull.h into string.h.
28167         * modules/strings (Depends-on): Add arg-nonnull.
28168         (Makefile.am): Insert arg-nonnull.h into strings.h.
28169         * modules/sys_socket (Depends-on): Add arg-nonnull.
28170         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28171         * modules/sys_stat (Depends-on): Add arg-nonnull.
28172         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28173         * modules/sys_time (Depends-on): Add arg-nonnull.
28174         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28175         * modules/sys_times (Depends-on): Add arg-nonnull.
28176         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28177         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28178         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28179         * modules/time (Depends-on): Add arg-nonnull.
28180         (Makefile.am): Insert arg-nonnull.h into time.h.
28181         * modules/unistd (Depends-on): Add arg-nonnull.
28182         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28183         * modules/wchar (Depends-on): Add arg-nonnull.
28184         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28185         * modules/argv-iter (Depends-on): Add arg-nonnull.
28186         * tests/test-canonicalize.c (null_ptr): New function.
28187         (main): Use it.
28188         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28189         (main): Use it.
28190         * tests/test-memmem.c (null_ptr): New function.
28191         (main): Use it.
28192         Reported by Jim Meyering.
28193
28194 2009-12-10  Bruno Haible  <bruno@clisp.org>
28195
28196         Use spaces for indentation, not tabs.
28197         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28198         * m4/*.m4: Untabify.
28199         * build-aux/*.h: Untabify.
28200         * tests/**/*.[hc]: Untabify.
28201         * README: New section "Indent with spaces, not TABs", based on
28202         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28203         * NEWS: Mention the change.
28204
28205 2009-12-10  Bruno Haible  <bruno@clisp.org>
28206
28207         pty test: Fix link error.
28208         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28209         test_pty_LDADD.
28210
28211 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28212
28213         * modules/pty: New file.
28214         * modules/pty-tests: New file.
28215         * m4/pty.m4: New file.
28216         * tests/test-pty.c: New file.
28217         * doc/glibc-headers/pty.texi: Modified.
28218         * doc/glibc-functions/forkpty.texi: Modified.
28219         * doc/glibc-functions/openpty.texi: Modified.
28220
28221 2009-12-10  Bruno Haible  <bruno@clisp.org>
28222
28223         Avoid syntax error in C++ mode.
28224         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28225
28226 2009-12-10  Bruno Haible  <bruno@clisp.org>
28227
28228         Use sed with option -e.
28229         * gnulib-tool (func_version, func_emit_copyright_notice,
28230         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28231         option -e to sed.
28232         * modules/link-warning (Makefile.am): Likewise.
28233
28234 2009-12-10  Jim Meyering  <meyering@redhat.com>
28235
28236         mgetgroups: do not write bytes beyond end of malloc'd buffer
28237         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28238         username, we call getgroups with a one-element-shorter buffer,
28239         but still told it the length was original, max_n_groups.
28240
28241 2009-12-09  Eric Blake  <ebb9@byu.net>
28242
28243         cloexec: relax license
28244         * modules/cloexec (Maintainer): Add myself.
28245         (License): Use LGPL, not GPL.
28246
28247         link-warning: optimize generation
28248         * modules/link-warning (Makefile.am): Reduce process usage.
28249
28250 2009-12-09  Bruno Haible  <bruno@clisp.org>
28251
28252         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28253         workaround was added on 2009-11-17.
28254
28255 2009-12-09  Jim Meyering  <meyering@redhat.com>
28256             Bruno Haible  <bruno@clisp.org>
28257
28258         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28259         * modules/link-warning (Makefile.am): Make the comment-removing sed
28260         command more robust in the face of bootstrap-prepended comment lines.
28261
28262 2009-12-09  Bruno Haible  <bruno@clisp.org>
28263
28264         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28265         most one group.
28266
28267 2009-12-09  Simon Josefsson <simon@josefsson.org>
28268             Bruno Haible  <bruno@clisp.org>
28269
28270         * build-aux/link-warning.h: Add copyright notice.
28271         * modules/link-warning (Makefile.am): Generate link-warning.h from
28272         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28273         * NEWS: Mention change in link-warning module.
28274         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28275         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28276         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28277         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28278         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28279         * modules/math (Makefile.am): Add dependency to math.h.
28280         * modules/search (Makefile.am): Add dependency to search.h.
28281         * modules/signal (Makefile.am): Add dependency to signal.h.
28282         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28283         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28284         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28285         * modules/string (Makefile.am): Add dependency to string.h.
28286         * modules/strings (Makefile.am): Add dependency to strings.h.
28287         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28288         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28289         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28290         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28291         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28292         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28293         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28294         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28295         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28296
28297 2009-12-09  Bruno Haible  <bruno@clisp.org>
28298
28299         fchdir: Optimize away rpl_fstat when possible.
28300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28301         REPLACE_OPEN_DIRECTORY.
28302         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28303
28304 2009-12-09  Bruno Haible  <bruno@clisp.org>
28305
28306         * lib/fchdir.c: Update comment.
28307
28308 2009-12-09  Bruno Haible  <bruno@clisp.org>
28309
28310         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28311
28312 2009-12-08  Eric Blake  <ebb9@byu.net>
28313
28314         fchdir: avoid memory leak on re-registration.
28315         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28316
28317 2009-12-08  Jim Meyering  <meyering@redhat.com>
28318
28319         init.sh: avoid Solaris 10 /bin/sh portability problem
28320         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28321         sourced script:
28322           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28323           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28324           bar
28325         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28326         and two tests used that idiom.
28327         * tests/init.sh: Update suggested usage comments.
28328         (path_prepend_): New function, to be used in place
28329         of the --src-path=DIR option.
28330         (setup_): Move PATH-prepending code into path_prepend_.
28331         * tests/test-pread.sh: Adapt to new usage.
28332         * tests/test-xalloc-die.sh: Likewise.
28333
28334 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28335
28336         * doc/gnulib.texi (Glibc pty.h): Add.
28337         * doc/glibc-functions/forkpty.texi: Add.
28338         * doc/glibc-functions/openpty.texi: Add.
28339         Suggested by Bruno Haible.
28340
28341 2009-12-08  Eric Blake  <ebb9@byu.net>
28342
28343         fchdir: fix logic bugs
28344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28345         * tests/test-fchdir.c (main): Enhance test.
28346         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28347         is in use.
28348
28349         dup2: fix logic bugs
28350         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28351         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28352         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28353         exists.
28354         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28355
28356 2009-12-07  Eric Blake  <ebb9@byu.net>
28357
28358         unlink: fix m4 detection
28359         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28360
28361         unistd-safer: add unit test
28362         * modules/unistd-safer-tests: New file.
28363         * tests/test-dup-safer.c: Likewise.
28364         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28365         * tests/test-dup2.c (setmode): Likewise.
28366         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28367
28368         cloexec: preserve text vs. binary across dup_cloexec
28369         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28370         mode.
28371         * modules/dup2-tests (Depends-on): Add binary-io.
28372         * modules/cloexec-tests (Depends-on): Likewise.
28373         * tests/test-dup2.c (setmode, is_mode): New helpers.
28374         (main): Add tests that translation mode is preserved.
28375         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28376         Reported by Bruno Haible.
28377
28378         mgetgroups: reduce duplicate listings
28379         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28380         resulting array.
28381         * tests/test-chown.h (test_chown): Simplify client.
28382         * tests/test-lchown.h (test_lchown): Likewise.
28383
28384 2009-12-06  Bruno Haible  <bruno@clisp.org>
28385
28386         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28387         value.
28388
28389 2009-12-06  Bruno Haible  <bruno@clisp.org>
28390
28391         * lib/progname.c: Include stdio.h, stdlib.h.
28392         (set_program_name): Reject a NULL argument.
28393
28394 2009-12-05  Eric Blake  <ebb9@byu.net>
28395
28396         pipe2-safer: new module
28397         * modules/pipe2-safer: New file.
28398         * lib/unistd-safer.h (pipe2_safer): New prototype.
28399         * lib/unistd--.h (pipe2): New wrapper.
28400         * lib/pipe-safer.c (pipe2_safer): New function.
28401         * modules/pipe (Depends-on): Add pipe2-safer.
28402         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28403
28404         stdlib-safer: preserve cloexec flag for mkostemp[s]
28405         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28406         fd_safer_flag.
28407
28408         unistd-safer: allow preservation of cloexec status via flag
28409         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28410         prototypes.
28411         * lib/dup-safer.c (dup_safer_flag): New function.
28412         * lib/fd-safer.c (fd_safer_flag): Likewise.
28413         * modules/cloexec (configure.ac): Set witness.
28414
28415         test-dup2: enhance test
28416         * modules/dup2-tests (Depends-on): Add cloexec.
28417         * tests/test-dup2.c (main): Enhance test.
28418
28419         cloexec: add dup_cloexec
28420         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28421         header and comments.
28422         * lib/cloexec.c (set_cloexec_flag): Add comments.
28423         (dup_cloexec): New function, with mingw implementation borrowed
28424         from...
28425         * lib/w32spawn.h (dup_noinherit): ...here.
28426         * modules/execute (Depends-on): Add cloexec.
28427         * modules/pipe (Depends-on): Likewise.
28428         * modules/cloexec (Depends-on): Add dup2.
28429         * modules/cloexec-tests (Files): New file.
28430         * tests/test-cloexec.c: Likewise.
28431
28432         test-xalloc-die: fix test for mingw
28433         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28434         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28435         directory and .exe suffix off argv[0] output.
28436
28437         test-fseeko: fix test for mingw
28438         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28439         than undefining fseek, so test will pass on mingw.
28440
28441 2009-12-05  Bruno Haible  <bruno@clisp.org>
28442
28443         * lib/progname.h (set_program_name): Clarify specification.
28444         * lib/progname.c (set_program_name): Likewise.
28445         Reported by Jim Meyering.
28446
28447 2009-12-05  Jim Meyering  <meyering@redhat.com>
28448
28449         maint.mk: backslash-escape parens in default regexp
28450         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28451         backslash-escape the literal parentheses.
28452
28453         maint.mk: news-date-check: use grep -E
28454         * top/maint.mk (today): Define a Make variable, not a...
28455         (news-date-check): ...shell variable.
28456         (news-date-regexp): Use the Make variable.
28457         Use grep's -E option.  Change the failing diagnostic to mention
28458         the variable, $(news-date-regexp).
28459
28460 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28461
28462         maintainer-makefile: allow customization of NEWS entry format
28463         * top/maint.mk (news-date-regexp): New overridable variable.
28464         (news-date-check): Use it.
28465
28466 2009-12-04  Eric Blake  <ebb9@byu.net>
28467
28468         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28469         * lib/mgetgroups.h (xgetgroups): New prototype.
28470         * lib/mgetgroups.c (xgetgroups): New wrapper.
28471         (mgetgroups): Handle ENOSYS.
28472         * modules/mgetgroups (Depends-on): Add realloc.
28473         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28474
28475         mgetgroups: avoid argument promotion issues with -1
28476         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28477         for invalid gid_t.
28478         * tests/test-chown.h (getegid, test_chown): Likewise.
28479         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28480
28481 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28482
28483         exclude: Fix header file problems.
28484         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28485
28486 2009-12-01  Jim Meyering  <meyering@redhat.com>
28487
28488         fts: fts_open: do not let an empty string cause immediate failure
28489         This is required in support of GNU rm, for which the command
28490         "rm A '' B" must process and remove both A and B, in spite of
28491         the empty string argument.
28492         * lib/fts.c (fts_open): Do not let the presence of an empty string
28493         cause fts_open to fail immediately.  Most fts-using tools must be
28494         able to process all arguments, in order, and can be expected to
28495         diagnose such arguments themselves.
28496
28497 2009-11-30  Eric Blake  <ebb9@byu.net>
28498
28499         utimens: fix compilation error
28500         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28501         Declare variable at right scope.
28502
28503 2009-11-29  Jim Meyering  <meyering@redhat.com>
28504
28505         bootstrap: handle perl-5.11's changed --version output
28506         * build-aux/bootstrap (get_version): Handle perl separately,
28507         since perl-5.11's --version output is different.
28508
28509 2009-11-28  Jim Meyering  <meyering@redhat.com>
28510
28511         userspec: depend on the inttostr module, too
28512         * modules/userspec (Depends-on): Add inttostr.
28513
28514         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28515         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28516         number of MAXUID when it evaluates to (uid_t) -1.
28517         Likewise for group ID.  Reported by Matt McCutchen in
28518         <http://savannah.gnu.org/bugs/?28113>
28519
28520         userspec: reformat to use spaces, not TABs
28521         * lib/userspec.c: Expand TABs to spaces.
28522         Add Emacs' "indent-tabs-mode: nil" hint.
28523
28524 2009-11-27  Eric Blake  <ebb9@byu.net>
28525
28526         getopt-gnu: flush out another BSD bug
28527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28528         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28529         flush out BSD bug.
28530         * tests/test-getopt.h (test_getopt): End lists with NULL.
28531         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28532         (test_getopt_long_posix): Enhance test.
28533         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28534         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28535         getopt-gnu.
28536         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28537         Likewise.
28538
28539 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28540
28541         * modules/idpriv-droptemp-tests (Notice): Fix text.
28542
28543 2009-11-27  Jim Meyering  <meyering@redhat.com>
28544
28545         test-xalloc-die: avoid spurious failure due to libtool argv difference
28546         In a libtool-enabled project, this test would fail due to a difference
28547         in the emitted program name, e.g.,
28548         -test-xalloc-die: memory exhausted
28549         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28550         Use program to avoid that.
28551         * modules/xalloc-die-tests (Depends-on): Add progname.
28552         * tests/test-xalloc-die.c: Include progname.h".
28553         (program_name): Remove decl.
28554         (main): Call set_program_name.
28555         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28556
28557 2009-11-26  Richard Jones  <rjones@redhat.com>
28558
28559         w32sock: leave win32 error in place.
28560         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28561
28562 2009-11-26  Eric Blake  <ebb9@byu.net>
28563
28564         init.sh: suggest to use skip_ and fail_ functions in comments
28565         * tests/init.sh: Add a sentence.
28566
28567 2009-11-25  Bruno Haible  <bruno@clisp.org>
28568
28569         init.sh: add documentation in comments
28570         * tests/init.sh: Add some developer and user documentation.
28571
28572 2009-11-26  Jim Meyering  <meyering@redhat.com>
28573
28574         init.sh: accommodate even those who specify bogus srcdir manually
28575         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28576         configure-time tests to be sanitized, so that there is no need to
28577         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28578         (with no double quotes) suffices.  However, since tests may be
28579         invoked manually, and since you may explicitly set srcdir to the
28580         name of a directory containing spaces, do quote its uses here.
28581         * tests/test-pread.sh: Likewise.
28582         Suggested by Bruno Haible.
28583
28584         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28585         * tests/test-pread.sh: Write no data into the pipe, because
28586         test-pread actually reads none.  This avoids a diagnostic,
28587         "bash: echo: write error: Broken pipe", that arises in the unusual
28588         event something is ignoring SIGPIPE, and might be interpreted
28589         as some sort of failure.  Reported by Bruno Haible.
28590
28591 2009-11-25  Jim Meyering  <meyering@redhat.com>
28592
28593         test-pread: cover failure with ESPIPE and EINVAL
28594         * tests/test-pread.c (main): Test for failure, too.
28595         * tests/test-pread.sh: Invoke with stdin on a pipe.
28596         Suggested by Eric Blake.
28597
28598         pread: improvement and fix
28599         * modules/pread (Depends-on): Depend on lseek, for portability to
28600         e.g., mingw.  Suggested by Eric Blake.
28601         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28602
28603         unistd.in.h: correct declaration of pread
28604         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28605         Reported by Richard W.M. Jones.
28606
28607         test-pread.sh: distribute the test script
28608         * modules/pread-tests (Files): Include test-pread.sh.
28609
28610         test-pread.sh: clean up
28611         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28612         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28613         That is unnecessary, since it's always ".".
28614         Suggestion from Eric Blake.
28615
28616         test-pread.sh: make executable
28617         * tests/test-pread.sh: Set executable bit.
28618         Reported by Eric Blake.
28619
28620         correct typo in test-pread.sh
28621         * tests/test-pread.sh: Add #! line.
28622
28623         test pread
28624         * tests/test-pread.c: New file.
28625         * tests/test-pread.sh: Likewise.
28626         * modules/pread-tests: Likewise.
28627
28628         pread: new module
28629         * modules/pread: New file.
28630         * lib/unistd.in.h (pread): Define/declare.
28631         * lib/pread.c (pread): New file.
28632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28633         * modules/unistd (Makefile.am): Substitute witnesses.
28634         * doc/posix-functions/pread.texi (pread): Update.
28635         * MODULES.html.sh: Add pread.
28636
28637 2009-11-25  Jim Meyering  <meyering@redhat.com>
28638
28639         tests/init.sh: new file to be used via most *.sh tests
28640         * tests/init.sh: New file.
28641
28642 2009-11-25  Eric Blake  <ebb9@byu.net>
28643
28644         utimens: work around older Linux failure with symlinks
28645         * lib/utimens.c (lutimensat_works_really): New variable.
28646         (fdutimens, lutimens): Use it to manage kernels that support
28647         nanosecond times on files, but not on symlinks.
28648         Reported by OndÅ™ej Vašík.
28649
28650         utimes: fix configure grammar
28651         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28652
28653 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28654
28655         regex: Fix fastmap for multibyte character ranges.
28656         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28657         characters when a multibyte character range is included.
28658
28659 2009-11-22  Andy Wingo  <wingo@pobox.com>
28660
28661         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28662         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28663
28664 2009-11-24  Bruno Haible  <bruno@clisp.org>
28665
28666         doc: Most *_l functions exist in MacOS X 10.5.
28667         * doc/posix-functions/duplocale.texi: Update platforms list.
28668         * doc/posix-functions/freelocale.texi: Likewise.
28669         * doc/posix-functions/newlocale.texi: Likewise.
28670         * doc/posix-functions/uselocale.texi: Likewise.
28671         * doc/posix-functions/isalnum_l.texi: Likewise.
28672         * doc/posix-functions/isalpha_l.texi: Likewise.
28673         * doc/posix-functions/isblank_l.texi: Likewise.
28674         * doc/posix-functions/iscntrl_l.texi: Likewise.
28675         * doc/posix-functions/isdigit_l.texi: Likewise.
28676         * doc/posix-functions/isgraph_l.texi: Likewise.
28677         * doc/posix-functions/islower_l.texi: Likewise.
28678         * doc/posix-functions/isprint_l.texi: Likewise.
28679         * doc/posix-functions/ispunct_l.texi: Likewise.
28680         * doc/posix-functions/isspace_l.texi: Likewise.
28681         * doc/posix-functions/isupper_l.texi: Likewise.
28682         * doc/posix-functions/iswalnum_l.texi: Likewise.
28683         * doc/posix-functions/iswalpha_l.texi: Likewise.
28684         * doc/posix-functions/iswblank_l.texi: Likewise.
28685         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28686         * doc/posix-functions/iswctype_l.texi: Likewise.
28687         * doc/posix-functions/iswdigit_l.texi: Likewise.
28688         * doc/posix-functions/iswgraph_l.texi: Likewise.
28689         * doc/posix-functions/iswlower_l.texi: Likewise.
28690         * doc/posix-functions/iswprint_l.texi: Likewise.
28691         * doc/posix-functions/iswpunct_l.texi: Likewise.
28692         * doc/posix-functions/iswspace_l.texi: Likewise.
28693         * doc/posix-functions/iswupper_l.texi: Likewise.
28694         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28695         * doc/posix-functions/isxdigit_l.texi: Likewise.
28696         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28697         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28698         * doc/posix-functions/strcoll_l.texi: Likewise.
28699         * doc/posix-functions/strfmon_l.texi: Likewise.
28700         * doc/posix-functions/strftime_l.texi: Likewise.
28701         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28702         * doc/posix-functions/strxfrm_l.texi: Likewise.
28703         * doc/posix-functions/tolower_l.texi: Likewise.
28704         * doc/posix-functions/toupper_l.texi: Likewise.
28705         * doc/posix-functions/towctrans_l.texi: Likewise.
28706         * doc/posix-functions/towlower_l.texi: Likewise.
28707         * doc/posix-functions/towupper_l.texi: Likewise.
28708         * doc/posix-functions/wcscoll_l.texi: Likewise.
28709         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28710         * doc/posix-functions/wctrans_l.texi: Likewise.
28711         * doc/posix-functions/wctype_l.texi: Likewise.
28712         * doc/glibc-functions/strptime_l.texi: Likewise.
28713         * doc/glibc-functions/strtod_l.texi: Likewise.
28714         * doc/glibc-functions/strtof_l.texi: Likewise.
28715         * doc/glibc-functions/strtol_l.texi: Likewise.
28716         * doc/glibc-functions/strtold_l.texi: Likewise.
28717         * doc/glibc-functions/strtoll_l.texi: Likewise.
28718         * doc/glibc-functions/strtoul_l.texi: Likewise.
28719         * doc/glibc-functions/strtoull_l.texi: Likewise.
28720         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28721         * doc/glibc-functions/wcstod_l.texi: Likewise.
28722         * doc/glibc-functions/wcstof_l.texi: Likewise.
28723         * doc/glibc-functions/wcstol_l.texi: Likewise.
28724         * doc/glibc-functions/wcstold_l.texi: Likewise.
28725         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28726         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28727         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28728
28729 2009-11-24  Bruno Haible  <bruno@clisp.org>
28730
28731         duplocale: Fix logic bug.
28732         * lib/duplocale.c: Don't include <langinfo.h>.
28733         (_NL_LOCALE_NAME): Remove macro.
28734         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28735         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28736
28737 2009-11-23  Jim Meyering  <meyering@redhat.com>
28738
28739         test-update-copyright: don't hard-code /usr/bin/perl
28740         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28741         perl to print the current year.  Gilles Espinasse reported that
28742         the replaced use of perl was hard-coded as /usr/bin/perl.
28743
28744 2009-11-23  Bruno Haible  <bruno@clisp.org>
28745
28746         duplocale: Add support for glibc 2.3.x.
28747         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28748
28749 2009-11-22  Bruno Haible  <bruno@clisp.org>
28750
28751         vasnprintf: Tiny optimization.
28752         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28753         MacOS X.
28754
28755 2009-11-22  Bruno Haible  <bruno@clisp.org>
28756
28757         Tests for module 'duplocale'.
28758         * modules/duplocale-tests: New file.
28759         * tests/test-duplocale.c: New file.
28760
28761         New module 'duplocale'.
28762         * m4/duplocale.m4: New file.
28763         * lib/locale.in.h (duplocale): New declaration.
28764         * lib/duplocale.c: New file.
28765         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28766         gl_LOCALE_H_DEFAULTS): New macros.
28767         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28768         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28769         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28770         REPLACE_DUPLOCALE.
28771         * modules/duplocale: New file.
28772         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28773
28774 2009-11-22  Bruno Haible  <bruno@clisp.org>
28775
28776         * modules/locale-tests (configure.ac): Test for newlocale function.
28777         * tests/test-locale.c: When the system has extended locale functions,
28778         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28779
28780         locale: Make locale_t available when possible.
28781         * lib/locale.in.h: Include <xlocale.h> when it exists.
28782         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28783         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28784         * modules/locale (Depends-on): Add extensions.
28785         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28786         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28787
28788 2009-11-22  Bruno Haible  <bruno@clisp.org>
28789
28790         Add comments.
28791         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28792         invocation.
28793         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28794         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28795         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28796
28797 2009-11-22  Bruno Haible  <bruno@clisp.org>
28798
28799         error: account for the possibility of freopen (stdout).
28800         * lib/error.c: Include <unistd.h>.
28801         (flush_stdout): New function, extracted from error and error_at_line.
28802         Determine stdout's fd dynamically.
28803         (error, error_at_line): Invoke flush_stdout.
28804         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28805         * modules/error (Depends-on): Add unistd.
28806
28807 2009-11-22  Bruno Haible  <bruno@clisp.org>
28808
28809         diffseq: Add comment.
28810         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28811
28812 2009-11-22  Jim Meyering  <meyering@redhat.com>
28813
28814         c-stack: avoid defining an unused static function
28815         * lib/c-stack.c (find_stack_direction): Do not define this function
28816         when it will not be used.
28817
28818         diffseq: avoid spurious gcc warnings
28819         * lib/diffseq.h (IF_LINT2): Define.
28820         (compareseq): Use it to initialize two members of "part".
28821         This avoids two used-uninitialized warnings.
28822
28823 2009-11-21  Jim Meyering  <meyering@redhat.com>
28824
28825         c-stack: avoid "ignoring return value of `write'" warning
28826         * lib/c-stack.c: Include "ignore-value.h".
28827         (die): Explicitly ignore each write return value.
28828         * modules/c-stack (Depends-on): Add ignore-value.
28829
28830 2009-11-21  Bruno Haible  <bruno@clisp.org>
28831
28832         diffseq: reduce scope of variable 'best'.
28833         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28834         variable, earlier used for two different purposes.
28835
28836 2009-11-21  Jim Meyering  <meyering@redhat.com>
28837
28838         diffseq: remove useless assignment to "best"
28839         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28840         assignment.  At that point "best" is already guaranteed to be zero.
28841
28842 2009-11-20  Eric Blake  <ebb9@byu.net>
28843
28844         build: mention ftp redirector in release announcements
28845         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28846         values that used to come from cfg.mk; mention FTP redirect URL.
28847         * build-aux/announce-gen: Mention the mirror list.
28848         Suggested by Karl Berry.
28849
28850         nanosleep: improve port to mingw
28851         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28853         LIB_NANOSLEEP, but only when needed.
28854         * modules/select (Link): Document LIBSOCKET.
28855         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28856         enough.
28857
28858         nanosleep: work around cygwin bug
28859         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28860         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28861         bug.
28862         (getnow): Delete, not needed.
28863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28864         LIB_CLOCK_GETTIME.
28865         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28866         clock-time, gettime.
28867         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28868         bug.
28869         * modules/nanosleep-tests: New test.
28870         * tests/test-nanosleep.c: New file.
28871
28872         sleep: work around cygwin bug
28873         * lib/sleep.c (rpl_sleep): Work around the bug.
28874         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28875         (gl_PREREQ_SLEEP): Delete unused macro.
28876         * modules/sleep (Depends-on): Add verify.
28877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28878         * modules/unistd (Makefile.am): Substitute witness.
28879         * lib/unistd.in.h (sleep): Update prototype.
28880         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28881         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28882         * modules/sleep-tests (Depends-on): Check for alarm.
28883
28884 2009-11-20  Jim Meyering  <meyering@redhat.com>
28885
28886         maint.mk: improve sc_prohibit_magic_number_exit
28887         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28888         so it does not match uses like System.exit(1).
28889         Add comments showing how to correct all offenders.
28890
28891 2009-11-19  Eric Blake  <ebb9@byu.net>
28892
28893         xalloc-die-tests: add missing library
28894         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28895
28896         test-xvasprintf: silence compiler warnings
28897         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28898         empty string from gcc.
28899
28900 2009-11-19  Jim Meyering  <meyering@redhat.com>
28901
28902         xfreopen: new module, from coreutils
28903         * modules/xfreopen: New module.
28904         * lib/xfreopen.c: New file.
28905         * lib/xfreopen.h: New file.
28906         * MODULES.html.sh (File stream based Input/Output"): Add it.
28907
28908 2009-11-19  Eric Blake  <ebb9@byu.net>
28909
28910         manywarnings: depend on warnings
28911         * modules/manywarnings (Depends-on): Add warnings.
28912
28913         build: avoid compiler warnings
28914         * lib/select.c (rpl_select): Delete unused variable.
28915         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28916
28917 2009-11-18  Eric Blake  <ebb9@byu.net>
28918
28919         tests: avoid false negative with --with-packager
28920         * tests/test-version-etc.sh: Discard packager information.
28921         * tests/test-argp-version-etc-1.sh: Likewise.
28922         Reported by Mike Frysinger.
28923
28924         utimens: fix regression on Solaris
28925         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28926         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28927         can only change fd timestamps via futimesat.  Instead, use an
28928         additional witness macro to avoid BSD bug.
28929         Reported by Jim Meyering.
28930
28931 2009-11-17  Eric Blake  <ebb9@byu.net>
28932
28933         usleep: use it to simplify tests
28934         * modules/stat-time-tests (Depends-on): Add usleep.
28935         (configure.ac): Drop usleep check.
28936         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28937         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28938         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28939         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28940         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28941         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28942         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28943         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28944         Likewise.
28945         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28946         * tests/test-lchown.h (nap): Likewise.
28947         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28948         * tests/test-stat-time.c (nap): Likewise.
28949         * tests/test-utimens-common.h (nap): Update comments.
28950
28951         usleep: new module
28952         * modules/usleep: New file.
28953         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28954         * lib/usleep.c (usleep): Likewise.
28955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28956         * modules/unistd (Makefile.am): Substitute witnesses.
28957         * lib/unistd.in.h (usleep): Add declaration.
28958         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28959         * MODULES.html.sh (Date and time): Likewise.
28960         * modules/usleep-tests (Depends-on): New test.
28961         * tests/test-usleep.c: New file.
28962
28963         chown: work around OpenBSD bug
28964         * lib/chown.c (rpl_chown): Work around the bug.
28965         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28966         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28967         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28968         * modules/chown (Depends-on): Add stdbool.
28969         * modules/lchown (Depends-on): Likewise.
28970         * doc/posix-functions/chown.texi (chown): Document the bug.
28971         * doc/posix-functions/lchown.texi (lchown): Likewise.
28972         * tests/test-lchown.h (test_chown): Relax test.
28973
28974         mkstemp: avoid conflict with C++ keyword template
28975         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28976         * lib/mkostemp.c (mkostemp): Likewise.
28977         * lib/mkostemps.c (mkostemps): Likewise.
28978         * lib/mkstemp.c (mkstemp): Likewise.
28979         * lib/mkstemps.c (mkstemps): Likewise.
28980
28981         xalloc-die-tests: optimize
28982         * tests/test-xalloc-die.sh: Reduce number of processes.
28983
28984 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28985
28986         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28987         patch from ludo@gnu.org (Ludovic Courtès).
28988
28989 2009-11-17  Jim Meyering  <meyering@redhat.com>
28990
28991         version-etc: use proper license string
28992         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28993         * modules/version-etc-fsf: Likewise.
28994
28995 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28996
28997         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28998         printed to stdout.  Deal with EOL differences.
28999
29000 2009-11-17  Eric Blake  <ebb9@byu.net>
29001
29002         unsetenv: work around Solaris bug
29003         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29004         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29005         Reported by Jim Meyering.
29006
29007         vasnprintf: avoid compiler warnings
29008         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29009         variables.
29010         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29011
29012 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29013
29014         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29015         settings since xalloc-die is no longer the self test,
29016         xalloc-die.sh is.
29017
29018 2009-11-17  Jim Meyering  <meyering@redhat.com>
29019
29020         test-xalloc-die.sh: make the code agree with the commit log
29021         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29022         at the end, just in case you happen to have a test-xalloc-die
29023         program in some other PATH directory.
29024
29025         test-xalloc-die.sh: fix a portability bug
29026         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29027         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29028         Otherwise, argv[0] (as often seen in diagnostics) would be too
29029         system-dependent, sometimes with, and sometimes without the leading "./".
29030
29031         version-etc-fsf: relax license to LGPLv3+
29032         * modules/version-etc-fsf (License): Relax license.
29033
29034 2009-11-16  Eric Blake  <ebb9@byu.net>
29035
29036         xalloc-die-tests: avoid printing null pointer
29037         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29038         shell script.
29039         * tests/test-xalloc-die.c (program_name): Declare.
29040         * tests/test-xalloc-die.sh (tmpfiles): New file.
29041
29042         setenv, unsetenv: work around various bugs
29043         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29044         (setenv) [HAVE_SETENV]: Work around bugs.
29045         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29046         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29047         for bugs.
29048         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29049         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29051         * modules/stdlib (Makefile.am): Update substitutions.
29052         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29053         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29054         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29055         * modules/setenv-tests: New test.
29056         * modules/unsetenv-tests: Likewise.
29057         * tests/test-setenv.c: New file.
29058         * tests/test-unsetenv.c: Likewise.
29059
29060 2009-11-16  Jim Meyering  <meyering@redhat.com>
29061
29062         version-etc: relax license to LGPLv3+
29063         * modules/version-etc (License): Relax license.
29064
29065         better AC_REQUIRE expanded-before-required-warning avoidance
29066         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29067         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29068         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29069         which is no longer needed.
29070
29071 2009-11-16  Eric Blake  <ebb9@byu.net>
29072
29073         test-freading: clean up temporary file
29074         * tests/test-freading.c (main): Remove file on success, and use
29075         ASSERT more liberally.
29076         Reported by Jim Meyering.
29077
29078 2009-11-16  Jim Meyering  <meyering@redhat.com>
29079
29080         avoid new AC_REQUIRE expanded-before-required warnings
29081         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29082         merely using it.
29083         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29084         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29085
29086 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29087
29088         * tests/test-xalloc-die.c: New file.
29089         * modules/xalloc-die-tests: New file.
29090         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29091         XFAIL_TESTS so it can be appended by modules.
29092
29093 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29094
29095         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29096         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29097
29098 2009-11-14  Eric Blake  <ebb9@byu.net>
29099
29100         fnmatch: avoid compiler warning
29101         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29102         to silence compiler warning about mismatch signedness in ?:.
29103         Reported by Robert Millan.
29104
29105         intprops: add double-inclusion guard
29106         * lib/intprops.h: Allow idempotent includes.
29107         Suggested by Bruce Korb.
29108
29109         openat: detect Solaris fchownat bug
29110         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29111         penalizing glibc chownat when only lchownat is broken.
29112         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29113         trailing slash bugs.
29114         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29115         * modules/openat-tests (Files): Include more files.
29116         (Depends-on): Add mgetgroups, sleep, stat-time.
29117         (configure.ac): Add additional checks.
29118         (Makefile.am): Build new test.
29119         * tests/test-fchownat.c: New file.
29120
29121         lchown: detect Solaris and FreeBSD bug
29122         * lib/lchown.c (rpl_lchown): Work around bug.
29123         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29125         * modules/unistd (Makefile.am): Populate it.
29126         * lib/unistd.in.h (lchown): Update declaration.
29127         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29128         * modules/lchown-tests: New file.
29129         * tests/test-lchown.h (test_lchown): Likewise.
29130         * tests/test-lchown.c (main): Likewise.
29131
29132         chown: detect Solaris and FreeBSD bug
29133         * lib/chown.c (rpl_chown): Work around bug.
29134         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29135         (gl_PREREQ_CHOWN): Delete.
29136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29137         * modules/unistd (Makefile.am): Populate it.
29138         * lib/unistd.in.h (chown): Update declaration.
29139         * lib/lchown.c (chown): Update client.
29140         * modules/lchown (Depends-on): Add lstat.
29141         * doc/posix-functions/chown.texi (chown): Document the bug.
29142         * doc/posix-functions/getgroups.texi (getgroups): Document
29143         getgroups pitfall.
29144         * modules/chown-tests: New file.
29145         * tests/test-chown.h (test_chown): Likewise.
29146         * tests/test-chown.c (main): Likewise.
29147
29148 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29149
29150         gnulib-tool: correctly detect absence of m4 directories
29151         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29152
29153 2009-11-14  Jim Meyering  <meyering@redhat.com>
29154
29155         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29156         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29157
29158 2009-11-14  John W. Eaton  <jwe@gnu.org>
29159
29160         strftime.h: wrap funtion declaration in extern "C" block
29161         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29162
29163 2009-11-13  Eric Blake  <ebb9@byu.net>
29164
29165         getgroups: avoid compiler warning
29166         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29167
29168         getgroups: work around FreeBSD bug
29169         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29170         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29171         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29172         * tests/test-getgroups.c (main): Fix buffer overrun.
29173
29174         getgroups: avoid compilation failure
29175         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29176         * modules/getgroups (Depends-on): Add stdint.
29177
29178 2009-11-13  Jim Meyering  <meyering@redhat.com>
29179
29180         test-getgroups: avoid compilation failure
29181         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29182
29183 2009-11-13  Eric Blake  <ebb9@byu.net>
29184
29185         mgetgroups: new module, taken from coreutils
29186         * modules/mgetgroups: New file.
29187         * lib/mgetgroups.h: Likewise.
29188         * lib/mgetgroups.c (mgetgroups): Likewise.
29189         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29190         * MODULES.html.sh (Users and groups): Mention it.
29191
29192         getgroups: don't expose GETGROUPS_T to user
29193         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29194         an element at a time if GETGROUPS_T is wrong size.
29195         * lib/getugroups.h (getugroups): Change signature.
29196         * lib/unistd.in.h (getgroups): Likewise.
29197         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29198         signature needs fixing.
29199         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29200         AC_TYPE_GETGROUPS.
29201         * modules/group-member (Depends-on): Add getgroups.
29202         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29203         (group_member): Rely on getgroups replacement.
29204         * lib/getugroups.c (getugroups): Use gid_t.
29205         * tests/test-getgroups.c (main): Likewise.
29206         * NEWS: Mention the signature change.
29207         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29208         problem with signature.
29209         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29210         GETGROUPS_T is still useful for setgroups.
29211
29212         getgroups, getugroups: provide stubs for mingw
29213         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29214         * lib/getugroups.c (getugroups): Likewise.
29215         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29216         function.  Modernize replacement scheme.
29217         (gl_PREREQ_GETGROUPS): Delete.
29218         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29219         * modules/getgroups (configure.ac): Declare witness.
29220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29221         * modules/unistd (Depends-on): Substitute witness.
29222         * lib/unistd.in.h (getgroups): Declare replacement.
29223
29224         getgroups: avoid calling exit
29225         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29226         drop xalloc.
29227         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29228         dependencies.
29229         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29230         exiting, in the rare case of malloc failure.
29231
29232         getgroups: fix logic error
29233         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29234         has more than 20 groups.
29235         * modules/getgroups-tests: New test.
29236         * tests/test-getgroups.c: New file.
29237
29238 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29239
29240         * tests/test-base64.c: Improve.
29241
29242 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29243
29244         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29245         Blake <ebb9@byu.net>.
29246
29247 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29248
29249         * tests/test-xvasprintf.c: Add %s%s related checks.
29250
29251 2009-11-12  Eric Blake  <ebb9@byu.net>
29252
29253         version-etc: match standards.texi style
29254         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29255         and use <> only for URLs.
29256
29257 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29258
29259         fts: do not fail on a submount during traversal
29260         * lib/fts.c (fts_build): Read the stat info again after opening
29261         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29262         Original report at http://bugzilla.redhat.com/501848.
29263
29264 2009-11-12  Jim Meyering  <meyering@redhat.com>
29265
29266         bootstrap: sync from coreutils
29267         * build-aux/bootstrap (bootstrap_epilogue): New function.
29268         Use git_modules_config in one more place.  This make bootstrap's
29269         --gnulib-srcdir option more useful for testing.
29270
29271         bootstrap: generalize autoheader check
29272         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29273         AC_CONFIG_HEADERS.
29274
29275 2009-11-11  Eric Blake  <ebb9@byu.net>
29276
29277         mkfifoat: use new modules for Solaris and BSD bugs
29278         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29279         * lib/mkfifoat.c (mknodat): Split...
29280         * lib/mknodat.c (mknodat): ...into new file.
29281         * modules/mkfifoat (Files): Ship new file.
29282         (Depends-on): Add mkfifo, mknod.
29283         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29284         (Depends-on): Add symlink.
29285         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29286         redundant with test_mkfifo.h.
29287         (do_mkfifoat, do_mknodat): New helpers.
29288
29289         mknod: new module
29290         * modules/mknod: New file.
29291         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29292         * lib/mknod.c (mknod): Likewise.
29293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29294         defaults.
29295         * modules/sys_stat (Makefile.am): Substitute them.
29296         * lib/sys_stat.in.h (mknod): Declare replacement.
29297         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29298         Document it.
29299         * doc/posix-functions/mknod.texi (mknod): Likewise.
29300         * modules/mknod-tests: New test.
29301         * tests/test-mknod.c: Likewise.
29302
29303         mkfifo: new module
29304         * modules/mkfifo: New file.
29305         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29306         * lib/mkfifo.c (mkfifo): Likewise.
29307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29308         defaults.
29309         * modules/sys_stat (Makefile.am): Substitute them.
29310         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29311         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29312         Document it.
29313         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29314         * modules/mkfifo-tests: New test.
29315         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29316         from test-mkfifoat.c.
29317         * tests/test-mkfifo.c: New file.
29318
29319         readlink: detect FreeBSD bug
29320         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29321         slash on symlink.
29322         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29323         * tests/test-readlink.h (test_readlink): Enhance test.
29324
29325         symlink: detect FreeBSD bug
29326         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29327         slash on symlink.
29328         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29329         * tests/test-symlink.h (test_symlink): Enhance test.
29330
29331 2009-11-10  Eric Blake  <ebb9@byu.net>
29332
29333         link: detect FreeBSD bug
29334         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29335         symlink.
29336         * doc/posix-functions/link.texi (link): Document the bug.
29337         * tests/test-link.h (test_link): Enhance test.
29338         * tests/test-linkat.c (main): Update caller.
29339
29340         unlink, remove: detect FreeBSD bug
29341         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29342         slash on symlink.
29343         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29344         * doc/posix-functions/remove.texi (remove): Likewise.
29345         * tests/test-unlink.h (test_unlink): Enhance test.
29346         * tests/test-remove.c (main): Likewise.
29347
29348 2009-11-09  Eric Blake  <ebb9@byu.net>
29349
29350         rename: detect FreeBSD bug
29351         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29352         slash on symlink.
29353         * modules/renameat-tests (Depends-on): Add filenamecat.
29354         * tests/test-rename.h (test_rename): Allow one more errno.
29355         * tests/test-renameat.c (main): Likewise.
29356         * doc/posix-functions/rename.texi (rename): Document the bug.
29357
29358         open: detect FreeBSD bug
29359         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29360         symlink.
29361         * doc/posix-functions/open.texi (open): Document the bug.
29362         * doc/posix-functions/utimes.texi (utimes): Likewise.
29363         * tests/test-open.h (test_open): Add parameters, and test symlink
29364         handling.
29365         * tests/test-open.c (main): Adjust caller.
29366         * tests/test-fcntl-safer.c (main): Likewise.
29367         * modules/open-tests (Depends-on): Add stdbool, symlink.
29368         * modules/fcntl-safer-tests (Depends-on): Likewise.
29369         * tests/test-openat.c (main): Add test-open tests.
29370
29371         stat: detect FreeBSD bug
29372         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29373         symlink.
29374         * doc/posix-functions/stat.texi (stat): Document the bug.
29375         * tests/test-stat.h (test_stat_func): Add argument.
29376         * tests/test-stat.c (main): Adjust caller.
29377         * tests/test-fstatat.c (main): Likewise.
29378         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29379         Reported by Jim Meyering.
29380
29381 2009-11-09  James Youngman  <jay@gnu.org>
29382
29383         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29384         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29385
29386 2009-11-08  Jim Meyering  <meyering@redhat.com>
29387
29388         utimens: remove invalid futimesat call
29389         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29390         It used the file descriptor of the target file as the DIR_FD
29391         parameter and NULL as the file name.  That caused failure with
29392         errno == EFAULT on FreeBSD-8.0-rc2
29393
29394 2009-11-07  Eric Blake  <ebb9@byu.net>
29395
29396         fflush, freadseek: use fseeko, not fseek
29397         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29398         (clear_ungetc_buffer): Avoid potential problems on large files.
29399         * lib/freadseek.c (freadseek): Likewise.
29400         * modules/freadseek (Depends-on): Add fseeko.
29401         * modules/fseek (configure.ac): Set a witness.
29402         * tests/test-fflush.c (main): Use fseeko.
29403         * tests/test-fpurge.c (fseek): Disable link warning.
29404         * tests/test-freadable.c (fseek): Likewise.
29405         * tests/test-freading.c (fseek): Likewise.
29406         * tests/test-fseeko.c (fseek): Likewise.
29407         * tests/test-ftell.c (fseek): Likewise.
29408         * tests/test-ftello.c (fseek): Likewise.
29409         * tests/test-fwritable.c (fseek): Likewise.
29410         * tests/test-fwriting.c (fseek): Likewise.
29411
29412 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29413
29414         * modules/memchr (Depends-on): Drop getpagesize dependency.
29415
29416 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29417
29418         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29419         Reported by Ludovic Courtès.
29420         * build-aux/pmccabe2html: Improve example usage.
29421         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29422
29423 2009-11-06  Jim Meyering  <meyering@redhat.com>
29424
29425         do-release-commit-and-tag: New module.
29426         Automate the release-commit and tag process.
29427         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29428         * modules/do-release-commit-and-tag: New file.
29429         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29430
29431 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29432
29433         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29434         because test-select.c uses inet_pton.
29435
29436 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29437
29438         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29439         GETADDRINFO_LIB.  Bump serial number.
29440         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29441         Suggested by Eric Blake <ebb9@byu.net>.
29442
29443 2009-11-05  Eric Blake  <ebb9@byu.net>
29444
29445         strtod: detect darwin bug
29446         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29447         Reported by Leo Davis.
29448
29449         freopen-safer: new module
29450         * modules/freopen-safer: New module.
29451         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29452         * lib/freopen-safer.c (freopen_safer): New file.
29453         * lib/stdio-safer.h (freopen_safer): New declaration.
29454         * lib/stdio--.h (freopen): New override.
29455         * MODULES.html.sh (File stream based Input/Output): Mention it.
29456         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29457         freopen-safer module.
29458         * doc/posix-functions/stderr.texi (stderr): Likewise.
29459         * doc/posix-functions/stdin.texi (stdin): Likewise.
29460         * doc/posix-functions/stdout.texi (stdout): Likewise.
29461         * modules/freopen-safer-tests: New test.
29462         * tests/test-reopen-safer.c: New file.
29463
29464 2009-11-05  Jim Meyering  <meyering@redhat.com>
29465
29466         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29467         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29468
29469 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29470
29471         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29472
29473 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29474
29475         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29476
29477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29478
29479         Fix link error.
29480         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29481         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29482
29483 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29484
29485         * tests/test-func.c: Also test value of __func__.
29486
29487 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29488
29489         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29490         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29491
29492 2009-11-05  Bruno Haible  <bruno@clisp.org>
29493
29494         Fix link error.
29495         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29496         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29497         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29498
29499 2009-11-05  Bruno Haible  <bruno@clisp.org>
29500
29501         Tests for module 'inet_pton'.
29502         * modules/inet_pton-tests: New file.
29503         * tests/test-inet_pton.c: New file.
29504
29505 2009-11-05  Bruno Haible  <bruno@clisp.org>
29506
29507         Tests for module 'inet_ntop'.
29508         * modules/inet_ntop-tests: New file.
29509         * tests/test-inet_ntop.c: New file.
29510
29511 2009-11-04  Eric Blake  <ebb9@byu.net>
29512
29513         stdlib-safer: wrap all mkstemp variants
29514         * modules/mkostemp (configure.ac): Set witness.
29515         * modules/mkostemps (configure.ac): Likewise.
29516         * modules/mkstemps (configure.ac): Likewise.
29517         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29518         (mkstemps_safer): Wrap more functions.
29519         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29520         wrapping.
29521         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29522         (mkstemps_safer): Implement the wrappers.
29523
29524         mkstemps, mkostemps: new modules
29525         * modules/mkostemps: New module.
29526         * modules/mkstemps: Likewise.
29527         * lib/mkostemps.c (mkostemps): New file.
29528         * lib/mkstemps.c (mkstemps): Likewise.
29529         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29530         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29532         * modules/stdlib (Makefile.am): Substitute them.
29533         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29534         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29535         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29536         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29537         * MODULES.html.sh (File system functions): Mention them.
29538
29539         tempname: resync from glibc
29540         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29541         same values for __GT_FILE as glibc.  Abort even when assertions
29542         are disabled.
29543         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29544         match its value otherwise.  Allow idempotent inclusion.
29545         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29546         * lib/mkostemp.c (mkostemp): Likewise.
29547         * lib/mkstemp.c (mkstemp): Likewise.
29548         * lib/tmpfile.c (tmpfile): Likewise.
29549         * NEWS: Document this.
29550
29551         utimens: fix use of futimens on older Linux
29552         * lib/utimens.c (fdutimens): Use updated, rather than original,
29553         timespec to avoid bug in older Linux kernel.
29554         Reported by Simon Josefsson.
29555
29556 2009-11-04  Bruno Haible  <bruno@clisp.org>
29557
29558         Make num_processors more flexible and consistent.
29559         * lib/nproc.h (enum nproc_query): New type.
29560         (num_processors): Add a 'query' argument.
29561         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29562         (num_processors): Add a 'query' argument. Test the value of the
29563         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29564         mingw, count the number of CPUs available for the current process.
29565         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29566         Check for sched_getaffinity and sched_getaffinity_np.
29567         * modules/nproc (Depends-on): Add c-ctype, extensions.
29568         * NEWS: Mention the change.
29569
29570 2009-11-03  Bruno Haible  <bruno@clisp.org>
29571
29572         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29573
29574 2009-11-03  Jim Meyering  <meyering@redhat.com>
29575
29576         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29577         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29578         if it is defined.
29579
29580 2009-11-02  Eric Blake  <ebb9@byu.net>
29581
29582         mktime, timegm: share common declaration
29583         * lib/mktime-internal.h: New file.
29584         * lib/mktime.c: Use it rather than open-coding a declaration.
29585         * lib/timegm.c: Likewise.
29586         * modules/mktime (Files): Ship it.
29587         * modules/timegm (Files): Likewise.
29588         Suggested by Bruno Haible.
29589
29590         test-update-copyright: update test to match script changes
29591         * tests/test-update-copyright.sh: Avoid hard-coding perl
29592         location.  Don't update *.bak created by earlier runs.
29593
29594 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29595             Simon Josefsson  <simon@josefsson.org>
29596             Bruno Haible  <bruno@clisp.org>
29597
29598         Fix link error on Solaris 8.
29599         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29600         also in libnsl. Define also INET_PTON_LIB.
29601         * modules/inet_pton (Link): New section.
29602
29603 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29604             Bruno Haible  <bruno@clisp.org>
29605
29606         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29607         * modules/inet_ntop (Link): New section.
29608         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29609
29610 2009-11-02  Eric Blake  <ebb9@byu.net>
29611
29612         maint: avoid compiler warnings in m4 macros
29613         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29614         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29615
29616 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29617
29618         * m4/pmccabe2html.m4: Remove file.
29619         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29620         function.  Change maintainer.
29621         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29622         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29623         Courtès).
29624
29625 2009-10-31  Eric Blake  <ebb9@byu.net>
29626
29627         fseeko: fix m4 regression
29628         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29629         regression from 2009-10-27.
29630         Reported by Ralf Wildenhues.
29631
29632 2009-10-31  Jim Meyering  <meyering@redhat.com>
29633
29634         inttostr: aesthetics and improved (compile-time) safety
29635         Define inttype_is_signed rather than inttype_is_unsigned,
29636         since the sole use is via "#if inttype_is_signed".
29637         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29638         inttype_is_unsigned.
29639         * lib/offtostr.c (inttype_is_signed): Likewise.
29640         * lib/uinttostr.c (inttype_is_signed): Likewise.
29641         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29642         * lib/inttostr.c (inttostr): Use verify to cross-check the
29643         inttype_is_signed value and the signedness of the actual type.
29644         * modules/inttostr (Depends-on): Add verify.
29645
29646 2009-10-30  Eric Blake  <ebb9@byu.net>
29647
29648         build: avoid compiler warnings
29649         * lib/fchmodat.c (lchmod): Mark unused variables.
29650         * lib/getopt.c (_getopt_initialize): Likewise.
29651         * lib/mktime.c (__mktime_internal): Provide prototype.
29652         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29653         older gcc that do not understand #pragma GCC diagnostic.
29654         * lib/uinttostr.c (inttype_is_unsigned): Define.
29655         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29656
29657 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29658
29659         stat: fix compilation on AIX
29660         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29661         only see struct stat64.
29662
29663 2009-10-30  Eric Blake  <ebb9@byu.net>
29664
29665         exclude: make more robust
29666         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29667         rather than masking a coding bug.
29668         Suggested by Bruno Haible.
29669
29670 2009-10-30  Jim Meyering  <meyering@redhat.com>
29671
29672         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29673         Rather than putting #!/usr/bin/perl on the first line,
29674         start with a variant of what's recommended by "man perlrun" that
29675         invokes the first "perl" program from your shell's search path.
29676         * build-aux/gitlog-to-changelog: Replace #!... as above.
29677         Add a "Local Variables" perl mode setting.
29678         Prompted by a patch from Ludovic Courtès.
29679         Improved by Eric Blake.
29680         * build-aux/useless-if-before-free: Likewise.
29681         * build-aux/announce-gen: Likewise.
29682         * build-aux/update-copyright: Likewise.
29683
29684 2009-10-29  Eric Blake  <ebb9@byu.net>
29685
29686         filenamecat-lgpl: adjust clients
29687         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29688         filenamecat.
29689         * modules/renameat (Depends-on): Likewise.
29690
29691         filenamecat: split into filenamecat-lgpl
29692         * modules/filenamecat-lgpl: New module.
29693         * modules/filenamecat (Files): Move library-safe files into
29694         filenamecat-lgpl.
29695         (Depends-on): Add filenamecat-lgpl.
29696         (configure.ac): Declare witness.
29697         * lib/filenamecat.h (file_name_concat): Only declare when using
29698         GPL module.
29699         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29700         Move...
29701         * lib/filenamecat-lgpl.c: ...into new file.
29702         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29703         (gl_FILE_NAME_CONCAT): Use it.
29704         * MODULES.html.sh (File system functions): Mention new module.
29705
29706         argp: avoid memory leak
29707         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29708         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29709         base_name, since the latter malloc()s and can call exit().
29710         Leak introduced 2006-07-03.
29711
29712         dirname-lgpl: adjust clients that don't need full dirname
29713         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29714         * modules/filenamecat (Depends-on): Likewise.
29715         * modules/linkat (Depends-on): Likewise.
29716         * modules/mkancesdirs (Depends-on): Likewise.
29717         * modules/mkdir (Depends-on): Likewise.
29718         * modules/openat (Depends-on): Likewise.
29719         * modules/savewd (Depends-on): Likewise.
29720         * modules/rename (Depends-on): Likewise.
29721         (License): Relax license.
29722         * modules/mkdir-tests (Depends-on): Drop progname.
29723         (Makefile.am): Delete unneeded LDADD.
29724         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29725
29726         dirname: split into dirname-lgpl
29727         * modules/dirname-lgpl: New module.
29728         * modules/dirname (Files): Move library-safe files into
29729         dirname-lgpl.
29730         (Depends-on): Add dirname-lgpl.
29731         (configure.ac): Declare witness.
29732         * modules/double-slash-root (License): Relax license.
29733         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29734         module.
29735         * lib/dirname.c (dir_len, mdir_name): Move...
29736         * lib/dirname-lgpl.c: ...into new file.
29737         * lib/basename.c (last_component, base_len): Move...
29738         * lib/basename-lgpl.c: ...into new file.
29739         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29740         (gl_DIRNAME): Use it.
29741         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29742         Mention new module.
29743         * modules/dirname-tests (Depends-on): Add progname.
29744         * tests/test-dirname.c (program_name): Delete.
29745
29746         mkdir: make safe for libraries
29747         * modules/mkdir (Depends-on): Drop xalloc.
29748         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29749         exit.
29750
29751         tests: avoid some compiler warnings
29752         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29753         literals.
29754         * tests/test-memchr.c (main): Avoid type mismatch.
29755         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29756         * tests/test-base64.c (main): Likewise.
29757         * tests/test-getdelim.c (main): Likewise.
29758         * tests/test-gethostname.c (main): Likewise.
29759         * tests/test-getline.c (main): Likewise.
29760         * tests/test-netinet_in.c (main): Likewise.
29761         * tests/test-select.c (open_server_socket, main): Likewise.
29762         * tests/test-select-stdin.c (main): Likewise.
29763         * tests/test-sockets.c (main): Likewise.
29764         * tests/test-strsignal.c (main): Likewise.
29765         * tests/test-sys_select.c (main): Likewise.
29766         * tests/test-sys_socket.c (main): Likewise.
29767         * tests/test-u64.c (main): Likewise.
29768         * tests/test-xfprintf-posix.c (main): Likewise.
29769         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29770
29771         sockets: avoid compiler warning
29772         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29773
29774         maint: detect usage(1) and other suspicious exits
29775         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29776
29777 2009-10-29  Jim Meyering  <meyering@redhat.com>
29778
29779         timespec: long-to-int truncation could make timespec_cmp malfunction
29780         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29781         a multiple of 2^32 nanoseconds as no difference.
29782
29783 2009-10-28  Jim Meyering  <meyering@redhat.com>
29784
29785         fprintftime: wrap macro code argument in "do {...} while(0)"
29786         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29787         cpy macro must be a statement that can be followed by a semicolon.
29788         Now that the else clause contains a comment and is hence longer
29789         than one line, I require curly braces.  That in turn requires
29790         that we wrap this code block in the standard do...while(0).
29791
29792         fprintftime: remove stray semicolon from previous change
29793         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29794
29795         fprintftime: avoid a warning about ignored fwrite return value
29796         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29797         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29798         that is unsafe.
29799         * modules/fprintftime (Depends-on): Add ignore-value.
29800
29801         exclude: avoid an unwarranted warning
29802         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29803
29804 2009-10-27  Eric Blake  <ebb9@byu.net>
29805
29806         fseek: avoid compilation failure when fflush is replaced
29807         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29808         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29809         module is in use.
29810         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29811         module is not in use; since REPLACE_FSEEK worked otherwise.
29812         (GNULIB_FTELLO): Likewise for ftell.
29813         Reported by Ian Beckwith and others.
29814
29815 2009-10-27  Bruno Haible  <bruno@clisp.org>
29816
29817         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29818         Reported by Jim Meyering.
29819
29820 2009-10-27  Jim Meyering  <jim@meyering.net>
29821             Bruno Haible  <bruno@clisp.org>
29822
29823         Avoid warning despite dropping the return value of fwrite.
29824         * lib/unicodeio.c: Include ignore-value.h.
29825         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29826         * modules/unicodeio (Depends-on): Add ignore-value.
29827
29828 2009-10-26  Eric Blake  <ebb9@byu.net>
29829
29830         areadlinkat: fix fallback path
29831         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29832         pointer and zero.
29833
29834 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29835
29836         Use a better IO block size for modern systems
29837         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29838         * lib/md2.c: Likewise.
29839         * lib/md4.c: Likewise.
29840         * lib/md5.c: Likewise.
29841         * lib/sha1.c: Likewise.
29842         * lib/sha256.c: Likewise.
29843         * lib/sha512.c: Likewise.
29844
29845 2009-10-22  Eric Blake  <ebb9@byu.net>
29846
29847         tests: avoid several compiler warnings
29848         * tests/test-getcwd.c (main): Avoid buffer underflow.
29849         * tests/test-getdate.c (main): String literals are not safe with
29850         putenv, so use setenv.  Declare unused argument.
29851         * modules/getdate-tests (Depends-on): Add setenv.
29852         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29853         problems with string literals in char *.
29854         * tests/test-hash.c (main): Avoid shadowing declaration.
29855         (insert_new): Treat string literals as char const *.
29856         * tests/test-getopt.h (test_getopt): Likewise.
29857         (getopt_loop): Alter types to minimize casting elsewhere.
29858         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29859         (test_getopt_long_posix): Likewise.
29860         (do_getopt_long): Add wrapper to minimize casting.
29861         * tests/test-atexit.c (clear_temp_file): Use void.
29862         * tests/test-areadlink-with-size.c (main): Declare unused
29863         arguments.
29864         * tests/test-areadlink.c (main): Likewise.
29865         * tests/test-areadlinkat-with-size.c (main): Likewise.
29866         * tests/test-areadlinkat.c (main): Likewise.
29867         * tests/test-canonicalize-lgpl.c (main): Likewise.
29868         * tests/test-canonicalize.c (main): Likewise.
29869         * tests/test-dirent-safer.c (main): Likewise.
29870         * tests/test-dirname.c (main): Likewise.
29871         * tests/test-dup2.c (main): Likewise.
29872         * tests/test-fchdir.c (main): Likewise.
29873         * tests/test-fcntl-h.c (main): Likewise.
29874         * tests/test-fcntl-safer.c (main): Likewise.
29875         * tests/test-fdopendir.c (main): Likewise.
29876         * tests/test-fdutimensat.c (main): Likewise.
29877         * tests/test-fflush.c (main): Likewise.
29878         * tests/test-filenamecat.c (main): Likewise.
29879         * tests/test-filevercmp.c (main): Likewise.
29880         * tests/test-fopen-safer.c (main): Likewise.
29881         * tests/test-fopen.c (main): Likewise.
29882         * tests/test-fpending.c (main): Likewise.
29883         * tests/test-fpurge.c (main): Likewise.
29884         * tests/test-freading.c (main): Likewise.
29885         * tests/test-fstatat.c (main): Likewise.
29886         * tests/test-fsync.c (main): Likewise.
29887         * tests/test-futimens.c (main): Likewise.
29888         * tests/test-getndelim2.c (main): Likewise.
29889         * tests/test-gettimeofday.c (main): Likewise.
29890         * tests/test-getopt.c (main): Likewise.
29891         * tests/test-i-ring.c (main): Likewise.
29892         * tests/test-inttypes.c (main): Likewise.
29893         * tests/test-link.c (main): Likewise.
29894         * tests/test-lstat.c (main): Likewise.
29895         * tests/test-math.c (main): Likewise.
29896         * tests/test-md5.c (main): Likewise.
29897         * tests/test-memchr2.c (main): Likewise.
29898         * tests/test-memrchr.c (main): Likewise.
29899         * tests/test-mkdir.c (main): Likewise.
29900         * tests/test-mkdirat.c (main): Likewise.
29901         * tests/test-mkfifoat.c (main): Likewise.
29902         * tests/test-open.c (main): Likewise.
29903         * tests/test-openat-safer.c (main): Likewise.
29904         * tests/test-openat.c (main): Likewise.
29905         * tests/test-quotearg.c (main): Likewise.
29906         * tests/test-rawmemchr.c (main): Likewise.
29907         * tests/test-readlink.c (main): Likewise.
29908         * tests/test-remove.c (main): Likewise.
29909         * tests/test-rename.c (main): Likewise.
29910         * tests/test-renameat.c (main): Likewise.
29911         * tests/test-rmdir.c (main): Likewise.
29912         * tests/test-sha1.c (main): Likewise.
29913         * tests/test-signal.c (main): Likewise.
29914         * tests/test-sigaction.c (main): Likewise.
29915         * tests/test-stat.c (main): Likewise.
29916         * tests/test-stat-time.c (main): Likewise.
29917         * tests/test-stddef.c (main): Likewise.
29918         * tests/test-stdint.c (main): Likewise.
29919         * tests/test-stdio.c (main): Likewise.
29920         * tests/test-stdlib.c (main): Likewise.
29921         * tests/test-strchrnul.c (main): Likewise.
29922         * tests/test-strerror.c (main): Likewise.
29923         * tests/test-string.c (main): Likewise.
29924         * tests/test-strtod.c (main): Likewise.
29925         * tests/test-strverscmp.c (main): Likewise.
29926         * tests/test-symlink.c (main): Likewise.
29927         * tests/test-symlinkat.c (main): Likewise.
29928         * tests/test-sys_stat.c (main): Likewise.
29929         * tests/test-sys_time.c (main): Likewise.
29930         * tests/test-time.c (main): Likewise.
29931         * tests/test-unistd.c (main): Likewise.
29932         * tests/test-unlink.c (main): Likewise.
29933         * tests/test-unlinkat.c (main): Likewise.
29934         * tests/test-utimens.c (main): Likewise.
29935         * tests/test-utimensat.c (main): Likewise.
29936         * tests/test-version-etc.c (main): Likewise.
29937         * tests/test-wchar.c (main): Likewise.
29938         * tests/test-wctype.c (main): Likewise.
29939         * tests/test-xprintf-posix.c (main): Likewise.
29940         * tests/test-posixtm.c (main): Likewise.
29941         (STREQ): Delete unused macro.
29942         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29943         shadowed variables.
29944         * tests/test-memchr.c (main): Likewise.
29945
29946 2009-10-21  Eric Blake  <ebb9@byu.net>
29947
29948         areadlinkat: avoid failure on older glibc
29949         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29950         rather than mis-comparing 0 against FUNC_RESULT of char*.
29951
29952 2009-10-21  Bruno Haible  <bruno@clisp.org>
29953
29954         * modules/stpncpy (License): Relicense under LGPLv2+.
29955         Reported by David Lutterkort <lutter@redhat.com>.
29956
29957 2009-10-20  Eric Blake  <ebb9@byu.net>
29958
29959         utimensat: work around Solaris 9 bug
29960         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29961         has trailing slash bugs.
29962         * tests/test-lutimens.h (test_lutimens): Enhance test.
29963         * tests/test-utimens.h (test_utimens): Likewise.
29964         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29965         * doc/posix-functions/utimes.texi (utimes): Likewise.
29966         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29967         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29968         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29969         * doc/posix-functions/futimens.texi (futimens): Likewise.
29970
29971         fdutimensat: new module
29972         * modules/fdutimensat: New file.
29973         * lib/fdutimensat.c (fdutimensat): Likewise.
29974         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29975         * MODULES.html.sh (File system functions): Mention module.
29976         * modules/fdutimensat-tests: New test.
29977         * tests/test-fdutimensat.c: Likewise.
29978
29979         doc: regenerate INSTALL
29980         * doc/INSTALL: Reflect recent autoconf update.
29981         * doc/INSTALL.ISO: Likewise.
29982         * doc/INSTALL.UTF-8: Likewise.
29983
29984 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29985
29986         acl: warn if ACL support is not detected
29987         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29988
29989 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29990
29991         * lib/nproc.h: Add extern "C" block for C++.
29992
29993 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29994             Bruno Haible  <bruno@clisp.org>
29995
29996         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29997         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29998         * doc/posix-functions/isalpha.texi: Likewise.
29999         * doc/posix-functions/isblank.texi: Likewise.
30000         * doc/posix-functions/iscntrl.texi: Likewise.
30001         * doc/posix-functions/isdigit.texi: Likewise.
30002         * doc/posix-functions/isgraph.texi: Likewise.
30003         * doc/posix-functions/islower.texi: Likewise.
30004         * doc/posix-functions/isprint.texi: Likewise.
30005         * doc/posix-functions/ispunct.texi: Likewise.
30006         * doc/posix-functions/isspace.texi: Likewise.
30007         * doc/posix-functions/isupper.texi: Likewise.
30008         * doc/posix-functions/isxdigit.texi: Likewise.
30009
30010 2009-10-18  Bruno Haible  <bruno@clisp.org>
30011
30012         Tests for module 'isblank'.
30013         * modules/isblank-tests: New file.
30014         * tests/test-isblank.c: New file.
30015
30016         New module 'isblank'.
30017         * lib/isblank.c: New file.
30018         * m4/isblank.m4: New file.
30019         * modules/isblank: New file.
30020         * doc/posix-functions/isblank.texi: Mention the new module.
30021
30022 2009-10-18  Bruno Haible  <bruno@clisp.org>
30023
30024         New module 'ctype'.
30025         * lib/ctype.in.h: New file.
30026         * m4/ctype.m4: New file.
30027         * modules/ctype: New file.
30028         * doc/posix-headers/ctype.texi: Mention the new module.
30029
30030 2009-10-18  Jim Meyering  <meyering@redhat.com>
30031
30032         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30033         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30034         right after its initialization, rather than farther down.
30035         Keeping these in close proximity makes it easier to ensure
30036         that each such variable is initialized.  E.g.,
30037
30038             LIB_CLOCK_GETTIME=
30039             AC_SUBST([LIB_CLOCK_GETTIME])
30040
30041         This change also increments these serial numbers.
30042         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30043         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30045
30046 2009-10-18  Bruno Haible  <bruno@clisp.org>
30047
30048         Don't let environment variables perturb build.
30049         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30050         (gl_PREREQ_GETHRXTIME): ... not here.
30051
30052 2009-10-18  Bruno Haible  <bruno@clisp.org>
30053
30054         Avoid symlink attack in localcharset module.
30055         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30056         (O_NOFOLLOW): Define fallback.
30057         (get_charset_aliases): Don't open the file if it is a symbolic link.
30058         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30059         gl_FCNTL_H.
30060         (gl_FCNTL_H): Require it.
30061         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30062         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30063         Reported by Fergal Glynn <fglynn@veracode.com>.
30064
30065 2009-10-18  Bruno Haible  <bruno@clisp.org>
30066
30067         Implement nproc for mingw.
30068         * lib/nproc.c: Include <windows.h>
30069         (num_processors): On native Windows platforms, try GetSystemInfo.
30070
30071 2009-10-18  Bruno Haible  <bruno@clisp.org>
30072
30073         Implement nproc for IRIX.
30074         * lib/nproc.c: Include <sys/sysmp.h>.
30075         (num_processors): On IRIX systems, try sysmp.
30076         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30077
30078 2009-10-18  Bruno Haible  <bruno@clisp.org>
30079
30080         Implement nproc for HP-UX.
30081         * lib/nproc.c: Include <sys/pstat.h>
30082         (num_processors): On HP-UX systems, try pstat_getdynamic.
30083         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30084         pstat_getdynamic.
30085
30086 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30087             Bruno Haible  <bruno@clisp.org>
30088
30089         Implement nproc for NetBSD, OpenBSD.
30090         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30091         (ARRAY_SIZE): New macro.
30092         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30093         * m4/nproc.m4: New file.
30094         * modules/nproc (Files): Add m4/nproc.m4.
30095         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30096         (Makefile.am): Instead, augment lib_SOURCES.
30097
30098 2009-10-18  Bruno Haible  <bruno@clisp.org>
30099
30100         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30101         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30102         sys/param.h.
30103
30104 2009-10-16  Eric Blake  <ebb9@byu.net>
30105
30106         utimensat: new module
30107         * modules/utimensat: New file.
30108         * lib/utimensat.c (utimensat): Likewise.
30109         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30110         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30111         so we can work around Linux bugs.
30112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30113         * modules/sys_stat (Makefile.am): Substitute them.
30114         * lib/sys_stat.in.h (utimensat): Declare it.
30115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30116         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30117         * modules/utimensat-tests: New test.
30118         * tests/test-utimensat.c: Likewise.
30119
30120         utimens: let lutimens work on non-symlinks
30121         * lib/utimens.c (lutimens): Fall back to utimens rather than
30122         failing with ENOSYS, when file is not a symlink.
30123         (utimens): Reduce redirection.
30124         * tests/test-lutimens.h (test_lutimens): Update test to cover
30125         non-symlinks.
30126         * tests/test-utimens.h (test_utimens): Update test to cover
30127         symlinks.
30128         * tests/test-utimens.c (main): Update caller.
30129
30130         utimens: cache whether utimensat syscall works
30131         * lib/utimens.c (utimensat_works_really): New cache variable.
30132         (fdutimens, lutimens): Use it to avoid failing syscall.
30133
30134         test-stat-time, test-utimens: improve portability
30135         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30136         ext4 on alpha, and for cygwin.
30137         * tests/test-utimens-common.h: New file.
30138         (nap): Factor delays into single function.
30139         * tests/test-lutimens.h (test_lutimens): Use new header.
30140         * tests/test-futimens.h (test_futimens): Likewise.
30141         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30142         timestamps to occur from same machine, as was done previously for
30143         test_utimens.
30144         * modules/utimens-tests (Files): Ship new file.
30145         * modules/futimens-tests (Files): Likewise.
30146         Reported in part by Jim Meyering.
30147
30148         sys_stat: sort replacement declarations
30149         * lib/sys_stat.in.h: Sort declarations.
30150         * lib/futimens.c (futimens): Fix typo.
30151
30152 2009-10-15  Jim Meyering  <meyering@redhat.com>
30153
30154         don't let environment settings perturb build
30155         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30156         could cause a configure-time and/or build-time malfunction.
30157         Typically, a configure-time function-in-library test is performed
30158         via code like this:
30159
30160           LIB_VAR=
30161           AC_SUBST([LIB_VAR])
30162           prefix_saved_LIBS=$LIBS
30163             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30164                        [test "$ac_cv_search_FUNC" = "none required" ||
30165                         LIB_VAR=$ac_cv_search_FUNC])
30166           LIBS=$prefix_saved_LIBS
30167
30168         However, in each of the files affected by this change, the LIB_VAR=
30169         initialization was omitted.  Thus, when set in the environment, its
30170         value would propagate into generated Makefiles when FUNC is not found
30171         in LIB_NAME.
30172         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30173         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30175
30176 2009-10-14  Eric Blake  <ebb9@byu.net>
30177
30178         fchdir: avoid infinite recursion in mingw
30179         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30180         recursing.
30181
30182         test-stat-time: port to mingw
30183         * tests/test-stat-time.c (force_unlink): Return a value.
30184         (test_ctime) [W32]: Fix compilation error.
30185         (nap): Don't call usleep with too large an argument.  Use
30186         force_unlink.
30187         * doc/pastposix-functions/usleep.texi (usleep): Document the
30188         portability issue.
30189
30190 2009-10-13  Jim Meyering  <meyering@redhat.com>
30191
30192         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30193         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30194         * modules/pipe-filter-ii: Likewise.
30195         * modules/sys_socket-tests: Likewise.
30196         * modules/tsearch-tests: Likewise.
30197         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30198         (check): Depend on it.
30199
30200 2009-10-12  Eric Blake  <ebb9@byu.net>
30201
30202         utimens-tests: port to NFS file systems
30203         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30204         comparisons to avoid spurious failures from timestamp drift
30205         between NFS machines.
30206
30207 2009-10-12  Eric Blake  <ebb9@byu.net>
30208
30209         stat-time-tests: minor cleanups
30210         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30211         * tests/test-stat-time.c (nap): Separate assignment from call.
30212         Suggested by Paolo Bonzini and Bruno Haible.
30213
30214         sys_stat: guarantee struct timespec
30215         * lib/sys_stat.in.h (includes): Always include <time.h>
30216         * modules/sys_stat (Depends-on): Add time.
30217         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30218         mode_t permission values.
30219         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30220         get at subsecond timestamps.
30221
30222 2009-10-10  Eric Blake  <ebb9@byu.net>
30223
30224         futimens: new module
30225         * modules/futimens: New file.
30226         * lib/futimens.c (futimens): Likewise.
30227         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30228         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30229         we can work around Linux bugs.
30230         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30231         * modules/sys_stat (Makefile.am): Substitute them.
30232         * lib/sys_stat.in.h (futimens): Declare it.
30233         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30234         * doc/posix-functions/futimens.texi (futimens): Likewise.
30235         * modules/futimens-tests: New test.
30236         * tests/test-futimens.c: Likewise.
30237
30238         utimens: introduce fdutimens
30239         * lib/utimens.h (fdutimens): New prototype.
30240         * lib/utimens.c (gl_futimens): Move guts...
30241         (fdutimens): ...to new interface.
30242         * tests/test-utimens.c (do_fdutimens): Use it.
30243
30244         utimens: add UTIME_NOW and UTIME_OMIT support
30245         * lib/utimens.c (validate_timespec, update_timespec): New helper
30246         functions.
30247         (gl_futimens, lutimens): Use them.
30248         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30249         stdbool, sys_stat.
30250         (Link): Mention resulting library dependency.
30251         * modules/utimecmp (Link): Likewise.
30252         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30253         (Makefile.am): Pick up library dependency.
30254         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30255         definition.
30256         * tests/test-sys_stat.c: Test the definitions.
30257         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30258         * NEWS: Document library dependency.
30259
30260         utimecmp: support symlink timestamps
30261         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30262         hashing when possible.  Use pathconf when available.
30263         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30264         * modules/utimecmp (Depends-on): Add lstat.
30265
30266         utimens: add lutimens interface
30267         * lib/utimens.c (lutimens): New function.
30268         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30269         * lib/utimens.h (lutimens): Declare new interface.
30270         * tests/test-utimens.c (main): Enhance test.
30271         * tests/test-lutimens.h (test_lutimens): New file.
30272         * modules/utimens-tests (Files): Distribute it.
30273         (Depends-on): Add symlink.
30274         (configure.ac): Check for usleep.
30275
30276         utimens: validate futimens usage
30277         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30278         fewer syscalls on failure later on.  Avoid compiler warning on
30279         mingw.
30280         * modules/utimens (Depends-on): Add dup2.
30281
30282         utimens: add test
30283         * modules/utimens-tests: New test.
30284         * tests/test-utimens.h: New file.
30285         * tests/test-futimens.h: Likewise.
30286         * tests/test-utimens.c: Likewise.
30287
30288         doc: mention timestamp portability issues
30289         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30290         instead.
30291         * doc/posix-functions/utime.texi (utime): Likewise.
30292         * doc/posix-functions/utimes.texi (utimes): Likewise.
30293         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30294         instead.
30295         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30296         module.
30297         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30298         Mention weakness with symlink timestamps.
30299         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30300         to utimensat/futimens instead.
30301         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30302
30303         test-dup2: enhance test
30304         * tests/test-dup2.c (main): Also check AT_FDCWD.
30305
30306         test-stat-time: avoid more spurious failures
30307         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30308         xfs; and avoid race if the two timestamps cross quantization edge.
30309
30310         relocatable: prefer 'file system' over 'filesystem'
30311         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30312         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30313         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30314         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30315         * lib/relocatable.c (compute_curr_prefix): Likewise.
30316
30317 2009-10-10  Jim Meyering  <meyering@redhat.com>
30318
30319         stat-time-tests: check for the usleep function
30320         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30321
30322 2009-10-10  Bruno Haible  <bruno@clisp.org>
30323
30324         * modules/xnanosleep: Put the Link section after the Include section.
30325
30326 2009-10-09  Eric Blake  <ebb9@byu.net>
30327
30328         dup2: work around FreeBSD 6.1 bug
30329         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30330         * doc/posix-functions/dup2.texi (dup2): Document it.
30331         Reported by Nelson H. F. Beebe and Jim Meyering.
30332
30333         test-stat-time: port to buggy NFS clients
30334         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30335         (test_ctime): Also skip test if mtime and ctime are skewed.
30336
30337         maint: prefer 'file system' over 'filesystem'
30338         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30339         * doc/posix-functions/lstat.texi (lstat): Likewise.
30340         * lib/file-has-acl.c (file_has_acl): Likewise.
30341         * lib/fwriteerror.c [TEST]: Likewise.
30342         * tests/test-areadlink.h (test_areadlink): Likewise.
30343         * tests/test-areadlinkat-with-size.c (main): Likewise.
30344         * tests/test-areadlinkat.c (main): Likewise.
30345         * tests/test-canonicalize-lgpl.c (main): Likewise.
30346         * tests/test-canonicalize.c (main): Likewise.
30347         * tests/test-fstatat.c (main): Likewise.
30348         * tests/test-linkat.c (main): Likewise.
30349         * tests/test-lstat.h (test_lstat_func): Likewise.
30350         * tests/test-mkdir.h (test_mkdir): Likewise.
30351         * tests/test-readlink.h (test_readlink): Likewise.
30352         * tests/test-remove.c (main): Likewise.
30353         * tests/test-rename.h (test_rename): Likewise.
30354         * tests/test-renameat.c (main): Likewise.
30355         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30356         * tests/test-symlink.h (test_symlink): Likewise.
30357         * tests/test-symlinkat.c (main): Likewise.
30358         * tests/test-unlink.h (test_unlink_func): Likewise.
30359         * tests/test-unlinkat.c (main): Likewise.
30360
30361         maint: make realtime library usage explicit
30362         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30363         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30364         * modules/settime (Link): Likewise.
30365         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30366
30367         test-stat-time: speed up execution
30368         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30369         warning on mingw.
30370         (nap): New helper function.
30371         (prepare_test): Use it to reduce sleep time.
30372         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30373         execution.
30374         * modules/stat-time-tests (configure.ac): Check for usleep.
30375
30376 2009-10-09  Jim Meyering  <meyering@redhat.com>
30377
30378         selinux-h: always use getfilecon wrappers
30379         * lib/getfilecon.c: New file.
30380         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30381         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30382         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30383         (fgetfilecon): Provide a stub.
30384         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30385         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30386         file unconditionally.
30387         When <selinux/selinux.h> is found, arrange to use wrappers.
30388         * modules/selinux-h (Files): Add getfilecon.c.
30389         (Makefile.am): Substitute include-next-related bits
30390         into the now-always-generated selinux/selinux.h file.
30391         * doc/glibc-functions/lgetfilecon.texi: New file.
30392         * doc/glibc-functions/fgetfilecon.texi: New file.
30393         * doc/glibc-functions/getfilecon.texi: New file.
30394         * doc/glibc-functions/getfilecon-desc.texi: New file.
30395         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30396         which to pull in the new files.
30397         * MODULES.html.sh (Misc): Add selinux-h.
30398
30399 2009-10-08  Jim Meyering  <meyering@redhat.com>
30400
30401         unistd: fix comment typo
30402         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30403
30404 2009-10-08  Eric Blake  <ebb9@byu.net>
30405
30406         areadlink: use SIZE_MAX consistently
30407         * modules/areadlink (Depends-on): Add stdint.
30408         * modules/areadlink-with-size (Depends-on): Likewise.
30409         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30410         gives NULL; drop sys/types, since unistd gives size_t; and add
30411         stdint for SIZE_MAX.
30412         (SIZE_MAX): Rely on headers.
30413         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30414         and add stdint.
30415         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30416         (SIZE_MAX): Likewise.
30417         (INITIAL_BUF_SIZE): Turn into enum.
30418         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30419
30420 2009-10-08  Jim Meyering  <meyering@redhat.com>
30421
30422         areadlinkat: avoid compilation failure
30423         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30424         Fix typo in comment.
30425
30426 2009-10-07  Eric Blake  <ebb9@byu.net>
30427
30428         areadlinkat-with-size: new module
30429         * modules/areadlinkat-with-size: New module.
30430         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30431         * lib/areadlink.h (areadlinkat): Declare it.
30432         * MODULES.html.sh (File system functions): Mention it.
30433         * modules/areadlinkat-with-size-tests: New test.
30434         * tests/test-areadlinkat-with-size.c: New file.
30435
30436         xreadlinkat: new module
30437         * modules/xreadlinkat: New module.
30438         * lib/xreadlinkat.c (xreadlinkat): New file.
30439         * lib/xreadlink.h (xreadlinkat): Declare it.
30440         * MODULES.html.sh (File system functions): Mention it.
30441
30442         areadlinkat: new module
30443         * lib/at-func.c (FUNC_FAIL): New define.
30444         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30445         * modules/areadlinkat: New module.
30446         * lib/linkat.c (areadlinkat): Move...
30447         * lib/areadlinkat.c (areadlinkat): ...to new file.
30448         * lib/areadlink.h (areadlinkat): Declare it.
30449         * modules/linkat (Depends-on): Add areadlinkat.
30450         * MODULES.html.sh (File system functions): Mention it.
30451         * modules/areadlinkat-tests: New test.
30452         * tests/test-areadlinkat.c: New file.
30453
30454         areadlink, areadlink-with-size: add tests
30455         * modules/areadlink-tests: New test.
30456         * modules/areadlink-with-size-tests: Likewise.
30457         * tests/test-areadlink.h: New file.
30458         * tests/test-areadlink.c: Likewise.
30459         * tests/test-areadlink-with-size.c: Likewise.
30460
30461         maint: minor cleanups
30462         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30463         _UNUSED_PARAMETER_ instead.
30464         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30465         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30466         * modules/linkat-tests (Files): Distribute test-link.h.
30467
30468         openat, utimens: whitespace cleanup
30469         * lib/openat.c: Prefer space throughout, rather than mix of 8
30470         spaces vs. tabs.
30471         * lib/at-func.c: Likewise.
30472         * lib/utimens.c: Likewise.
30473
30474         openat: avoid using wrong fd
30475         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30476         working directory chooses same fd.
30477         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30478
30479         mkdir, mkdirat: fix cygwin 1.5.x bug
30480         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30481         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30482         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30483         bug.
30484         (gl_PREREQ_MKDIR): Delete unused macro.
30485         * modules/mkdir (Files): Track file rename.
30486         (configure.ac): Update macro name.
30487         * modules/openat (Depends-on): Add mkdir.
30488         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30489
30490         mkdir, mkdirat: add tests
30491         * modules/mkdir-tests: New test.
30492         * tests/test-mkdir.h: New file.
30493         * tests/test-mkdir.c: Likewise.
30494         * tests/test-mkdirat.c: Likewise.
30495         * modules/openat-tests (Files): Add new files.
30496         (Makefile.am): Run new test.
30497
30498 2009-10-06  Eric Blake  <ebb9@byu.net>
30499
30500         doc: tweak *at function documentation
30501         * doc/posix-functions/faccessat.texi (faccessat): Mention
30502         known issue with replacement.
30503         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30504         * doc/posix-functions/linkat.texi (linkat): Likewise.
30505         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30506         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30507         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30508         * doc/posix-functions/renameat.texi (renameat): Likewise.
30509         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30510
30511         openat: fix GNU/Hurd bug in unlinkat
30512         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30513         broken.
30514         * doc/posix-functions/unlink.texi (unlink): Document this.
30515         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30516
30517         fdopendir: fix GNU/Hurd bug
30518         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30519         allowing non-directory fds.
30520         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30521         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30522         * modules/dirent (Makefile.am): Substitute it.
30523         * lib/dirent.in.h (fdopendir): Declare replacement.
30524         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30525         * tests/test-fdopendir.c (main): Test something other than
30526         /dev/null, since on Hurd that behaves like a directory.
30527
30528         test-symlink: port to GNU/Hurd
30529         * tests/test-symlink.h (test_symlink): Relax expected errno.
30530
30531         doc: tweak more cygwin information
30532         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30533         now compatible with glibc.
30534         * doc/posix-functions/getopt.texi (getopt): Likewise.
30535
30536         getopt-gnu: add another test
30537         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30538         guarantee behavior relied on by m4.
30539         * tests/test-getopt.c (main): Use it.
30540         * modules/getopt-posix-tests (Depends-on): Add setenv.
30541         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30542
30543         getopt: fix compilation on darwin
30544         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30545         include.
30546         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30547         Reported by Ludovic Courtès.
30548
30549 2009-10-06  Bruno Haible  <bruno@clisp.org>
30550
30551         * modules/size_max (Description): Discourage its use.
30552         Reported by Simon Josefsson.
30553
30554 2009-10-06  Jim Meyering  <meyering@redhat.com>
30555
30556         linkat: avoid compilation failure
30557         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30558
30559 2009-10-05  Eric Blake  <ebb9@byu.net>
30560
30561         linkat: support Linux 2.6.17
30562         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30563         linkat on Linux, but allow cache variable override.
30564         * lib/linkat.c (rpl_linkat): Define override.
30565         * modules/linkat (Depends-on): Add symlinkat.
30566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30567         * modules/unistd (Makefile.am): Substitute it.
30568         * lib/unistd.in.h (linkat): Declare replacement.
30569         Reported by Pádraig Brady.
30570
30571         quotearg: port test to systems with C.UTF-8 locale
30572         * tests/test-quotearg.c (struct result_strings): Add another
30573         member, differentiating between C.ASCII and C.UTF-8 handling.
30574         (compare_strings): Add parameter.
30575         (main): Adjust all callers.
30576
30577         getopt: avoid clash with FreeBSD _getopt_internal
30578         * lib/getopt.in.h (_getopt_internal): Override the name.
30579         * lib/getopt_int.h (includes): Pick up any overrides.
30580         Reported by Reuben Thomas.
30581
30582         hash: allow C89 compilation
30583         * lib/hash.c (check_tuning): Move declaration before statement.
30584         Reported by Reuben Thomas.
30585
30586 2009-10-05  Karl Berry  <karl@gnu.org>
30587
30588         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30589
30590 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30591             Bruno Haible  <bruno@clisp.org>
30592
30593         * lib/uname.c (uname): Use a table-driven algorithm to compute
30594         Windows NT versions.
30595
30596 2009-10-04  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30599         program_invocation_short_name.
30600         * modules/progname (configure.ac): Test for presence of
30601         program_invocation_short_name.
30602         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30603
30604 2009-10-04  Bruno Haible  <bruno@clisp.org>
30605
30606         * lib/progname.c (set_program_name): Fix comment.
30607         Reported by Jim Meyering.
30608
30609 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30610             Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/uname.c: Include <string.h>.
30613         (uname): Do only one call to GetVersionEx in the common case.
30614
30615 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30616             Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30619         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30620         (uname): Add support for Windows CE and various non-x86 CPU types.
30621
30622 2009-10-03  Bruno Haible  <bruno@clisp.org>
30623
30624         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30625         invocation to tests/configure.ac.
30626         Reported by Ian Beckwith <ianb@erislabs.net>.
30627
30628 2009-10-02  Eric Blake  <ebb9@byu.net>
30629
30630         fchdir: avoid compiler warning
30631         * lib/fchdir.c (canonicalize_file_name)
30632         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30633
30634         test-open: support mingw errno values
30635         * tests/test-open.h (test_open): Relax test.
30636         * tests/test-fopen.h (test_fopen): Likewise.
30637         * tests/test-openat-safer.c (main): Likewise.
30638
30639         open: fix opening directory on mingw
30640         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30641
30642         test-open: on GNU/Hurd, /dev/null is a directory
30643         * tests/test-fopen.h (main): Rename...
30644         (test_fopen): ...to this.  Use a guaranteed non-directory when
30645         confirming open behavior on trailing slash.
30646         * tests/test-openat-safer.c (main): Likewise.
30647         * tests/test-open.h (main): Likewise....
30648         (test_open): ...to this.
30649         * tests/test-fopen.c (main): Adjust caller.
30650         * tests/test-fopen-safer.c (main): Likewise.
30651         * tests/test-open.c (main): Likewise.
30652         * tests/test-fcntl-safer.c (main): Likewise.
30653         Reported by Samuel Thibault.
30654
30655         rename, fchdir: don't ignore chdir failure
30656         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30657         * lib/rename.c (rpl_rename) [W32]: Likewise.
30658         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30659         an empty destination directory if source cannot be renamed,
30660         although there is still possibility for failure.
30661         * doc/posix-functions/rename.texi (rename): Document the race.
30662         Reported by Jim Meyering.
30663
30664         maint: cleanup whitespace in recent commits
30665         * lib/rename.c (rpl_rename): Remove tabs.
30666         * tests/test-link.h (test_link): Likewise.
30667         * lib/fchdir.c (get_name): Likewise.
30668         Reported by Jim Meyering.
30669
30670 2009-10-02  Ben Pfaff  <blp@gnu.org>
30671
30672         relocatable-prog-wrapper: Add missing dependency on
30673         double-slash-root.
30674         * modules/relocatable-prog-wrapper: Add dependency.
30675         Reported by Ian Beckwith <ianb@erislabs.net>.
30676
30677 2009-10-02  Eric Blake  <ebb9@byu.net>
30678
30679         renameat: fix Solaris bugs
30680         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30681         needed fixing.
30682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30683         * modules/stdio (Makefile.am): Substitute it.
30684         * lib/stdio.in.h (renameat): Declare replacement.
30685         * lib/renameat.c (rpl_renameat): Implement fix.
30686
30687         renameat: new module
30688         * modules/renameat: New file.
30689         * lib/renameat.c (renameat): Likewise.
30690         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30692         * modules/stdio (Makefile.am): Substitute them.
30693         * lib/stdio.in.h (renameat): Declare it.
30694         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30695         * doc/posix-functions/renameat.texi (renameat): Likewise.
30696         * modules/renameat-tests: New test.
30697         * tests/test-renameat.c: Likewise.
30698
30699         rename: fix mingw bugs
30700         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30701         directory overwrite bugs.
30702
30703         rename: fix another cygwin 1.5 bug
30704         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30705         checks.
30706         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30707         unnecessary cygwin workarounds.  Also work around bug with moving
30708         full directory onto an empty one.
30709         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30710
30711         rename-dest-slash: merge into rename module
30712         * modules/rename-dest-slash (Status): Mark obsolete.
30713         (Depends-on): Add rename.
30714         (Files): Let rename do it all.
30715         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30716         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30717         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30718         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30719         * lib/rename.c (rpl_rename): Update comments.
30720
30721         rename: fix cygwin 1.5.x bugs
30722         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30723         * lib/rename.c (rpl_rename): Work around them.
30724         * modules/rename (Depends-on): Add same-inode.
30725
30726         rename: fix Solaris 10 bug
30727         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30728         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30729         was the only bug.
30730
30731         rename: fix Solaris 9 bug
30732         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30733         on non-directory.  Avoid calling exit.
30734         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30735         strdup.
30736         * modules/rename-tests (Depends-on): Drop lstat.
30737         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30738         (gl_PREREQ_RENAME): Delete unused macro.
30739
30740         rename-dest-slash: fix NetBSD bug
30741         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30742         links.
30743         * modules/rename-dest-slash (Depends-on): Add same-inode.
30744
30745         rename-tests: new test, exposes several platform bugs
30746         * modules/rename-tests: New file.
30747         * tests/test-rename.h: Likewise.
30748         * tests/test-rename.c: Likewise.
30749         * doc/posix-functions/rename.texi (rename): Improve documentation,
30750         including bugs that will eventually be fixed in gnulib.
30751
30752 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30753
30754         * lib/uname.c: Include <stdlib.h>
30755         (uname): Assume version info is available.
30756
30757 2009-10-02  Jim Meyering  <meyering@redhat.com>
30758
30759         gnu-web-doc-update: correct --help output
30760         * build-aux/gnu-web-doc-update: Make --help output relevant.
30761
30762         gnu-web-doc-update: add standard options
30763         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30764
30765         gnu-web-doc-update: New module.
30766         Use this script to automatically update the on-line web documentation
30767         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30768         * modules/gnu-web-doc-update: New file, from coreutils.
30769         * build-aux/gnu-web-doc-update: New script.
30770
30771 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30772
30773         link: LoadLibrary is not needed.
30774         * lib/link.c: Use GetModuleHandle.
30775
30776 2009-10-01  Eric Blake  <ebb9@byu.net>
30777
30778         getopt: bump serial number
30779         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30780         change.
30781
30782         tests: tighten link, rmdir, and remove tests
30783         * tests/test-link.h (includes): No need to use <config.h> here.
30784         Clean up if directory hard link was created, otherwise test for
30785         trailing '.'.
30786         * tests/test-linkat.c (main): Simplify.
30787         * tests/test-remove.c (main): Enhance test for trailing '.'.
30788         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30789
30790 2009-10-01  Jim Meyering  <meyering@redhat.com>
30791
30792         maint.mk: requiring "make major" was annoying, for a "minor" release.
30793         What is intended is "stable", to contrast with alpha and beta,
30794         so require "make stable", not "make major".
30795         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30796         (get_tool_versions): Likewise.
30797         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30798
30799 2009-09-30  Ben Pfaff  <blp@gnu.org>
30800
30801         Fix broken build of replacement for Windows tmpfile().
30802         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30803         flags argument added along with the 'mkostemp' module.
30804
30805 2009-09-28  Bruno Haible  <bruno@clisp.org>
30806
30807         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30808         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30809         to 'remove_elt'.
30810         (gl_list_remove): Update.
30811         * lib/gl_list.c (gl_list_remove): Update.
30812         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30813         to 'remove_elt'.
30814         (gl_oset_remove): Update.
30815         * lib/gl_list.c (gl_oset_remove): Update.
30816         Reported by Eric Blake.
30817
30818 2009-09-28  Eric Blake  <ebb9@byu.net>
30819
30820         doc: mention yet more cygwin 1.7 status
30821         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30822         cygwin.
30823         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30824         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30825
30826         argp: fix test failure
30827         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30828         that are not upper-case.  Pass correct range to tolower.
30829
30830 2009-09-27  Jim Meyering  <meyering@redhat.com>
30831
30832         test-yesno: work around sparc-dash here-document infelicity
30833         Without this change, the literal \177 byte in a here document
30834         would make dash 0.5.5.1-3 access uninitialized memory.
30835         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30836         Instead, use a marker, "@", and filter through tr to create the desired
30837         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30838
30839 2009-09-27  Bruno Haible  <bruno@clisp.org>
30840
30841         Disable untested support for new flavours of ACLs on AIX.
30842         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30843         progress.
30844         * lib/set-mode-acl.c (qset_acl): Likewise.
30845
30846 2008-12-07  Bruno Haible  <bruno@clisp.org>
30847
30848         Add support for new flavours of ACLs on AIX. (Untested.)
30849         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30850         (file_has_acl): Add support for newer AIX.
30851         * lib/set-mode-acl.c (qset_acl): Likewise.
30852         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30853         Rainer Tammer <tammer@tammer.net>.
30854
30855 2009-09-26  Eric Blake  <ebb9@byu.net>
30856
30857         argp: fix compilation of getopt
30858         * lib/getopt.in.h (includes): Use different guard than glibc.
30859         Reported by Sergey Poznyakoff.
30860
30861         doc: mention more cygwin 1.7 status
30862         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30863         bug.
30864         * doc/posix-functions/execl.texi (execl): Likewise.
30865         * doc/posix-functions/execle.texi (execle): Likewise.
30866         * doc/posix-functions/execlp.texi (execlp): Likewise.
30867         * doc/posix-functions/execv.texi (execv): Likewise.
30868         * doc/posix-functions/execve.texi (execve): Likewise.
30869         * doc/posix-functions/execvp.texi (execvp): Likewise.
30870         * doc/glibc-functions/canonicalize_file_name.texi
30871         (canonicalize_file_name): Cygwin 1.7 now provides this.
30872         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30873         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30874         on AT_SYMLINK_NOFOLLOW.
30875
30876 2009-09-24  Eric Blake  <ebb9@byu.net>
30877
30878         test-linkat: make test more robust
30879         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30880
30881         getopt: fix inclusion guards for cygwin
30882         * modules/getopt-posix (Depends-on): Add include-next.
30883         (Makefile.am): Substitute more items in replacement header.
30884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30885         <getopt.h>.
30886         * lib/getopt.in.h (includes): Use split inclusion guard, and
30887         prefer <getopt.h> over include <unistd.h> when one is present.
30888         (option): Also override name of 'struct option'.
30889
30890         same-inode: revert prior change; it is not yet ready
30891         * NEWS: Undo mention of this change.
30892         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30893         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30894         * lib/cycle-check.c (cycle_check): Likewise.
30895         * lib/same.c (same_name): Likewise.
30896         * lib/at-func2.c (at_func2): Likewise.
30897
30898 2009-09-23  Eric Blake  <ebb9@byu.net>
30899
30900         linkat: new module
30901         * modules/linkat: New file.
30902         * lib/at-func2.c (at_func2): Likewise.
30903         * lib/linkat.c (linkat): Likewise.
30904         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30905         * lib/openat-priv.h (at_func2): Add declaration.
30906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30907         * modules/unistd (Makefile.am): Substitute them.
30908         * lib/unistd.in.h (linkat): Declare it.
30909         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30910         * doc/posix-functions/linkat.texi (linkat): Likewise.
30911         * doc/posix-functions/link.texi (link): Tweak wording.
30912         * tests/test-link.c (main): Move guts...
30913         * tests/test-link.h (test_link): ...into new file.
30914         * modules/linkat-tests: New test.
30915         * tests/test-linkat.c: Likewise.
30916         * modules/link-tests (Files): Ship new file.
30917         (Depends-on): Add stdbool.
30918
30919         dirname: add library-safe mdir_name
30920         * lib/dirname.h (mdir_name): New prototype.
30921         * lib/dirname.c (dir_name): Move guts...
30922         (mdir_name): ...to new function that avoids xalloc_die.
30923
30924         fchdir: another mingw fix
30925         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30926         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30927         on mingw (where it has not yet been ported), and make it optional
30928         elsewhere.
30929         (_gl_register_fd): Use it.
30930
30931         same-inode: make SAME_INODE tri-state, to port to mingw
30932         * NEWS: Mention this change.
30933         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30934         st_ino always being 0.
30935         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30936         * lib/cycle-check.c (cycle_check): Likewise.
30937         * lib/same.c (same_name): Likewise.
30938
30939         lstat: avoid mingw compilation error
30940         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30941         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30942         lstat ourselves.
30943         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30944         was adequate.
30945         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30946         the checks for lstat.
30947         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30948
30949         link: fix test failure on Solaris 9
30950         * lib/link.c (rpl_link): Don't assume link will catch bogus
30951         trailing slash on source.
30952
30953         test-symlinkat: enhance test
30954         * tests/test-readlink.c (main): Move guts...
30955         * tests/test-readlink.h (test_readlink): ...into new file.
30956         * tests/test-symlink.c (main): Move guts...
30957         * tests/test-symlink.h (test_symlink): ...into new file.
30958         * tests/test-symlinkat.c (main): Use new files for further
30959         coverage.
30960         (do_symlink, do_readlink): New helper functions.
30961         * modules/symlink-tests (Files): Ship new file.
30962         (Depends-on): Add stdbool.
30963         * modules/readlink-tests (Files): Ship new file.
30964         (Depends-on): Add stdbool.
30965         * modules/symlinkat-tests (Files): Use new files.
30966
30967 2009-09-23  Eric Blake  <ebb9@byu.net>
30968
30969         readlink: document portability issue with symlink length
30970         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30971         systems have bogus st_size on symlinks, and mention the
30972         areadlink-with-size module.
30973         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30974         * doc/posix-functions/readlink.texi (readlink): Mention the
30975         areadlink module, and ERANGE failure.
30976         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30977         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30978
30979         readlink: fix Solaris 9 bug with trailing slash
30980         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30981         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30982         * doc/posix-functions/readlink.texi (readlink): Document this.
30983         * modules/readlink-tests: New test.
30984         * tests/test-readlink.c: Likewise.
30985
30986         readlink: fix cygwin 1.5.x bug with return type
30987         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30988         * lib/unistd.in.h (readlink): Use ssize_t.
30989         * lib/readlink.c (readlink): Likewise.
30990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30991         * modules/unistd (Makefile.am): Substitute it.
30992         * lib/unistd.in.h (readlink): Declare replacement.
30993         * doc/posix-functions/readlink.texi (readlink): Document this.
30994
30995         symlink: use throughout gnulib
30996         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30997         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30998         symlink is not used.
30999         * modules/symlinkat (Depends-on): Add symlink.
31000         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31001         * modules/canonicalize-tests (Depends-on): Likewise.
31002         * modules/lstat-tests (Depends-on): Likewise.
31003         * modules/openat-tests (Depends-on): Likewise.
31004         * modules/remove-tests (Depends-on): Likewise.
31005         * modules/rmdir-tests (Depends-on): Likewise.
31006         * modules/unlink-tests (Depends-on): Likewise.
31007         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31008         * tests/test-canonicalize.c (symlink): Likewise.
31009         * tests/test-fstatat.c (symlink): Likewise.
31010         * tests/test-lstat.c (symlink): Likewise.
31011         * tests/test-remove.c (symlink): Likewise.
31012         * tests/test-rmdir.c (symlink): Likewise.
31013         * tests/test-unlink.c (symlink): Likewise.
31014         * tests/test-unlinkat.c (symlink): Likewise.
31015
31016         symlink: new module, for Solaris 9 bug
31017         * modules/symlink: New file.
31018         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31019         * lib/symlink.c: Likewise.
31020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31021         * modules/unistd (Makefile.am): Substitute them.
31022         * lib/unistd.in.h (symlink): Declare replacement.
31023         * MODULES.html.sh (File system functions): Mention it.
31024         * doc/posix-functions/symlink.texi (symlink): Likewise.
31025         * modules/symlink-tests: New test.
31026         * tests/test-symlink.c: Likewise.
31027
31028 2009-09-23  Bruno Haible  <bruno@clisp.org>
31029
31030         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31031         when needed.
31032         Test case: gnulib-tool --import --with-tests atexit inttypes.
31033         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31034
31035 2009-09-23  Bruno Haible  <bruno@clisp.org>
31036
31037         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31038         subcommand, not in a subshell.
31039
31040 2009-09-22  Eric Blake  <ebb9@byu.net>
31041
31042         unistd: sort replacement declarations
31043         * lib/unistd.in.h: Sort declarations.
31044
31045         open, openat: minor optimization
31046         * lib/open.c (open): If open succeeded, len is non-zero.
31047         * lib/openat.c (rpl_openat): Likewise.
31048
31049         link-follow: ensure correct result
31050         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31051         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31052         distinguish between possible failures.
31053
31054 2009-09-21  Eric Blake  <ebb9@byu.net>
31055
31056         fts: avoid compiler warning
31057         * lib/fts.c (dirent_inode_sort_may_be_useful)
31058         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31059
31060 2009-09-19  Bruno Haible  <bruno@clisp.org>
31061
31062         * lib/progreloc.c (canonicalize_file_name): New declaration.
31063
31064 2009-09-19  Eric Blake  <ebb9@byu.net>
31065
31066         link: fix quoting
31067         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31068
31069         openat: fix openat bugs on Solaris 9
31070         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31071         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31072         * modules/openat (Depends-on): Add open.
31073         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31074         * modules/fcntl-h (Makefile.am): Substitute it.
31075         * lib/fcntl.in.h (openat): Declare replacement.
31076         * doc/posix-functions/openat.texi (openat): Document this.
31077
31078         openat: move fstatat and unlinkat into correct files
31079         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31080         compiled.
31081         * lib/openat.c (fstatat, unlinkat): Move...
31082         * lib/fstatat.c (fstatat): ...into correct files.
31083         * lib/unlinkat.c (unlinkat): Likewise.
31084
31085         openat: fix unlinkat bugs on Solaris 9
31086         * lib/unlinkat.c (unlinkat): New file.
31087         * modules/openat (Depends-on): Add unlink.
31088         (Files): Distribute it.
31089         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31090         trailing slash behavior is broken.
31091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31092         * modules/unistd (Makefile.am): Substitute it.
31093         * lib/unistd.in.h (unlinkat): Declare replacement.
31094         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31095
31096         openat: fix fstatat bugs on Solaris 9
31097         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31098         stat.
31099         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31100
31101         test-unlinkat: enhance test, to expose Solaris 9 bug
31102         * tests/test-unlink.c (main): Factor guts...
31103         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31104         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31105         * tests/test-rmdir.c (main): Adjust caller.
31106         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31107         (unlinker): New helper function.
31108         (rmdirat): Enhance check.
31109         * modules/rmdir-tests (Depends-on): Add stdbool.
31110         * modules/unlink-tests (Depends-on): Likewise.
31111         (Files): Add test-unlink.h.
31112         * modules/openat-tests (Files): Likewise.
31113         (Depends-on): Add unlinkdir.
31114
31115         test-fstatat: new test, to expose Solaris 9 bugs
31116         * tests/test-stat.c (main): Factor guts...
31117         * tests/test-stat.h (test_stat_func): ...into new file.
31118         * tests/test-lstat.c (main): Factor guts...
31119         * tests/test-lstat.h (test_lstat_func): ...into new file.
31120         * tests/test-fstatat.c: New file.
31121         * modules/stat-tests (Files): Add test-stat.h.
31122         * modules/lstat-tests (Files): Add test-lstat.h.
31123         (Depends-on): Add stdbool.
31124         * modules/openat-tests (Depends-on): Add pathmax.
31125         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31126         (Makefile.am): Run new test.
31127
31128         remove: new module, for mingw and Solaris 9 bugs
31129         * modules/remove: New file.
31130         * lib/remove.c: Likewise.
31131         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31133         * modules/stdio (Makefile.am): Use them.
31134         * lib/stdio.in.h (remove): Declare replacement.
31135         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31136         * doc/posix-functions/remove.texi (remove): Likewise.
31137         * modules/remove-tests: New test.
31138         * tests/test-remove.c: Likewise.
31139
31140         unlink: new module, for Solaris 9 bug
31141         * modules/unlink: New file.
31142         * lib/unlink.c: Likewise.
31143         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31145         * modules/unistd (Makefile.am): Use them.
31146         * lib/unistd.in.h (stat): Declare replacement.
31147         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31148         * doc/posix-functions/unlink.texi (unlink): Likewise.
31149         * modules/unlink-tests: New test.
31150         * tests/test-unlink.c: Likewise.
31151
31152         lstat: fix Solaris 9 bug
31153         * lib/lstat.c (lstat): Also check for trailing slash on
31154         non-symlink, non-directories.  Use stat module to simplify logic.
31155         * doc/posix-functions/lstat.texi (lstat): Document it.
31156         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31157         (configure.ac): Check for symlink.
31158         * tests/test-lstat.c (main): Add more tests.
31159
31160         stat: add as dependency to other modules
31161         * modules/chown (Depends-on): Add stat.
31162         * modules/euidaccess (Depends-on): Likewise.
31163         * modules/fchdir (Depends-on): Likewise.
31164         * modules/isdir (Depends-on): Likewise.
31165         * modules/link (Depends-on): Likewise.
31166         * modules/lstat (Depends-on): Likewise.
31167         * modules/mkdir-p (Depends-on): Likewise.
31168         * modules/modechange (Depends-on): Likewise.
31169         * modules/open (Depends-on): Likewise.
31170         * modules/readlink (Depends-on): Likewise.
31171         * modules/same (Depends-on): Likewise.
31172
31173         stat: fix Solaris 9 bug
31174         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31175         slash.
31176         * lib/stat.c (rpl_stat): Work around it.
31177         * doc/posix-functions/stat.texi (stat): Update documentation.
31178
31179         stat: new module, for mingw bug
31180         * modules/stat: New file.
31181         * lib/stat.c: Likewise.
31182         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31184         * modules/sys_stat (Makefile.am): Use them.
31185         * lib/sys_stat.in.h (stat): Declare replacement.
31186         * lib/openat.c (fstatat): Deal with lstat and stat being function
31187         macros.
31188         * modules/openat (Depends-on): Add inline.
31189         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31190         * doc/posix-functions/stat.texi (stat): Likewise.
31191         * modules/stat-tests: New test.
31192         * tests/test-stat.c: Likewise.
31193
31194 2009-09-19  Jim Meyering  <meyering@redhat.com>
31195
31196         syntax-check: detect unnecessary inclusion of canonicalize.h
31197         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31198
31199 2009-09-19  Eric Blake  <ebb9@byu.net>
31200
31201         canonicalize-lgpl: adjust clients to use correct header
31202         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31203         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31204         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31205         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31206         * lib/progreloc.c (includes): Likewise.
31207
31208 2009-09-19  Jim Meyering  <meyering@redhat.com>
31209
31210         test-posixtm.c: correct a comment
31211         * tests/test-posixtm.c: Correct first-line comment.
31212         Spotted by Eric Blake.
31213
31214 2009-09-16  Jim Meyering  <meyering@redhat.com>
31215
31216         posixtm-tests: make T const-correct; add a test case
31217         * tests/test-posixtm.c (T): Declare const.
31218         Add a test for -(2^31+1).
31219         Remove useless can-succeed-only-in-2002 test.
31220
31221         posixtm-tests: adjust the sole failing test
31222         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31223         expected output matches what mktime now produces.  Cross-checked via
31224         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31225
31226         posixtm: move #ifdef'd tests into a new module
31227         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31228         * tests/test-posixtm.c: ... this new file.
31229         * modules/posixtm-tests: New module.
31230
31231 2009-09-19  Eric Blake  <ebb9@byu.net>
31232
31233         openat: simplify use of at-func.c
31234         * lib/at-func.c (includes): Include prerequisites here, to
31235         simplify requirements on client files.
31236         * lib/openat-priv.h: Add double-inclusion guard.
31237         * lib/faccessat.c (includes): Simplify.
31238         * lib/fchmodat.c (includes): Likewise.
31239         * lib/fchownat.c (includes): Likewise.
31240         * lib/mkdirat.c (includes): Likewise.
31241         * lib/mkfifoat.c (includes): Likewise.
31242         * lib/symlinkat.c (includes): Likewise.
31243
31244         openat: allow return of fd 0
31245         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31246         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31247         unistd-safer.
31248         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31249         <fcntl.h>; this module does not leak fds.
31250         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31251         must be allowed to return 0, leaving openat_safer to add the
31252         safety.
31253         (openat_permissive): Avoid writing to just-opened fd 2 if
31254         restoring the current directory fails.
31255         * lib/openat-die.c (openat_restore_fail): Add comment.
31256         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31257         (save_cwd): Guarantee safe fd, but without use of open_safer.
31258         * tests/test-openat.c: New test.
31259         * modules/openat-tests (Files, Makefile.am): Distribute and build
31260         new file.
31261
31262         relocatable-prog-wrapper: fix build
31263         * modules/relocatable-prog-wrapper (Files): Update name of
31264         canonicalize m4 file, broken on 2009-09-17.
31265         Reported by emad hajjar <aleppos@hotmail.com>.
31266
31267 2009-09-19  Bruno Haible  <bruno@clisp.org>
31268
31269         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31270         * lib/safe-alloc.c: Likewise.
31271         Reported by Ian Beckwith <ianb@erislabs.net>.
31272
31273 2009-09-18  Bruno Haible  <bruno@clisp.org>
31274
31275         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31276         Reported by <erobles@sensacd.com.mx>.
31277
31278 2009-09-17  Eric Blake  <ebb9@byu.net>
31279
31280         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31281         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31282         slashes when checking if last component is missing.
31283         * tests/test-canonicalize.c (main): Test this.
31284
31285         canonicalize, canonicalize-lgpl: honor // if distinct from /
31286         * modules/canonicalize (Files): Add double-slash-root.m4.
31287         * modules/canonicalize-lgpl (Files): Likewise.
31288         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31289         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31290         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31291         fallback definition.
31292         (canonicalize_filename_mode): Use it to protect //.
31293         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31294         (__realpath): Likewise.
31295         * tests/test-canonicalize.c (main): Test this.
31296         * tests/test-canonicalize-lgpl.c (main): Likewise.
31297         * modules/canonicalize-tests (Depends-on): Add same-inode.
31298         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31299
31300         canonicalize-lgpl: fix glibc bug with trailing slash
31301         * m4/canonicalize-lgpl.m4: Move contents...
31302         * m4/canonicalize.m4: ...here.
31303         (gl_CANONICALIZE_LGPL): Factor realpath check...
31304         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31305         glibc 2.3.5 bug, fixed 2005-04-27.
31306         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31307         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31308         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31309         * modules/canonicalize-lgpl (Files): Manage file rename.
31310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31311         * modules/stdlib (Makefile.am): Substitute witness.
31312         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31313         is needed.
31314         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31315         replacement is required.
31316         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31317         * doc/glibc-functions/canonicalize_file_name.texi
31318         (canonicalize_file_name): Document this.
31319         * doc/posix-functions/realpath.texi (realpath): Likewise.
31320
31321         canonicalize-lgpl: reject non-directory with trailing slash
31322         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31323         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31324         catches failures in glibc 2.3.5.
31325         * tests/test-canonicalize.c (main): Likewise.
31326
31327         canonicalize-lgpl: use native realpath if it works
31328         * lib/canonicalize-lgpl.c (realpath): Guard with
31329         FUNC_REALPATH_WORKS.
31330         * lib/stdlib.in.h (realpath): Make declaration optional based on
31331         HAVE_REALPATH.
31332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31333         native realpath works.
31334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31335         * modules/stdlib (Makefile.am): Substitute witness.
31336
31337         canonicalize, canonicalize-lgpl: use <stdlib.h>
31338         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31339         (Include): Mention <stdlib.h>.
31340         (configure.ac): Mention functions we provide.
31341         * modules/canonicalize (configure.ac): Likewise.
31342         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31343         realpath if canonicalize_file_name is missing.
31344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31345         * modules/stdlib (Makefile.am): Substitute witnesses.
31346         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31347         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31348         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31349         * NEWS: Document this.
31350         * doc/glibc-functions/canonicalize_file_name.texi
31351         (canonicalize_file_name): Likewise.
31352         * doc/posix-functions/realpath.texi (realpath): Likewise.
31353         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31354
31355         test-canonicalize: consolidate into single C program
31356         * tests/test-canonicalize.sh: Delete; move setup into...
31357         * tests/test-canonicalize.c (main): ...the program, making it
31358         easier to run in debugger.  Add some tests.
31359         * modules/canonicalize-tests (Files): Remove unused file.
31360         (Depends-on): Add progname.
31361         (configure.ac, Makefile.am): Simplify.
31362
31363         test-canonicalize-lgpl: consolidate into single C program
31364         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31365         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31366         easier to run in debugger.  Add some tests.
31367         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31368         (configure.ac, Makefile.am): Simplify.
31369
31370         canonicalize: avoid resolvepath
31371         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31372         unnecessary checks.
31373         * lib/canonicalize.c (includes): Simplify.
31374         (canonicalize_file_name): Drop resolvepath implementation.
31375         * modules/canonicalize (Depends-on): Drop filenamecat.
31376
31377         canonicalize: don't lose errno
31378         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31379         over calls to free.
31380
31381         canonicalize: simplify errno handling
31382         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31383         assignment.
31384
31385         canonicalize, canonicalize-lgpl: update module dependencies
31386         * modules/canonicalize (Depends-on): Add extensions, lstat,
31387         pathmax, stdlib.
31388         (Files): Drop pathmax.h.
31389         (configure.ac): Adjust macro name.
31390         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31391         lstat, stdlib, sys_stat.
31392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31393         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31394         extensions.
31395         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31396         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31397         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31398         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31399         declaration, if available.
31400         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31401         we can rely on the readlink module.
31402         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31403         (includes): Use <unistd.h> unconditionally.
31404
31405 2009-09-17  Eric Blake  <ebb9@byu.net>
31406
31407         maint: make Include sections of modules consistent
31408         * modules/alloca: Use only header name; no need to list #include.
31409         * modules/alloca-opt: Likewise.
31410         * modules/arpa_inet: Likewise.
31411         * modules/canon-host: Likewise.
31412         * modules/configmake: Likewise.
31413         * modules/dirent: Likewise.
31414         * modules/eealloc: Likewise.
31415         * modules/environ: Likewise.
31416         * modules/fchdir: Likewise.
31417         * modules/fcntl: Likewise.
31418         * modules/fcntl-h: Likewise.
31419         * modules/gethrxtime: Likewise.
31420         * modules/gettime: Likewise.
31421         * modules/ignore-value: Likewise.
31422         * modules/inet_ntop: Likewise.
31423         * modules/inet_pton: Likewise.
31424         * modules/inttypes: Likewise.
31425         * modules/isnand-nolibm: Likewise.
31426         * modules/isnanf-nolibm: Likewise.
31427         * modules/mbchar: Likewise.
31428         * modules/mbfile: Likewise.
31429         * modules/mbiter: Likewise.
31430         * modules/mbuiter: Likewise.
31431         * modules/netdb: Likewise.
31432         * modules/netinet_in: Likewise.
31433         * modules/nproc: Likewise.
31434         * modules/pagealign_alloc: Likewise.
31435         * modules/poll: Likewise.
31436         * modules/printf-frexp: Likewise.
31437         * modules/pthread: Likewise.
31438         * modules/putenv: Likewise.
31439         * modules/random_r: Likewise.
31440         * modules/relocatable-prog: Likewise.
31441         * modules/search: Likewise.
31442         * modules/select: Likewise.
31443         * modules/selinux-h: Likewise.
31444         * modules/settime: Likewise.
31445         * modules/signal: Likewise.
31446         * modules/size_max: Likewise.
31447         * modules/socklen: Likewise.
31448         * modules/ssize_t: Likewise.
31449         * modules/stdarg: Likewise.
31450         * modules/stdbool: Likewise.
31451         * modules/stddef: Likewise.
31452         * modules/stdint: Likewise.
31453         * modules/stdio: Likewise.
31454         * modules/stdlib: Likewise.
31455         * modules/string: Likewise.
31456         * modules/strings: Likewise.
31457         * modules/sys_file: Likewise.
31458         * modules/sys_ioctl: Likewise.
31459         * modules/sys_select: Likewise.
31460         * modules/sys_socket: Likewise.
31461         * modules/sys_stat: Likewise.
31462         * modules/sys_time: Likewise.
31463         * modules/sys_times: Likewise.
31464         * modules/sys_utsname: Likewise.
31465         * modules/sys_wait: Likewise.
31466         * modules/sysexits: Likewise.
31467         * modules/time: Likewise.
31468         * modules/times: Likewise.
31469         * modules/tmpfile: Likewise.
31470         * modules/trim: Likewise.
31471         * modules/unistd: Likewise.
31472         * modules/wchar: Likewise.
31473         * modules/wctype: Likewise.
31474
31475 2009-09-17  Bruno Haible  <bruno@clisp.org>
31476
31477         Make getdate.y compile on QNX and NetBSD 5 / i386.
31478         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31479         TIME_T_FITS_IN_LONG_INT.
31480         * lib/getdate.y (long_time_t): New type.
31481         (relative_time): Change type of 'seconds' field to long_time_t.
31482         (get_date): Update types of local variables. Check against overflow
31483         during conversion from long_time_t to time_t.
31484         Reported by Matt Kraai <kraai@ftbfs.org>
31485         and Hasso Tepper <hasso@netbsd.org>.
31486
31487 2009-09-17  Bruno Haible  <bruno@clisp.org>
31488
31489         * modules/COPYING: Update copyright years.
31490         * modules/README: Likeiwse.
31491         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31492         Reported by Ian Beckwith <ianb@erislabs.net>.
31493
31494 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31495
31496         * users.txt: Update references for gnuit package.
31497
31498 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31499
31500         * m4/getdelim.m4: Fix typo in copyright line.
31501
31502 2009-09-17  Bruno Haible  <bruno@clisp.org>
31503
31504         * lib/atoll.c: Use the standard header with GPL copyright.
31505         * lib/argz.in.h: Likewise.
31506         * lib/glob.c: Likewise.
31507         * lib/glob-libc.h: Likewise.
31508         * lib/random_r.c: Likewise.
31509         * lib/siglist.h: Likewise.
31510         * lib/strsignal.c: Likewise.
31511         Reported by Ian Beckwith <ianb@erislabs.net>.
31512
31513 2009-09-17  Eric Blake  <ebb9@byu.net>
31514
31515         rmdir: ensure correct dependency order
31516         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31517
31518 2009-09-17  Bruno Haible  <bruno@clisp.org>
31519
31520         Disable assertion that fails on NetBSD 5 / i386.
31521         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31522         Reported by Sam Steingold <sds@gnu.org>
31523         and Hasso Tepper <hasso@netbsd.org>.
31524
31525 2009-09-16  Eric Blake  <ebb9@byu.net>
31526
31527         unlinkdir: port to mingw
31528         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31529         on which no one can unlink a directory.
31530
31531         stdlib: sort witness names
31532         * modules/stdlib (Makefile.am): Sort replacements.
31533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31534         * lib/stdlib.in.h: Likewise.
31535
31536         parse-duration-tests: avoid link failure
31537         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31538         LIBINTL.
31539         Reported by Tom G. Christensen.
31540
31541         openat-tests: ensure unlinkat behaves like rmdir
31542         * tests/test-rmdir.c (main): Factor guts...
31543         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31544         * modules/rmdir-tests (Files): Ship new file.
31545         * modules/openat-tests: New test.
31546         * tests/test-unlinkat.c: Likewise.
31547
31548         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31549         * modules/rmdir-errno (Status, Notice): Now obsolete.
31550
31551         rmdir: work around cygwin 1.5.x and mingw bugs
31552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31553         * lib/rmdir.c (rmdir): Work around it.
31554         * modules/rmdir (Status, Notice): No longer obsolete.
31555         (Files): Add dos.m4.
31556         (Depends-on): Add unistd.
31557         (configure.ac): Set witnesses.
31558         (License): Relax to LGPLv2+.
31559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31560         * modules/unistd (Makefile.am): Substitute witnesses.
31561         * lib/unistd.in.h (rmdir): Declare replacement.
31562         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31563         * modules/rmdir-tests: New tests.
31564         * tests/test-rmdir.c: Likewise.
31565
31566 2009-09-15  Eric Blake  <ebb9@byu.net>
31567
31568         fchdir: improve use of replacement functions
31569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31571         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31572         REPLACE_CLOSEDIR.
31573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31574         * modules/sys_stat (Makefile.am): Substitute correct witness.
31575         * modules/dirent (Makefile.am): Likewise.
31576         * modules/unistd (Makefile.am): Likewise.
31577         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31578         * lib/unistd.in.h (dup): Likewise.
31579         * lib/sys_stat.in.h (fstat): Likewise.
31580
31581         maint: ignore gnulib-tool temp files
31582         * .gitignore: Ignore files created during gnulib-tool --test.
31583
31584 2009-09-13  Jim Meyering  <meyering@redhat.com>
31585
31586         posixtm: don't reject a time that specify "60" as the number of seconds
31587         * lib/posixtm.c (posixtime): The code to reject invalid dates
31588         would also reject a time specified with the .60 suffix.
31589         But POSIX allows that, in order to accommodate leap seconds.
31590         So don't reject it.
31591         (main): Adjust tests accordingly.
31592         * modules/posixtm (Depends-on): Add stpcpy.
31593
31594 2009-09-11  Jim Meyering  <meyering@redhat.com>
31595
31596         announce-gen: include [$release_type] in emitted Subject:
31597         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31598         e.g., [stable] in the emitted Subject: line.
31599
31600 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31601
31602         Remove obsolete macros from several modules.
31603         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31604         obsolete Autoconf macros with their modern counterparts.
31605         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31606         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31608         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31609         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31610         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31612         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31613         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31614         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31615         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31617         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31618         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31619         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31621         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31622         * m4/time_r.m4 (gl_TIME_R): Likewise.
31623         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31624         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31625         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31626
31627         Fix copyright header in build-aux scripts.
31628         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31629         recommendation.
31630         * build-aux/ncftpput-ftp: Likewise.
31631         * build-aux/update-copyright: Likewise.
31632
31633 2009-09-09  Eric Blake  <ebb9@byu.net>
31634
31635         test-link: allow Linux choice of errno
31636         * tests/test-link.c (main): Relax test for alternate error.
31637
31638         strndup: fix improper m4 caching
31639         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31640         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31641         (gl_PREREQ_STRNDUP): Delete.
31642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31643         * modules/string (Makefile.am): Substitute it.
31644         * lib/string.in.h (strndup): Modernize prototype.
31645
31646         getcwd: port to mingw
31647         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31648         different from the POSIX assumptions made throughout the getcwd
31649         module; fortunately, the mingw getcwd does not need replacement.
31650         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31651         * modules/getcwd-tests: New test.
31652         * tests/test-getcwd.c: Likewise.
31653
31654         link: fix platform bugs
31655         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31656         * lib/link.c (link): Work around them.  Fix related mingw bug.
31657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31658         * modules/unistd (Makefile.am): Substitute it.
31659         * lib/unistd.in.h (link): Declare replacement.
31660         * doc/posix-functions/link.texi (link): Document this.
31661         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31662
31663         test-link: consolidate into single C program, test more cases
31664         * tests/test-link.sh: Delete.
31665         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31666         at least Cygwin and Solaris.
31667         * modules/link-tests (Files): Remove unused file.
31668         (Depends-on): Add errno, sys_stat.
31669         (Makefile.am): Simplify.
31670
31671 2009-09-08  Bruno Haible  <bruno@clisp.org>
31672
31673         Work around towlower, towupper bug on mingw.
31674         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31675         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31676         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31677         * doc/posix-functions/towupper.texi: Likewise.
31678         Reported by Eric Blake.
31679
31680 2009-09-08  Jim Meyering  <meyering@redhat.com>
31681
31682         build: don't try to run autoheader if we don't use it
31683         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31684         is not used in configure.ac.
31685
31686 2009-09-08  Eric Blake  <ebb9@byu.net>
31687
31688         euidaccess: fix compilation error
31689         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31690
31691         rawmemchr: relax license
31692         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31693         okay.
31694         Reported by Jim Meyering.
31695
31696         mkfifoat: new module
31697         * modules/mkfifoat: New file.
31698         * lib/mkfifoat.c: Likewise.
31699         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31701         * modules/sys_stat (Makefile.am): Use them.
31702         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31703         * MODULES.html.sh (File system functions): Mention module.
31704         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31705         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31706         * modules/mkfifoat-tests: New test.
31707         * tests/test-mkfifoat.c: Likewise.
31708
31709         strchrnul: relax license
31710         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31711         okay.
31712         Reported by Jim Meyering.
31713
31714 2009-09-08  Eric Blake  <ebb9@byu.net>
31715
31716         fstatat: fix compilation on Solaris
31717         * lib/fstatat.c (includes): Add fcntl.h.
31718         Reported by Pádraig Brady.
31719
31720 2009-09-07  Eric Blake  <ebb9@byu.net>
31721
31722         rename: modernize replacement
31723         * modules/rename (Depends-on): Add stdio.
31724         (configure.ac): Declare witness.
31725         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31726         stdio take care of replacement.
31727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31728         * modules/stdio (Makefile.am): Substitute them.
31729         * lib/stdio.in.h (rename): Declare replacement.
31730         * lib/rename.c (includes): Allow cross-compilation to non-windows
31731         machines.
31732         * doc/posix-functions/rename.texi (rename): Improve
31733         documentation.
31734
31735         stdio: sort witness names
31736         * modules/stdio (Makefile.am): Sort replacements.
31737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31738         * lib/stdio.in.h: Likewise.
31739
31740         getcwd: minor cleanups
31741         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31742         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31743
31744         openat: provide more convenience names
31745         * modules/faccessat (configure.ac): Add C witness.
31746         * lib/unistd.in.h (readlinkat): Fix typo.
31747         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31748         convenience wrappers.
31749         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31750         wrappers in syntax checks.
31751
31752 2009-09-06  Eric Blake  <ebb9@byu.net>
31753
31754         doc: fix comments in recent patches
31755         * lib/faccessat.c: Mention correct function.
31756         * lib/fchmodat.c: Likewise.
31757         * lib/fchownat.c: Likewise.
31758         * lib/symlinkat.c: Likewise.
31759         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31760         constants.
31761
31762         faccessat, symlinkat: continue cleanup of previous patch
31763         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31764         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31765         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31767         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31768         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31769         set.
31770
31771 2009-09-06  Bruno Haible  <bruno@clisp.org>
31772
31773         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31774         (fstatat): Declare if GNULIB_FSTATAT is set.
31775         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31776         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31777         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31778         * modules/fcntl-h (Files): Remove m4/openat.m4.
31779         * modules/sys_stat (Files): Remove m4/openat.m4.
31780         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31781         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31782         * modules/unistd (Files): Remove m4/openat.m4.
31783         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31784         GNULIB_OPENAT.
31785         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31786         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31788         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31789         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31790         gl_OPENAT_DEFAULTS.
31791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31792         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31793         Don't require gl_OPENAT_DEFAULTS.
31794         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31795         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31796         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31797         (gl_OPENAT_DEFAULTS): Remove macro.
31798
31799 2009-09-06  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/openat (configure.ac): Remove unneeded witness.
31802
31803 2009-09-06  Bruno Haible  <bruno@clisp.org>
31804
31805         Set errno to ENOSYS when a function is entirely unsupported.
31806         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31807         EOPNOTSUPP.
31808         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31809         * modules/chown (Depends-on): Remove errno.
31810
31811 2009-09-06  Bruno Haible  <bruno@clisp.org>
31812
31813         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31814
31815 2009-09-06  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31818
31819 2009-09-06  Ben Pfaff  <blp@gnu.org>
31820             Bruno Haible  <bruno@clisp.org>
31821
31822         Work around a glibc bug in strtok_r.
31823         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31824         Undefine if UNDEFINE_STRTOK_R is set.
31825         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31827         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31828         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31829         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31830         UNDEFINE_STRTOK_R.
31831         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31832
31833 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31834
31835         exclude: minor fix
31836         * lib/exclude.c: Include wctype.h
31837
31838 2009-09-06  Akim Demaille  <demaille@gostai.com>
31839
31840         bootstrap: improve error message
31841         * build-aux/bootstrap (find_tool): Upon failure, report the list
31842         of candidates.
31843         Honor the initial value of the envvar.
31844
31845 2009-09-05  Eric Blake  <ebb9@byu.net>
31846
31847         symlinkat: new module
31848         * modules/symlinkat: New file.
31849         * lib/symlinkat.c: Likewise.
31850         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31852         * modules/unistd (Makefile.am): Use them.
31853         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31854         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31855         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31856         * MODULES.html.sh (File system functions): Mention module.
31857         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31859         * modules/symlinkat-tests: New test.
31860         * tests/test-symlinkat.c: Likewise.
31861
31862         test-openat-safer: add more checks
31863         * tests/test-openat-safer.c (main): Check more code paths.
31864
31865 2009-09-05  Jim Meyering  <meyering@redhat.com>
31866
31867         syntax-check: detect unnecessary inclusion of openat.h
31868         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31869
31870 2009-09-05  Bruno Haible  <bruno@clisp.org>
31871
31872         Support towlower, towupper.
31873         * doc/posix-functions/towlower.texi: Mention module wctype.
31874         * doc/posix-functions/towupper.texi: Likewise.
31875         * lib/wctype.in.h (towlower, towupper): New functions.
31876         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31877         (ASSERT): New macro.
31878         (e): New variable.
31879         (main): Test also towlower, towupper. Test WEOF argument.
31880         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31881
31882 2009-09-05  Bruno Haible  <bruno@clisp.org>
31883
31884         Fix conversion behaviour when the input is invalid.
31885         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31886         mark occurring in first pass of indirect conversion.
31887         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31888         input.
31889         Found by clang's static analyzer.
31890
31891 2009-09-05  Bruno Haible  <bruno@clisp.org>
31892
31893         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31894         where direct conversion is possible.
31895
31896 2009-09-04  Eric Blake  <ebb9@byu.net>
31897
31898         openat: fail with ENOENT on empty name
31899         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31900         buffer.
31901
31902         link-follow: fix logic bug in prior patch
31903         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31904         reversed sense of yes and no in prior patch.  Avoid confusing
31905         compilation failure with desired semantics.
31906
31907         link-follow: accomodate mingw and cross-compilation
31908         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31909         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31910         cross-compilation results to -1, to make linkat easier to
31911         implement when cross-compiling.  Trivially support mingw.
31912         * modules/link-follow (configure.ac): Call new name.
31913         * NEWS: Mention this.
31914
31915 2009-09-03  Eric Blake  <ebb9@byu.net>
31916
31917         faccessat: compile replacement
31918         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31919         needed.
31920
31921         fts: fix compilation error
31922         * lib/fts.c (includes): Re-add "openat.h", for
31923         openat_needs_fchdir.
31924
31925         faccessat: new module
31926         * modules/faccessat: New file.
31927         * lib/faccessat.c: Likewise.
31928         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31930         * modules/unistd (Makefile.am): Use it.
31931         * lib/unistd.in.h (faccessat): Declare it.
31932         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31933         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31934         * MODULES.html.sh (File system functions): Mention it.
31935         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31936         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31937
31938         euidaccess: prefer POSIX over non-standard implementation
31939         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31940         * lib/euidaccess.c (euidaccess): Use it if available.
31941
31942         openat: make template easier to use
31943         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31944         AT_FUNC_F2 to be undefined.
31945         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31946         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31947         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31948         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31949         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31950         Likewise.
31951         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31952         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31953         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31954         Likewise.
31955
31956         openat: declare in POSIX headers
31957         * NEWS: Mention this.
31958         * modules/openat (configure.ac): Declare witnesses.
31959         (Depends-on): Add fcntl-h, sys_stat, unistd.
31960         (Include): Mention correct headers.
31961         * modules/fcntl-h (Depends-on): Add link-warning.
31962         (Files): Add openat.m4.
31963         (Makefile.am): Substitute witnesses.
31964         * modules/sys_stat (Files, Makefile.am): Likewise.
31965         * modules/unistd (Files, Makefile.am): Likewise.
31966         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31967         (gl_OPENAT_DEFAULTS): New macro.
31968         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31971         (SYS_STAT_H): Remove unused variable.
31972         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31973         * lib/fcntl--.h (includes): Remove unneeded header.
31974         * lib/openat-safer.c (includes): Likewise.
31975         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31976         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31977         appropriate headers.
31978         (__OPENAT_PREFIX): Delete.
31979         * lib/fcntl.in.h (openat): Provide declaration.
31980         (AT_FDCWD): Fix Solaris bug.
31981         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31982         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31983         * lib/fchmodat.c (includes):  Adjust to find declaration.
31984         * lib/fchownat.c (includes): Likewise.
31985         * lib/mkdirat.c (includes): Likewise.
31986         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31987         still visible.
31988
31989 2009-09-02  Eric Blake  <ebb9@byu.net>
31990
31991         errno: use consistently
31992         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31993         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31994         * lib/canonicalize.c (ELOOP): Likewise.
31995         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31996         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31997         * lib/lchown.c (EOPNOTSUPP): Likewise.
31998         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31999         * lib/savewd.c (ESTALE): Likewise.
32000         * lib/settime.c (ENOSYS): Likewise.
32001         * lib/utimens.c (ENOSYS): Likewise.
32002         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32003         * lib/chdir-safer.c (ELOOP): Likewise.
32004         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32005         * modules/c-stack (Depends-on): Add errno.
32006         * modules/canonicalize (Depends-on): Likewise.
32007         * modules/chdir-safer (Depends-on): Likewise.
32008         * modules/fdopendir (Depends-on): Likewise.
32009         * modules/inet_ntop (Depends-on): Likewise.
32010         * modules/inet_pton (Depends-on): Likewise.
32011         * modules/lchown (Depends-on): Likewise.
32012         * modules/openat (Depends-on): Likewise.
32013         * modules/savewd (Depends-on): Likewise.
32014         * modules/settime (Depends-on): Likewise.
32015         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32016
32017         fts: avoid leaking fds
32018         * modules/fts (Depends-on): Add cloexec.
32019         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32020         flag.
32021
32022         fts: make directory fds more robust
32023         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32024         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32025
32026         backupfile, chdir-long, fts, savedir: make safer
32027         * lib/backupfile.c (includes): Use "dirent--.h", since
32028         numbered_backup can write to stderr during readdir.
32029         * lib/savedir.c (includes): Likewise.
32030         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32031         emulation can write to stderr on failure.
32032         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32033         * lib/getcwd.c: Document why opendir_safer is unused.
32034         * lib/glob.c: Likewise.
32035         * lib/scandir.c: Likewise.
32036         * lib/openat-proc.c: Likewise, for open_safer.
32037         * modules/backupfile (Depends-on): Add dirent-safer.
32038         * modules/savedir (Depends-on): Likewise.
32039         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32040         * modules/chdir-long (Depends-on): Add openat-safer.
32041
32042         openat-safer: new module
32043         * modules/openat-safer: New file.
32044         * lib/openat-safer.c: Likewise.
32045         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32046         * lib/fcntl-safer.h (openat_safer): Declare.
32047         * lib/fcntl--.h (openat): Override.
32048         * MODULES.html.sh (File descriptor based I/O): Mention it.
32049         * lib/openat.h: Add double-inclusion guards.
32050         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32051         "fcntl--.h", so we can implement openat.
32052         * modules/openat-safer-tests: New test.
32053         * tests/test-openat-safer.c: New file.
32054
32055         dirent-safer: new module
32056         * modules/dirent-safer: New file.
32057         * lib/dirent--.h: Likewise.
32058         * lib/dirent-safer.h: Likewise.
32059         * lib/opendir-safer.c: Likewise.
32060         * m4/dirent-safer.m4: Likewise.
32061         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32062         * modules/dirent-safer-tests: New test.
32063         * tests/test-dirent-safer.c: New file.
32064         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32065
32066         fdopendir: optimize on mingw
32067         * lib/unistd.in.h (_gl_directory_name): New prototype.
32068         * lib/fchdir.c (_gl_directory_name): Implement it.
32069         (fchdir): Use it to simplify implementation.
32070         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32071         fchdir, when available, to avoid calling [f]chdir().
32072
32073         fdopendir: split into its own module
32074         * lib/openat.c (fdopendir): Move...
32075         * lib/fdopendir.c: ...into new file.
32076         * modules/fdopendir: New module.
32077         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32078         * modules/openat (Depends-on): Add fdopendir.
32079         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32080         fdopendir here.
32081         * modules/savedir (Depends-on): Only need fdopendir, not full
32082         openat.
32083         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32084         * lib/openat.h (fdopendir): Drop prototype.
32085         * lib/dirent.in.h (fdopendir): Provide prototype.
32086         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32087         * modules/dirent (Makefile.am): Substitute them.
32088         * MODULES.html.sh (File system functions): Mention it.
32089         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32090         * modules/fdopendir-tests: New file.
32091         * tests/test-fdopendir.c: Likewise.
32092
32093         fchdir: use more consistent macro convention
32094         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32095         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32096         REPLACE_FCHDIR, rather than relying on config.h macros.
32097         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32098         inside a single make-time REPLACE_FCHDIR block, rather than using
32099         the config.h FCHDIR_REPLACEMENT.
32100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32101         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32102         Manage fstat replacement.
32103         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32104         REPLACE_FCHDIR.
32105         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32106         (Makefile.am): Substitute REPLACE_FCHDIR.
32107         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32108         FCHDIR_REPLACEMENT.
32109         * lib/dup-safer.c (dup_safer): Likewise.
32110         * lib/dup2.c (rpl_dup2): Likewise.
32111         * lib/dup3.c (rpl_dup3): Likewise.
32112         * lib/open.c (rpl_open): Likewise.
32113
32114         fchdir: simplify error handling, and support dup3
32115         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32116         stdbool, malloc-posix, realloc-posix.
32117         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32118         (ensure_dirs_slot): Return false on allocation failure.
32119         (rpl_dup2): Delete.
32120         (_gl_register_dup): New function.
32121         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32122         (_gl_register_fd): Close fd on allocation failure.
32123         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32124         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32125         prototype.
32126         (rpl_dup2_fchdir): Delete prototype.
32127         * lib/open.c (open): Update caller.
32128         * lib/dup2.c (dup2): Track fchdir metadata.
32129         * lib/dup3.c (dup3): Likewise.
32130         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32132
32133 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32134
32135         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32136         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32137         don't pass arguments to AC_OUTPUT.
32138
32139 2009-09-02  Bruno Haible  <bruno@clisp.org>
32140
32141         * modules/mkdtemp (License): Relicense under LGPLv2+.
32142         Reported by Paolo Bonzini.
32143
32144 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32145
32146         Replace uses of obsolete autoconf macros in Jim's modules.
32147         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32148         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32149         can evoke a warning from autoconf when run with -Wobsolete
32150         enabled.  They were declared obsolete for good reasons (see
32151         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32152         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32153         should not continue using the deprecated macros.
32154         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32155         obsolete Autoconf macros with modern counterparts.
32156         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32157         * m4/dos.m4 (gl_AC_DOS): Likewise.
32158         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32160         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32161         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32162         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32164         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32165         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32166         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32167         Likewise.
32168         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32169         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32170         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32171         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32172         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32173         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32174
32175 2009-09-01  Eric Blake  <ebb9@byu.net>
32176
32177         fchdir: fix off-by-one bug in previous patch
32178         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32179         (_gl_unregister_fd): Delete useless if.
32180
32181 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32182
32183         maint.mk: sort the list of syntax-check rules
32184         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32185         easier to get a sense of progress when the rules are run sequentially
32186         and take a long time.
32187
32188 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32189
32190         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32191         * modules/netinet_in: Likewise.
32192         * modules/sys_file: Likewise.
32193         * modules/sys_ioctl: Likewise.
32194         * modules/sys_select: Likewise.
32195         * modules/sys_socket: Likewise.
32196         * modules/sys_stat: Likewise.
32197         * modules/sys_time: Likewise.
32198         * modules/sys_times: Likewise.
32199         * modules/sys_utsname: Likewise.
32200         * modules/sys_wait: Likewise.
32201
32202 2009-09-01  Jim Meyering  <meyering@redhat.com>
32203
32204         fts: help ensure that return values are not ignored
32205         * lib/fts_.h (__GNUC_PREREQ): Define.
32206         (__attribute_warn_unused_result__): Define.
32207         (fts_children, fts_close, fts_open, fts_read): Declare with
32208         __attribute_warn_unused_result__.
32209
32210         fts: fts_close now fails also when closing a dir file descriptor fails
32211         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32212         and propagate to caller, along with errno.
32213
32214         announce-gen: correct formatting in --help output
32215         * build-aux/announce-gen (usage): Move the one-line description in
32216         --help output "up", to where it belongs, just after Usage:.
32217
32218 2009-08-31  Eric Blake  <ebb9@byu.net>
32219
32220         fchdir: port to mingw
32221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32222         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32223         opened, then use a substitute.
32224         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32225         replacement.
32226         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32227         (_gl_register_fd): No need to check stat if open already filters
32228         all directories.
32229         (fchdir): Fix error condition to match POSIX.
32230         * modules/fchdir (Depends-on): Add sys_stat.
32231         * doc/posix-functions/open.texi (open): Document the limitation.
32232         * modules/fchdir-tests: New file.
32233         * tests/test-fchdir.c: Likewise.
32234
32235         canonicalize: allow cross-testing from cygwin to mingw
32236         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32237         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32238         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32239         Likewise.
32240         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32241         target does not support symlinks.
32242         * tests/test-canonicalize-lgpl.sh: Likewise.
32243
32244         chown: avoid compilation warning on mingw
32245         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32246         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32247         mingw.
32248         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32249         * modules/chown (Depends-on): Add errno.
32250
32251 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32252
32253         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32254         command.
32255
32256 2009-08-31  Jim Meyering  <meyering@redhat.com>
32257
32258         canonicalize: remove useless initialization
32259         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32260         initialization of local, "end".
32261
32262 2009-08-30  Bruno Haible  <bruno@clisp.org>
32263
32264         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32265         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32266         ENOSYS.
32267
32268 2009-08-30  Bruno Haible  <bruno@clisp.org>
32269
32270         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32271         /usr/xpg4/bin/tr when it exists.
32272         * tests/test-pipe-filter-gi1.sh: Likewise.
32273
32274 2009-08-30  Bruno Haible  <bruno@clisp.org>
32275
32276         Work around deficient /usr/bin/id program on Solaris.
32277         * tests/test-file-has-acl.sh (ID): New variable.
32278         * tests/test-set-mode-acl.sh (ID): Likewise.
32279         * tests/test-copy-acl.sh (ID): Likewise.
32280         * tests/test-copy-file.sh (ID): Likewise.
32281
32282 2009-08-30  Bruno Haible  <bruno@clisp.org>
32283
32284         New module 'xstriconveh'.
32285         * lib/xstriconveh.h: New file.
32286         * lib/xstriconveh.c: New file.
32287         * modules/xstriconveh: New file.
32288
32289 2009-08-30  Bruno Haible  <bruno@clisp.org>
32290
32291         Make it easier to use mem_cd_iconveh.
32292         * lib/striconveh.h (iconveh_t): New type.
32293         (iconveh_open, iconveh_close): New declarations.
32294         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32295         with a single 'const iconveh_t *' argument.
32296         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32297         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32298         with a single 'const iconveh_t *' argument.
32299         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32300         * tests/test-striconveh.c (main): Update.
32301         * NEWS: Mention the change.
32302
32303 2009-08-30  Bruno Haible  <bruno@clisp.org>
32304
32305         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32306         problem.
32307
32308 2009-08-30  Bruno Haible  <bruno@clisp.org>
32309
32310         Work around iconv_open problem on Solaris.
32311         * lib/iconv_open-solaris.gperf: New file.
32312         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32313         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32314         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32315         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32316         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32317         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32318
32319 2009-08-29  Jim Meyering  <meyering@redhat.com>
32320
32321         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32322         * top/maint.mk (cvs-check): Remove target; it was just an alias
32323         to the better-named vc-diff-check.
32324         (maintainer-distcheck): Remove rule.  It was used only from
32325         the (alpha/beta/major) target, and all of its commands but one
32326         were coreutils-specific.
32327         (vc-dist): Remove rule.
32328         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32329         Run vc-diff-check, not vc-dist.
32330         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32331
32332 2009-08-27  Bruno Haible  <bruno@clisp.org>
32333
32334         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32335         of 0.
32336
32337 2009-08-27  Bruno Haible  <bruno@clisp.org>
32338
32339         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32340         compilers.
32341         * doc/func.texi: Document the SunPRO C bug.
32342
32343 2009-08-27  Bruno Haible  <bruno@clisp.org>
32344
32345         Fix link error on Solaris.
32346         * tests/test-parse-duration.c (xstrdup): Remove function.
32347
32348 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32349
32350         ignore-value: handle pointer types, too
32351         * lib/ignore-value.h (__attribute__): Remove definition.
32352         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32353         of a more concise and more-often effective "(void) i" statement.
32354         (ignore_ptr): New function to suppress warnings from functions that
32355         return pointers, and to make it explicit that one function doesn't
32356         handle all cases.
32357
32358 2009-08-25  Bruno Haible  <bruno@clisp.org>
32359
32360         dup2: work around a Linux bug.
32361         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32362         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32363         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32364         Reported by Simon Josefsson.
32365
32366 2009-08-25  Jim Meyering  <meyering@redhat.com>
32367
32368         libguestfs uses gnulib
32369         * users.txt: Add libguestfs.
32370
32371 2009-08-24  Eric Blake  <ebb9@byu.net>
32372
32373         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32374         * lib/pipe2.c (includes): Add binary-io.h.
32375         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32376
32377 2009-08-24  Bruno Haible  <bruno@clisp.org>
32378
32379         Tolerate declared but missing accept4 syscall.
32380         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32381         available.
32382         * lib/sys_socket.in.h (accept4): If the function is already present,
32383         override it.
32384         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32385         * modules/accept4 (Makefile.am): Compile accept4.c always.
32386         Reported by Paolo Bonzini and Eric Blake.
32387
32388 2009-08-23  Bruno Haible  <bruno@clisp.org>
32389
32390         New module 'accept4'.
32391         * lib/sys_socket.in.h (accept4): New declaration.
32392         * lib/accept4.c: New file.
32393         * m4/accept4.m4: New file.
32394         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32395         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32396         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32397         HAVE_ACCEPT4.
32398         * modules/accept4: New file.
32399         * doc/glibc-functions/accept4.texi: Mention the new module.
32400
32401 2009-08-24  Jim Meyering  <meyering@redhat.com>
32402
32403         progname: also set global program_invocation_name, when possible
32404         Before this change, a libtool-enabled program that calls glibc's
32405         error function would report the program name as
32406         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32407         * modules/progname (configure.ac): Check for a declaration of
32408         program_invocation_name.
32409         * lib/progname.c:  Include <errno.h>.
32410         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32411         Set program_invocation_name.
32412
32413 2009-08-23  Bruno Haible  <bruno@clisp.org>
32414
32415         * lib/dup3.c: Include <string.h>.
32416
32417 2009-08-23  Bruno Haible  <bruno@clisp.org>
32418
32419         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32420         * lib/pipe2.c (pipe2): Likewise.
32421         Suggested by Eric Blake.
32422
32423 2009-08-23  Bruno Haible  <bruno@clisp.org>
32424
32425         Tolerate declared but missing dup3 syscall.
32426         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32427         * lib/unistd.in.h (dup3): If the function is already present,
32428         override it.
32429         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32430         * modules/dup3 (Makefile.am): Compile dup3.c always.
32431         Reported by Paolo Bonzini.
32432
32433 2009-08-23  Bruno Haible  <bruno@clisp.org>
32434
32435         Tolerate declared but missing pipe2 syscall.
32436         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32437         available.
32438         * lib/unistd.in.h (pipe2): If the function is already present,
32439         override it.
32440         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32441         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32442         Reported by Paolo Bonzini.
32443
32444 2009-08-23  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/pipe2.c (pipe2): Move #ifs inside function.
32447
32448 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32449
32450         quotearg: document limitations of quote_these_too
32451         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32452         those limitations are created.
32453         * lib/quotearg.h (set_char_quoting): Document that digits and
32454         letters that are special after backslash are not permitted.
32455         (quotearg_char): Cross-reference set_char_quoting documentation.
32456
32457 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32458
32459         quotearg: implement custom_quoting_style
32460         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32461         right_quote fields.
32462         (set_custom_quoting): New public function.
32463         (quotearg_buffer_restyled): Add left_quote and right_quote
32464         arguments, handle them very much like locale quoting, and update
32465         all uses.
32466         (quotearg_n_custom): New public function.
32467         (quotearg_n_custom_mem): New public function.
32468         (quotearg_custom): New public function.
32469         (quotearg_custom_mem): New public function.
32470         * lib/quotearg.h: Prototype and document new public functions.
32471         (enum quoting_style): For escape_quoting_style and
32472         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32473         ignored even though they're otherwise like c_quoting_style.
32474         Add custom_quoting_style member and document with comparison to
32475         clocale_quoting_style.
32476         * tests/test-quotearg.c (custom_quotes): New array.
32477         (custom_results): New array.
32478         (main): Extend to test custom quoting.
32479
32480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32481
32482         quotearg: fix right quote escaping when it's in quote_these_too
32483         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32484         quote, be sure to prepend only one backslash.
32485         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32486         (main): Test it.
32487
32488 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32489
32490         quotearg-tests: test escaping of embedded locale quotes
32491         * tests/test-quotearg.c (struct result_strings): Add member for
32492         new input.
32493         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32494         (inputs): Add new input.
32495         (results_g): Add expected results.
32496         (flag_results): Likewise.
32497         (locale_results): Likewise.
32498         (compare_strings): Check those.
32499
32500 2009-08-23  Bruno Haible  <bruno@clisp.org>
32501
32502         Tests for module 'dup3'.
32503         * modules/dup3-tests: New file.
32504         * tests/test-dup3.c: New file.
32505
32506         New module 'dup3'.
32507         * lib/unistd.in.h (dup3): New declaration.
32508         * lib/dup3.c: New file.
32509         * m4/dup3.m4: New file.
32510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32511         HAVE_DUP3.
32512         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32513         * modules/dup3: New file.
32514         * doc/glibc-functions/dup3.texi: Mention the new module.
32515
32516 2009-08-23  Bruno Haible  <bruno@clisp.org>
32517
32518         Tweak the dup2 test.
32519         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32520         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32521         the test file is still empty. Fix argument order of lseek.
32522
32523 2009-08-23  Bruno Haible  <bruno@clisp.org>
32524
32525         Avoid test link errors when the modules getopt-gnu, gettext are used.
32526         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32528
32529 2009-08-23  Bruno Haible  <bruno@clisp.org>
32530
32531         Fix getdtablesize() on mingw.
32532         * lib/getdtablesize.c (getdtablesize): Implement differently.
32533         * lib/unistd.in.h (getdtablesize): Improve comment.
32534
32535 2009-08-23  Bruno Haible  <bruno@clisp.org>
32536
32537         New module 'mkostemp'.
32538         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32539         * lib/stdlib.in.h (mksotemp): New declaration.
32540         * lib/mkostemp.c: New file, from glibc with modifications.
32541         * lib/tempname.h (GT_FILE): Remove outdated comment.
32542         (gen_tempname): Add flags argument.
32543         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32544         (__GT_FILE): Map to 1.
32545         (small_open, large_open): Remove macros.
32546         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32547         * lib/mkstemp.c (mkstemp): Update.
32548         * lib/mkdtemp.c (mkdtemp): Likewise.
32549         * m4/mkostemp.m4: New file.
32550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32551         HAVE_MKOSTEMP.
32552         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32553         HAVE_MKOSTEMP.
32554         * modules/mkostemp: New file, based on modules/mkstemp.
32555         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32556         * NEWS: Mention the change.
32557
32558 2009-08-23  Bruno Haible  <bruno@clisp.org>
32559
32560         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32561         Reported by Eric Blake.
32562
32563 2009-08-23  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32566         Reported by Eric Blake.
32567
32568 2009-08-23  Bruno Haible  <bruno@clisp.org>
32569
32570         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32571         * modules/pipe2 (Depends-on): Likewise.
32572
32573 2009-08-23  Eric Blake  <ebb9@byu.net>
32574
32575         fcntl-h: add O_TTY_INIT support
32576         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32577         * tests/test-fcntl-h.c (o): Test it.
32578         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32579
32580         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32581         * modules/fcntl: Move <fcntl.h> header replacement...
32582         * modules/fcntl-h: ...to new name, so as not to collide with
32583         like-named function.
32584         * tests/test-fcntl.c: Rename...
32585         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32586         * modules/fcntl-tests: Rename...
32587         * modules/fcntl-h-tests: ...to this.  Update test file name.
32588         * modules/chdir-long (Depends-on): Update clients.
32589         * modules/chdir-safer (Depends-on): Likewise.
32590         * modules/fcntl-safer (Depends-on): Likewise.
32591         * modules/fts (Depends-on): Likewise.
32592         * modules/mkancesdirs (Depends-on): Likewise.
32593         * modules/mkdir-p (Depends-on): Likewise.
32594         * modules/open (Depends-on): Likewise.
32595         * modules/savewd (Depends-on): Likewise.
32596         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32597         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32598
32599 2009-08-22  Bruno Haible  <bruno@clisp.org>
32600
32601         * modules/binary-io (License): Relicense under LGPL.
32602         * modules/pipe2 (License): Likewise.
32603
32604 2009-08-22  Bruno Haible  <bruno@clisp.org>
32605
32606         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32607         return value.
32608         * lib/pipe-filter-gi.c (filter_init): Likewise.
32609         Reported by Eric Blake.
32610
32611 2009-08-22  Bruno Haible  <bruno@clisp.org>
32612
32613         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32614         * modules/pipe (Depends-on): Add pipe2.
32615
32616 2009-08-22  Bruno Haible  <bruno@clisp.org>
32617
32618         Tests for module 'pipe2'.
32619         * modules/pipe2-tests: New file.
32620         * tests/test-pipe2.c: New file.
32621
32622         New module 'pipe2'.
32623         * lib/unistd.in.h (pipe2): New declaration.
32624         * lib/pipe2.c: New file.
32625         * m4/pipe2.m4: New file.
32626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32627         HAVE_PIPE2.
32628         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32629         * modules/pipe2: New file.
32630         * doc/glibc-functions/pipe2.texi: Mention the new module.
32631
32632 2009-08-22  Bruno Haible  <bruno@clisp.org>
32633
32634         Reference some new glibc functions.
32635         * doc/glibc-functions/accept4.texi: New file.
32636         * doc/glibc-functions/dup3.texi: New file.
32637         * doc/glibc-functions/mkostemp.texi: New file.
32638         * doc/glibc-functions/pipe2.texi: New file.
32639         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32640         (Glibc sys/socket.h): Refer to accept4.
32641         (Glibc unistd.h): Refer to dup3, pipe2.
32642         Reported by Eric Blake.
32643
32644 2009-08-22  Jim Meyering  <meyering@redhat.com>
32645             Bruno Haible  <bruno@clisp.org>
32646
32647         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32648         This makes it so packages using automake-1.11's silent-rules option
32649         can print e.g., a single "GEN    configmake.h" line, rather than
32650         the 30+ statements that perform the job.  If you want to see the
32651         actual commands, you can still run "make V=1".
32652         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32653         so that make output is abbreviated when those variables are defined
32654         appropriately.
32655         * modules/argz: Likewise.
32656         * modules/arpa_inet: Likewise.
32657         * modules/byteswap: Likewise.
32658         * modules/configmake: Likewise.
32659         * modules/dirent: Likewise.
32660         * modules/errno: Likewise.
32661         * modules/fcntl: Likewise.
32662         * modules/float: Likewise.
32663         * modules/fnmatch: Likewise.
32664         * modules/getopt-posix: Likewise.
32665         * modules/glob: Likewise.
32666         * modules/iconv_open: Likewise.
32667         * modules/inttypes: Likewise.
32668         * modules/localcharset: Likewise.
32669         * modules/locale: Likewise.
32670         * modules/math: Likewise.
32671         * modules/netdb: Likewise.
32672         * modules/netinet_in: Likewise.
32673         * modules/poll: Likewise.
32674         * modules/posix_spawnp-tests: Likewise.
32675         * modules/sched: Likewise.
32676         * modules/search: Likewise.
32677         * modules/selinux-h: Likewise.
32678         * modules/signal: Likewise.
32679         * modules/spawn: Likewise.
32680         * modules/stdarg: Likewise.
32681         * modules/stdbool: Likewise.
32682         * modules/stddef: Likewise.
32683         * modules/stdint: Likewise.
32684         * modules/stdio: Likewise.
32685         * modules/stdlib: Likewise.
32686         * modules/string: Likewise.
32687         * modules/strings: Likewise.
32688         * modules/sys_file: Likewise.
32689         * modules/sys_ioctl: Likewise.
32690         * modules/sys_select: Likewise.
32691         * modules/sys_socket: Likewise.
32692         * modules/sys_stat: Likewise.
32693         * modules/sys_time: Likewise.
32694         * modules/sys_times: Likewise.
32695         * modules/sys_utsname: Likewise.
32696         * modules/sys_wait: Likewise.
32697         * modules/sysexits: Likewise.
32698         * modules/time: Likewise.
32699         * modules/unistd: Likewise.
32700         * modules/wchar: Likewise.
32701         * modules/wctype: Likewise.
32702
32703 2009-08-22  Jim Meyering  <meyering@redhat.com>
32704
32705         announce-gen: detect write failure
32706         * build-aux/announce-gen: Add Coda at end.
32707         Remove equivalent-but-more-verbose block at top.
32708
32709 2009-08-19  Akim Demaille  <demaille@gostai.com>
32710
32711         bootstrap: --help to stdout.
32712         * bootstrap (usage): Don't send --help to stderr.
32713         Use a here doc instead of a long string.
32714
32715 2009-08-21  Eric Blake  <ebb9@byu.net>
32716
32717         test-popen-safer: split from test-popen
32718         * tests/test-popen.c (main): Move...
32719         * tests/test-popen.h: ...into new file.
32720         * tests/test-popen-safer2.c: New file.
32721         * modules/popen-tests (Files): Add test-popen.h.
32722         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32723         Suggested by Bruno Haible.
32724
32725         test-fcntl-safer: split from test-open
32726         * tests/test-open.c (main): Move...
32727         * tests/test-open.h: ...into new file.
32728         * tests/test-fcntl-safer.c: New file.
32729         * modules/open-tests (Files): Add test-open.h.
32730         * modules/fcntl-safer-tests: New file.
32731         Suggested by Bruno Haible.
32732
32733         test-fopen-safer: split from test-fopen
32734         * tests/test-fopen.c (main): Move...
32735         * tests/test-fopen.h: ...into new file.
32736         * tests/test-fopen-safer.c: New file.
32737         * modules/fopen-tests (Files): Add test-fopen.h.
32738         * modules/fopen-safer-tests: New file.
32739         Suggested by Bruno Haible.
32740
32741 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32742
32743         popen-safer: test O_CLOEXEC at run-time.
32744         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32745
32746 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32747
32748         fcntl: move more flags to the header
32749         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32750         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32751         * lib/fcntl.in.h: Do both things here.
32752
32753 2009-08-21  Jim Meyering  <meyering@redhat.com>
32754
32755         consistently remove $@-t before redirecting to it
32756         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32757         * modules/alloca-opt: Likewise.
32758         * modules/byteswap: Likewise.
32759         * modules/fnmatch: Likewise.
32760         * modules/getopt-posix: Likewise.
32761         * modules/glob: Likewise.
32762         * modules/poll: Likewise.
32763         * modules/posix_spawnp-tests: Likewise.
32764         * modules/sys_socket: Likewise.
32765         * modules/sysexits: Likewise.
32766
32767 2009-08-21  Eric Blake  <ebb9@byu.net>
32768
32769         popen: simplify access to original popen
32770         * lib/popen.c (rpl_popen): No need to worry about popen being a
32771         macro.
32772         Reported by Bruno Haible.
32773
32774 2009-08-20  Eric Blake  <ebb9@byu.net>
32775
32776         build: avoid some compiler warnings
32777         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32778         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32779         type.
32780         (new_exclude_segment, excluded_file_pattern_p)
32781         (excluded_file_name_p): Reduce scope.
32782         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32783         old-style declaration.
32784
32785 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32786
32787         * tests/test-exclude1.sh: Handle Windows EOL.
32788         * tests/test-exclude2.sh: Likewise.
32789         * tests/test-exclude3.sh: Likewise.
32790         * tests/test-exclude4.sh: Likewise.
32791         * tests/test-exclude5.sh: Likewise.
32792         * tests/test-exclude6.sh: Likewise.
32793         * tests/test-exclude7.sh: Likewise.
32794
32795 2009-08-19  Akim Demaille  <demaille@gostai.com>
32796
32797         bootstrap: find sha1sum when named gsha1sum.
32798         * bootstrap (find_tool): New.
32799         ($SHA1SUM): New.
32800         Use it.
32801
32802 2009-08-20  Jim Meyering  <meyering@redhat.com>
32803
32804         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32805         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32806         expression that converts "." in a file name to "\." in the resulting
32807         regexp.  Start with a dummy statement, so that prior shell variable
32808         definitions are expanded portably.  Reported by Simon Josefsson.
32809
32810 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32811
32812         Fix polling for writeability of a screen buffer.
32813         * lib/poll.c: Distinguish input and screen buffers for the
32814         Win32 implementation.
32815         * lib/select.c: Likewise.
32816
32817 2009-08-19  Eric Blake  <ebb9@byu.net>
32818
32819         popen-safer: prevent popen from clobbering std descriptors
32820         * modules/popen-safer: New file.
32821         * lib/popen-safer.c: Likewise.
32822         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32823         * lib/stdio--.h (popen): Provide override.
32824         * lib/stdio-safer.h (popen_safer): Provide declaration.
32825         * tests/test-popen.c (includes): Partially test this.
32826         * modules/popen-safer-tests: New file, for more tests.
32827         * tests/test-popen-safer.c: Likewise.
32828         * MODULES.html.sh (file stream based Input/Output): Mention it.
32829
32830         tests: test some of the *-safer modules
32831         * modules/fopen-safer (Depends-on): Add fopen.
32832         * modules/fcntl-safer (Depends-on): Add fcntl.
32833         * modules/stdlib-safer (Depends-on): Add stdlib.
32834         (configure.ac): Set indicator.
32835         * modules/unistd-safer (configure.ac): Likewise.
32836         * modules/tmpfile-safer (configure.ac): Likewise.
32837         (Depends-on): Add tmpfile.
32838         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32839         active.
32840         * tests/test-fopen.c (includes): Test safer versions when they are
32841         in use.
32842         * tests/test-open.c (includes): Likewise.
32843
32844         popen: fix cygwin 1.5 bug when stdin closed
32845         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32846         * modules/popen: New file.
32847         * modules/popen-tests: Likewise.
32848         * tests/test-popen.c: Likewise.
32849         * m4/popen.m4: Likewise.
32850         * lib/popen.c: Likewise.
32851         * lib/stdio.in.h (popen): New declaration.
32852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32853         * modules/stdio (Makefile.am): Likewise.
32854         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32855
32856 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32857
32858         maint.mk: give full control over update-copyright exclusions
32859         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32860         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32861         (update-copyright): Don't force inclusion of top-level
32862         ChangeLog.  Don't force exclusion of all COPYING files, but make
32863         them the default exclusion instead.
32864
32865 2009-08-16  Bruno Haible  <bruno@clisp.org>
32866
32867         Fix test failures on Solaris 10.
32868         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32869         tests when Solaris iconv() is used.
32870         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32871         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32872         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32873         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32874         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32875
32876 2009-08-16  Bruno Haible  <bruno@clisp.org>
32877
32878         Fix test failures on Solaris 10.
32879         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32880         'tr' program and pass it as first argument.
32881         * tests/test-pipe-filter-gi1.sh: Likewise.
32882         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32883         program as first argument.
32884         * tests/test-pipe-filter-gi1.c (main): Likewise.
32885
32886 2009-08-16  Eric Blake  <ebb9@byu.net>
32887
32888         fpurge: fix previous commits
32889         * modules/fpurge (Makefile.am): Make replacement conditional,
32890         partially reverting 2007-04-29 change; missed in previous
32891         attempt.
32892         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32893         is missing.
32894
32895 2009-08-16  Bruno Haible  <bruno@clisp.org>
32896
32897         Clarify fpurge's effect on the file position.
32898         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32899         * tests/test-fpurge.c (main): Make a second pass for checking the file
32900         position.
32901
32902 2009-08-16  Bruno Haible  <bruno@clisp.org>
32903
32904         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32905         declaration of fpurge is missing.
32906         * tests/test-fpurge.c (main): Check that the file has not more contents
32907         than expected. Close the file before removing it.
32908
32909 2009-08-15  Eric Blake  <ebb9@byu.net>
32910
32911         fpurge: don't wrap working cygwin implementation
32912         * lib/fpurge.c (fpurge): Fix comment typo.
32913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32914         1.7 to avoid replacement.
32915         * tests/test-fpurge.c (main): Enhance test.
32916
32917 2009-08-15  Eric Blake  <ebb9@byu.net>
32918         and Jim Meyering  <meyering@redhat.com>
32919
32920         test-update-copyright: skip if perl is insufficient
32921         * tests/test-update-copyright.sh: Failure to run maintainer tool
32922         should not cause testsuite failure on cygwin 1.5.
32923
32924 2009-08-14  Eric Blake  <ebb9@byu.net>
32925
32926         doc: mention more functions added in cygwin 1.7.0
32927         * doc/posix-headers/limits.texi (limits.h): Update for recent
32928         cygwin additions.
32929         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32930         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32931         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32932         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32933         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32934
32935 2009-08-14  Eric Blake  <ebb9@byu.net>
32936
32937         maint.mk: simplify update-copyright rule
32938         * top/maint.mk (update-copyright-local): Delete, and document how
32939         to do it in cfg.mk instead.
32940         (update-copyright-exclude-regexp): Delete, and document how to do
32941         it in .x-update-copyright instead.
32942         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32943         exclude ChangeLog.
32944
32945 2009-08-14  Bruno Haible  <bruno@clisp.org>
32946
32947         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32948
32949 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32950
32951         maint.mk: support update-copyright-env
32952         * top/maint.mk (update-copyright-env): Define place-holder.
32953         (update-copyright): Expand $(update-copyright-env) before
32954         invoking update-copyright.
32955
32956 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32957
32958         update-copyright: implement forced reformatting
32959         * build-aux/update-copyright: Implement and document
32960         UPDATE_COPYRIGHT_FORCE.
32961         * tests/test-update-copyright.sh: Test it.
32962
32963 2009-08-14  Eric Blake  <ebb9@byu.net>
32964         and Bruno Haible  <bruno@clisp.org>
32965
32966         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32967         * tests/test-locale.c: Revert previous patch related to NULL.
32968         * tests/test-stdio.c: Likewise.
32969         * tests/test-stdlib.c: Likewise.
32970         * tests/test-string.c: Likewise.
32971         * tests/test-unistd.c: Likewise.
32972         * modules/time-tests (Depends-on): Add verify.
32973         * modules/wchar-tests (Depends-on): Likewise.
32974         * tests/test-time.c: Test for NULL compliance.
32975         * tests/test-wchar.c: Likewise.
32976         * modules/locale (Depends-on): Add stddef.
32977         * modules/stdio (Depends-on): Likewise.
32978         * modules/stdlib (Depends-on): Likewise.
32979         * modules/string (Depends-on): Likewise.
32980         * modules/time (Depends-on): Likewise.
32981         * modules/unistd (Depends-on): Likewise.
32982         * modules/wchar (Depends-on): Likewise.
32983         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32984         * lib/stdlib.in.h (includes): Likewise.
32985         * lib/string.in.h (includes): Likewise.
32986         * lib/time.in.h (includes): Likewise.
32987         * lib/unistd.in.h (includes): Likewise.
32988         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32989         replaced.
32990         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32991         * m4/stddef_h.m4: New file.
32992         * modules/stddef: Likewise.
32993         * lib/stddef.in.h: Likewise.
32994         * modules/stddef-tests: Likewise.
32995         * tests/test-stddef.c: Likewise.
32996         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32997         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32998         * doc/posix-headers/locale.texi (locale.h): Likewise.
32999         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33000         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33001         * doc/posix-headers/string.texi (string.h): Likewise.
33002         * doc/posix-headers/time.texi (time.h): Likewise.
33003         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33004         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33005
33006 2009-08-14  Eric Blake  <ebb9@byu.net>
33007
33008         doc: improve git diff of texinfo files
33009         * .gitattributes: Add rule for *.texi files, with hint on how to
33010         use it.
33011         Copied from m4, and based on a report by Bruno Haible.
33012
33013 2009-08-14  Bruno Haible  <bruno@clisp.org>
33014
33015         Disable multithread support by default on Cygwin 1.5.x for real.
33016         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33017
33018 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33019
33020         update-copyright: much ado about intervals
33021         * build-aux/update-copyright: Implement and document
33022         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33023         of copyright year intervals.
33024         Also, document UPDATE_COPYRIGHT_YEAR.
33025         * tests/test-update-copyright.sh: Test it.
33026
33027         update-copyright: convert 2-digit to 4-digit years
33028         * build-aux/update-copyright: Implement and document.
33029         * tests/test-update-copyright.sh: Update.
33030
33031 2009-08-14  Jim Meyering  <meyering@redhat.com>
33032
33033         test-exclude: avoid coreutils "make check" failure
33034         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33035         just as in test-argmatch.c.
33036
33037 2009-08-13  Eric Blake  <ebb9@byu.net>
33038
33039         test-dup2: fix bad assumption
33040         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33041         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33042
33043         test-version-etc: fix CRLF portability issue
33044         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33045         recognize \r.
33046         * tests/test-argp-version-etc-1.sh: Likewise.
33047
33048         getopt: update client modules
33049         * modules/argp (Depends-on): Use getopt-gnu.
33050         * modules/git-merge-changelog (Depends-on): Likewise.
33051         * modules/long-options (Depends-on): Likewise.
33052         * modules/xstrtol (Depends-on): Likewise.
33053
33054 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33055
33056         * tests/test-version-etc.sh: Don't fail on different
33057         project/version.  Don't fail on CRLF differences.  Rewrite to use
33058         multiple -e instead of multiple sed forks, suggested by Eric Blake
33059         <ebb9@byu.net>.
33060         * tests/test-argp-version-etc-1.sh: Likewise.
33061
33062 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33063
33064         * tests/test-version-etc.sh: Don't fail on different
33065         project/version.
33066
33067 2009-08-12  Bruno Haible  <bruno@clisp.org>
33068
33069         Tests for modules 'getopt-posix', 'getopt-gnu'.
33070         * modules/getopt-posix-tests: New file.
33071         * tests/test-getopt.c: New file.
33072         * tests/test-getopt.h: New file.
33073         * tests/test-getopt_long.h: New file.
33074
33075         New modules 'getopt-posix', 'getopt-gnu'.
33076         * modules/getopt-gnu: New file, renamed from modules/getopt.
33077         * modules/getopt-posix: New file.
33078         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33079         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33080         (gl_GETOPT): Remove macro.
33081         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33082         Disable the test against BSD systems that declare optreset. Test
33083         against mingw bug. Test against lack of support of optional arguments
33084         on many platforms.
33085         * doc/glibc-headers/getopt.texi: Update module name and list of
33086         relevant platforms.
33087         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33088         'getopt-gnu' and more portability problems.
33089         * NEWS: Mention the changes.
33090
33091 2009-08-12  Bruno Haible  <bruno@clisp.org>
33092
33093         Ensure that optarg etc. get declared by <unistd.h>.
33094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33095         AC_USE_SYSTEM_EXTENSIONS.
33096         * modules/getopt (Depends-on): Add 'extensions'.
33097
33098 2009-08-12  Bruno Haible  <bruno@clisp.org>
33099
33100         Avoid test link errors.
33101         * modules/pipe-filter-ii-tests (Makefile.am): Define
33102         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33103         * modules/pipe-filter-gi-tests (Makefile.am): Define
33104         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33106
33107 2009-08-12  Bruno Haible  <bruno@clisp.org>
33108
33109         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33110         gl_GETOPT_SUBSTITUTE before.
33111         (gl_GETOPT): Use it.
33112         * m4/argp.m4 (gl_ARGP): Update.
33113         Reported by Sergey Poznyakoff.
33114
33115         * m4/getopt.m4: Reorder macros.
33116         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33117         (gl_GETOPT_SUBSTITUTE): Remove macro.
33118
33119 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33120
33121         Minor improvement in gitlog-to-changelog
33122
33123         * build-aux/gitlog-to-changelog: New option `--format' makes
33124         output format string configurable.
33125
33126 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33127
33128         Optimize exclude: use hash tables for non-wildcard patterns.
33129
33130         * lib/exclude.c: Include hash.h and mbuiter.h
33131         (struct exclude_pattern, exclude_segment): New data types.
33132         (struct exclude): Rewrite.
33133         (fnmatch_pattern_has_wildcards): New function.
33134         (new_exclude_segment, free_exclude_segment): New functions.
33135         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33136         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33137         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33138         * modules/exclude: Depend on hash and mbuiter.
33139
33140         * modules/exclude-tests: New file.
33141         * tests/test-exclude.c: New file.
33142         * tests/test-exclude1.sh: New file.
33143         * tests/test-exclude2.sh: New file.
33144         * tests/test-exclude3.sh: New file.
33145         * tests/test-exclude4.sh: New file.
33146         * tests/test-exclude5.sh: New file.
33147         * tests/test-exclude6.sh: New file.
33148         * tests/test-exclude7.sh: New file.
33149
33150 2009-08-12  Bruno Haible  <bruno@clisp.org>
33151
33152         Ensure that getopt() gets declared by <unistd.h>.
33153         * lib/unistd.in.h: Conditionally include getopt.h.
33154         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33155         Set GNULIB_UNISTD_H_GETOPT.
33156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33157         GNULIB_UNISTD_H_GETOPT.
33158         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33159
33160 2009-08-12  Bruno Haible  <bruno@clisp.org>
33161
33162         Clarify logic.
33163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33164         gl_replace_getopt instead of GETOPT_H.
33165
33166 2009-08-12  Bruno Haible  <bruno@clisp.org>
33167
33168         * m4/getopt.m4: Add comments.
33169
33170 2009-08-12  Bruno Haible  <bruno@clisp.org>
33171
33172         Disable multithread support by default on Cygwin 1.5.x.
33173         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33174         set gl_use_threads=no if not specified otherwise.
33175
33176 2009-08-11  Bruno Haible  <bruno@clisp.org>
33177
33178         Avoid compilation error on NetBSD 5.0.
33179         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33180         * tests/test-stdio.c: Likewise.
33181         * tests/test-stdlib.c: Likewise.
33182         * tests/test-string.c: Likewise.
33183         * tests/test-unistd.c: Likewise.
33184         Reported by Greg Troxel <gdt@ir.bbn.com>
33185         at <https://savannah.gnu.org/support/?106973>.
33186
33187 2009-08-11  Bruno Haible  <bruno@clisp.org>
33188
33189         * modules/dup2-tests (Depends-on): Remove close.
33190
33191         Undo 2009-07-19 commit.
33192         * modules/acl-tests (Depends-on): Remove close.
33193         * modules/binary-io-tests (Depends-on): Likewise.
33194         * modules/closein-tests (Depends-on): Likewise.
33195         * modules/flock-tests (Depends-on): Likewise.
33196         * modules/fsync-tests (Depends-on): Likewise.
33197         * modules/lseek-tests (Depends-on): Likewise.
33198         * modules/pipe-tests (Depends-on): Likewise.
33199         * modules/posix_spawn-tests (Depends-on): Likewise.
33200         * modules/posix_spawnp-tests (Depends-on): Likewise.
33201         * modules/stat-time-tests (Depends-on): Likewise.
33202         * modules/yesno-tests (Depends-on): Likewise.
33203
33204 2009-08-10  Bruno Haible  <bruno@clisp.org>
33205
33206         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33207
33208 2009-08-10  Bruno Haible  <bruno@clisp.org>
33209
33210         Fix a gcc warning.
33211         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33212
33213 2009-08-10  Bruno Haible  <bruno@clisp.org>
33214
33215         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33216         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33217         not only the first time.
33218         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33219         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33220         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33221         is 1, not only the the first time.
33222
33223 2009-08-10  Bruno Haible  <bruno@clisp.org>
33224
33225         Make it possible to use module 'gethostname' without module 'close'.
33226         * lib/unistd.in.h (close): Evoke a link error only if
33227         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33229         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33230         * modules/unistd (Makefile.am): Substitute
33231         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33232         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33233         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33234         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33235         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33236         * modules/sys_ioctl (Makefile.am): Substitute
33237         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33238         * modules/socket (configure.ac): On native Windows, set
33239         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33240         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33241         Reported by Sam Steingold <sds@gnu.org>.
33242
33243 2009-08-10  Bruno Haible  <bruno@clisp.org>
33244
33245         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33246         * modules/ioctl (configure.ac): Likewise.
33247
33248 2009-08-10  Bruno Haible  <bruno@clisp.org>
33249
33250         Avoid collision between gnulib wrapper and libintl wrapper.
33251         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33252         already defined in intl/printf.c.
33253         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33254         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33255
33256 2009-08-09  Bruno Haible  <bruno@clisp.org>
33257
33258         Make <sys/select.h> really self-contained, also on Solaris 10.
33259         * lib/sys_select.in.h: Include <string.h>.
33260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33261         Solaris 10 problem.
33262         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33263         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33264         Reported by Jim Meyering.
33265
33266 2009-08-09  Bruno Haible  <bruno@clisp.org>
33267
33268         Avoid warnings from 'aclocal' that are due to a use of macro name
33269         AM_XGETTEXT_OPTION that is not defined in automake.
33270         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33271         automake.
33272         * modules/error (configure.ac): Likewise.
33273         * modules/propername (configure.ac): Likewise.
33274         * modules/vasprintf (configure.ac): Likewise.
33275         * modules/verror (configure.ac): Likewise.
33276         * modules/xprintf (configure.ac): Likewise.
33277         * modules/xvasprintf (configure.ac): Likewise.
33278
33279 2009-08-08  Bruno Haible  <bruno@clisp.org>
33280
33281         Avoid compilation error in C++ mode.
33282         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33283         Reported by Sam Steingold <sds@gnu.org>.
33284
33285 2009-08-08  Bruno Haible  <bruno@clisp.org>
33286
33287         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33288         for the various Unix platforms.
33289         * doc/posix-headers/limits.texi: Update platforms list regarding
33290         HOST_NAME_MAX.
33291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33292
33293 2009-08-07  Jim Meyering  <meyering@redhat.com>
33294
33295         selinux-at: fix typo in a comment
33296         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33297         Spotted by Paolo Bonzini.
33298
33299         selinux-at: remove redundant m4 code, add documentation
33300         * modules/selinux-at (configure.ac): Remove redundant code.
33301         LIB_SELINUX is already set via the dependent module, selinux-h.
33302         (Include): Add quotes around selinux-at.h.
33303         * lib/selinux-at.h: Add documentation.
33304         Reported by Bruno Haible in
33305         http://marc.info/?l=gnulib-bug&m=124958988300749
33306
33307 2009-08-07  Bruno Haible  <bruno@clisp.org>
33308
33309         Avoid link error on MacOS X 10.3 and 10.4.
33310         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33311         on non-ELF systems.
33312         * lib/argp-pv.c (argp_program_version): Likewise.
33313         Reported by Simon Josefsson.
33314
33315 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33316
33317         * tests/test-version-etc.sh: Use $EXEEXT.
33318
33319 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33320
33321         update-copyright: update documentation to point to maint.mk
33322         * build-aux/update-copyright: Here.
33323
33324 2009-08-06  Jim Meyering  <meyering@redhat.com>
33325
33326         maint.mk: support update-copyright-local
33327         * top/maint.mk (update-copyright-local): Define place-holder.
33328         (update-copyright): Depend on $(update-copyright-local).
33329
33330 2009-08-06  Jim Meyering  <meyering@redhat.com>
33331
33332         selinux-at: new module
33333         Initially written for coreutils, this module will soon be
33334         used by findutils, too.
33335         * MODULES.html.sh [Misc]: Add selinux-at.
33336         * lib/selinux-at.h: New file, from coreutils.
33337         * lib/selinux-at.c: Likewise.
33338         * modules/selinux-at: Likewise.
33339         (License): Change from LGPL to GPL, since it depends
33340         on the GPL'd openat module.
33341
33342         doc: update README
33343         * README: Remove references to cogito.
33344         Remove cvs-repo-updating instructions from 2007.
33345         Don't imply that CVS is better if you have limited disk space.
33346
33347 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33348
33349         update-copyright: support C-style comments
33350         * build-aux/update-copyright: Implement and document.
33351         * tests/test-update-copyright.sh: Test.
33352
33353 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33354
33355         update-copyright: support omitted "(C)"
33356         * build-aux/update-copyright: Implement and document.  Also,
33357         allow variable whitespace before "(C)".
33358         * tests/test-update-copyright.sh: Test.
33359
33360 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33361
33362         update-copyright: don't trip on non-FSF copyright statements
33363         * build-aux/update-copyright: Fix so that the first correctly
33364         formatted FSF copyright statement is recognized no matter what
33365         appears before it.  Update documentation.
33366         * tests/test-update-copyright.sh: Test that.
33367
33368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33369
33370         update-copyright: clean up code a little
33371         * build-aux/update-copyright: Append "_re" to the name of any
33372         variable holding a regular expression.
33373         Replace "old" and "new" with "stmt" in variable names.
33374         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33375         handled correctly.
33376         Format code more consistently.
33377
33378 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33379
33380         update-copyright-tests: improve portability
33381         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33382         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33383
33384 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33385
33386         update-copyright: support @copyright{} and &copy;
33387         * build-aux/update-copyright: Implement and document.
33388         * tests/test-update-copyright.sh: Test.
33389
33390 2009-08-04  Jim Meyering  <meyering@redhat.com>
33391
33392         update-copyright-tests: correctly test EOL=\r\n handling
33393         * tests/test-update-copyright.sh: Put \r at the end of some lines
33394         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33395
33396         maint.mk: make update-copyright exclusion list more configurable
33397         * top/maint.mk (update-copyright): Default to excluding COPYING,
33398         but allow an override, in case someone does want to update that file.
33399
33400         maint.mk: don't update copyright date in COPYING
33401         * top/maint.mk (update-copyright): Exclude COPYING.
33402
33403         maint.mk: add a copyright-updating rule
33404         * top/maint.mk (update-copyright): New rule.
33405         Derived from coreutils/Makefile.am.
33406
33407         update-copyright: rename some variables
33408         * build-aux/update-copyright: Rename a few variables for clarity.
33409         Tweak syntax.  List Joel E. Denny as coauthor.
33410
33411 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33412
33413         update-copyright: fix bug for 2-digit last year and add tests
33414         * build-aux/update-copyright: Fix bug.
33415         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33416         specified.
33417         * modules/update-copyright-tests: New
33418         * tests/test-update-copyright.sh: New.
33419
33420 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33421
33422         update-copyright: handle leading tabs in line prefix
33423         * build-aux/update-copyright: Count leading tabs as 8 spaces
33424         when computing margin.  This helps with the formatting of
33425         ChangeLogs, for example.
33426         Fix documentation a little.
33427
33428 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33429
33430         update-copyright: support EOL=\r\n
33431         * build-aux/update-copyright: Implement that.
33432
33433 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33434
33435         update-copyright: automatically format copyright statements
33436         * build-aux/update-copyright: Implement that.
33437         Also, be a little more predictable and safer by always failing
33438         when the full copyright format is not perfectly recognized as an
33439         unbroken whole.  Discussed at
33440         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33441         Rewrite documentation.
33442
33443 2009-08-03  Bruno Haible  <bruno@clisp.org>
33444
33445         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33446
33447 2009-08-02  Bruno Haible  <bruno@clisp.org>
33448
33449         Tests for module 'uname'.
33450         * modules/uname-tests: New file.
33451         * tests/test-uname.c: New file.
33452
33453         New module 'uname'.
33454         * lib/uname.c: New file.
33455         * m4/uname.m4: New file.
33456         * modules/uname: New file.
33457         * doc/posix-functions/uname.texi: Mention the new module.
33458
33459 2009-08-02  Bruno Haible  <bruno@clisp.org>
33460
33461         Tests for module 'sys_utsname'.
33462         * modules/sys_utsname-tests: New file.
33463         * tests/test-sys_utsname.c: New file.
33464
33465         New module 'sys_utsname'.
33466         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33467         * m4/sys_utsname_h.m4: New file.
33468         * modules/sys_utsname: New file.
33469         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33470
33471 2009-08-02  Bruno Haible  <bruno@clisp.org>
33472
33473         Implicitly initialize the sockets library.
33474         * lib/gethostname.c: Include sockets.h.
33475         (rpl_gethostname): Invoke gl_sockets_startup.
33476         * lib/socket.c: Include sockets.h.
33477         (rpl_socket): Invoke gl_sockets_startup.
33478         * modules/gethostname (Depends-on): Add sockets.
33479         * modules/socket (Depends-on): Likewise.
33480         * tests/test-poll.c: Don't include sockets.h.
33481         (main): Don't invoke gl_sockets_startup.
33482         * tests/test-select.c: Don't include sockets.h.
33483         (main): Don't invoke gl_sockets_startup.
33484
33485 2009-08-02  Bruno Haible  <bruno@clisp.org>
33486
33487         Allow multiple calls to gl_sockets_startup.
33488         * lib/sockets.c (initialized_sockets_version): New variable.
33489         (gl_sockets_startup): Do nothing if already called for this or a higher
33490         version.
33491         (gl_sockets_cleanup): Reset initialized_sockets_version.
33492
33493 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33494
33495         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33496         different project/version.
33497
33498 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33499             Bruno Haible  <bruno@clisp.org>
33500
33501         Tests for module 'pipe-filter-gi'.
33502         * modules/pipe-filter-gi-tests: New file.
33503         * tests/test-pipe-filter-gi1.sh: New file.
33504         * tests/test-pipe-filter-gi1.c: New file.
33505         * tests/test-pipe-filter-gi2.sh: New file.
33506         * tests/test-pipe-filter-gi2-main.c: New file.
33507         * tests/test-pipe-filter-gi2-child.c: New file.
33508
33509         New module 'pipe-filter-gi'.
33510         * lib/pipe-filter-gi.c: New file.
33511         * modules/pipe-filter-gi: New file.
33512
33513 2009-08-02  Bruno Haible  <bruno@clisp.org>
33514             Paolo Bonzini  <bonzini@gnu.org>
33515
33516         Tests for module 'pipe-filter-ii'.
33517         * modules/pipe-filter-ii-tests: New file.
33518         * tests/test-pipe-filter-ii1.sh: New file.
33519         * tests/test-pipe-filter-ii1.c: New file.
33520         * tests/test-pipe-filter-ii2.sh: New file.
33521         * tests/test-pipe-filter-ii2-main.c: New file.
33522         * tests/test-pipe-filter-ii2-child.c: New file.
33523
33524         New module 'pipe-filter-ii'.
33525         * lib/pipe-filter.h: New file.
33526         * lib/pipe-filter-ii.c: New file.
33527         * lib/pipe-filter-aux.h: New file.
33528         * modules/pipe-filter-ii: New file.
33529
33530 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33531
33532         * lib/gc-libgcrypt.c: Change copyright to FSF.
33533         * lib/gc-gnulib.c: Likewise.
33534
33535 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33536
33537         * lib/gethostname.c: Include limits.h.
33538
33539 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33540             Bruno Haible  <bruno@clisp.org>
33541
33542         Ensure HOST_NAME_MAX as part of the gethostname module.
33543         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33544         define also HOST_NAME_MAX.
33545         * tests/test-gethostname.c: Include <limits.h>.
33546         (main): Check also HOST_NAME_MAX.
33547         * doc/posix-headers/limits.texi: Document the mingw problem.
33548
33549 2009-08-02  Bruno Haible  <bruno@clisp.org>
33550
33551         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33552         Add comments.
33553
33554 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33555
33556         * lib/gethostname.c: Add Windows wrapper.
33557         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33558         * modules/gethostname: Depend on sys_socket & errno, for also
33559         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33560         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33561
33562 2009-07-31  Jim Meyering  <meyering@redhat.com>
33563
33564         getloadavg: fix symbol name in comment
33565         * lib/getloadavg.c: Correct a typo I introduced when adding
33566         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33567         Matt Kraai spotted the problem.
33568
33569 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33570
33571         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33572         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33573         code also if ! defined N_NAME_POINTER.
33574         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33575         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33576         but the n_name member is a 12-byte array.
33577
33578 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33579
33580         update-copyright: generalize comment handling
33581         * build-aux/update-copyright: Handle copyright statements
33582         within more comment styles.
33583         Document usage.
33584         Report any file with an external copyright holder or parse failure.
33585
33586 2009-07-29  Jim Meyering  <meyering@redhat.com>
33587
33588         mktime: correct setting of REPLACE_MKTIME
33589         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33590
33591         update-copyright: new module
33592         * modules/update-copyright: New file.
33593         * build-aux/update-copyright: New file.
33594         * MODULES.html.sh (maint+release support): Add update-copyright.
33595
33596 2009-07-27  Bruno Haible  <bruno@clisp.org>
33597
33598         Fix compilation error when <ctime> is used and mktime is replaced.
33599         * lib/time.in.h (mktime): New declaration.
33600         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33601         REPLACE_MKTIME instead of defining mktime in config.h.
33602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33603         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33604         Reported by Ross McFarland <rwmcfa1@neces.com>.
33605
33606 2009-07-27  Bruno Haible  <bruno@clisp.org>
33607
33608         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33609         Reported by Matt Kraai <mkraai@beckman.com>.
33610
33611 2009-07-25  Jim Meyering  <meyering@redhat.com>
33612
33613         maint.mk: avoid warnings about missing files
33614         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33615         diagnostic when .prev-version does not exist.
33616         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33617         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33618         nonexistent cfg.mk.
33619         Suggestions from Simon Josefsson.
33620
33621 2009-07-25  Bruno Haible  <bruno@clisp.org>
33622
33623         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33624         defined as macros. Needed on QNX 6.4.1.
33625         Reported by Matt Kraai <mkraai@beckman.com>.
33626
33627 2009-07-23  Jim Meyering  <meyering@redhat.com>
33628
33629         maint.mk: invoke "make dist" with a working value of XZ_OPT
33630         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33631
33632 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33633
33634         Make fseeko.c compile on QNX.
33635         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33636
33637 2009-07-22  Peter Simons  <simons@cryp.to>
33638
33639         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33640         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33641         * lib/md4.h: Likewise.
33642         * lib/md5.h: Likewise.
33643         * lib/sha1.h: Likewise.
33644         * lib/sha256.h: Likewise.
33645         * lib/sha512.h: Likewise.
33646
33647         tests-sha1: don't assign literal string to 'char *' variable
33648         * tests/test-sha1.c (main): Declare locals with "const" to match
33649         attributes of the right hand side.
33650
33651 2009-07-21  Eric Blake  <ebb9@byu.net>
33652
33653         dup2: fix more mingw problems
33654         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33655         fd to itself.
33656         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33657         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33658         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33659         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33660         care of mingw bugs.
33661
33662 2009-07-21  Jim Meyering  <meyering@redhat.com>
33663
33664         vc-list-files: avoid failure when /bin/sh is dash
33665         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33666         On some Debian based systems, /bin/sh is a symlink to dash, and running
33667         this command would omit the "/" following each 'tests' prefix:
33668           dash -x build-aux/vc-list-files -C . tests
33669         That is because bash and dash work differently:
33670           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33671           bash ok
33672           dash odd
33673
33674 2009-07-21  Eric Blake  <ebb9@byu.net>
33675
33676         dup2-tests: test previous patch
33677         * modules/dup2-tests: New file.
33678         * tests/test-dup2.c: Likewise.
33679         * tests/test-open.c (main): Avoid unspecified behavior.
33680         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33681         test.
33682
33683         dup2: work around mingw and cygwin 1.5 bug
33684         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33686         * modules/unistd (Makefile.am): Substitute it.
33687         * lib/unistd.in.h (dup2): Declare the replacement.
33688         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33689         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33690         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33691         * modules/execute (Depends-on): Add dup2.
33692         * modules/fseterr (Depends-on): Likewise.
33693         * modules/pipe (Depends-on): Likewise.
33694         * modules/posix_spawn-internal (Depends-on): Likewise.
33695
33696 2009-07-21  Bruno Haible  <bruno@clisp.org>
33697
33698         * modules/.gitattributes: New file.
33699
33700 2009-07-20  Bruno Haible  <bruno@clisp.org>
33701
33702         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33703         (main): Use it.
33704
33705 2009-07-20  Eric Blake  <ebb9@byu.net>
33706
33707         test-pipe: make a bit more robust.
33708         * tests/test-pipe.c (myerr): Allow error messages regardless of
33709         what we do to stderr.
33710         (test_pipe): Rearrange to avoid deadlock.
33711         (child_main): Try a larger read, to ensure we avoided deadlock.
33712         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33713         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33714         if misused.
33715
33716 2009-07-19  Jim Meyering  <meyering@redhat.com>
33717
33718         fts: avoid false-positive cycle-detection
33719         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33720         for each new command line argument.
33721
33722 2009-07-19  Bruno Haible  <bruno@clisp.org>
33723
33724         Fix build error on mingw with the modules sys_select and unistd.
33725         * modules/acl-tests (Depends-on): Add close.
33726         * modules/binary-io-tests (Depends-on): Likewise.
33727         * modules/closein-tests (Depends-on): Likewise.
33728         * modules/flock-tests (Depends-on): Likewise.
33729         * modules/fsync-tests (Depends-on): Likewise.
33730         * modules/lseek-tests (Depends-on): Likewise.
33731         * modules/pipe-tests (Depends-on): Likewise.
33732         * modules/posix_spawn-tests (Depends-on): Likewise.
33733         * modules/posix_spawnp-tests (Depends-on): Likewise.
33734         * modules/stat-time-tests (Depends-on): Likewise.
33735         * modules/yesno-tests (Depends-on): Likewise.
33736
33737 2009-07-19  Bruno Haible  <bruno@clisp.org>
33738
33739         Unify conditionals.
33740         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33741         macros, not at the compiler macros.
33742         * lib/pipe.c: Likewise.
33743         * lib/execute.c: Likewise.
33744         * lib/spawni.c: Likewise.
33745
33746 2009-07-19  Bruno Haible  <bruno@clisp.org>
33747
33748         Fix handling of closed stdin/stdout/stderr on mingw.
33749         * lib/w32spawn.h: Include unistd.h.
33750         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33751         file descriptor with O_NOINHERIT flag.
33752         (fd_safer_noinherit): New function, based on fd-safer.c.
33753         (dup_safer_noinherit): New function, based on dup-safer.c.
33754         (undup_safer_noinherit): New function.
33755         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33756         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33757         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33758         instead of fd_safer.
33759         * tests/test-pipe.c: Include <windows.h>.
33760         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33761         result.
33762
33763         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33764         from main.
33765         (test_pipe): Pass an extra argument for disambiguation.
33766         (main): Invoke parent_main or child_main.
33767
33768         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33769         consistently.
33770
33771 2009-07-18  Eric Blake  <ebb9@byu.net>
33772
33773         test-pipe: fix mingw build
33774         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33775
33776 2009-07-18  Bruno Haible  <bruno@clisp.org>
33777
33778         * modules/pipe-tests (Makefile.am): Fix typo.
33779
33780 2009-07-18  Eric Blake  <ebb9@byu.net>
33781
33782         error: fix mingw build
33783         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33784         Reported by Bruno Haible.
33785
33786         error: avoid undefined use of stdout
33787         * lib/error.c (error, error_at_line): Check that fd 1 is open
33788         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33789         is handling faults and the close_stdout module wants to report the
33790         detection of closed stdout as an error.
33791
33792 2009-07-17  Eric Blake  <ebb9@byu.net>
33793
33794         pipe: be robust in face of closed fds
33795         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33796         should cause child to misbehave.
33797         * modules/pipe-tests: New module.
33798         * tests/test-pipe.c: New file.
33799         * tests/test-pipe.sh: New file.
33800         Reported by Akim Demaille.
33801
33802 2009-07-14  Bruno Haible  <bruno@clisp.org>
33803
33804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33805         Reported by anonymous kc.
33806
33807 2009-07-07  Jim Meyering  <meyering@redhat.com>
33808
33809         maint.mk: don't look for translatable strings in *.m4 or *.mk
33810         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33811         when searching for translatable strings.
33812
33813 2009-07-05  Jim Meyering  <meyering@redhat.com>
33814
33815         remove superfluous parentheses in STREQ definition
33816         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33817         * lib/getugroups.c (STREQ): Likewise.
33818         * lib/fnmatch.c (STREQ): Likewise.
33819         Spotted by Bruno Haible.
33820
33821 2009-07-04  Jim Meyering  <meyering@redhat.com>
33822
33823         argv-iter: new module
33824         * MODULES.html.sh: Add argv-iter.
33825         * lib/argv-iter.c, lib/argv-iter.h: New files.
33826         * modules/argv-iter: New file.
33827         * modules/argv-iter-tests: New file.
33828         * tests/test-argv-iter.c: Test it.
33829
33830 2009-07-04  Bruno Haible  <bruno@clisp.org>
33831
33832         Fix assertion.
33833         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33834         contains more exact copies of a given entry than file2, leave the extra
33835         copies unpaired rather than aborting.
33836         Reported by Eric Blake.
33837
33838 2009-07-02  Bruno Haible  <bruno@clisp.org>
33839
33840         Speedup git-merge-changelog for git cherry-pick.
33841         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33842         (entries_mapping_get): New function, extracted from compute_mapping.
33843         (entries_mapping_reverse_get): New function.
33844         (compute_mapping): Add a 'full' argument. Return the result in a
33845         'struct entries_mapping'.
33846         (main): Update. Access the mappings through entries_mapping_get.
33847         Reported by Eric Blake.
33848
33849 2009-07-02  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33852         best_i.
33853
33854 2009-07-02  Bruno Haible  <bruno@clisp.org>
33855
33856         Speed up approximate search for matching ChangeLog entries.
33857         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33858         argument. Call fstrcmp_bounded instead of fstrcmp.
33859         (compute_mapping, try_split_merged_entry, main): Update callers.
33860
33861 2009-07-02  Bruno Haible  <bruno@clisp.org>
33862
33863         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33864
33865 2009-06-30  Bruno Haible  <bruno@clisp.org>
33866
33867         Reduce the number of uc_is_cased calls.
33868         * lib/unicase.h (casing_suffix_context_t): Add
33869         'first_char_except_ignorable' field.
33870         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33871         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33872         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33873         Update initializer.
33874         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33875         case-ignorable characters.
33876         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33877         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33878         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33879         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33880         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33881
33882 2009-06-30  Bruno Haible  <bruno@clisp.org>
33883
33884         Tests for module 'unicase/ignorable'.
33885         * modules/unicase/ignorable-tests: New file.
33886         * tests/unicase/test-ignorable.c: New file, generated by
33887         gen-uni-tables.
33888
33889         Tests for module 'unicase/cased'.
33890         * modules/unicase/cased-tests: New file.
33891         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33892         * tests/unicase/test-predicate-part1.h: New file, derived from
33893         tests/unictype/test-predicate-part1.h.
33894         * tests/unicase/test-predicate-part2.h: New file, same as
33895         tests/unictype/test-predicate-part2.h.
33896
33897         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33898         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33899         (output_casing_properties): New function.
33900         (main): Call it.
33901         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33902         * lib/unicase/cased.c: Include unictype/bitmap.h.
33903         (uc_is_cased): Define through a bitmap lookup.
33904         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33905         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33906         (uc_is_case_ignorable): Define through a bitmap lookup.
33907         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33908         lib/unictype/bitmap.h.
33909         (Depends-on): Add inline. Clean up.
33910         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33911         lib/unictype/bitmap.h.
33912         (Depends-on): Add inline. Clean up.
33913         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33914         recognition.
33915         * tests/unicase/test-u16-tolower.c (main): Likewise.
33916         * tests/unicase/test-u32-tolower.c (main): Likewise.
33917
33918 2009-06-30  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33921         * lib/unicase/u16-casemap.c: Likewise.
33922         * lib/unicase/u32-casemap.c: Likewise.
33923
33924 2009-06-29  Bruno Haible  <bruno@clisp.org>
33925
33926         Define u32_casefold as a wrapper around u32_ct_casefold.
33927         * lib/unicase/u32-casefold.c: Update.
33928         * modules/unicase/u32-casefold (Depends-on): Add
33929         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33930         unicase/empty-suffix-context. Clean up.
33931
33932         Define u16_casefold as a wrapper around u16_ct_casefold.
33933         * lib/unicase/u16-casefold.c: Update.
33934         * modules/unicase/u16-casefold (Depends-on): Add
33935         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33936         unicase/empty-suffix-context. Clean up.
33937
33938         Define u8_casefold as a wrapper around u8_ct_casefold.
33939         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33940         * lib/unicase/u8-casefold.c: Update.
33941         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33942         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33943
33944         Define u32_totitle as a wrapper around u32_ct_totitle.
33945         * lib/unicase/u32-totitle.c: Update.
33946         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33947         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33948
33949         Define u16_totitle as a wrapper around u16_ct_totitle.
33950         * lib/unicase/u16-totitle.c: Update.
33951         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33953
33954         Define u8_totitle as a wrapper around u8_ct_totitle.
33955         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33956         functions.
33957         (FUNC): Delegate to U_CT_TOTITLE.
33958         * lib/unicase/u8-totitle.c: Update.
33959         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33961
33962         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33963         invocation.
33964         * modules/unicase/u32-tolower (Depends-on): Add
33965         unicase/empty-prefix-context, unicase/empty-suffix-context.
33966
33967         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33968         invocation.
33969         * modules/unicase/u16-tolower (Depends-on): Add
33970         unicase/empty-prefix-context, unicase/empty-suffix-context.
33971
33972         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33973         * modules/unicase/u8-tolower (Depends-on): Add
33974         unicase/empty-prefix-context, unicase/empty-suffix-context.
33975
33976         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33977         invocation.
33978         * modules/unicase/u32-toupper (Depends-on): Add
33979         unicase/empty-prefix-context, unicase/empty-suffix-context.
33980
33981         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33982         invocation.
33983         * modules/unicase/u16-toupper (Depends-on): Add
33984         unicase/empty-prefix-context, unicase/empty-suffix-context.
33985
33986         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33987         * modules/unicase/u8-toupper (Depends-on): Add
33988         unicase/empty-prefix-context, unicase/empty-suffix-context.
33989
33990         New module 'unicase/u32-ct-casefold'.
33991         * lib/unicase/u32-ct-casefold.c: New file.
33992         * modules/unicase/u32-ct-casefold: New file.
33993
33994         New module 'unicase/u16-ct-casefold'.
33995         * lib/unicase/u16-ct-casefold.c: New file.
33996         * modules/unicase/u16-ct-casefold: New file.
33997
33998         New module 'unicase/u8-ct-casefold'.
33999         * lib/unicase/u8-ct-casefold.c: New file.
34000         * lib/unicase/u-ct-casefold.h: New file, derived from
34001         lib/unicase/u-casefold.h.
34002         * modules/unicase/u8-ct-casefold: New file.
34003
34004         New module 'unicase/u32-ct-totitle'.
34005         * lib/unicase/u32-ct-totitle.c: New file.
34006         * modules/unicase/u32-ct-totitle: New file.
34007
34008         New module 'unicase/u16-ct-totitle'.
34009         * lib/unicase/u16-ct-totitle.c: New file.
34010         * modules/unicase/u16-ct-totitle: New file.
34011
34012         New module 'unicase/u8-ct-totitle'.
34013         * lib/unicase/u8-ct-totitle.c: New file.
34014         * lib/unicase/u-ct-totitle.h: New file, derived from
34015         lib/unicase/u-totitle.h.
34016         * modules/unicase/u8-ct-totitle: New file.
34017
34018         New module 'unicase/u32-ct-tolower'.
34019         * lib/unicase/u32-ct-tolower.c: New file.
34020         * modules/unicase/u32-ct-tolower: New file.
34021
34022         New module 'unicase/u16-ct-tolower'.
34023         * lib/unicase/u16-ct-tolower.c: New file.
34024         * modules/unicase/u16-ct-tolower: New file.
34025
34026         New module 'unicase/u8-ct-tolower'.
34027         * lib/unicase/u8-ct-tolower.c: New file.
34028         * modules/unicase/u8-ct-tolower: New file.
34029
34030         New module 'unicase/u32-ct-toupper'.
34031         * lib/unicase/u32-ct-toupper.c: New file.
34032         * modules/unicase/u32-ct-toupper: New file.
34033
34034         New module 'unicase/u16-ct-toupper'.
34035         * lib/unicase/u16-ct-toupper.c: New file.
34036         * modules/unicase/u16-ct-toupper: New file.
34037
34038         New module 'unicase/u8-ct-toupper'.
34039         * lib/unicase/u8-ct-toupper.c: New file.
34040         * modules/unicase/u8-ct-toupper: New file.
34041
34042         Add context arguments to u*_casemap functions.
34043         * lib/unicase/unicasemap.h: Include unicase.h.
34044         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34045         suffix_context arguments.
34046         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34047         functions.
34048         (FUNC): Add prefix_context and suffix_context arguments. Use
34049         uc_is_cased and uc_is_case_ignorable.
34050         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34051         * lib/unicase/u16-casemap.c: Likewise.
34052         * lib/unicase/u32-casemap.c: Likewise.
34053         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34054         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34055         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34056         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34057         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34058         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34059
34060         New module 'unicase/u32-suffix-context'.
34061         * lib/unicase/u32-suffix-context.c: New file.
34062         * modules/unicase/u32-suffix-context: New file.
34063
34064         New module 'unicase/u16-suffix-context'.
34065         * lib/unicase/u16-suffix-context.c: New file.
34066         * modules/unicase/u16-suffix-context: New file.
34067
34068         New module 'unicase/u8-suffix-context'.
34069         * lib/unicase/u8-suffix-context.c: New file.
34070         * lib/unicase/u-suffix-context.h: New file.
34071         * modules/unicase/u8-suffix-context: New file.
34072
34073         New module 'unicase/empty-suffix-context'.
34074         * lib/unicase/empty-suffix-context.c: New file.
34075         * modules/unicase/empty-suffix-context: New file.
34076
34077         New module 'unicase/u32-prefix-context'.
34078         * lib/unicase/u32-prefix-context.c: New file.
34079         * modules/unicase/u32-prefix-context: New file.
34080
34081         New module 'unicase/u16-prefix-context'.
34082         * lib/unicase/u16-prefix-context.c: New file.
34083         * modules/unicase/u16-prefix-context: New file.
34084
34085         New module 'unicase/u8-prefix-context'.
34086         * lib/unicase/u8-prefix-context.c: New file.
34087         * lib/unicase/u-prefix-context.h: New file.
34088         * lib/unicase/context.h: New file.
34089         * modules/unicase/u8-prefix-context: New file.
34090
34091         New module 'unicase/empty-prefix-context'.
34092         * lib/unicase/empty-prefix-context.c: New file.
34093         * modules/unicase/empty-prefix-context: New file.
34094
34095         New module 'unicase/ignorable'.
34096         * lib/unicase/ignorable.c: New file.
34097         * modules/unicase/ignorable: New file.
34098
34099         New module 'unicase/cased'.
34100         * lib/unicase/caseprop.h: New file.
34101         * lib/unicase/cased.c: New file.
34102         * modules/unicase/cased: New file.
34103
34104         New functions for case mapping of substrings.
34105         * lib/unicase.h (casing_prefix_context_t): New type.
34106         (unicase_empty_prefix_context): New variable.
34107         (u8_casing_prefix_context, u16_casing_prefix_context,
34108         u32_casing_prefix_context, u8_casing_prefixes_context,
34109         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34110         declarations.
34111         (casing_suffix_context_t): New type.
34112         (unicase_empty_suffix_context): New variable.
34113         (u8_casing_suffix_context, u16_casing_suffix_context,
34114         u32_casing_suffix_context, u8_casing_suffixes_context,
34115         u16_casing_suffixes_context, u32_casing_suffixes_context,
34116         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34117         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34118         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34119         declarations.
34120
34121 2009-06-28  Jim Meyering  <meyering@redhat.com>
34122
34123         boostrap: indent only with spaces
34124         * build-aux/bootstrap: Indent only with spaces, never TABs.
34125
34126         bootstrap: split long lines
34127         * build-aux/bootstrap: Keep line length < 80.
34128
34129         bootstrap: sync from coreutils
34130         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34131         just as autoreconf does.  Verify a list of prerequisite
34132         package-name,version-number pairs if defined in bootstrap.conf.
34133         Refer to README-prereq, if prerequisites are not satisfied.
34134
34135 2009-06-27  Eric Blake  <ebb9@byu.net>
34136
34137         tests: add test for bogus NULL definition
34138         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34139         * tests/test-stdlib.c: Likewise.
34140         * tests/test-string.c: Likewise.
34141         * tests/test-locale.c: Likewise.
34142         * tests/test-unistd.c: Likewise.
34143         * modules/stdio-tests (Depends-on): Add verify.
34144         * modules/stdlib-tests (Depends-on): Likewise.
34145         * modules/string-tests (Depends-on): Likewise.
34146         * modules/locale-tests (Depends-on): Likewise.
34147         * modules/unistd-tests (Depends-on): Likewise.
34148
34149 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34150
34151         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34152         self-explaining comment.
34153         * m4/selinux-selinux-h: Update serial.
34154         (gl_LIBSELINUX): New macro, adding a warning for missing development
34155         packages to code extracted from...
34156         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34157         Add warning for missing development packages here, too.
34158
34159 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34160
34161         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34162
34163 2009-06-25  Eric Blake  <ebb9@byu.net>
34164
34165         version-etc: fix regression
34166         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34167         gcc.
34168         (version_etc): Use it, to catch bugs with trailing NULL.
34169         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34170         (version_etc_va): Fix logic bug.
34171         * modules/version-etc-tests: Add test.
34172         * tests/test-version-etc.c: New file.
34173         * tests/test-version-etc.sh: Likewise.
34174
34175 2009-06-25  Sam Steingold  <sds@gnu.org>
34176
34177         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34178         mbtowc declaration.
34179
34180 2009-06-25  Eric Blake  <ebb9@byu.net>
34181
34182         fpurge: migrate into <stdio.h>
34183         * lib/fpurge.h: Delete...
34184         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34185         * lib/fpurge.c (fpurge): Change declaring header.
34186         * modules/fpurge (Files): Drop deleted file.
34187         (Depends-on): Add stdio.
34188         (configure.ac): Set witness.
34189         * modules/stdio (Makefile.am): Support fpurge macros.
34190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34191         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34192         * lib/fflush.c: Update client.
34193         * tests/test-fpurge.c: Likewise.
34194         * NEWS: Mention the change.
34195
34196 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34197
34198         * lib/argp-version-etc.c (program_authors): Add const
34199         qualifier.
34200         * lib/version-etc.c: Fix typos in the comments.
34201         * modules/argp-version-etc: Depends on version-etc.
34202
34203 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34204
34205         argp-version-etc: new module.
34206
34207         * lib/argp-version-etc.c: New file.
34208         * lib/argp-version-etc.h: New file.
34209         * modules/argp-version-etc: New file.
34210         * modules/argp-version-etc-tests: New file.
34211         * tests/test-argp-version-etc.c: New test.
34212         * tests/test-argp-version-etc-1.sh: New test.
34213
34214 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34215
34216         Provide additional interfaces and documentation for version-etc
34217         module.
34218
34219         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34220         interfaces.
34221         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34222         prototypes.
34223
34224 2009-06-24  Bruno Haible  <bruno@clisp.org>
34225
34226         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34227         HAVE_LIB${NAME} macro.
34228         Reported by Sam Steingold <sds@gnu.org>.
34229
34230 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34231
34232         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34233         needed.
34234
34235 2009-06-21  Bruno Haible  <bruno@clisp.org>
34236
34237         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34238         work.
34239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34240         together with LIB${NAME}, LTLIB${NAME}.
34241         Reported by Sam Steingold <sds@gnu.org>.
34242
34243 2009-06-20  Jim Meyering  <meyering@redhat.com>
34244
34245         tests: make sc_require_test_exit_idiom more generic
34246         * top/maint.mk (Exit_witness_file): New overridable variable.
34247         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34248         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34249
34250 2009-06-19  Jim Meyering  <meyering@redhat.com>
34251
34252         hash: reverse order of src/dst parameters in an internal interface
34253         * lib/hash.c (transfer_entries): Reverse order of parameters to
34254         put DST before SRC.  Adjust callers.
34255
34256         tests: test-hash: avoid wholesale duplication
34257         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34258         Instead, use a loop and add a single conditional.
34259
34260         tests: test-hash: allow seed selection via a command line argument
34261         * tests/test-hash.c (get_seed): New function.
34262         (main): Use it.
34263
34264 2009-06-19  Eric Blake  <ebb9@byu.net>
34265
34266         hash: avoid memory leak on allocation failure
34267         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34268         failure.  Factor repeated algorithm...
34269         (transfer_entries): ...into new helper routine.
34270         (hash_delete): React to hash_rehash return value.
34271
34272         hash: reduce memory pressure in hash_rehash no-op case
34273         * lib/hash.c (next_prime): Avoid overflow.
34274         (hash_initialize): Factor bucket size computation...
34275         (compute_bucket_size): ...into new helper function.
34276         (hash_rehash): Use new function and open coding to reduce memory
34277         pressure, and avoid a memory leak in USE_OBSTACK code.
34278         Reported by Jim Meyering.
34279
34280 2009-06-18  Eric Blake  <ebb9@byu.net>
34281
34282         hash: make rotation more obvious
34283         * modules/hash (Depends-on): Add bitrotate and stdint.
34284         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34285         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34286         (SIZE_MAX): Rely on headers for definition.
34287         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34288         (raw_hasher): Use rotr_sz.
34289         Suggested by Jim Meyering.
34290
34291         hash: fix memory leak in last patch
34292         * lib/hash.c (hash_rehash): Avoid memory leak.
34293
34294         hash: avoid no-op rehashing
34295         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34296
34297         hash: provide default callback functions
34298         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34299         (hash_initialize): Use them as defaults.
34300         * tests/test-hash.c (main): Test this.
34301
34302         hash: minor optimization
34303         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34304         when possible.
34305         (hash_initialize): Document this promise.
34306         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34307         * tests/test-hash.c (hash_compare_strings): Test this.
34308
34309 2009-06-18  Bruno Haible  <bruno@clisp.org>
34310
34311         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34312         going to be replaced anyway.
34313
34314 2009-06-18  Bruno Haible  <bruno@clisp.org>
34315
34316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34317         in one place.
34318         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34319         be replaced anyway.
34320
34321 2009-06-18  Eric Blake  <ebb9@byu.net>
34322
34323         hash: check for resize before insertion
34324         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34325         threshold before insertion, so that a pathological hash_rehash
34326         that fills every bucket can still trigger another rehash.
34327
34328 2009-06-18  Jim Meyering  <meyering@redhat.com>
34329
34330         hash-tests: add a loop around the small tests
34331         * tests/test-hash.c (main): Repeat small tests with selected
34332         small initial table sizes.
34333
34334 2009-06-17  Eric Blake  <ebb9@byu.net>
34335
34336         hash: minor cleanups
34337         * lib/hash.h (hash_entry): Make opaque, by moving...
34338         * lib/hash.c (hash_entry): ...here.
34339         (hash_insert): Clarify restrictions on what can be inserted.
34340         (hash_get_next): Clarify when it is safe to remove an element
34341         during traversal.
34342         (check_tuning): Skip verification when tuning is known safe.
34343         (hash_initialize): Clarify restrictions on tuning.
34344
34345 2009-06-17  Jim Meyering  <jim@meyering.net>
34346         and Eric Blake  <ebb9@byu.net>
34347
34348         hash-tests: new module
34349         * modules/hash-tests: New file.
34350         * tests/test-hash.c: New file.
34351
34352 2009-06-17  Eric Blake  <ebb9@byu.net>
34353
34354         strstr-simple: document new module
34355         * MODULES.html.sh: Document new module.
34356
34357         strstr, strcasestr: replace on platforms with broken memchr
34358         * modules/strstr: Split into...
34359         * modules/strstr-simple: ...new module that does not care about
34360         performance, but does care about glibc bug.
34361         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34362         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34363         if platform memchr is broken, per Debian bug 521737.
34364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34365         memchr.
34366         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34367         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34368         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34369         * modules/mountlist (Depends-on): Add strstr-simple.
34370         * modules/gen-uni-tables (Depends-on): Likewise.
34371         * modules/argz (Depends-on): Add strstr.
34372
34373 2009-06-17  Bruno Haible  <bruno@clisp.org>
34374
34375         * modules/posix_spawn-internal (Depends-on): Add errno.
34376
34377 2009-06-17  Bruno Haible  <bruno@clisp.org>
34378
34379         Define missing ESTALE on Interix 3.5.
34380         * lib/errno.in.h (ESTALE): Assign a value if missing.
34381         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34382         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34383         missing.
34384         * doc/posix-headers/errno.texi: Mention the Interix bug.
34385         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34386
34387 2009-06-15  Eric Blake  <ebb9@byu.net>
34388
34389         memchr, memchr2: add valgrind exception
34390         * lib/memchr.valgrind: New file.
34391         * lib/memchr2.valgrind: New file.
34392         * modules/memchr (Files): Distribute valgrind file.
34393         * modules/memchr2 (Files): Likewise.
34394
34395         docs: memchr is no longer obsolete
34396         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34397         * lib/string.in.h (memchr): Simplify logic.
34398
34399 2009-06-14  Jim Meyering  <meyering@redhat.com>
34400
34401         link-follow: fix the "checking..." message to not mention trailing slash
34402         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34403         never considered trailing slashes.
34404
34405 2009-06-14  Bruno Haible  <bruno@clisp.org>
34406
34407         * m4/memchr.m4: Mention also the bug on IA-64.
34408         * doc/posix-functions/memchr.texi: Likewise.
34409
34410 2009-06-12  Eric Blake  <ebb9@byu.net>
34411
34412         memchr: detect broken x86_64 and alpha implementations
34413         * modules/memchr-tests (Depends-on): Move mmap detection...
34414         * modules/memchr (Depends-on): ...here.
34415         (configure.ac): Set indicator.
34416         * lib/string.in.h (memchr): Declare replacement.
34417         * modules/string (Makefile.am): Trigger replacement.
34418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34419         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34420         bugs.
34421         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34422         * modules/getpagesize (License): Relax license.
34423
34424 2009-06-11  Bruno Haible  <bruno@clisp.org>
34425
34426         * lib/idpriv.h: Add more references.
34427
34428 2009-06-08  Bruno Haible  <bruno@clisp.org>
34429
34430         Tests for module 'idpriv-droptemp'.
34431         * modules/idpriv-droptemp-tests: New file.
34432         * tests/test-idpriv-droptemp.sh: New file.
34433         * tests/test-idpriv-droptemp.su.sh: New file.
34434         * tests/test-idpriv-droptemp.c: New file.
34435
34436         New module 'idpriv-droptemp'.
34437         * lib/idpriv-droptemp.c: New file.
34438         * modules/idpriv-droptemp: New file.
34439
34440 2009-06-08  Bruno Haible  <bruno@clisp.org>
34441
34442         Tests for module 'idpriv-drop'.
34443         * modules/idpriv-drop-tests: New file.
34444         * tests/test-idpriv-drop.sh: New file.
34445         * tests/test-idpriv-drop.su.sh: New file.
34446         * tests/test-idpriv-drop.c: New file.
34447
34448         New module 'idpriv-drop'.
34449         * lib/idpriv.h: New file.
34450         * lib-idpriv-drop.c: New file.
34451         * m4/idpriv.m4: New file.
34452         * modules/idpriv-drop: New file.
34453
34454 2009-06-08  Bruno Haible  <bruno@clisp.org>
34455
34456         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34457         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34458         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34459         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34460         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34461         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34462         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34463
34464 2009-06-08  Eric Blake  <ebb9@byu.net>
34465
34466         test-strstr: use memory fence, when possible
34467         * tests/test-strstr.c (main): Use memory fence, in order to be
34468         more likely to trigger Debian bug 521737.
34469         * modules/strstr-tests (Files): Pull in additional files.
34470
34471         memchr: no longer obsolete, for wider field testing
34472         * modules/memchr (Status, Notice): Delete, this module is no
34473         longer obsolete.
34474         * modules/vasnprintf (Depends-on): Add memchr.
34475
34476 2009-06-07  Jim Meyering  <meyering@redhat.com>
34477
34478         hash: declare some functions with the warn_unused_result attribute
34479         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34480
34481 2009-06-07  Bruno Haible  <bruno@clisp.org>
34482
34483         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34484         Reported by Eric Blake.
34485
34486 2009-06-06  Eric Blake  <ebb9@byu.net>
34487
34488         test-alignof: fix typo with long double
34489         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34490         compiler error.
34491
34492 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34493
34494         Escape non-texinfo { and }s.
34495         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34496         markup error.
34497
34498 2009-06-04  Jim Meyering  <meyering@redhat.com>
34499
34500         gitlog-to-changelog: don't infloop on an empty commit log
34501         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34502         Reported by Boris Petersen <transacid@centerim.org>.
34503
34504 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34505
34506         version-etc: extend for packagers
34507         Add three new configure options, intended for packagers:
34508           --with-packager="packager name"
34509           --with-packager-version="packager-specific version"
34510           --with-packager-bug-reports="packager bug reporting"
34511         An example with coreutils:
34512           $ ./configure \
34513             --with-packager=Gentoo \
34514             --with-packager-bug-report=http://bugs.gentoo.org/ \
34515             --with-packager-version="patchset 1.6"
34516           $ ./src/ls --version | head -n2
34517           ls (GNU coreutils) 7.1-dirty
34518           Packaged by Gentoo (patchset 1.6)
34519         Note that the bug reporting info via --help doesn't show up because
34520         coreutils uses its own custom emit_bug_reporting_address() implementation
34521         in src/system.h.  If it didn't, it'd look like:
34522           $ ./src/ls --help | tail -n4
34523           Report bugs to <bug-coreutils@gnu.org>.
34524           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34525           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34526           General help using GNU software: <http://www.gnu.org/gethelp/>.
34527         * lib/version-etc.c: Print new information, if provided.
34528         * m4/version-etc.m4: New file.
34529         * modules/version-etc (Files): Add m4/version-etc.m4.
34530         (configure.ac): Add gl_VERSION_ETC.
34531
34532 2009-05-31  Bruno Haible  <bruno@clisp.org>
34533
34534         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34535         and 'int64_t'.
34536         * modules/alignof-tests (Dependencies): Add stdint.
34537         Reported by Eric Blake.
34538
34539 2009-05-31  Bruno Haible  <bruno@clisp.org>
34540
34541         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34542         restriction due to compiler bugs.
34543         Reported by Eric Blake.
34544
34545 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34546             Bruno Haible  <bruno@clisp.org>
34547
34548         Fix test-alignof failure.
34549         * lib/alignof.h (alignof_slot): New macro.
34550         (alignof_type): New macro, with the same semantics as the previous
34551         'alignof'.
34552         (alignof): Alias to alignof_slot.
34553         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34554         check that the results are usable as constant expressions.
34555
34556 2009-05-31  Bruno Haible  <bruno@clisp.org>
34557
34558         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34559         * tests/test-memchr.c (main): Check that memchr does not read past the
34560         first occurrence of the byte.
34561         * tests/test-strstr.c (main): Update comment.
34562         Suggested by Eric Blake.
34563
34564 2009-05-30  Bruno Haible  <bruno@clisp.org>
34565
34566         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34567         detail how to use dumpbin.
34568         Reported by David Byron <dbyron@dbyron.com>.
34569
34570 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34571
34572         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34573
34574 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34575
34576         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34577
34578 2009-05-28  Bruno Haible  <bruno@clisp.org>
34579
34580         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34581         build-aux/ files.
34582
34583 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34584
34585         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34586
34587 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34588
34589         * gnulib-tool (sed_transform_main_lib_file)
34590         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34591         regexps.
34592
34593 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34594
34595         * tests/test-strstr.c: Add another self-test.
34596         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34597         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34598
34599 2009-05-23  Bruno Haible  <bruno@clisp.org>
34600
34601         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34602         change.
34603
34604 2009-05-21  Bruno Haible  <bruno@clisp.org>
34605
34606         Simplify use of mode_t varargs.
34607         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34608         uses 'mode_t' or 'int'.
34609         * lib/openat.c (openat): Likewise.
34610         * lib/open-safer.c (open_safer): Likewise.
34611         * m4/mode_t.m4: New file.
34612         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34613         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34615         * modules/open (Files): Add m4/mode_t.m4.
34616         * modules/openat (Files): Likewise.
34617         * modules/fcntl-safer (Files): Likewise.
34618         Suggested by Eric Blake.
34619
34620 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34621
34622         * doc/glibc-functions/fallocate.texi: New file.
34623         * doc/gnulib.texi: Include it.
34624
34625 2009-05-21  Eric Blake  <ebb9@byu.net>
34626             Bruno Haible  <bruno@clisp.org>
34627
34628         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34629         invocations.
34630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34631
34632 2009-05-21  Eric Blake  <ebb9@byu.net>
34633             Bruno Haible  <bruno@clisp.org>
34634
34635         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34636         include_next. Fix of 2008-11-20 commit.
34637         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34638         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34639         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34640         NEXT_MATH_H.
34641         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34642         instead of NEXT_MATH_H.
34643
34644 2009-05-21  Bruno Haible  <bruno@clisp.org>
34645
34646         Avoid redefinition warnings for SIZE_MAX.
34647         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34648         Reported by Simon Josefsson.
34649
34650 2009-05-21  Bruno Haible  <bruno@clisp.org>
34651
34652         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34653         AC_CACHE_VAL.
34654
34655 2009-05-20  Bruno Haible  <bruno@clisp.org>
34656
34657         Make zeroptr.h work on mingw.
34658         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34659         mprotect.
34660         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34661         * modules/memchr2-tests (configure.ac): Likewise.
34662         * modules/memcmp-tests (configure.ac): Likewise.
34663         * modules/memmem-tests (configure.ac): Likewise.
34664         * modules/memrchr-tests (configure.ac): Likewise.
34665         Reported by Simon Josefsson.
34666
34667 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34668
34669         * tests/test-glob.c: Include string.h for strcmp prototype.
34670
34671 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34672
34673         * modules/getdelim (Depends-on): Add explicit stdint, although it
34674         was implicitly already pulled in via realloc-posix.
34675         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34676
34677 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34678
34679         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34680         G. Christensen" <tgc@jupiterrise.com>.
34681         * m4/sys_socket_h.m4: Check for sa_family_t.
34682         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34683         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34684         * tests/test-sys_socket.c: Check that sa_family_t works.
34685
34686 2009-05-18  Eric Blake  <ebb9@byu.net>
34687
34688         maint.mk: allow gnulib_dir in VPATH build
34689         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34690
34691 2009-05-15  Jim Meyering  <meyering@redhat.com>
34692
34693         maint.mk: Give gnulib_dir a default definition.
34694         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34695         Thus, most packages no longer need to specify this variable in cfg.mk
34696
34697 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34698
34699         rename.m4: fix typos that would make non-mingw cross-configure fail
34700         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34701
34702 2009-05-13  Eric Blake  <ebb9@byu.net>
34703
34704         mmap-anon: avoid out-of-order autoconf expansion
34705         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34706         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34707         * modules/memchr-tests (Depends-on): Add extensions.
34708         * modules/memchr2-tests (Depends-on): Add extensions.
34709         * modules/memcmp-tests (Depends-on): Add extensions.
34710         * modules/memmem-tests (Depends-on): Add extensions.
34711         * modules/memrchr-tests (Depends-on): Add extensions.
34712
34713 2009-05-13  Bruno Haible  <bruno@clisp.org>
34714
34715         Make some tests ISO C 99 compliant.
34716         * tests/zerosize-ptr.h: New file.
34717         * tests/test-memchr.c: Include zerosize-ptr.h.
34718         (main): Use a zero-size object pointer instead of NULL.
34719         * tests/test-memchr2.c: Include zerosize-ptr.h.
34720         (main): Use a zero-size object pointer instead of NULL.
34721         * tests/test-memcmp.c: Include zerosize-ptr.h.
34722         (main): Use a zero-size object pointer instead of NULL.
34723         * tests/test-memmem.c: Include zerosize-ptr.h.
34724         (main): Use a zero-size object pointer instead of NULL.
34725         * tests/test-memrchr.c: Include zerosize-ptr.h.
34726         (main): Use a zero-size object pointer instead of NULL.
34727         * modules/memchr-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         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34732         m4/mmap-anon.m4.
34733         (Depends-on): Add getpagesize.
34734         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34735         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34736         m4/mmap-anon.m4.
34737         (Depends-on): Add getpagesize.
34738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34739         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34740         m4/mmap-anon.m4.
34741         (Depends-on): Add getpagesize.
34742         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34743         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34744         m4/mmap-anon.m4.
34745         (Depends-on): Add getpagesize.
34746         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34747
34748 2009-05-12  Bruno Haible  <bruno@clisp.org>
34749
34750         Tests for module 'alignof'.
34751         * modules/alignof-tests: New file.
34752         * tests/test-alignof.c: New file.
34753
34754 2009-05-12  Bruno Haible  <bruno@clisp.org>
34755
34756         Fix alignof macro.
34757         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34758         vendor compilers that are always correct.
34759
34760 2009-05-12  Bruno Haible  <bruno@clisp.org>
34761
34762         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34763         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34764         not whether its fully works.
34765
34766 2009-05-12  Bruno Haible  <bruno@clisp.org>
34767
34768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34769
34770 2009-05-12  Jim Meyering  <meyering@redhat.com>
34771
34772         * top/maint.mk: Adjust backslash alignment.
34773
34774 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34775
34776         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34777
34778 2009-05-11  Eric Blake  <ebb9@byu.net>
34779
34780         argp: avoid undefined behavior
34781         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34782         macros.
34783
34784 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34785
34786         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34787         user.name to prevent git commit from complaining.
34788
34789 2009-05-10  Bruno Haible  <bruno@clisp.org>
34790
34791         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34792         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34793         it rewrites every file name only once.
34794         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34795
34796 2009-05-08  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34799         instead of 'max'.
34800
34801 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34802
34803         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34804         sockaddr_storage test.
34805
34806 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34807
34808         * modules/sys_socket (Makefile.am): Substitute
34809         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34810         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34811         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34812         * tests/test-sys_socket.c: Check sockaddr_storage.
34813
34814 2009-05-08  Bruno Haible  <bruno@clisp.org>
34815
34816         New module 'alignof'.
34817         * lib/alignof.h: New file.
34818         * modules/alignof: New file.
34819
34820 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34821             Bruno Haible  <bruno@clisp.org>
34822
34823         Fix test-file-has-acl on FreeBSD.
34824         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34825         mask is implicitly added.
34826         * tests/test-file-has-acl.c: Include <signal.h>.
34827         (main): Terminate the test after 5 seconds.
34828         * modules/acl-tests (configure.ac): Check for alarm function.
34829
34830 2009-05-04  Bruno Haible  <bruno@clisp.org>
34831
34832         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34834         * modules/errno (configure.ac): Drop AC_REQUIRE.
34835         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34836         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34837
34838 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34839
34840         * modules/glob-tests: New module.
34841         * tests/test-glob.c: Add.
34842
34843 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34844
34845         * modules/fnmatch-tests: New module.
34846         * tests/test-fnmatch.c: Add.
34847
34848 2009-05-04  Eric Blake  <ebb9@byu.net>
34849
34850         maint: make the new no-submodule-changes rule VPATH-safe
34851         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34852
34853 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34854             Bruno Haible  <bruno@clisp.org>
34855
34856         acl: Fix infinite loop on FreeBSD.
34857         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34858         of return value from acl_get_entry.
34859         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34860         Likewise.
34861
34862 2009-05-03  Bruno Haible  <bruno@clisp.org>
34863
34864         * lib/acl-internal.h (acl_entries): Clarify return value.
34865         * lib/acl_entries.c (acl_entries): Likewise.
34866
34867 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34868
34869         Bug fix in acl module.
34870         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34871
34872 2009-05-03  Bruno Haible  <bruno@clisp.org>
34873
34874         Create gperf-generated file in the source dir, not in the build dir.
34875         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34876         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34877         * modules/unicase/locale-language (unicase/locale-languages.h):
34878         Likewise.
34879         * modules/unicase/special-casing (unicase/special-casing-table.h):
34880         Likewise.
34881         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34882         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34883         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34884         Reported by Ralf Wildenhues.
34885
34886 2009-05-03  Bruno Haible  <bruno@clisp.org>
34887
34888         * modules/fnmatch (Description, configure.ac): Taken from
34889         fnmatch-posix.
34890         * modules/fnmatch-posix: Turn into a symbolic reference to the
34891         'fnmatch' module, and deprecate.
34892         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34893
34894 2009-05-03  Bruno Haible  <bruno@clisp.org>
34895
34896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34897         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34898         Reported by Ralf Wildenhues.
34899
34900 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34901
34902         * m4/fnmatch.m4: Fix fnmatch re-define.
34903
34904 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34905
34906         priv-set: new module and tests; adapt write-any-file
34907         * lib/priv-set.c: New file.
34908         * lib/priv-set.h: New file.
34909         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34910         * lib/write-any-file.c: Simplify by using priv-set module.
34911         * m4/priv-set.m4: New file.
34912         * modules/priv-set: New file.
34913         * modules/unlinkdir: Add dependency on priv-set module.
34914         * modules/write-any-file: Likewise.
34915
34916         Tests for module 'priv-set'.
34917         * modules/priv-set-tests: New file.
34918         * tests/test-priv-set.c: New file.
34919
34920 2009-05-03  Jim Meyering  <meyering@redhat.com>
34921             Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34924         use the converted UTF-8 variant of the name instead.
34925
34926 2009-05-03  Jim Meyering  <meyering@redhat.com>
34927
34928         tests: tighten some getdate tests
34929         * tests/test-getdate.c (main): Tighten tests: require equality,
34930         not just greater than.  Set TZ envvar to UTC0.
34931
34932 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34933
34934         getdate: correctly interpret "next monday" when run on a Monday
34935         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34936         that e.g., "next tues" (when run on a tuesday) results in a date
34937         that is one week in the future, and not today's date.
34938         I.e., add a week when the wday is the same as the current one.
34939         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34940         and earlier by Martin Bernreuther and Jan Minář.
34941         * tests/test-getdate.c (main): Check that "next DAY" is always in
34942         the future and that "last DAY" is always in the past.
34943
34944 2009-05-02  Jim Meyering  <meyering@redhat.com>
34945
34946         build: ensure that a release build fails when a submodule is unclean
34947         * top/maint.mk (no-submodule-changes): New rule.
34948         (alpha beta major): Depend on it.
34949
34950 2009-05-02  Bruno Haible  <bruno@clisp.org>
34951
34952         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34953         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34954         shell variable gl_fnmatch_required to detect which variant is
34955         requested.
34956         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34957         gl_FUNC_FNMATCH_POSIX.
34958         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34959         exclude fnmatch-posix.
34960
34961 2009-05-02  Bruno Haible  <bruno@clisp.org>
34962
34963         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34964         * modules/mbsrtowcs (License): Change to LGPLv2+.
34965         * modules/strnlen1 (License): Likewise.
34966         Reported by Simon Josefsson.
34967
34968 2009-05-02  Bruno Haible  <bruno@clisp.org>
34969
34970         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34971         "cross".
34972         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34973         gnulib-tool was called with option --source-base=lib.
34974
34975 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34976
34977         Use automake *-local hooks without commands, for extensibility.
34978         * modules/localcharset (Makefile.am): Rename install-exec-local
34979         rule to install-exec-localcharset, and make it a prerequisite of
34980         install-exec-local.  Likewise, rename the uninstall-local rule to
34981         uninstall-localcharset, and make it a prerequisite of the former.
34982
34983 2009-05-01  Bruno Haible  <bruno@clisp.org>
34984
34985         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34986         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34987         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34989         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34990         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34991         m4/locale-zh.m4, m4/codeset.m4.
34992
34993         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34994         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34995         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34996         m4/locale-zh.m4.
34997
34998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34999         REPLACE_WCRTOMB if mbstate_t must be replaced.
35000         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35001         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35002
35003 2009-05-01  Bruno Haible  <bruno@clisp.org>
35004
35005         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35006         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35007         dngettext, dcngettext, textdomain, bindtextdomain,
35008         bind_textdomain_codeset): Undefine before redefining.
35009
35010 2009-04-30  Bruno Haible  <bruno@clisp.org>
35011
35012         Fix bug introduced on 2009-04-25.
35013         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35014         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35015         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35016         is defined.
35017         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35018         is defined.
35019         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35020         is defined.
35021         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35022
35023 2009-04-28  Bruno Haible  <bruno@clisp.org>
35024
35025         Comment tweaks.
35026         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35027         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35028         * lib/unicase.h (u*_casexfrm): Likewise.
35029         Reported by Paolo Bonzini.
35030
35031 2009-04-28  Bruno Haible  <bruno@clisp.org>
35032
35033         Fix a compilation error.
35034         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35035         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35036         Reported by Jim Meyering.
35037
35038 2009-04-27  Bruno Haible  <bruno@clisp.org>
35039
35040         New module 'libunistring'.
35041         * modules/libunistring: New file.
35042         * m4/libunistring.m4: New file.
35043         * MODULES.html.sh (Unicode string functions): Add it.
35044
35045 2009-04-27  Eric Blake  <ebb9@byu.net>
35046
35047         maint.mk: allow package-specific header to provide <config.h>
35048         * top/maint.mk (sc_require_config_h): New variable.
35049         (sc_require_config_h, sc_require_config_h_first): Use it.
35050
35051 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35052
35053         * top/maint.mk (sc_avoid_if_before_free): Except
35054         useless-if-before-free script.
35055
35056 2009-04-27  Eric Blake  <ebb9@byu.net>
35057
35058         maintainer-makefile: depend on all required helper scripts
35059         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35060         useless-if-before-free.
35061         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35062         version, rather than assuming gnulib checkout is available.
35063         Reported by Simen Josefsson.
35064
35065 2009-04-26  Bruno Haible  <bruno@clisp.org>
35066
35067         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35068         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35069         "../" or "..".
35070
35071 2009-04-26  Bruno Haible  <bruno@clisp.org>
35072
35073         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35074         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35075         AC_LIB_HAVE_LINKFLAGS.
35076
35077 2009-04-26  Bruno Haible  <bruno@clisp.org>
35078
35079         Simplify calling convention of u*_conv_from_encoding.
35080         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35081         u32_conv_from_encoding): Expect a resultbuf argument and return the
35082         result directly as a pointer.
35083         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35084         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35085         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35086         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35087         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35088         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35089         Update.
35090         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35091         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35092         * lib/vasnprintf.c (VASNPRINTF): Update.
35093         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35094         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35095         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35096         * NEWS: Mention the change.
35097
35098 2009-04-26  Bruno Haible  <bruno@clisp.org>
35099
35100         Simplify calling convention of u*_conv_to_encoding.
35101         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35102         u32_conv_to_encoding): Expect a resultbuf argument and return the
35103         result directly as a pointer.
35104         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35105         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35106         freeing scaled_offsets if mem_iconveha failed.
35107         * lib/unicase/u-casexfrm.h (FUNC): Update.
35108         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35109         * lib/vasnprintf.c (VASNPRINTF): Update.
35110         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35111         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35112         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35113         * NEWS: Mention the change.
35114
35115 2009-04-26  Bruno Haible  <bruno@clisp.org>
35116
35117         Avoid test failures on AIX and OSF/1.
35118         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35119         malloc(0).
35120         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35121         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35122         Likewise.
35123         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35124         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35125         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35126         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35127         * doc/posix-functions/malloc.texi: Document the portability problem
35128         related to malloc(0).
35129
35130 2009-04-26  Bruno Haible  <bruno@clisp.org>
35131
35132         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35133         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35134         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35135
35136 2009-04-25  Bruno Haible  <bruno@clisp.org>
35137
35138         Avoid link error when creating a namespace clean library.
35139         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35140         as macro with arguments if already defined as an alias.
35141         * lib/signbitf.c (gl_signbitf): Don't undefine.
35142         * lib/signbitd.c (gl_signbitd): Don't undefine.
35143         * lib/signbitl.c (gl_signbitl): Don't undefine.
35144
35145 2009-04-25  Jim Meyering  <meyering@redhat.com>
35146
35147         vc-list-files: fix another quoting bug
35148         * build-aux/vc-list-files: Avoid sed backslash expansion
35149         of pathological directory names.
35150
35151 2009-04-25  Eric Blake  <ebb9@byu.net>
35152
35153         vc-list-files: fix shell quoting error
35154         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35155         timestamp.
35156
35157 2009-04-25  Jim Meyering  <meyering@redhat.com>
35158
35159         vc-list-files: restore lost functionality with subdir argument
35160         * build-aux/vc-list-files: When given a non-"." sub-directory
35161         argument, substitute the $dir/ prefix back onto each resulting name.
35162         Otherwise, coreutils' root_tests check would fail.
35163
35164 2009-04-24  Eric Blake  <ebb9@byu.net>
35165
35166         vc-list-files: ignore git symlinks
35167         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35168         than ls-files, to ignore git symlinks.
35169
35170         maint.mk: import improvements from m4
35171         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35172         (move_if_change): Delete unused macro.
35173         (news-date-check, vc-diff-check): Support VPATH builds.
35174         (announcement): Likewise.  Split --bootstrap-tools list...
35175         (boostrap-tools): ...into separate list, which can be overridden
35176         in cfg.mk.
35177         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35178         requiring dependency on useless-if-before-free module.
35179         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35180         Support VPATH builds.
35181
35182 2009-04-24  Jim Meyering  <meyering@redhat.com>
35183
35184         maint.mk: remove coreutils-specific rules and variables
35185         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35186         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35187         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35188
35189         maint.mk: remove obsolete rule
35190         * top/maint.mk (rel-check): Remove rule.
35191         (WGET, WGETFLAGS): Remove now-unused variables.
35192
35193 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35194
35195         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35196         consistency.
35197
35198         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35199         '$(PATH_SEPARATOR)' instead of ':'.
35200
35201 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35202
35203         * lib/getopt1.c (main): Use 'const' for static array.
35204
35205 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35206
35207         * top/maint.mk: Sync with coreutils.
35208         * NEWS: Explain incompatibilities.
35209
35210 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35211             Bruno Haible  <bruno@clisp.org>
35212
35213         Fix cross-compilation results.
35214         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35215         statement, as third argument of AC_TRY_RUN.
35216         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35217         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35218         Likewise.
35219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35220         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35221         Likewise.
35222         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35223         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35224         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35225
35226 2009-04-20  Bruno Haible  <bruno@clisp.org>
35227
35228         Avoid test failure on mingw.
35229         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35230
35231 2009-04-20  Bruno Haible  <bruno@clisp.org>
35232
35233         Avoid compilation error on mingw.
35234         * modules/localename-tests (Depends-on): Add locale.
35235
35236 2009-04-19  Bruno Haible  <bruno@clisp.org>
35237
35238         Support for building a shared library on Windows platforms.
35239         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35240         (main): Test the presence of UNINORM_NFC here.
35241         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35242         (main): Test the presence of UNINORM_NFD here.
35243         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35244         (main): Test the presence of UNINORM_NFKC here.
35245         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35246         (main): Test the presence of UNINORM_NFKD here.
35247
35248 2009-04-19  Bruno Haible  <bruno@clisp.org>
35249
35250         Avoid a compiler warning.
35251         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35252         Change type of variable 'sequence'.
35253
35254 2009-04-19  Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/configmake (Makefile.am): When the contents of configmake.h
35257         does not change, arrange to preserve its modification time.
35258
35259 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35260
35261         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35262         gettext domain.
35263
35264 2009-04-16  Jim Meyering  <meyering@redhat.com>
35265
35266         useless-if-before-free: improve conversion code
35267         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35268         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35269
35270 2009-04-14  Bruno Haible  <bruno@clisp.org>
35271
35272         * modules/fcntl (Depends-on): Add extensions.
35273         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35274
35275 2009-04-12  Ben Pfaff  <blp@gnu.org>
35276
35277         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35278         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35279
35280 2009-03-20  Ben Pfaff  <blp@gnu.org>
35281
35282         Make rename replace existing destinations on Windows.
35283         * m4/rename.m4: Add test for Mingw.
35284         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35285         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35286         * doc/posix-functions/rename.texi: Document.
35287
35288 2009-04-10  Bruno Haible  <bruno@clisp.org>
35289
35290         New include file "iconveh.h".
35291         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35292         * lib/striconveh.h: Include it.
35293         (enum iconv_ilseq_handler): Remove definition.
35294         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35295         striconveh.h.
35296         * lib/striconveha.c: Include striconveh.h.
35297         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35298         * modules/striconveh (Files): Add lib/iconveh.h.
35299         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35300         lib/striconveh.h.
35301
35302 2009-04-10  Bruno Haible  <bruno@clisp.org>
35303
35304         * lib/uniconv.h: Update comment.
35305
35306 2009-04-10  Bruno Haible  <bruno@clisp.org>
35307
35308         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35309         always.
35310         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35311         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35312         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35313         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35314         "unistring-notinline.h", so that the function gets defined always.
35315         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35316         * lib/unistr/u8-uctomb.c: Likewise.
35317         * lib/unistr/u16-mbtouc.c: Likewise.
35318         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35319         * lib/unistr/u16-uctomb.c: Likewise.
35320         * lib/unistr/u32-mbtouc.c: Likewise.
35321         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35322         * lib/unistr/u32-uctomb.c: Likewise.
35323
35324 2009-04-10  Bruno Haible  <bruno@clisp.org>
35325
35326         Mark 'utime' obsolete.
35327         * modules/utime (Status, Notice): New sections.
35328         Suggested by Jim Meyering.
35329
35330         Fix cross-compile guess for utime test.
35331         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35332         autoconf.
35333         * doc/posix-functions/utime.texi: Give more precisions.
35334         Reported by Jan <ipif@ymail.com>.
35335
35336 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35337
35338         filevercmp: correct today's change
35339         * lib/filevercmp.c: Also handle coreutils' test inputs.
35340         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35341
35342         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35343         for reporting it.
35344         * lib/filevercmp.c: Special handle for "", "." and "..".
35345         * tests/test-filevercmp.c: Enlarge the set suite.
35346
35347 2009-04-07  Jim Meyering  <meyering@redhat.com>
35348
35349         useless-if-before-free: show how to remove braced useless free, too
35350         * build-aux/useless-if-before-free: still only in a comment, though.
35351
35352 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35353
35354         maint.mk: import changes to syntax-check macros from coreutils
35355         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35356         Use them in the relevant macros.
35357
35358 2009-04-06  Bruno Haible  <bruno@clisp.org>
35359
35360         Fix unportable use of bit-fields.
35361         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35362         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35363         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35364
35365 2009-04-06  Bruno Haible  <bruno@clisp.org>
35366
35367         Avoid test failures on AIX and OSF/1.
35368         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35369         that malloc(0) = NULL.
35370         * tests/unicase/test-u8-tolower.c (check): Likewise.
35371         * tests/unicase/test-u8-totitle.c (check): Likewise.
35372         * tests/unicase/test-u8-toupper.c (check): Likewise.
35373         * tests/unicase/test-u16-casefold.c (check): Likewise.
35374         * tests/unicase/test-u16-tolower.c (check): Likewise.
35375         * tests/unicase/test-u16-totitle.c (check): Likewise.
35376         * tests/unicase/test-u16-toupper.c (check): Likewise.
35377         * tests/unicase/test-u32-casefold.c (check): Likewise.
35378         * tests/unicase/test-u32-tolower.c (check): Likewise.
35379         * tests/unicase/test-u32-totitle.c (check): Likewise.
35380         * tests/unicase/test-u32-toupper.c (check): Likewise.
35381         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35382         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35383         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35384         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35385         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35386         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35387         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35388         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35389         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35390         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35391         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35392         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35393
35394 2009-04-05  Bruno Haible  <bruno@clisp.org>
35395
35396         Work around an autoconf limitation.
35397         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35398         comment line if it would be longer than 3 KB.
35399
35400 2009-04-05  Bruno Haible  <bruno@clisp.org>
35401
35402         Avoid test failure with libiconv-1.13.
35403         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35404         of the expected test results.
35405
35406 2009-04-05  Bruno Haible  <bruno@clisp.org>
35407
35408         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35409         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35410         that it should be installed.
35411
35412 2009-04-05  Bruno Haible  <bruno@clisp.org>
35413
35414         * gnulib-tool: New option --copy-file.
35415         (func_usage): Document it.
35416         (func_dest_tmpfilename): Moved out of func_import.
35417         (func_add_file, func_update_file): New functions, extracted from
35418         func_import.
35419         (func_import): Update.
35420
35421 2009-04-05  Karl Berry  <karl@gnu.org>
35422
35423         * README: prominently mention gnulib-tool.
35424         Rearrange sections so getting the code is near the top.
35425
35426 2009-04-05  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/unicase.h: Mention u*_cmp2.
35429         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35430         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35431         * lib/unicase/ulc-casecmp.c: Likewise.
35432         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35433         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35434         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35435         unistr/u8-cmp.
35436         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35437         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35438         unistr/u16-cmp.
35439         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35440         unistr/u32-cmp.
35441
35442         * lib/uninorm.h: Mention u*_cmp2.
35443         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35444         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35445         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35446         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35447         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35448         unistr/u8-cmp.
35449         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35450         unistr/u16-cmp.
35451         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35452         unistr/u32-cmp.
35453
35454         New module 'unistr/u32-cmp2'.
35455         * lib/unistr/u32-cmp2.c: New file.
35456         * modules/unistr/u32-cmp2: New file.
35457
35458         New module 'unistr/u16-cmp2'.
35459         * lib/unistr/u16-cmp2.c: New file.
35460         * modules/unistr/u16-cmp2: New file.
35461
35462         New module 'unistr/u8-cmp2'.
35463         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35464         * lib/unistr/u8-cmp2.c: New file.
35465         * lib/unistr/u-cmp2.h: New file.
35466         * modules/unistr/u8-cmp2: New file.
35467
35468 2009-04-05  Bruno Haible  <bruno@clisp.org>
35469
35470         * lib/unictype.h (uc_property_is_valid): New macro.
35471         * tests/unictype/test-pr_byname.c (main): Use it.
35472
35473         * lib/unistr.h: Doc fixes.
35474         * lib/uniconv.h: Doc fixes.
35475         * lib/unictype.h: Doc fixes.
35476
35477 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35478
35479         Port coreutils 7.2 to Solaris 8.
35480
35481         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35482         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35483         for Solaris 8.  This is a bit of a hack, as it means it's the
35484         caller's responsibility to add -lnsl if needed, but most likely it
35485         won't be needed since only getaddrinfo uses this and getaddrinfo
35486         isn't needed on Solaris 8.
35487
35488         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35489         problem to Solaris 8 encountered with coreutils 7.2, which
35490         resulted in a message "fnmatch.c:292: warning: passing argument 4
35491         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35492         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35493
35494 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35495
35496         * m4/ld-version-script.m4: Add FIXME comment.
35497
35498 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35499
35500         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35501         SOVERSION variable.
35502
35503 2009-04-02  Bruno Haible  <bruno@clisp.org>
35504
35505         * Makefile (info, html, dvi, pdf): Combine the rules.
35506         Suggested by Jim Meyering.
35507
35508 2009-04-01  Bruno Haible  <bruno@clisp.org>
35509
35510         * Makefile (info, html, dvi, pdf): New targets.
35511         Reported by Reuben Thomas <rrt@sc3d.org>.
35512
35513 2009-04-01  Bruno Haible  <bruno@clisp.org>
35514
35515         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35516         can be put into PATH.
35517         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35518
35519 2009-04-01  Bruno Haible  <bruno@clisp.org>
35520
35521         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35522
35523 2009-04-01  Bruno Haible  <bruno@clisp.org>
35524
35525         Rename module 'visibility'.
35526         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35527         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35528         * doc/gnulib.texi: Update.
35529         * MODULES.html.sh (Misc): Update.
35530         * NEWS: Mention the change.
35531
35532 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35533
35534         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35535         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35536         Eric Blake <ebb9@byu.net> for review.
35537         * MODULES.html.sh: Add lib-msvc-compat.
35538         * doc/gnulib.texi: Link to new section.
35539         * m4/ld-output-def.m4: New file.
35540         * doc/ld-output-def.texi: New file.
35541
35542 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35543
35544         Rename ld-version-script to lib-symbol-versions.  Suggested by
35545         Bruno Haible <bruno@clisp.org>.
35546         * modules/ld-version-script: Renamed to lib-symbol-versions.
35547         * doc/ld-version-script.texi: Fix module name.
35548         * MODULES.html.sh: Add lib-symbol-versions.
35549
35550 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35551
35552         * modules/u64-tests: New file.
35553         * tests/test-u64.c: New file.
35554
35555 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35556
35557         * MODULES.html.sh: Mention u64.
35558         * modules/u64: New module.
35559         * modules/crypto/sha512: Depend on u64 module instead of providing
35560         u64.h.
35561
35562 2009-03-27  Eric Blake  <ebb9@byu.net>
35563
35564         test-strerror: make debugging EAI_SYSTEM easier
35565         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35566         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35567         failure was EAI_SYSTEM.
35568
35569 2009-03-25  Bruno Haible  <bruno@clisp.org>
35570
35571         Fix a problem with --enable-relocatable on Solaris 7.
35572         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35573         since 2008-02-24.
35574
35575 2009-03-25  Eric Blake  <ebb9@byu.net>
35576
35577         test-sockets: avoid gcc warning
35578         * tests/test-sockets.c (main): Silence compiler warning.
35579
35580 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35581
35582         New modules nproc, pthread, contributed by Glen Lenker.
35583
35584         * MODULES.html.sh: Add pthread, nproc.
35585         * lib/nproc.c: New file.
35586         * lib/nproc.h: New file.
35587         * lib/pthread.in.h: New file.
35588         * m4/pthread.m4: New file.
35589         * modules/nproc: New file.
35590         * modules/pthread: New file.
35591
35592 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35593
35594         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35595         New variable.
35596
35597 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35598
35599         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35600         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35601         * tests/test-filevercmp.c: Add tests for backup suffixes.
35602
35603 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35604
35605         * modules/stdlib (Depends-on): Add stdint, needed when defining
35606         struct random_data on, for example, HP-UX 10.20.  Reported by
35607         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35608
35609 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35610
35611         * lib/readline.c (readline): Call fflush on stdout after printing
35612         prompt.
35613
35614 2009-03-20  Bruno Haible  <bruno@clisp.org>
35615
35616         Remove dependency from 'close' module to -lws2_32 on native Windows.
35617         * lib/close-hook.h: New file.
35618         * lib/close-hook.c: New file.
35619         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35620         w32sock.h.
35621         (_gl_close_fd_maybe_socket): Remove function.
35622         (rpl_close): Invoke execute_all_close_hooks instead of
35623         _gl_close_fd_maybe_socket.
35624         * lib/sockets.c: Include close-hook.h, w32sock.h.
35625         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35626         (close_sockets_hook): New variable.
35627         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35628         (gl_sockets_cleanup): Unregister it.
35629         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35630         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35631         * modules/close-hook: New file.
35632         * modules/close (Files): Remove lib/w32sock.h.
35633         (Depends-on): Add close-hook.
35634         (Link): Remove section.
35635         * modules/sockets (Files): Add lib/w32sock.h.
35636         (Depends-on): Add close-hook.
35637         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35638         invocation.
35639         * NEWS: Mention that LIB_CLOSE is gone.
35640
35641 2009-03-23  Eric Blake  <ebb9@byu.net>
35642
35643         signal-tests: test previous patch
35644         * tests/test-signal.c: New file.
35645         * modules/signal-tests: Likewise.
35646
35647         signal.h: always support 'volatile sig_atomic_t'
35648         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35649         (gl_SIGNAL_H_DEFAULTS): Add a default.
35650         * modules/signal (Makefile.am): Substitute if needed.
35651         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35652         users can blindly add volatile.
35653         * doc/posix-headers/signal.texi (signal.h): Document it.
35654         Reported by Matthew Woehlke.
35655
35656 2009-03-23  Jim Meyering  <meyering@redhat.com>
35657
35658         pathmax: PATH_MAX: use pathconf only when available
35659         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35660         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35661         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35662         This avoids a link failure in a PSP cross-compilation environment
35663         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35664
35665         * lib/vasnprintf.c (divide): Fix typo in comment.
35666
35667 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35668
35669         * gnulib-tool (func_filter_filelist): Fix comment.
35670
35671 2009-03-20  Bruno Haible  <bruno@clisp.org>
35672
35673         Make sockets.h self-contained.
35674         * lib/sockets.c: Include sockets.h first.
35675         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35676
35677 2009-03-19  Eric Blake  <ebb9@byu.net>
35678
35679         doc: mention more functions added in cygwin 1.7.0
35680         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35681         addition.
35682         * doc/posix-functions/log2f.texi: Likewise.
35683
35684 2009-03-19  Jim Meyering  <meyering@redhat.com>
35685
35686         fsusage: avoid syntax error due to statement-before-declaration
35687         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35688         after all declarations.  Reported by Matthew Woehlke in
35689         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35690
35691 2009-03-18  Eric Blake  <ebb9@byu.net>
35692
35693         build-aux/compile: sync from automake
35694         * build-aux/compile: New file, from automake.
35695         * config/srclist.txt: Mention build-aux/compile.
35696
35697 2009-03-17  Bruno Haible  <bruno@clisp.org>
35698
35699         * lib/git-merge-changelog.c: Fix typo in comment.
35700         Reported by Reuben Thomas <rrt@sc3d.org>.
35701
35702 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35703
35704         * m4/regex.m4: update and improve help for
35705         --without-included-regex.
35706
35707 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35708
35709         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35710         failure on missing include files.
35711
35712 2009-03-17  Eric Blake  <ebb9@byu.net>
35713
35714         doc: mention more functions added in cygwin 1.7.0
35715         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35716         addition.
35717         * doc/posix-functions/fwscanf.texi: Likewise.
35718         * doc/posix-functions/swprintf.texi: Likewise.
35719         * doc/posix-functions/swscanf.texi: Likewise.
35720         * doc/posix-functions/vfwprintf.texi: Likewise.
35721         * doc/posix-functions/vfwscanf.texi: Likewise.
35722         * doc/posix-functions/vswprintf.texi: Likewise.
35723         * doc/posix-functions/vswscanf.texi: Likewise.
35724         * doc/posix-functions/vwprintf.texi: Likewise.
35725         * doc/posix-functions/vwscanf.texi: Likewise.
35726         * doc/posix-functions/wcscasecmp.texi: Likewise.
35727         * doc/posix-functions/wcsdup.texi: Likewise.
35728         * doc/posix-functions/wcsftime.texi: Likewise.
35729         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35730         * doc/posix-functions/wprintf.texi: Likewise.
35731         * doc/posix-functions/wscanf.texi: Likewise.
35732         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35733
35734 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35735
35736         maint.mk: really add $(AM_MAKEFLAGS)
35737         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35738         was inadvertently omitted in the last commit.
35739         Spotted by Bruno Haible.
35740
35741         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35742         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35743         $(AM_MAKEFLAGS)' rather than plain `make'.
35744
35745         gnulib-tool: execute $MAKE not make
35746         * gnulib-tool: Default $MAKE to 'make'.
35747         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35748         than make.  Initialize $MAKE in the do-autobuild script.
35749
35750         gnulib-tool: use $MAKE not make in generated files
35751         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35752         make, in generated files.  Initialize $MAKE in the do-autobuild
35753         script.
35754
35755         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35756
35757         GNUmakefile: disable parallelism only for multiple, recursive targets
35758         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35759         additions in the Makefile.
35760         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35761         by Automake.
35762         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35763         are listed on the command line and at least one of them is
35764         listed in $(ALL_RECURSIVE_TARGETS).
35765
35766 2009-03-14  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35769         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35770         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35771         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35772         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35773         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35774         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35775         unistr/u8-uctomb.
35776         * modules/unistr/u8-strchr (Depends-on): Likewise.
35777         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35778         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35779         unistr/u16-uctomb.
35780         * modules/unistr/u16-strchr (Depends-on): Likewise.
35781         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35782
35783 2009-03-12  Bruno Haible  <bruno@clisp.org>
35784
35785         Work around select() bug on Interix 3.5.
35786         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35787         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35788         * m4/select.m4: New file.
35789         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35790         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35791         * modules/select (Files): Add m4/select.m4.
35792         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35793         * modules/nanosleep (Depends-on): Add select.
35794         * modules/poll (Depends-on): Likewise.
35795         * doc/posix-functions/select.texi: Mention the Interix bug.
35796         Reported by Markus Duft <mduft@gentoo.org>.
35797
35798         * lib/select.c: Renamed from lib/winsock-select.c.
35799         * modules/select (Files): Add lib/select.c, remove
35800         lib/winsock-select.c.
35801         (configure.ac): Update.
35802
35803 2009-03-12  Jim Meyering  <meyering@redhat.com>
35804
35805         avoid gcc warnings about unused macro definitions
35806         * lib/readtokens.c (STREQ): Remove unused definition.
35807         * lib/xmalloc.c (SIZE_MAX): Likewise.
35808         * lib/openat-die.c (N_): Likewise.
35809         * lib/mountlist.c (SIZE_MAX): Remove definition.
35810         Instead, include <stdint.h>.
35811         * lib/readutmp.c: Likewise.
35812         * modules/readutmp (Depends-on): Add stdint.
35813         * modules/mountlist (Depends-on): Add stdint.
35814         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35815
35816 2009-03-10  Bruno Haible  <bruno@clisp.org>
35817
35818         Tests for module 'mbmemcasecoll'.
35819         * modules/mbmemcasecoll-tests: New file.
35820         * tests/test-mbmemcasecoll1.sh: New file.
35821         * tests/test-mbmemcasecoll2.sh: New file.
35822         * tests/test-mbmemcasecoll3.sh: New file.
35823         * tests/test-mbmemcasecoll.c: New file.
35824
35825         New module 'mbmemcasecoll'.
35826         * lib/mbmemcasecoll.h: New file.
35827         * lib/mbmemcasecoll.c: New file.
35828         * modules/mbmemcasecoll: New file.
35829
35830         * tests/test-mbmemcasecmp.h: New file, extracted from
35831         tests/test-mbmemcasecmp.c.
35832         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35833         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35834         (main): Update.
35835         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35836
35837 2009-03-09  Bruno Haible  <bruno@clisp.org>
35838
35839         Tests for module 'mbmemcasecmp'.
35840         * modules/mbmemcasecmp-tests: New file.
35841         * tests/test-mbmemcasecmp1.sh: New file.
35842         * tests/test-mbmemcasecmp2.sh: New file.
35843         * tests/test-mbmemcasecmp3.sh: New file.
35844         * tests/test-mbmemcasecmp.c: New file.
35845
35846         New module 'mbmemcasecmp'.
35847         * lib/mbmemcasecmp.h: New file.
35848         * lib/mbmemcasecmp.c: New file.
35849         * modules/mbmemcasecmp: New file.
35850
35851 2009-03-09  Bruno Haible  <bruno@clisp.org>
35852
35853         Tests for module 'unicase/ulc-casecoll'.
35854         * modules/unicase/ulc-casecoll-tests: New file.
35855         * tests/unicase/test-ulc-casecoll1.sh: New file.
35856         * tests/unicase/test-ulc-casecoll2.sh: New file.
35857         * tests/unicase/test-ulc-casecoll.c: New file.
35858
35859         New module 'unicase/ulc-casecoll'.
35860         * lib/unicase.h (ulc_casecoll): New declaration.
35861         * lib/unicase/ulc-casecoll.c: New file.
35862         * modules/unicase/ulc-casecoll: New file.
35863
35864         New module 'unicase/ulc-casexfrm'.
35865         * lib/unicase.h (ulc_casexfrm): New declaration.
35866         * lib/unicase/ulc-casexfrm.c: New file.
35867         * modules/unicase/ulc-casexfrm: New file.
35868
35869 2009-03-09  Bruno Haible  <bruno@clisp.org>
35870
35871         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35872         invocations.
35873
35874         * m4/mbscasecmp.m4: Remove file.
35875         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35876         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35877
35878         * m4/mbscasestr.m4: Remove file.
35879         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35880         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35881
35882         * m4/mbschr.m4: Remove file.
35883         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35884         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35885
35886         * m4/mbscspn.m4: Remove file.
35887         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35888         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35889
35890         * m4/mbslen.m4: Remove file.
35891         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35892         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35893
35894         * m4/mbsncasecmp.m4: Remove file.
35895         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35896         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35897
35898         * m4/mbsnlen.m4: Remove file.
35899         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35900         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35901
35902         * m4/mbspbrk.m4: Remove file.
35903         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35904         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35905
35906         * m4/mbspcasecmp.m4: Remove file.
35907         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35908         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35909
35910         * m4/mbsrchr.m4: Remove file.
35911         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35912         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35913
35914         * m4/mbssep.m4: Remove file.
35915         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35916         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35917
35918         * m4/mbsspn.m4: Remove file.
35919         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35920         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35921
35922         * m4/mbsstr.m4: Remove file.
35923         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35924         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35925
35926         * m4/mbstok_r.m4: Remove file.
35927         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35928         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35929
35930         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35931
35932         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35933         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35934
35935         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35936
35937 2009-03-08  Bruno Haible  <bruno@clisp.org>
35938
35939         Tests for module 'unicase/ulc-casecmp'.
35940         * modules/unicase/ulc-casecmp-tests: New file.
35941         * tests/unicase/test-ulc-casecmp1.sh: New file.
35942         * tests/unicase/test-ulc-casecmp2.sh: New file.
35943         * tests/unicase/test-ulc-casecmp.c: New file.
35944
35945         New module 'unicase/ulc-casecmp'.
35946         * lib/unicase.h (ulc_casecmp): New declaration.
35947         * lib/unicase/ulc-casecmp.c: New file.
35948         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35949         'const SRC_UNIT *'.
35950         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35951         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35952         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35953         * modules/unicase/ulc-casecmp: New file.
35954
35955         Tests for module 'unicase/u32-is-cased'.
35956         * modules/unicase/u32-is-cased-tests: New file.
35957         * tests/unicase/test-u32-is-cased.c: New file.
35958
35959         Tests for module 'unicase/u16-is-cased'.
35960         * modules/unicase/u16-is-cased-tests: New file.
35961         * tests/unicase/test-u16-is-cased.c: New file.
35962
35963         Tests for module 'unicase/u8-is-cased'.
35964         * modules/unicase/u8-is-cased-tests: New file.
35965         * tests/unicase/test-u8-is-cased.c: New file.
35966         * tests/unicase/test-is-cased.h: New file.
35967
35968         New module 'unicase/u32-is-cased'.
35969         * lib/unicase/u32-is-cased.c: New file.
35970         * modules/unicase/u32-is-cased: New file.
35971
35972         New module 'unicase/u16-is-cased'.
35973         * lib/unicase/u16-is-cased.c: New file.
35974         * modules/unicase/u16-is-cased: New file.
35975
35976         New module 'unicase/u8-is-cased'.
35977         * lib/unicase/u8-is-cased.c: New file.
35978         * lib/unicase/u-is-cased.h: New file.
35979         * modules/unicase/u8-is-cased: New file.
35980
35981         Tests for module 'unicase/u32-is-casefolded'.
35982         * modules/unicase/u32-is-casefolded-tests: New file.
35983         * tests/unicase/test-u32-is-casefolded.c: New file.
35984
35985         Tests for module 'unicase/u16-is-casefolded'.
35986         * modules/unicase/u16-is-casefolded-tests: New file.
35987         * tests/unicase/test-u16-is-casefolded.c: New file.
35988
35989         Tests for module 'unicase/u8-is-casefolded'.
35990         * modules/unicase/u8-is-casefolded-tests: New file.
35991         * tests/unicase/test-u8-is-casefolded.c: New file.
35992         * tests/unicase/test-is-casefolded.h: New file.
35993
35994         New module 'unicase/u32-is-casefolded'.
35995         * lib/unicase/u32-is-casefolded.c: New file.
35996         * modules/unicase/u32-is-casefolded: New file.
35997
35998         New module 'unicase/u16-is-casefolded'.
35999         * lib/unicase/u16-is-casefolded.c: New file.
36000         * modules/unicase/u16-is-casefolded: New file.
36001
36002         New module 'unicase/u8-is-casefolded'.
36003         * lib/unicase/u8-is-casefolded.c: New file.
36004         * modules/unicase/u8-is-casefolded: New file.
36005
36006         Tests for module 'unicase/u32-is-titlecase'.
36007         * modules/unicase/u32-is-titlecase-tests: New file.
36008         * tests/unicase/test-u32-is-titlecase.c: New file.
36009
36010         Tests for module 'unicase/u16-is-titlecase'.
36011         * modules/unicase/u16-is-titlecase-tests: New file.
36012         * tests/unicase/test-u16-is-titlecase.c: New file.
36013
36014         Tests for module 'unicase/u8-is-titlecase'.
36015         * modules/unicase/u8-is-titlecase-tests: New file.
36016         * tests/unicase/test-u8-is-titlecase.c: New file.
36017         * tests/unicase/test-is-titlecase.h: New file.
36018
36019         New module 'unicase/u32-is-titlecase'.
36020         * lib/unicase/u32-is-titlecase.c: New file.
36021         * modules/unicase/u32-is-titlecase: New file.
36022
36023         New module 'unicase/u16-is-titlecase'.
36024         * lib/unicase/u16-is-titlecase.c: New file.
36025         * modules/unicase/u16-is-titlecase: New file.
36026
36027         New module 'unicase/u8-is-titlecase'.
36028         * lib/unicase/u8-is-titlecase.c: New file.
36029         * modules/unicase/u8-is-titlecase: New file.
36030
36031         Tests for module 'unicase/u32-is-lowercase'.
36032         * modules/unicase/u32-is-lowercase-tests: New file.
36033         * tests/unicase/test-u32-is-lowercase.c: New file.
36034
36035         Tests for module 'unicase/u16-is-lowercase'.
36036         * modules/unicase/u16-is-lowercase-tests: New file.
36037         * tests/unicase/test-u16-is-lowercase.c: New file.
36038
36039         Tests for module 'unicase/u8-is-lowercase'.
36040         * modules/unicase/u8-is-lowercase-tests: New file.
36041         * tests/unicase/test-u8-is-lowercase.c: New file.
36042         * tests/unicase/test-is-lowercase.h: New file.
36043
36044         New module 'unicase/u32-is-lowercase'.
36045         * lib/unicase/u32-is-lowercase.c: New file.
36046         * modules/unicase/u32-is-lowercase: New file.
36047
36048         New module 'unicase/u16-is-lowercase'.
36049         * lib/unicase/u16-is-lowercase.c: New file.
36050         * modules/unicase/u16-is-lowercase: New file.
36051
36052         New module 'unicase/u8-is-lowercase'.
36053         * lib/unicase/u8-is-lowercase.c: New file.
36054         * modules/unicase/u8-is-lowercase: New file.
36055
36056         Tests for module 'unicase/u32-is-uppercase'.
36057         * modules/unicase/u32-is-uppercase-tests: New file.
36058         * tests/unicase/test-u32-is-uppercase.c: New file.
36059
36060         Tests for module 'unicase/u16-is-uppercase'.
36061         * modules/unicase/u16-is-uppercase-tests: New file.
36062         * tests/unicase/test-u16-is-uppercase.c: New file.
36063
36064         Tests for module 'unicase/u8-is-uppercase'.
36065         * modules/unicase/u8-is-uppercase-tests: New file.
36066         * tests/unicase/test-u8-is-uppercase.c: New file.
36067         * tests/unicase/test-is-uppercase.h: New file.
36068
36069         New module 'unicase/u32-is-uppercase'.
36070         * lib/unicase/u32-is-uppercase.c: New file.
36071         * modules/unicase/u32-is-uppercase: New file.
36072
36073         New module 'unicase/u16-is-uppercase'.
36074         * lib/unicase/u16-is-uppercase.c: New file.
36075         * modules/unicase/u16-is-uppercase: New file.
36076
36077         New module 'unicase/u8-is-uppercase'.
36078         * lib/unicase/u8-is-uppercase.c: New file.
36079         * modules/unicase/u8-is-uppercase: New file.
36080
36081         New module 'unicase/u32-is-invariant'.
36082         * lib/unicase/u32-is-invariant.c: New file.
36083         * modules/unicase/u32-is-invariant: New file.
36084
36085         New module 'unicase/u16-is-invariant'.
36086         * lib/unicase/u16-is-invariant.c: New file.
36087         * modules/unicase/u16-is-invariant: New file.
36088
36089         New module 'unicase/u8-is-invariant'.
36090         * lib/unicase/u8-is-invariant.c: New file.
36091         * lib/unicase/invariant.h: New file.
36092         * lib/unicase/u-is-invariant.h: New file.
36093         * modules/unicase/u8-is-invariant: New file.
36094
36095         Tests for module 'unicase/u32-casecoll'.
36096         * modules/unicase/u32-casecoll-tests: New file.
36097         * tests/unicase/test-u32-casecoll.c: New file.
36098
36099         Tests for module 'unicase/u16-casecoll'.
36100         * modules/unicase/u16-casecoll-tests: New file.
36101         * tests/unicase/test-u16-casecoll.c: New file.
36102
36103         Tests for module 'unicase/u8-casecoll'.
36104         * modules/unicase/u8-casecoll-tests: New file.
36105         * tests/unicase/test-u8-casecoll.c: New file.
36106
36107         New module 'unicase/u32-casecoll'.
36108         * lib/unicase/u32-casecoll.c: New file.
36109         * modules/unicase/u32-casecoll: New file.
36110
36111         New module 'unicase/u16-casecoll'.
36112         * lib/unicase/u16-casecoll.c: New file.
36113         * modules/unicase/u16-casecoll: New file.
36114
36115         New module 'unicase/u8-casecoll'.
36116         * lib/unicase/u8-casecoll.c: New file.
36117         * lib/unicase/u-casecoll.h: New file.
36118         * modules/unicase/u8-casecoll: New file.
36119
36120         New module 'unicase/u32-casexfrm'.
36121         * lib/unicase/u32-casexfrm.c: New file.
36122         * modules/unicase/u32-casexfrm: New file.
36123
36124         New module 'unicase/u16-casexfrm'.
36125         * lib/unicase/u16-casexfrm.c: New file.
36126         * modules/unicase/u16-casexfrm: New file.
36127
36128         New module 'unicase/u8-casexfrm'.
36129         * lib/unicase/u8-casexfrm.c: New file.
36130         * lib/unicase/u-casexfrm.h: New file.
36131         * modules/unicase/u8-casexfrm: New file.
36132
36133         Tests for module 'unicase/u32-casecmp'.
36134         * modules/unicase/u32-casecmp-tests: New file.
36135         * tests/unicase/test-u32-casecmp.c: New file.
36136
36137         Tests for module 'unicase/u16-casecmp'.
36138         * modules/unicase/u16-casecmp-tests: New file.
36139         * tests/unicase/test-u16-casecmp.c: New file.
36140
36141         Tests for module 'unicase/u8-casecmp'.
36142         * modules/unicase/u8-casecmp-tests: New file.
36143         * tests/unicase/test-u8-casecmp.c: New file.
36144         * tests/unicase/test-casecmp.h: New file.
36145
36146         New module 'unicase/u32-casecmp'.
36147         * lib/unicase/u32-casecmp.c: New file.
36148         * modules/unicase/u32-casecmp: New file.
36149
36150         New module 'unicase/u16-casecmp'.
36151         * lib/unicase/u16-casecmp.c: New file.
36152         * modules/unicase/u16-casecmp: New file.
36153
36154         New module 'unicase/u8-casecmp'.
36155         * lib/unicase/u8-casecmp.c: New file.
36156         * lib/unicase/u-casecmp.h: New file.
36157         * modules/unicase/u8-casecmp: New file.
36158
36159         Tests for module 'unicase/u32-casefold'.
36160         * modules/unicase/u32-casefold-tests: New file.
36161         * tests/unicase/test-u32-casefold.c: New file.
36162
36163         Tests for module 'unicase/u16-casefold'.
36164         * modules/unicase/u16-casefold-tests: New file.
36165         * tests/unicase/test-u16-casefold.c: New file.
36166
36167         Tests for module 'unicase/u8-casefold'.
36168         * modules/unicase/u8-casefold-tests: New file.
36169         * tests/unicase/test-u8-casefold.c: New file.
36170
36171         New module 'unicase/u32-casefold'.
36172         * lib/unicase/u32-casefold.c: New file.
36173         * modules/unicase/u32-casefold: New file.
36174
36175         New module 'unicase/u16-casefold'.
36176         * lib/unicase/u16-casefold.c: New file.
36177         * modules/unicase/u16-casefold: New file.
36178
36179         New module 'unicase/u8-casefold'.
36180         * lib/unicase/u8-casefold.c: New file.
36181         * lib/unicase/u-casefold.h: New file.
36182         * modules/unicase/u8-casefold: New file.
36183
36184         New module 'unicase/tocasefold'.
36185         * lib/unicase/casefold.h: New file.
36186         * lib/unicase/tocasefold.c: New file.
36187         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36188         * modules/unicase/tocasefold: New file.
36189
36190         Tests for module 'unicase/u32-totitle'.
36191         * modules/unicase/u32-totitle-tests: New file.
36192         * tests/unicase/test-u32-totitle.c: New file.
36193
36194         Tests for module 'unicase/u16-totitle'.
36195         * modules/unicase/u16-totitle-tests: New file.
36196         * tests/unicase/test-u16-totitle.c: New file.
36197
36198         Tests for module 'unicase/u8-totitle'.
36199         * modules/unicase/u8-totitle-tests: New file.
36200         * tests/unicase/test-u8-totitle.c: New file.
36201
36202         New module 'unicase/u32-totitle'.
36203         * lib/unicase/u32-totitle.c: New file.
36204         * modules/unicase/u32-totitle: New file.
36205
36206         New module 'unicase/u16-totitle'.
36207         * lib/unicase/u16-totitle.c: New file.
36208         * modules/unicase/u16-totitle: New file.
36209
36210         New module 'unicase/u8-totitle'.
36211         * lib/unicase/u8-totitle.c: New file.
36212         * lib/unicase/u-totitle.h: New file.
36213         * modules/unicase/u8-totitle: New file.
36214
36215         Tests for module 'unicase/u32-tolower'.
36216         * modules/unicase/u32-tolower-tests: New file.
36217         * tests/unicase/test-u32-tolower.c: New file.
36218
36219         Tests for module 'unicase/u16-tolower'.
36220         * modules/unicase/u16-tolower-tests: New file.
36221         * tests/unicase/test-u16-tolower.c: New file.
36222
36223         Tests for module 'unicase/u8-tolower'.
36224         * modules/unicase/u8-tolower-tests: New file.
36225         * tests/unicase/test-u8-tolower.c: New file.
36226
36227         New module 'unicase/u32-tolower'.
36228         * lib/unicase/u32-tolower.c: New file.
36229         * modules/unicase/u32-tolower: New file.
36230
36231         New module 'unicase/u16-tolower'.
36232         * lib/unicase/u16-tolower.c: New file.
36233         * modules/unicase/u16-tolower: New file.
36234
36235         New module 'unicase/u8-tolower'.
36236         * lib/unicase/u8-tolower.c: New file.
36237         * modules/unicase/u8-tolower: New file.
36238
36239         Tests for module 'unicase/u32-toupper'.
36240         * modules/unicase/u32-toupper-tests: New file.
36241         * tests/unicase/test-u32-toupper.c: New file.
36242
36243         Tests for module 'unicase/u16-toupper'.
36244         * modules/unicase/u16-toupper-tests: New file.
36245         * tests/unicase/test-u16-toupper.c: New file.
36246
36247         Tests for module 'unicase/u8-toupper'.
36248         * modules/unicase/u8-toupper-tests: New file.
36249         * tests/unicase/test-u8-toupper.c: New file.
36250
36251         New module 'unicase/u32-toupper'.
36252         * lib/unicase/u32-toupper.c: New file.
36253         * modules/unicase/u32-toupper: New file.
36254
36255         New module 'unicase/u16-toupper'.
36256         * lib/unicase/u16-toupper.c: New file.
36257         * modules/unicase/u16-toupper: New file.
36258
36259         New module 'unicase/u8-toupper'.
36260         * lib/unicase/u8-toupper.c: New file.
36261         * modules/unicase/u8-toupper: New file.
36262
36263         New module 'unicase/u32-casemap'.
36264         * lib/unicase/u32-casemap.c: New file.
36265         * modules/unicase/u32-casemap: New file.
36266
36267         New module 'unicase/u16-casemap'.
36268         * lib/unicase/u16-casemap.c: New file.
36269         * modules/unicase/u16-casemap: New file.
36270
36271         New module 'unicase/u8-casemap'.
36272         * lib/unicase/unicasemap.h: New file.
36273         * lib/unicase/u8-casemap.c: New file.
36274         * lib/unicase/u-casemap.h: New file.
36275         * modules/unicase/u8-casemap: New file.
36276
36277         New module 'unicase/special-casing'.
36278         * lib/unicase/special-casing.h: New file.
36279         * lib/unicase/special-casing.c: New file.
36280         * lib/unicase/special-casing-table.gperf: New file, generated by
36281         gen-uni-tables.c.
36282         * modules/unicase/special-casing: New file.
36283
36284         Tests for module 'unicase/locale-language'.
36285         * modules/unicase/locale-language-tests: New file.
36286         * tests/unicase/test-locale-language.sh: New file.
36287         * tests/unicase/test-locale-language.c: New file.
36288
36289         New module 'unicase/locale-language'.
36290         * lib/unicase/locale-language.c: New file.
36291         * lib/unicase/locale-languages.gperf: New file.
36292         * modules/unicase/locale-language: New file.
36293
36294         Generate more tables for case conversion and case folding.
36295         * lib/gen-uni-tables.c (SCC_*): New enum items.
36296         (struct special_casing_rule): New type.
36297         (casing_rules, num_casing_rules, allocated_casing_rules): New
36298         variables.
36299         (add_casing_rule, fill_casing_rules): New functions.
36300         (struct casefold_rule): New type.
36301         (casefolding_rules, num_casefolding_rules,
36302         allocated_casefolding_rules): New variables.
36303         (fill_casefolding_rules): New function.
36304         (unicode_casefold): New variable.
36305         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36306         sort_casing_rules, output_casing_rules): New functions.
36307         (main): Accept to more arguments: SpecialCasing.txt and
36308         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36309         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36310         Output mapping for casefolding.
36311
36312         * lib/unicase.h: Include stdbool.h, uninorm.h.
36313         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36314         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36315         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36316         arguments.
36317         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36318         resultp arguments.
36319         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36320         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36321         resultp arguments.
36322         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36323         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36324         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36325         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36326         declarations.
36327         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36328
36329 2009-03-08  Bruno Haible  <bruno@clisp.org>
36330
36331         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36332         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36333         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36334         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36335
36336 2009-03-07  Bruno Haible  <bruno@clisp.org>
36337
36338         Adjust u*_normcmp, u*_normcoll API.
36339         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36340         u16_normcoll, u32_normcoll): Change failure conventions.
36341         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36342         errno and return -1.
36343         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36344
36345 2009-03-07  Bruno Haible  <bruno@clisp.org>
36346
36347         Tests for module 'uninorm/u32-normcoll'.
36348         * modules/uninorm/u32-normcoll-tests: New file.
36349         * tests/uninorm/test-u32-normcoll.c: New file.
36350
36351         Tests for module 'uninorm/u16-normcoll'.
36352         * modules/uninorm/u16-normcoll-tests: New file.
36353         * tests/uninorm/test-u16-normcoll.c: New file.
36354
36355         Tests for module 'uninorm/u8-normcoll'.
36356         * modules/uninorm/u8-normcoll-tests: New file.
36357         * tests/uninorm/test-u8-normcoll.c: New file.
36358
36359 2009-03-07  Bruno Haible  <bruno@clisp.org>
36360
36361         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36362         tests/uninorm/test-u32-normcmp.c.
36363         * tests/uninorm/test-u32-normcmp.c: Include it.
36364         (test_nonascii): New function, extracted from main. Add some more
36365         tests.
36366         (main): Invoke test_ascii and test_nonascii.
36367         * modules/uninorm/u32-normcmp-tests (Files): Add
36368         tests/uninorm/test-u32-normcmp.h.
36369         (Depends-on): Remove uninorm/u32-normcmp.
36370
36371         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36372         tests/uninorm/test-u16-normcmp.c.
36373         * tests/uninorm/test-u16-normcmp.c: Include it.
36374         (test_nonascii): New function, extracted from main. Add some more
36375         tests.
36376         (main): Invoke test_ascii and test_nonascii.
36377         * modules/uninorm/u16-normcmp-tests (Files): Add
36378         tests/uninorm/test-u16-normcmp.h.
36379         (Depends-on): Remove uninorm/u16-normcmp.
36380
36381         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36382         tests/uninorm/test-u8-normcmp.c.
36383         * tests/uninorm/test-u8-normcmp.c: Include it.
36384         (test_nonascii): New function, extracted from main. Add some more
36385         tests.
36386         (main): Invoke test_ascii and test_nonascii.
36387         * modules/uninorm/u8-normcmp-tests (Files): Add
36388         tests/uninorm/test-u8-normcmp.h.
36389         (Depends-on): Remove uninorm/u8-normcmp.
36390
36391 2009-03-07  Bruno Haible  <bruno@clisp.org>
36392
36393         New module 'uninorm/u32-normcoll'.
36394         * lib/uninorm/u32-normcoll.c: New file.
36395         * modules/uninorm/u32-normcoll: New file.
36396
36397         New module 'uninorm/u16-normcoll'.
36398         * lib/uninorm/u16-normcoll.c: New file.
36399         * modules/uninorm/u16-normcoll: New file.
36400
36401         New module 'uninorm/u8-normcoll'.
36402         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36403         declarations.
36404         * lib/uninorm/u8-normcoll.c: New file.
36405         * lib/uninorm/u-normcoll.h: New file.
36406         * modules/uninorm/u8-normcoll: New file.
36407
36408         New module 'uninorm/u32-normxfrm'.
36409         * lib/uninorm/u32-normxfrm.c: New file.
36410         * modules/uninorm/u32-normxfrm: New file.
36411
36412         New module 'uninorm/u16-normxfrm'.
36413         * lib/uninorm/u16-normxfrm.c: New file.
36414         * modules/uninorm/u16-normxfrm: New file.
36415
36416         New module 'uninorm/u8-normxfrm'.
36417         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36418         declarations.
36419         * lib/uninorm/u8-normxfrm.c: New file.
36420         * lib/uninorm/u-normxfrm.h: New file.
36421         * modules/uninorm/u8-normxfrm: New file.
36422
36423 2009-03-07  Bruno Haible  <bruno@clisp.org>
36424
36425         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36426         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36427         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36428
36429 2009-03-07  Bruno Haible  <bruno@clisp.org>
36430
36431         New module 'memxfrm'.
36432         * lib/memxfrm.h: New file.
36433         * lib/memxfrm.c: New file.
36434         * modules/memxfrm: New file.
36435
36436 2009-03-07  Bruno Haible  <bruno@clisp.org>
36437
36438         New module 'memcmp2'.
36439         * lib/memcmp2.h: New file.
36440         * lib/memcmp2.c: New file.
36441         * modules/memcmp2: New file.
36442
36443 2009-03-07  Bruno Haible  <bruno@clisp.org>
36444
36445         Tests for module 'uninorm/decomposing-form'.
36446         * modules/uninorm/decomposing-form-tests: New file.
36447         * tests/uninorm/test-decomposing-form.c: New file.
36448
36449         New module 'uninorm/decomposing-form'.
36450         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36451         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36452         Add 'decomposing_variant' field.
36453         * lib/uninorm/decomposing-form.c: New file.
36454         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36455         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36456         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36457         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36458         * modules/uninorm/decomposing-form: New file.
36459         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36460         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36461
36462 2009-03-07  Bruno Haible  <bruno@clisp.org>
36463
36464         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36465         strings.
36466
36467 2009-03-06  Bruno Haible  <bruno@clisp.org>
36468
36469         Tests for module 'uninorm/u32-normcmp'.
36470         * tests/uninorm/test-u32-normcmp.c: New file.
36471         * modules/uninorm/u32-normcmp-tests: New file.
36472
36473         Tests for module 'uninorm/u16-normcmp'.
36474         * tests/uninorm/test-u16-normcmp.c: New file.
36475         * modules/uninorm/u16-normcmp-tests: New file.
36476
36477         Tests for module 'uninorm/u8-normcmp'.
36478         * tests/uninorm/test-u8-normcmp.c: New file.
36479         * modules/uninorm/u8-normcmp-tests: New file.
36480
36481         New module 'uninorm/u32-normcmp'.
36482         * lib/uninorm/u32-normcmp.c: New file.
36483         * modules/uninorm/u32-normcmp: New file.
36484
36485         New module 'uninorm/u16-normcmp'.
36486         * lib/uninorm/u16-normcmp.c: New file.
36487         * modules/uninorm/u16-normcmp: New file.
36488
36489         New module 'uninorm/u8-normcmp'.
36490         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36491         declarations.
36492         * lib/uninorm/u8-normcmp.c: New file.
36493         * lib/uninorm/u-normcmp.h: New file.
36494         * modules/uninorm/u8-normcmp: New file.
36495
36496 2009-03-06  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36499         Reported by Eric Blake.
36500
36501 2009-03-06  Eric Blake  <ebb9@byu.net>
36502             Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36505         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36506         condition.
36507         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36508         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36509         condition.
36510         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36511
36512 2009-03-06  Eric Blake  <ebb9@byu.net>
36513
36514         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36515         to avoid compiler warnings.
36516         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36517
36518 2009-03-05  Bruno Haible  <bruno@clisp.org>
36519
36520         * tests/test-ftell.c (main): Disable test beyond end of file on
36521         FreeMiNT.
36522         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36523
36524 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36525
36526         * lib/filevercmp.c: Move hidden files up in ordering.
36527         * tests/test-filevercmp.c: Add tests for hidden files.
36528
36529 2009-03-04  Bruno Haible  <bruno@clisp.org>
36530
36531         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36532         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36533         AM_CFLAGS.
36534         Reported by Simon Josefsson.
36535
36536 2009-03-03  Bruno Haible  <bruno@clisp.org>
36537
36538         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36539         Reported by Simon Josefsson.
36540
36541         * doc/ld-version-script.texi: Update node reference.
36542
36543 2009-03-03  Bruno Haible  <bruno@clisp.org>
36544
36545         * modules/visibility (License): Change to 'unlimited'.
36546         Suggested by Simon Josefsson.
36547
36548 2009-03-03  Jim Meyering  <meyering@redhat.com>
36549
36550         unlinkdir: cannot_unlink_dir may modify process state
36551         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36552         it's neither thread-safe nor appropriate for use in a library.
36553
36554 2009-03-03  Eric Blake  <ebb9@byu.net>
36555
36556         test-closein: silence test under Darwin
36557         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36558         care if it dies from EPIPE or EBADF.
36559
36560 2009-03-03  Bruno Haible  <bruno@clisp.org>
36561
36562         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36563         earlier.
36564         * doc/visibility.texi: Fix @node and @section.
36565
36566 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36567
36568         * doc/gnulib.texi: Link to sections for ld version script and
36569         visibility.
36570         * doc/visibility.texi: Add @node and @section.
36571         * modules/ld-version-script: New module.
36572         * m4/ld-version-script.m4: New file.
36573         * doc/ld-version-script.texi: New file.
36574
36575 2009-03-02  David Lutterkort  <lutter@redhat.com>
36576
36577         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36579
36580 2009-03-02  Bruno Haible  <bruno@clisp.org>
36581
36582         * doc/visibility.texi: Mention libtool's -export-symbols option.
36583
36584 2009-03-02  Jim Meyering  <meyering@redhat.com>
36585
36586         announce-gen: new option: --no-print-checksums
36587         * build-aux/announce-gen (usage): Describe it.
36588         (print_checksums): Print a newline here, not in the [*] footnote.
36589         (main): Honor it.
36590
36591 2009-03-01  Bruno Haible  <bruno@clisp.org>
36592
36593         Use socklen_t in the native Windows replacements prototypes.
36594         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36595         instead of 'int'.
36596         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36597         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36598         * modules/getsockopt (Depends-on): Add socklen.
36599         * modules/setsockopt (Depends-on): Add socklen.
36600
36601 2009-03-01  Bruno Haible  <bruno@clisp.org>
36602
36603         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36604         least 4.2.
36605
36606 2009-03-01  Eric Blake  <ebb9@byu.net>
36607             Bruno Haible  <bruno@clisp.org>
36608
36609         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36610         error messages.
36611         * lib/wait-process.c (wait_subprocess): Omit error message about
36612         deadly signal sent to the child of termsigp != NULL.
36613
36614 2009-03-01  Eric Blake  <ebb9@byu.net>
36615
36616         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36617
36618 2009-03-01  Bruno Haible  <bruno@clisp.org>
36619
36620         Avoid a gcc warning.
36621         * tests/test-sched.c (b): Make global.
36622         Reported by Eric Blake.
36623
36624 2009-01-19  Martin Lambers  <marlam@marlam.de>
36625
36626         Provide POSIX semantics for socket timeout options on W32.
36627         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36628         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36629         * modules/setsockopt: Depend on sys_time module for struct timeval.
36630         * modules/getsockopt: Depend on sys_time module for struct timeval.
36631
36632 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36633
36634         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36635         __USE_GNU, for consistency with netdb.in.h.
36636         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36637
36638 2009-03-01  Bruno Haible  <bruno@clisp.org>
36639
36640         More support for FreeMiNT.
36641         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36642         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36643
36644 2009-03-01  Bruno Haible  <bruno@clisp.org>
36645
36646         More support for FreeMiNT.
36647         * lib/fpurge.c (fpurge): Correct last commit.
36648         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36649
36650 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36651
36652         Fix unportable awk script in vc-list-files.
36653         * build-aux/vc-list-files: In the replacement awk script, use
36654         substr with a second argument of 1, not zero.
36655         Report by Simon Josefsson.
36656
36657 2009-02-28  Bruno Haible  <bruno@clisp.org>
36658
36659         More support for FreeMiNT.
36660         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36661         to FreeMiNT today.
36662         * lib/fwriting.c (fwriting): Likewise.
36663         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36664
36665 2009-02-28  Bruno Haible  <bruno@clisp.org>
36666
36667         * tests/test-freadseek.c (main): Disable test beyond end of file on
36668         FreeMiNT.
36669         * tests/test-ftello.c (main): Likewise.
36670         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36671
36672 2009-02-28  Bruno Haible  <bruno@clisp.org>
36673
36674         Add tentative support for FreeMiNT.
36675         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36676         * lib/fpurge.c (fpurge): Likewise.
36677         * lib/freadable.c (freadable): Likewise.
36678         * lib/freading.c (freading): Likewise.
36679         * lib/freadptr.c (freadptr): Likewise.
36680         * lib/freadseek.c (freadptrinc): Likewise.
36681         * lib/fseeko.c (rpl_fseeko): Likewise.
36682         * lib/fseterr.c (fseterr): Likewise.
36683         * lib/fwritable.c (fwritable): Likewise.
36684         * lib/fwriting.c (fwriting): Likewise.
36685         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36686         Hourihane.
36687         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36688
36689 2009-02-28  Bruno Haible  <bruno@clisp.org>
36690
36691         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36692         SIGCHLD.
36693         Reported by Jim Meyering.
36694
36695 2009-02-28  Bruno Haible  <bruno@clisp.org>
36696
36697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36698         Mention the results of these tests on various platforms.
36699         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36700         order.
36701         * doc/posix-functions/printf.texi: Likewise.
36702         * doc/posix-functions/snprintf.texi: Likewise.
36703         * doc/posix-functions/sprintf.texi: Likewise.
36704         * doc/posix-functions/vfprintf.texi: Likewise.
36705         * doc/posix-functions/vprintf.texi: Likewise.
36706         * doc/posix-functions/vsnprintf.texi: Likewise.
36707         * doc/posix-functions/vsprintf.texi: Likewise.
36708         * doc/glibc-functions/obstack_printf.texi: Likewise.
36709         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36710
36711 2009-02-28  Bruno Haible  <bruno@clisp.org>
36712
36713         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36714         Reported by Loïc Minier <lool@dooz.org>.
36715
36716 2009-02-27  Bruno Haible  <bruno@clisp.org>
36717
36718         * gnulib-tool (func_import): Make the sed expression used to create the
36719         sed script for updating the .gitignore file POSIX compliant.
36720         Reported by Eric Blake.
36721
36722 2009-02-27  Bruno Haible  <bruno@clisp.org>
36723
36724         * gnulib-tool (sed): Don't alias as "sed --posix".
36725         Reported by Eric Blake.
36726
36727 2009-02-27  Bruno Haible  <bruno@clisp.org>
36728
36729         Avoid test link errors.
36730         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36731         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36732         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36733         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36735
36736 2009-02-27  Bruno Haible  <bruno@clisp.org>
36737
36738         Avoid spurious "(cached)" in configure output.
36739         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36740         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36742         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36743         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36744         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36746         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36747         Reported by Eric Blake.
36748
36749 2009-02-27  Eric Blake  <ebb9@byu.net>
36750
36751         printf: fix regression in previous patch
36752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36753
36754 2009-02-27  Bruno Haible  <bruno@clisp.org>
36755
36756         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36757         value.
36758         * lib/stdint.in.h: Likewise.
36759         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36760
36761 2009-02-27  Eric Blake  <ebb9@byu.net>
36762
36763         doc: mention more functions added in cygwin 1.7.0
36764         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36765         addition.
36766         * doc/posix-functions/open_wmemstream.texi: Likewise.
36767         * doc/posix-functions/wcsnlen.texi: Likewise.
36768         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36769         * doc/posix-functions/wcstod.texi: Likewise.
36770         * doc/posix-functions/wcstof.texi: Likewise.
36771         * doc/posix-functions/wcstoimax.texi: Likewise.
36772         * doc/posix-functions/wcstok.texi: Likewise.
36773         * doc/posix-functions/wcstoumax.texi: Likewise.
36774
36775         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36777         * doc/posix-functions/fprintf.texi: Update.
36778         * doc/posix-functions/printf.texi: Update.
36779         * doc/posix-functions/snprintf.texi: Update.
36780         * doc/posix-functions/sprintf.texi: Update.
36781         * doc/posix-functions/vfprintf.texi: Update.
36782         * doc/posix-functions/vprintf.texi: Update.
36783         * doc/posix-functions/vsnprintf.texi: Update.
36784         * doc/posix-functions/vsprintf.texi: Update.
36785         * doc/glibc-functions/obstack_printf.texi: Update.
36786         * doc/glibc-functions/obstack_vprintf.texi: Update.
36787
36788 2009-02-26  Eric Blake  <ebb9@byu.net>
36789
36790         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36791         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36792         compilation bug by using runtime conversion.
36793         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36794         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36795         * modules/ceill-tests (Files): Use nan.h.
36796         * modules/floorl-tests (Files): Likewise.
36797         * modules/frexpl-tests (Files): Likewise.
36798         * modules/isnanl-tests (Files): Likewise.
36799         * modules/ldexpl-tests (Files): Likewise.
36800         * modules/roundl-tests (Files): Likewise.
36801         * modules/truncl-tests (Files): Likewise.
36802         * tests/test-ceill.c (main): Use a working NaN.
36803         * tests/test-floorl.c (main): Likewise.
36804         * tests/test-frexpl.c (main): Likewise.
36805         * tests/test-isnan.c (test_long_double): Likewise.
36806         * tests/test-isnanl.h (main): Likewise.
36807         * tests/test-ldexpl.h (main): Likewise.
36808         * tests/test-roundl.h (main): Likewise.
36809         * tests/test-truncl.h (main): Likewise.
36810         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36811
36812 2009-02-26  Eric Blake  <ebb9@byu.net>
36813             Bruno Haible  <bruno@clisp.org>
36814
36815         Work around a *printf bug with %ls on Solaris.
36816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36817         precision is specified, sprintf stops converting the wide string
36818         argument when the number of bytes that have been produced by this
36819         conversion equals or exceeds the precision.
36820         * doc/posix-functions/fprintf.texi: Update.
36821         * doc/posix-functions/printf.texi: Update.
36822         * doc/posix-functions/snprintf.texi: Update.
36823         * doc/posix-functions/sprintf.texi: Update.
36824         * doc/posix-functions/vfprintf.texi: Update.
36825         * doc/posix-functions/vprintf.texi: Update.
36826         * doc/posix-functions/vsnprintf.texi: Update.
36827         * doc/posix-functions/vsprintf.texi: Update.
36828         * doc/glibc-functions/obstack_printf.texi: Update.
36829         * doc/glibc-functions/obstack_vprintf.texi: Update.
36830
36831 2009-02-26  Eric Blake  <ebb9@byu.net>
36832
36833         stdlib: favor compiler check of random.h
36834         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36835         to avoid an ObjC random.h installed by Swarm.
36836
36837 2009-02-26  Bruno Haible  <bruno@clisp.org>
36838
36839         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36840         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36841         Reported by Gary V. Vaughan <gary@gnu.org>.
36842
36843 2009-02-26  Bruno Haible  <bruno@clisp.org>
36844
36845         Fix *printf behaviour regarding the %ls directive.
36846         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36847         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36848         NEED_PRINTF_DIRECTIVE_LS.
36849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36850         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36852         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36853         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36854         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36855         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36860         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36861         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36864         * doc/posix-functions/fprintf.texi: Update.
36865         * doc/posix-functions/printf.texi: Update.
36866         * doc/posix-functions/snprintf.texi: Update.
36867         * doc/posix-functions/sprintf.texi: Update.
36868         * doc/posix-functions/vfprintf.texi: Update.
36869         * doc/posix-functions/vprintf.texi: Update.
36870         * doc/posix-functions/vsnprintf.texi: Update.
36871         * doc/posix-functions/vsprintf.texi: Update.
36872         * doc/glibc-functions/obstack_printf.texi: Update.
36873         * doc/glibc-functions/obstack_vprintf.texi: Update.
36874         Reported by Eric Blake.
36875
36876 2009-02-25  Bruno Haible  <bruno@clisp.org>
36877
36878         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36879         with known value.
36880         Reported by Gary V. Vaughan <gary@gnu.org>.
36881
36882 2009-02-25  Bruno Haible  <bruno@clisp.org>
36883
36884         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36885         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36886         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36887         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36888         Reported by Gary V. Vaughan <gary@gnu.org>.
36889
36890 2009-02-25  Bruno Haible  <bruno@clisp.org>
36891
36892         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36893         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36894         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36895         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36896         Reported by Gary V. Vaughan <gary@gnu.org>.
36897
36898 2009-02-25  Eric Blake  <ebb9@byu.net>
36899
36900         tests: skip fseek/ftell tests if ungetc is broken
36901         * m4/ungetc.m4: New file.
36902         * modules/fseek-tests: Split test, so ungetc dependency is
36903         separate from rest of test.
36904         * modules/fseeko-tests: Likewise.
36905         * modules/ftell-tests: Likewise.
36906         * modules/ftello-tests: Likewise.
36907         * tests/test-fseek.c (main): Isolate ungetc dependency.
36908         * tests/test-fseeko.c (main): Likewise.
36909         * tests/test-ftell.c (main): Likewise.
36910         * tests/test-ftello.c (main): Likewise.
36911         * tests/test-fseek2.sh: New file.
36912         * tests/test-fseeko2.sh: Likewise.
36913         * tests/test-ftell2.sh: Likewise.
36914         * tests/test-ftello2.sh: Likewise.
36915
36916 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36917
36918         test-getaddrinfo: fix usage of skip return code 77
36919         * tests/test-gettaddrinfo.c: Return skip code 77 only
36920         for first occurance of skip (4x77 is not 77)
36921
36922 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36923
36924         strtod: avoid C99 decl-after-statement
36925         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36926
36927 2009-02-24  Eric Blake  <ebb9@byu.net>
36928
36929         strtod: detect HP-UX 11.31 bug
36930         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36931         Reported by Gary V. Vaughan.
36932
36933 2009-02-23  Bruno Haible  <bruno@clisp.org>
36934
36935         Fix invalid read past end of memory block.
36936         * lib/vasnprintf.c (DCHAR_SET): Define.
36937         (local_wcslen): Define only when needed.
36938         (local_strnlen, local_wcsnlen): New functions.
36939         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36940         directives that involve a conversion ourselves.
36941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36942         wcsnlen, mbrtowc, wcrtomb.
36943         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36944         * tests/test-vasprintf-posix.c (test_function): Likewise.
36945         * tests/test-snprintf-posix.h (test_function): Likewise.
36946         * tests/test-sprintf-posix.h (test_function): Likewise.
36947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36948
36949 2009-02-22  Bruno Haible  <bruno@clisp.org>
36950
36951         Implement new clarified decomposition of Hangul syllables.
36952         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36953         of type LTV, return only a pairwise decomposition.
36954         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36955         Likewise.
36956         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36957         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36958         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36959
36960 2009-02-22  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36963         zero-length results and shrink excess allocated memory.
36964         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36965         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36966         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36967         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36968         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36969         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36970         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36971         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36972         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36973         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36974         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36975         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36976
36977 2009-02-21  Bruno Haible  <bruno@clisp.org>
36978
36979         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36980         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36981         spaces after a period. Put a space between a macro name and its
36982         argument list. Trivial rewordings.
36983         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36984         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36985         (main): Return 0 explicitly.
36986
36987 2009-02-21  Bruno Haible  <bruno@clisp.org>
36988
36989         Tests for module 'uninorm/filter'.
36990         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36991         * modules/uninorm/filter-tests: New file.
36992
36993         New module 'uninorm/filter'.
36994         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36995         uninorm_filter_flush, uninorm_filter_free): New declarations.
36996         * lib/uninorm/uninorm-filter.c: New file.
36997         * modules/uninorm/filter: New file.
36998
36999 2009-02-21  Bruno Haible  <bruno@clisp.org>
37000
37001         Tests for module 'uninorm/nfkc'.
37002         * tests/uninorm/test-nfkc.c: New file.
37003         * tests/uninorm/test-u8-nfkc.c: New file.
37004         * tests/uninorm/test-u16-nfkc.c: New file.
37005         * tests/uninorm/test-u32-nfkc.c: New file.
37006         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37007         * tests/uninorm/test-u32-nfkc-big.c: New file.
37008         * modules/uninorm/nfkc-tests: New file.
37009
37010         New module 'uninorm/nfkc'.
37011         * lib/uninorm/nfkc.c: New file.
37012         * modules/uninorm/nfkc: New file.
37013
37014         Tests for module 'uninorm/nfkd'.
37015         * tests/uninorm/test-nfkd.c: New file.
37016         * tests/uninorm/test-u8-nfkd.c: New file.
37017         * tests/uninorm/test-u16-nfkd.c: New file.
37018         * tests/uninorm/test-u32-nfkd.c: New file.
37019         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37020         * tests/uninorm/test-u32-nfkd-big.c: New file.
37021         * modules/uninorm/nfkd-tests: New file.
37022
37023         New module 'uninorm/nfkd'.
37024         * lib/uninorm/nfkd.c: New file.
37025         * modules/uninorm/nfkd: New file.
37026
37027         Tests for module 'uninorm/nfc'.
37028         * tests/uninorm/test-nfc.c: New file.
37029         * tests/uninorm/test-u8-nfc.c: New file.
37030         * tests/uninorm/test-u16-nfc.c: New file.
37031         * tests/uninorm/test-u32-nfc.c: New file.
37032         * tests/uninorm/test-u32-nfc-big.sh: New file.
37033         * tests/uninorm/test-u32-nfc-big.c: New file.
37034         * modules/uninorm/nfc-tests: New file.
37035
37036         New module 'uninorm/nfc'.
37037         * lib/uninorm/nfc.c: New file.
37038         * modules/uninorm/nfc: New file.
37039
37040         Tests for module 'uninorm/nfd'.
37041         * tests/uninorm/test-nfd.c: New file.
37042         * tests/uninorm/test-u8-nfd.c: New file.
37043         * tests/uninorm/test-u16-nfd.c: New file.
37044         * tests/uninorm/test-u32-nfd.c: New file.
37045         * tests/uninorm/test-u32-nfd-big.sh: New file.
37046         * tests/uninorm/test-u32-nfd-big.c: New file.
37047         * tests/uninorm/test-u32-normalize-big.h: New file.
37048         * tests/uninorm/test-u32-normalize-big.c: New file.
37049         * tests/uninorm/NormalizationTest.txt: New file, created from
37050         Unicode 5.1.0 NormalizationTest.txt.
37051         * modules/uninorm/nfd-tests: New file.
37052
37053         New module 'uninorm/nfd'.
37054         * lib/uninorm/nfd.c: New file.
37055         * modules/uninorm/nfd: New file.
37056
37057         New module 'uninorm/u32-normalize'.
37058         * lib/uninorm/u32-normalize.c: New file.
37059         * modules/uninorm/u32-normalize: New file.
37060
37061         New module 'uninorm/u16-normalize'.
37062         * lib/uninorm/u16-normalize.c: New file.
37063         * modules/uninorm/u16-normalize: New file.
37064
37065         New module 'uninorm/u8-normalize'.
37066         * lib/uninorm/u8-normalize.c: New file.
37067         * lib/uninorm/normalize-internal.h: New file.
37068         * lib/uninorm/u-normalize-internal.h: New file.
37069         * modules/uninorm/u8-normalize: New file.
37070
37071         New module 'uninorm/decompose-internal'.
37072         * lib/uninorm/decompose-internal.c: New file.
37073         * modules/uninorm/decompose-internal: New file.
37074
37075         Tests for module 'uninorm/composition'.
37076         * tests/uninorm/test-composition.c: New file.
37077         * modules/uninorm/composition-tests: New file.
37078
37079         New module 'uninorm/composition'.
37080         * lib/uninorm/composition.c: New file.
37081         * lib/uninorm/composition-table.gperf: New file, generated by
37082         gen-uni-tables.
37083         * modules/uninorm/composition: New file.
37084
37085         Tests for module 'uninorm/compat-decomposition'.
37086         * tests/uninorm/test-compat-decomposition.c: New file.
37087         * modules/uninorm/compat-decomposition-tests: New file.
37088
37089         New module 'uninorm/compat-decomposition'.
37090         * lib/uninorm/decompose-internal.h: New file.
37091         * lib/uninorm/compat-decomposition.c: New file.
37092         * modules/uninorm/compat-decomposition: New file.
37093
37094         Tests for module 'uninorm/canonical-decomposition'.
37095         * tests/uninorm/test-canonical-decomposition.c: New file.
37096         * modules/uninorm/canonical-decomposition-tests: New file.
37097
37098         New module 'uninorm/canonical-decomposition'.
37099         * lib/uninorm/canonical-decomposition.c: New file.
37100         * modules/uninorm/canonical-decomposition: New file.
37101
37102         Tests for module 'uninorm/decomposition'.
37103         * tests/uninorm/test-decomposition.c: New file.
37104         * modules/uninorm/decomposition-tests: New file.
37105
37106         New module 'uninorm/decomposition'.
37107         * lib/uninorm/decomposition.c: New file.
37108         * modules/uninorm/decomposition: New file.
37109
37110         New module 'uninorm/decomposition-table'.
37111         * lib/uninorm/decomposition-table.h: New file.
37112         * lib/uninorm/decomposition-table.c: New file.
37113         * lib/uninorm/decomposition-table1.h: New file, generated by
37114         gen-uni-tables.
37115         * lib/uninorm/decomposition-table2.h: New file, generated by
37116         gen-uni-tables.
37117         * modules/uninorm/decomposition-table: New file.
37118
37119         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37120         (UC_DECOMP_*): New enumeration items.
37121         (get_decomposition): New function.
37122         (struct decomp_table): New type.
37123         (output_decomposition, output_decomposition_tables): New functions.
37124         (unicode_composition_exclusions): New variable.
37125         (fill_composition_exclusions, debug_output_composition_tables): New
37126         functions.
37127         (main): Accept one more argument. Invoke fill_composition_exclusions.
37128         Output decomposition and composition tables.
37129
37130         New module 'uninorm/base'.
37131         * lib/uninorm.h: New file.
37132         * lib/unictype.h: Update comment.
37133         * modules/uninorm/base: New file.
37134
37135 2009-02-21  David Lutterkort  <lutter@redhat.com>
37136
37137         Tests for module 'safe-alloc'.
37138         * tests/test-safe-alloc.c: New file.
37139         * modules/safe-alloc-tests: New file.
37140
37141         New module 'safe-alloc'.
37142         * lib/safe-alloc.h: New file.
37143         * lib/safe-alloc.c: New file.
37144         * m4/safe-alloc.m4: New file.
37145         * modules/safe-alloc: New file.
37146         * doc/safe-alloc.texi: New file.
37147         * doc/gnulib.texi: Include it.
37148         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37149         safe-alloc.
37150
37151 2009-02-18  Bruno Haible  <bruno@clisp.org>
37152
37153         Fix link error on non-glibc systems.
37154         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37155         variable.
37156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37157
37158 2009-02-18  Jim Meyering  <meyering@redhat.com>
37159
37160         fts: avoid used-uninitialized error due to recent change
37161         * lib/fts.c (fts_read): Guard uses of the new member,
37162         parent->fts_n_dirs_remaining, since it's not relevant for
37163         the parent of a directory specified on the command-line.
37164
37165 2009-02-17  James Youngman  <jay@gnu.org>
37166             Bruno Haible  <bruno@clisp.org>
37167
37168         * m4/include_next.m4: Reformulate comment.
37169
37170 2009-02-16  Jim Meyering  <meyering@redhat.com>
37171
37172         fts: add #if guards so that the fts_lgpl module still builds
37173         * lib/fts.c: Guard just-added hash-table-using parts with
37174         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37175         Reported by Simon Josefsson.
37176
37177 2009-02-15  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/array-mergesort-tests: New file.
37180         * tests/test-array-mergesort.c: New file.
37181
37182         New module 'array-mergesort'.
37183         * modules/array-mergesort: New file.
37184         * lib/array-mergesort.h: New file.
37185
37186 2009-02-15  Bruno Haible  <bruno@clisp.org>
37187
37188         Fix 2009-02-07 commit.
37189         * lib/gen-uni-tables.c (output_predicate, output_category,
37190         output_combclass, output_bidi_category, output_decimal_digit,
37191         output_digit, output_numeric, output_mirror, output_scripts,
37192         output_ident_category, output_simple_mapping): Fix format directives.
37193         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37194
37195 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37196
37197         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37198         fixes are available from IBM.
37199
37200 2009-02-13  Jim Meyering  <meyering@redhat.com>
37201
37202         fts: arrange not to stat non-directories in more cases
37203         This makes GNU find (when it doesn't need to stat each file)
37204         *much* more efficient at traversing reiserfs file systems.
37205         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37206         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37207         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37208         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37209         (leaf_optimization_applies): New function.
37210         (LCO_hash, LCO_compare): New helper functions.
37211         (link_count_optimize_ok): New function.
37212         (fts_stat): Initialize new member (if dir).
37213         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37214         we've just stat'ed a directory.  Skip the stat call when possible.
37215         ---
37216         Note this AFS-related exchange:
37217         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37218         and note find's pioctl call in find/fstype.c.
37219         But that is necessary only if you want to enable the
37220         optimization for AFS, and for now, I don't.
37221
37222         fts: move a function definition "up" (no semantic change)
37223         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37224         "up" to precede upcoming use of a related function.
37225
37226 2009-02-11  Jim Meyering  <meyering@redhat.com>
37227
37228         fts: correct internal computation of nlinks (optimization-related)
37229         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37230         whether the current entry is a directory, so don't test it.
37231
37232 2009-02-10  Bruno Haible  <bruno@clisp.org>
37233
37234         Tests for module 'uniwbrk/ulc-wordbreaks'.
37235         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37236         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37237         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37238
37239         Tests for module 'uniwbrk/u32-wordbreaks'.
37240         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37241         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37242
37243         Tests for module 'uniwbrk/u16-wordbreaks'.
37244         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37245         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37246
37247         Tests for module 'uniwbrk/u8-wordbreaks'.
37248         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37249         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37250
37251 2009-02-10  Bruno Haible  <bruno@clisp.org>
37252
37253         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37254         property.
37255         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37256         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37257         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37258
37259 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37260
37261         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37262         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37263
37264 2009-02-10  Bruno Haible  <bruno@clisp.org>
37265
37266         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37267         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37268         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37269         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37270         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37271         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37272
37273 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37274
37275         * lib/sockets.h (gl_fd_to_handle): New function.
37276
37277         * tests/test-sockets.c: Call gl_fd_to_handle.
37278
37279 2009-02-09  Bruno Haible  <bruno@clisp.org>
37280
37281         * doc/havelib.texi: Document the conventions on bi-arch systems.
37282
37283 2009-02-08  Bruno Haible  <bruno@clisp.org>
37284
37285         Document the AC_LIB_LINKFLAGS macro.
37286         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37287         * doc/gnulib.texi: Include it.
37288
37289 2009-02-08  Bruno Haible  <bruno@clisp.org>
37290
37291         Fix wrong order of sections, compared to TOC.
37292         * doc/gnulib.texi: Include relocatable-maint.texi after the
37293         "Regular expressions" node, not before.
37294
37295 2009-02-08  Bruno Haible  <bruno@clisp.org>
37296
37297         Tests for module 'unicase/totitle'.
37298         * modules/unicase/totitle-tests: New file.
37299
37300         Tests for module 'unicase/tolower'.
37301         * modules/unicase/tolower-tests: New file.
37302
37303         Tests for module 'unicase/toupper'.
37304         * modules/unicase/toupper-tests: New file.
37305         * tests/unicase/test-mapping-part1.h: New file.
37306         * tests/unicase/test-mapping-part2.h: New file.
37307
37308         New module 'unicase/totitle'.
37309         * modules/unicase/totitle: New file.
37310         * lib/unicase/totitle.c: New file.
37311
37312         New module 'unicase/tolower'.
37313         * modules/unicase/tolower: New file.
37314         * lib/unicase/tolower.c: New file.
37315
37316         New module 'unicase/toupper'.
37317         * modules/unicase/toupper: New file.
37318         * lib/unicase/toupper.c: New file.
37319         * lib/unicase/simple-mapping.h: New file.
37320
37321         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37322         (mapping_table): New structure.
37323         (output_simple_mapping): New function.
37324         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37325         * modules/gen-uni-tables (Description): Update.
37326         * lib/unicase/toupper.h: New file, automatically generated by
37327         gen-uni-tables.
37328         * lib/unicase/tolower.h: New file, automatically generated by
37329         gen-uni-tables.
37330         * lib/unicase/totitle.h: New file, automatically generated by
37331         gen-uni-tables.
37332         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37333         gen-uni-tables.
37334         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37335         gen-uni-tables.
37336         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37337         gen-uni-tables.
37338
37339         New module 'unicase/base'.
37340         * modules/unicase/base: New file.
37341         * lib/unicase.h: New file.
37342
37343 2009-02-08  Bruno Haible  <bruno@clisp.org>
37344
37345         New module 'uniwbrk/ulc-wordbreaks'.
37346         * modules/uniwbrk/ulc-wordbreaks: New file.
37347         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37348
37349         New module 'uniwbrk/u32-wordbreaks'.
37350         * modules/uniwbrk/u32-wordbreaks: New file.
37351         * lib/uniwbrk/u32-wordbreaks.c: New file.
37352
37353         New module 'uniwbrk/u16-wordbreaks'.
37354         * modules/uniwbrk/u16-wordbreaks: New file.
37355         * lib/uniwbrk/u16-wordbreaks.c: New file.
37356
37357         New module 'uniwbrk/u8-wordbreaks'.
37358         * modules/uniwbrk/u8-wordbreaks: New file.
37359         * lib/uniwbrk/u8-wordbreaks.c: New file.
37360         * lib/uniwbrk/u-wordbreaks.h: New file.
37361
37362         New module 'uniwbrk/table'.
37363         * modules/uniwbrk/table: New file.
37364         * lib/uniwbrk/wbrktable.h: New file.
37365         * lib/uniwbrk/wbrktable.c: New file.
37366
37367         New module 'uniwbrk/wordbreak-property'.
37368         * modules/uniwbrk/wordbreak-property: New file.
37369         * lib/uniwbrk/wordbreak-property.c: New file.
37370
37371         * lib/gen-uni-tables.c (WBP_*): New enum items.
37372         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37373         (unicode_org_wbp): New variable.
37374         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37375         New functions.
37376         (wbp_table): New structure.
37377         (output_wbp, output_wbrk_tables): New functions.
37378         (main): Accept additional argument. Invoke fill_org_wbp,
37379         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37380         output_wbrk_tables.
37381         * modules/gen-uni-tables (Description): Update.
37382         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37383         gen-uni-tables.
37384
37385         New module 'uniwbrk/base'.
37386         * modules/uniwbrk/base: New file.
37387         * lib/uniwbrk.h: New file.
37388
37389 2009-02-08  Bruno Haible  <bruno@clisp.org>
37390
37391         Update to Unicode 5.1.0.
37392         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37393         U+2185..U+2188.
37394         (is_property_default_ignorable_code_point): Don't include characters
37395         of category Cc or Cs and not-a-characters.
37396         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37397         U+0D79, U+109E, U+109F, U+A60C.
37398         * lib/unictype/bidi_of.h: Regenerated.
37399         * lib/unictype/blocks.h: Regenerated.
37400         * lib/unictype/categ_C.h: Regenerated.
37401         * lib/unictype/categ_Cf.h: Regenerated.
37402         * lib/unictype/categ_Cn.h: Regenerated.
37403         * lib/unictype/categ_L.h: Regenerated.
37404         * lib/unictype/categ_Ll.h: Regenerated.
37405         * lib/unictype/categ_Lm.h: Regenerated.
37406         * lib/unictype/categ_Lo.h: Regenerated.
37407         * lib/unictype/categ_Lu.h: Regenerated.
37408         * lib/unictype/categ_M.h: Regenerated.
37409         * lib/unictype/categ_Mc.h: Regenerated.
37410         * lib/unictype/categ_Me.h: Regenerated.
37411         * lib/unictype/categ_Mn.h: Regenerated.
37412         * lib/unictype/categ_N.h: Regenerated.
37413         * lib/unictype/categ_Nd.h: Regenerated.
37414         * lib/unictype/categ_Nl.h: Regenerated.
37415         * lib/unictype/categ_No.h: Regenerated.
37416         * lib/unictype/categ_P.h: Regenerated.
37417         * lib/unictype/categ_Pd.h: Regenerated.
37418         * lib/unictype/categ_Pe.h: Regenerated.
37419         * lib/unictype/categ_Pf.h: Regenerated.
37420         * lib/unictype/categ_Pi.h: Regenerated.
37421         * lib/unictype/categ_Po.h: Regenerated.
37422         * lib/unictype/categ_Ps.h: Regenerated.
37423         * lib/unictype/categ_S.h: Regenerated.
37424         * lib/unictype/categ_Sk.h: Regenerated.
37425         * lib/unictype/categ_Sm.h: Regenerated.
37426         * lib/unictype/categ_So.h: Regenerated.
37427         * lib/unictype/categ_of.h: Regenerated.
37428         * lib/unictype/combining.h: Regenerated.
37429         * lib/unictype/ctype_alnum.h: Regenerated.
37430         * lib/unictype/ctype_alpha.h: Regenerated.
37431         * lib/unictype/ctype_graph.h: Regenerated.
37432         * lib/unictype/ctype_lower.h: Regenerated.
37433         * lib/unictype/ctype_print.h: Regenerated.
37434         * lib/unictype/ctype_punct.h: Regenerated.
37435         * lib/unictype/ctype_upper.h: Regenerated.
37436         * lib/unictype/decdigit.h: Regenerated.
37437         * lib/unictype/digit.h: Regenerated.
37438         * lib/unictype/mirror.h: Regenerated.
37439         * lib/unictype/numeric.h: Regenerated.
37440         * lib/unictype/pr_alphabetic.h: Regenerated.
37441         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37442         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37443         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37444         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37445         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37446         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37447         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37448         * lib/unictype/pr_combining.h: Regenerated.
37449         * lib/unictype/pr_dash.h: Regenerated.
37450         * lib/unictype/pr_decimal_digit.h: Regenerated.
37451         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37452         * lib/unictype/pr_deprecated.h: Regenerated.
37453         * lib/unictype/pr_diacritic.h: Regenerated.
37454         * lib/unictype/pr_extender.h: Regenerated.
37455         * lib/unictype/pr_format_control.h: Regenerated.
37456         * lib/unictype/pr_grapheme_base.h: Regenerated.
37457         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37458         * lib/unictype/pr_grapheme_link.h: Regenerated.
37459         * lib/unictype/pr_id_continue.h: Regenerated.
37460         * lib/unictype/pr_id_start.h: Regenerated.
37461         * lib/unictype/pr_ideographic.h: Regenerated.
37462         * lib/unictype/pr_ignorable_control.h: Regenerated.
37463         * lib/unictype/pr_lowercase.h: Regenerated.
37464         * lib/unictype/pr_math.h: Regenerated.
37465         * lib/unictype/pr_numeric.h: Regenerated.
37466         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37467         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37468         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37469         * lib/unictype/pr_other_id_continue.h: Regenerated.
37470         * lib/unictype/pr_other_lowercase.h: Regenerated.
37471         * lib/unictype/pr_other_math.h: Regenerated.
37472         * lib/unictype/pr_punctuation.h: Regenerated.
37473         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37474         * lib/unictype/pr_soft_dotted.h: Regenerated.
37475         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37476         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37477         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37478         * lib/unictype/pr_uppercase.h: Regenerated.
37479         * lib/unictype/pr_xid_continue.h: Regenerated.
37480         * lib/unictype/pr_xid_start.h: Regenerated.
37481         * lib/unictype/pr_zero_width.h: Regenerated.
37482         * lib/unictype/scripts.h: Regenerated.
37483         * lib/unictype/scripts_byname.gperf: Regenerated.
37484         * lib/unictype/sy_java_ident.h: Regenerated.
37485         * lib/unilbrk/lbrkprop1.h: Regenerated.
37486         * lib/unilbrk/lbrkprop2.h: Regenerated.
37487         * tests/unictype/test-categ_C.c: Regenerated.
37488         * tests/unictype/test-categ_Cf.c: Regenerated.
37489         * tests/unictype/test-categ_Cn.c: Regenerated.
37490         * tests/unictype/test-categ_L.c: Regenerated.
37491         * tests/unictype/test-categ_Ll.c: Regenerated.
37492         * tests/unictype/test-categ_Lm.c: Regenerated.
37493         * tests/unictype/test-categ_Lo.c: Regenerated.
37494         * tests/unictype/test-categ_Lu.c: Regenerated.
37495         * tests/unictype/test-categ_M.c: Regenerated.
37496         * tests/unictype/test-categ_Mc.c: Regenerated.
37497         * tests/unictype/test-categ_Me.c: Regenerated.
37498         * tests/unictype/test-categ_Mn.c: Regenerated.
37499         * tests/unictype/test-categ_N.c: Regenerated.
37500         * tests/unictype/test-categ_Nd.c: Regenerated.
37501         * tests/unictype/test-categ_Nl.c: Regenerated.
37502         * tests/unictype/test-categ_No.c: Regenerated.
37503         * tests/unictype/test-categ_P.c: Regenerated.
37504         * tests/unictype/test-categ_Pd.c: Regenerated.
37505         * tests/unictype/test-categ_Pe.c: Regenerated.
37506         * tests/unictype/test-categ_Pf.c: Regenerated.
37507         * tests/unictype/test-categ_Pi.c: Regenerated.
37508         * tests/unictype/test-categ_Po.c: Regenerated.
37509         * tests/unictype/test-categ_Ps.c: Regenerated.
37510         * tests/unictype/test-categ_S.c: Regenerated.
37511         * tests/unictype/test-categ_Sk.c: Regenerated.
37512         * tests/unictype/test-categ_Sm.c: Regenerated.
37513         * tests/unictype/test-categ_So.c: Regenerated.
37514         * tests/unictype/test-ctype_alnum.c: Regenerated.
37515         * tests/unictype/test-ctype_alpha.c: Regenerated.
37516         * tests/unictype/test-ctype_graph.c: Regenerated.
37517         * tests/unictype/test-ctype_lower.c: Regenerated.
37518         * tests/unictype/test-ctype_print.c: Regenerated.
37519         * tests/unictype/test-ctype_punct.c: Regenerated.
37520         * tests/unictype/test-ctype_upper.c: Regenerated.
37521         * tests/unictype/test-decdigit.h: Regenerated.
37522         * tests/unictype/test-digit.h: Regenerated.
37523         * tests/unictype/test-numeric.h: Regenerated.
37524         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37525         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37526         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37527         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37528         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37529         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37530         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37531         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37532         * tests/unictype/test-pr_combining.c: Regenerated.
37533         * tests/unictype/test-pr_dash.c: Regenerated.
37534         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37535         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37536         * tests/unictype/test-pr_deprecated.c: Regenerated.
37537         * tests/unictype/test-pr_diacritic.c: Regenerated.
37538         * tests/unictype/test-pr_extender.c: Regenerated.
37539         * tests/unictype/test-pr_format_control.c: Regenerated.
37540         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37541         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37542         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37543         * tests/unictype/test-pr_id_continue.c: Regenerated.
37544         * tests/unictype/test-pr_id_start.c: Regenerated.
37545         * tests/unictype/test-pr_ideographic.c: Regenerated.
37546         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37547         * tests/unictype/test-pr_lowercase.c: Regenerated.
37548         * tests/unictype/test-pr_math.c: Regenerated.
37549         * tests/unictype/test-pr_numeric.c: Regenerated.
37550         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37551         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37552         Regenerated.
37553         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37554         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37555         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37556         * tests/unictype/test-pr_other_math.c: Regenerated.
37557         * tests/unictype/test-pr_punctuation.c: Regenerated.
37558         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37559         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37560         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37561         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37562         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37563         * tests/unictype/test-pr_uppercase.c: Regenerated.
37564         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37565         * tests/unictype/test-pr_xid_start.c: Regenerated.
37566         * tests/unictype/test-pr_zero_width.c: Regenerated.
37567
37568         Update to Unicode 5.1.0.
37569         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37570         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37571         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37572         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37573         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37574         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37575         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37576         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37577         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37578         (nonspacing_table_ind): Update.
37579         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37580
37581         Update to Unicode 5.1.0.
37582         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37583         code transform.
37584         * lib/uniname/uniname.c (unicode_character_name,
37585         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37586         * lib/uniname/uninames.h: Regenerated.
37587         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37588
37589 2009-02-07  Bruno Haible  <bruno@clisp.org>
37590
37591         Merge gen-ctype and gen-lbrk into a single program.
37592         * lib/gen-uni-tables.c: New file, incorporating
37593         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37594         Add directory prefixes to the names of the generated files.
37595         * lib/unictype/gen-ctype.c: Remove file.
37596         * lib/unilbrk/gen-lbrk.c: Remove file.
37597         * modules/gen-uni-tables: New file.
37598         * modules/unictype/gen-ctype: Remove file.
37599         * modules/unilbrk/gen-lbrk: Remove file.
37600
37601 2009-02-07  Bruno Haible  <bruno@clisp.org>
37602
37603         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37604
37605         New module 'unistr/u32-strcoll'.
37606         * modules/unistr/u32-strcoll: New file.
37607         * lib/unistr/u32-strcoll.c: New file.
37608
37609         New module 'unistr/u16-strcoll'.
37610         * modules/unistr/u16-strcoll: New file.
37611         * lib/unistr/u16-strcoll.c: New file.
37612
37613         New module 'unistr/u8-strcoll'.
37614         * modules/unistr/u8-strcoll: New file.
37615         * lib/unistr/u8-strcoll.c: New file.
37616         * lib/unistr/u-strcoll.h: New file.
37617
37618 2009-02-07  Bruno Haible  <bruno@clisp.org>
37619
37620         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37621         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37622         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37623         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37624         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37625         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37626
37627 2009-02-07  Bruno Haible  <bruno@clisp.org>
37628
37629         Make 64-bit clean.
37630         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37631         output_combclass, output_bidi_category, output_decimal_digit,
37632         output_digit, output_numeric, output_mirror, output_scripts,
37633         output_ident_category): Use proper width specifier in format strings.
37634
37635 2009-02-07  Bruno Haible  <bruno@clisp.org>
37636
37637         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37638         failure behaviour.
37639
37640 2009-02-07  Jim Meyering  <meyering@redhat.com>
37641
37642         regex: avoid compilation failure with upcoming gcc-4.4
37643         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37644         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37645         "... error: integer overflow in preprocessor expression".
37646
37647 2009-02-05  Ben Pfaff  <blp@gnu.org>
37648
37649         Fix link errors on Windows when close module is used.
37650         * modules/close: Add $(LIB_CLOSE) to Link section.
37651         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37652         $(LIB_CLOSE) on Windows.
37653
37654 2009-02-05  Jim Meyering  <meyering@redhat.com>
37655
37656         still avoid unused-parameter warnings, but do it cleanly
37657         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37658         (get_fs_usage): Cast to void instead.
37659         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37660         (dev_from_mount_options, read_file_system_list): Cast to void.
37661         Prompted by Bruno Haible.
37662
37663 2009-02-04  Jim Meyering  <meyering@redhat.com>
37664
37665         fsusage.c: correct copyright year
37666         * lib/fsusage.c: Reflect year in which the change is pushed into
37667
37668         avoid misc. warnings
37669         * lib/fsusage.c (UNUSED_PARAM): Define.
37670         (get_fs_usage): Mark parameter "disk" as unused.
37671         * lib/getugroups.c (getgrent): Use "void" in prototype.
37672         * lib/mountlist.c: Mark unused parameters.
37673         (read_file_system_list): Declare a local with "const".
37674         * lib/nanosleep.c (getnow): Declare static.
37675         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37676
37677         dirfd: set errno upon failure
37678         * lib/dirfd.c: Include <errno.h>.
37679         Set errno to ENOTSUP when returning -1.
37680         * modules/dirfd (Depends-on): Add errno.
37681         Suggested by John Kodis <kodis@comcast.net>.
37682
37683 2009-02-01  Bruno Haible  <bruno@clisp.org>
37684
37685         Don't assume sizeof (long) >= sizeof (void *).
37686         * lib/memcmp.c: Include stdint.h.
37687         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37688         srcp2 to 'const byte *'.
37689         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37690         types to uintptr_t.
37691         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37692         * modules/memcmp (Depends-on): Add stdint.
37693         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37694
37695 2009-01-30  Eric Blake  <ebb9@byu.net>
37696
37697         fix more require-before-expand issues
37698         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37699         expand, AC_PROG_AWK.
37700         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37701
37702 2009-01-28  Eric Blake  <ebb9@byu.net>
37703
37704         version-etc: use consistent URL formatting
37705         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37706         Improve formatting.  Use fputs for string without %.
37707
37708 2009-01-28  Jim Meyering  <meyering@redhat.com>
37709
37710         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37711         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37712         "underquoted definition of NAME" from autoconf-2.59.
37713
37714 2009-01-28  Bruno Haible  <bruno@clisp.org>
37715
37716         * doc/gnulib.texi: Add "Obsolete modules" to index.
37717
37718 2009-01-28  Jim Meyering  <meyering@redhat.com>
37719
37720         useless-if-before-free: recognize more variants
37721         * build-aux/useless-if-before-free: Also recognize e.g.,
37722         if (NULL != p) free (p);
37723
37724 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37725
37726         test-getaddrinfo: skip (don't fail) this test when there's no network
37727         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37728         on the presumption that it means you lack network access.
37729
37730 2009-01-26  Jim Meyering  <meyering@redhat.com>
37731
37732         fflush: avoid warnings on modern systems
37733         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37734         pos and result, into scopes where they're used.
37735
37736 2009-01-26  Eric Blake  <ebb9@byu.net>
37737
37738         Silence warning reintroduced by recent extensions patch.
37739         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37740         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37741         autoconf.
37742
37743         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37744         * m4/00gnulib.m4: New file.
37745         * gnulib-tool (func_get_filelist): Always use it.
37746         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37747         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37748
37749 2009-01-25  Bruno Haible  <bruno@clisp.org>
37750
37751         Make test-quotearg work on MacOS X and AIX.
37752         * tests/test-quotearg.sh: New file.
37753         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37754         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37755         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37756         include <libintl.h>.
37757         (fake_locale): Remove variable.
37758         (gettext, dgettext, dcgettext): Remove functions.
37759         (main): Instead of setting a fake locale, set a real locale. Call
37760         textdomain and bindtextdomain.
37761         * modules/quotearg-tests (Files): Add the new files.
37762         (Depends-on): Add gettext, setenv, unsetenv.
37763         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37764         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37765         Augment TESTS_ENVIRONMENT.
37766
37767 2009-01-25  Bruno Haible  <bruno@clisp.org>
37768
37769         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37770         fr_FR.ISO8859-1 locale on MacOS X.
37771         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37772         ja_JP.eucJP locale on MacOS X.
37773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37774         zh_CN.GB18030 locale on MacOS X.
37775
37776 2009-01-25  Bruno Haible  <bruno@clisp.org>
37777
37778         Avoid link errors on MacOS X 10.3.
37779         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37780         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37781
37782 2009-01-25  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37785         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37786         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37787         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37788         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37789         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37790         posix_spawnattr_init, posix_spawnattr_setsigmask,
37791         posix_spawnattr_setflags, posix_spawnattr_destroy.
37792
37793         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37794         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37795         * modules/execute (Files): Remove m4/posix_spawn.m4.
37796         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37797         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37798         posix_spawnattr_init, posix_spawnattr_setsigmask,
37799         posix_spawnattr_setflags, posix_spawnattr_destroy.
37800
37801 2009-01-25  Bruno Haible  <bruno@clisp.org>
37802
37803         * lib/glthread/threadlib.c: Include <stdlib.h>.
37804
37805 2009-01-25  Bruno Haible  <bruno@clisp.org>
37806
37807         * lib/glthread/threadlib.c (dummy): New declaration.
37808
37809 2009-01-25  Bruno Haible  <bruno@clisp.org>
37810
37811         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37812         multibyte characters also for the GB18030 encoding. Don't crash when
37813         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37814
37815 2009-01-25  Bruno Haible  <bruno@clisp.org>
37816
37817         Avoid redefining 'struct random_data' on OSF/1 5.1.
37818         * lib/stdlib.in.h: Include <random.h> if it exists.
37819         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37820         HAVE_RANDOM_H. Include <random.h> when testing whether
37821         'struct random_data' exists.
37822         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37823
37824 2009-01-25  Bruno Haible  <bruno@clisp.org>
37825
37826         Don't install charset.alias on MacOS X >= 10.3.
37827         * lib/localcharset.c (DARWIN7): New macro.
37828         (get_charset_aliases): Hardcode the result for Darwin7.
37829         * modules/localcharset (install-exec-local): Don't install
37830         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37831
37832 2009-01-25  Bruno Haible  <bruno@clisp.org>
37833
37834         Don't install charset.alias on mingw and Cygwin.
37835         * modules/localcharset (install-exec-local): Don't install
37836         charset.alias on mingw and Cygwin, if the file does not yet exist.
37837         The result for these platforms is hardcoded in localcharset.c.
37838
37839 2009-01-25  Bruno Haible  <bruno@clisp.org>
37840
37841         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37843         before requiring AC_USE_SYSTEM_EXTENSIONS.
37844
37845 2009-01-25  Jim Meyering  <meyering@redhat.com>
37846
37847         c-strtod: avoid warnings
37848         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37849         "assignment discards qualifiers from pointer target type" warnings.
37850
37851 2009-01-24  Bruno Haible  <bruno@clisp.org>
37852
37853         Add support for non-UTF-8 locales on MacOS X.
37854         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37855         canonical encodings. For Darwin 7 and newer, don't map traditional
37856         encodings to UTF-8.
37857         Reported by Vincent Lefevre <vincent@vinc17.org>
37858         at <http://savannah.gnu.org/bugs/?25235>.
37859
37860 2009-01-24  Bruno Haible  <bruno@clisp.org>
37861
37862         * doc/gnulib.texi (Obsolete modules): New section.
37863         Reported by Mike Frysinger <vapier@gentoo.org>.
37864
37865 2009-01-24  Bruno Haible  <bruno@clisp.org>
37866
37867         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37868         (%.dvi): New rule.
37869
37870 2009-01-24  Bruno Haible  <bruno@clisp.org>
37871
37872         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37873         Reported by Eric Blake.
37874
37875 2009-01-24  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37878         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37879         Reported by Gary V. Vaughan <gary@gnu.org>.
37880
37881 2009-01-24  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37884
37885 2009-01-23  Bruno Haible  <bruno@clisp.org>
37886
37887         Make c-strtod, c-strtold usable in libraries.
37888         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37889         (C_STRTOD): Call strdup instead of xstrdup.
37890         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37891         * modules/c-strtold (Depends-on): Likewise.
37892         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37893         * NEWS: Mention the change.
37894         Reported by Michael Gold <mgold@ncf.ca>.
37895
37896 2009-01-23  Jim Meyering  <meyering@redhat.com>
37897
37898         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37899         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37900         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37901
37902 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37903
37904         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37905         GNU CoreUtils.
37906         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37907         * modules/version-etc (Description): Update.
37908
37909 2009-01-22  Bruno Haible  <bruno@clisp.org>
37910
37911         Cache the C locale object.
37912         * lib/c-strtod.c (c_locale_cache): New variable.
37913         (c_locale): New function.
37914         (C_STRTOD): Use it, and don't call freelocale.
37915         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37916         Suggested by Paolo Bonzini.
37917
37918 2009-01-21  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37921         conditions other than overflow.
37922
37923 2009-01-21  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/c-strtod.c: Include errno.h.
37926         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37927         value from STRTOD_L and STRTOD.
37928
37929 2009-01-21  Bruno Haible  <bruno@clisp.org>
37930         and Jim Meyering  <meyering@redhat.com>
37931
37932         nanosleep: skip configure test (fail it) for apple universal builds
37933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37934         universal builds, assume that nanosleep does not work.
37935         * modules/nanosleep (Depends-on): Add multiarch.
37936
37937         mktime: skip configure test (fail it) for apple universal builds
37938         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37939         universal builds, assume that mktime does not work.
37940         * modules/mktime (Depends-on): Add multiarch.
37941
37942 2009-01-21  Eric Blake  <ebb9@byu.net>
37943
37944         multiarch: avoid expand-before-require warning
37945         * modules/multiarch (configure.ac): Require, rather than expand,
37946         gl_MULTIARCH.
37947         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37948         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37949         enforce that all clients require it.  Partial reversion of
37950         2008-12-29 patch.
37951
37952         error: avoid expand-before-require warning
37953         * modules/errno (configure.ac): Require, rather than expand,
37954         gl_HEADER_ERRNO_H.
37955         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37956         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37957         enforce that all clients require it.
37958
37959         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37960         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37961         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37962         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37963
37964 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37965
37966         Revert:
37967         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37968
37969         regex: do not depend on obsolete modules.
37970         * modules/regex: Remove memcmp and memmove.
37971
37972 2009-01-20  Bruno Haible  <bruno@clisp.org>
37973
37974         Make the 'link' module link on Windows NT 4.
37975         * lib/link.c (_WIN32_WINNT): Don't define.
37976         (CreateHardLinkFuncType): New type.
37977         (CreateHardLinkFunc, initialized): New variables.
37978         (initialize): New function.
37979         (link): Invoke CreateHardLink indirectly through the function pointer.
37980
37981 2009-01-20  Bruno Haible  <bruno@clisp.org>
37982
37983         Fix compilation failure on mingw.
37984         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37985
37986 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37987
37988         * doc/c-strtod.texi: Mention a couple of restrictions.
37989
37990 2009-01-20  Jim Meyering  <meyering@redhat.com>
37991
37992         gettimeofday: move more declarations out of functions
37993         * lib/gettimeofday.c: Move extern declarations of tzset and
37994         gmtime out of containing functions.  Prompted by Bruno Haible.
37995
37996 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37997
37998         regex: do not depend on obsolete modules.
37999         * modules/regex: Remove memcmp and memmove.
38000
38001 2009-01-19  Bruno Haible  <bruno@clisp.org>
38002
38003         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38004         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38005         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38006         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38007         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38008
38009 2009-01-19  Bruno Haible  <bruno@clisp.org>
38010
38011         * tests/test-link.c: Include <errno.h>.
38012         (main): Exit with code 77 when a hard link cannot be created due to
38013         the file system.
38014         * tests/test-link.sh: Skip test when a hard link cannot be created due
38015         to the file system.
38016         Suggested by Eric Blake.
38017
38018 2009-01-19  Martin Lambers  <marlam@marlam.de>
38019
38020         * modules/link-tests: New file.
38021         * tests/test-link.sh: New file.
38022         * tests/test-link.c: New file.
38023
38024 2009-01-19  Eric Blake  <ebb9@byu.net>
38025
38026         doc: mention another function added in cygwin 1.7.0
38027         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38028         Another new function in cygwin 1.7.
38029
38030 2009-01-19  Bruno Haible  <bruno@clisp.org>
38031
38032         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38033         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38034         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38035         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38036         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38037         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38039         * m4/md4.m4 (gl_MD4): Likewise.
38040         * m4/md5.m4 (gl_MD5): Likewise.
38041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38042         * m4/sha1.m4 (gl_SHA1): Likewise.
38043         * m4/sha256.m4 (gl_SHA256): Likewise.
38044         * m4/sha512.m4 (gl_SHA512): Likewise.
38045
38046 2009-01-19  Bruno Haible  <bruno@clisp.org>
38047
38048         * modules/uniname/uniname-tests (Depends-on): Add progname.
38049         * tests/uniname/test-uninames.c: Include progname.h.
38050         (main): Call set_program_name.
38051
38052         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38053         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38054         (main): Call set_program_name.
38055
38056         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38057         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38058         (main): Call set_program_name.
38059
38060         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38061         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38062         (main): Call set_program_name.
38063
38064         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38065         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38066         (main): Call set_program_name.
38067
38068         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38069         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38070         (main): Call set_program_name.
38071
38072         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38073         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38074         (main): Call set_program_name.
38075
38076         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38077         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38078         (main): Call set_program_name.
38079
38080         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38081         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38082         (main): Call set_program_name.
38083
38084 2009-01-19  Eric Blake  <ebb9@byu.net>
38085
38086         test-unistd: test previous patch
38087         * tests/test-unistd.c: Test *_FILENO macros.
38088
38089         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38090         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38091         Guarantee a definition.
38092         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38093         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38094         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38095         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38096         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38097         Likewise.
38098         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38099         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38100         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38101         Likewise.
38102         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38103         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38104         (STDERR_FILENO): Likewise.
38105         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38106         (STDERR_FILENO): Likewise.
38107         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38108         (STDERR_FILENO): Likewise.
38109         Reported by Elbert Pol.
38110
38111 2009-01-19  Eric Blake  <ebb9@byu.net>
38112
38113         doc: mention more functions added in cygwin 1.7.0
38114         * doc/posix-functions/abort.texi (abort): Update wording related
38115         to cygwin.
38116         * doc/posix-functions/daylight.texi (daylight): Likewise.
38117         * doc/posix-functions/optarg.texi (optarg): Likewise.
38118         * doc/posix-functions/optarg.texi (opterr): Likewise.
38119         * doc/posix-functions/optarg.texi (optind): Likewise.
38120         * doc/posix-functions/optarg.texi (optopt): Likewise.
38121         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38122         worked in 1.5.x, and was withdrawn in 1.7.
38123         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38124         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38125         cygwin versions.
38126         * doc/posix-functions/perror.texi (perror): Likewise.
38127         * doc/posix-functions/printf.texi (printf): Likewise.
38128         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38129         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38130         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38131         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38132         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38133         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38134         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38135         Likewise.
38136         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38137         Likewise.
38138         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38139         this function.
38140         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38141         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38142         Likewise.
38143         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38144         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38145         * doc/posix-functions/confstr.texi (confstr): Likewise.
38146         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38147         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38148         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38149         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38150         * doc/posix-functions/fputws.texi (fputws): Likewise.
38151         * doc/posix-functions/fwide.texi (fwide): Likewise.
38152         * doc/posix-functions/getwc.texi (getwc): Likewise.
38153         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38154         * doc/posix-functions/putwc.texi (putwc): Likewise.
38155         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38156         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38157         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38158         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38159         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38160         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38161         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38162         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38163         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38164         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38165         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38166
38167 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38168
38169         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38170         * lib/ioctl.c: Include <sys/ioctl.h>.
38171
38172 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38173
38174         * modules/getdate-tests (Depends-on): Add progname.
38175         * tests/test-getdate.c: Use progname module, to avoid link errors
38176         on non-glibc systems.
38177
38178 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38179
38180         * modules/filenamecat-tests (Depends-on): Add progname.
38181         * modules/fstrcmp-tests (Depends-on): Likewise.
38182
38183         * tests/test-filenamecat.c: Use progname module, to avoid link
38184         errors on non-glibc systems.
38185         * tests/test-fstrcmp.c: Likewise.
38186
38187 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38188
38189         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38190         * lib/gettimeofday.c: Move extern declaration out of function.
38191
38192 2009-01-18  Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38195         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38196         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38197
38198 2009-01-18  Bruno Haible  <bruno@clisp.org>
38199
38200         * lib/strftime.c (MEMPCPY): Remove unused macro.
38201         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38202
38203 2009-01-18  Martin Lambers  <marlam@marlam.de>
38204
38205         New module 'link'.
38206         * lib/unistd.in.h (link): New declaration.
38207         * lib/link.c: New file.
38208         * m4/link.m4: New file.
38209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38210         HAVE_LINK.
38211         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38212         * modules/link: New file.
38213         * doc/posix-functions/link.texi: Mention the new module.
38214
38215 2009-01-18  Bruno Haible  <bruno@clisp.org>
38216
38217         * tests/test-avltree_list.c (main): Call set_program_name.
38218         * tests/test-avltree_oset.c (main): Likewise.
38219         * tests/test-obstack-printf.c: Include progname.h.
38220         (main): Call set_program_name.
38221         * tests/test-quotearg.c: Include progname.h.
38222         (main): Call set_program_name.
38223         * tests/test-xmemdup0.c: Include progname.h.
38224         (main): Call set_program_name.
38225
38226 2009-01-18  Bruno Haible  <bruno@clisp.org>
38227
38228         New module 'alphasort'.
38229         * lib/dirent.in.h (alphasort): New declaration.
38230         * lib/alphasort.c: New file, from glibc with modifications.
38231         * m4/alphasort.m4: New file.
38232         * modules/alphasort: New file.
38233         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38234         HAVE_ALPHASORT.
38235         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38236         HAVE_ALPHASORT.
38237         * doc/posix-functions/alphasort.texi: Mention the new module and the
38238         portability problems.
38239
38240 2009-01-18  Bruno Haible  <bruno@clisp.org>
38241
38242         New module 'scandir'.
38243         * lib/dirent.in.h (scandir): New declaration.
38244         * lib/scandir.c: New file, from glibc with modifications.
38245         * m4/scandir.m4: New file.
38246         * modules/scandir: New file.
38247         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38248         HAVE_SCANDIR.
38249         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38250         HAVE_SCANDIR.
38251         * doc/posix-functions/scandir.texi: Mention the new module and the
38252         portability problems.
38253
38254 2009-01-17  Bruno Haible  <bruno@clisp.org>
38255
38256         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38257         Update documentation.
38258         (func_remove_suffix): Escape all dots in the suffix. Update
38259         documentation.
38260         (func_filter_filelist): Update documentation.
38261         Reported by Ralf Wildenhues.
38262
38263 2009-01-17  Bruno Haible  <bruno@clisp.org>
38264
38265         * modules/dprintf-posix-tests: New file.
38266         * tests/test-dprintf-posix.sh: New file.
38267         * tests/test-dprintf-posix.c: New file.
38268
38269         New modules 'dprintf', 'dprintf-posix'.
38270         * lib/stdio.in.h (dprintf): New declaration.
38271         * lib/dprintf.c: New file.
38272         * m4/dprintf.m4: New file.
38273         * m4/dprintf-posix.m4: New file.
38274         * modules/dprintf: New file.
38275         * modules/dprintf-posix: New file.
38276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38277         HAVE_DPRINTF, REPLACE_DPRINTF.
38278         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38279         HAVE_DPRINTF, REPLACE_DPRINTF.
38280         * doc/posix-functions/dprintf.texi: Mention the new modules.
38281
38282 2009-01-17  Bruno Haible  <bruno@clisp.org>
38283
38284         * modules/vdprintf-posix-tests: New file.
38285         * tests/test-vdprintf-posix.sh: New file.
38286         * tests/test-vdprintf-posix.c: New file.
38287
38288         New modules 'vdprintf', 'vdprintf-posix'.
38289         * lib/stdio.in.h (vdprintf): New declaration.
38290         * lib/vdprintf.c: New file.
38291         * m4/vdprintf.m4: New file.
38292         * m4/vdprintf-posix.m4: New file.
38293         * modules/vdprintf: New file.
38294         * modules/vdprintf-posix: New file.
38295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38296         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38297         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38298         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38299         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38300
38301 2009-01-17  Bruno Haible  <bruno@clisp.org>
38302
38303         Fix replacement of fopen on mingw.
38304         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38305         mingw.
38306
38307 2009-01-17  Bruno Haible  <bruno@clisp.org>
38308
38309         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38310         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38311
38312 2009-01-17  Bruno Haible  <bruno@clisp.org>
38313
38314         Avoid test-fflush2.sh failure on mingw.
38315         * tests/test-fflush2.c: Include binary-io.h.
38316         (main): Put standard input into binary mode.
38317         * modules/fflush-tests (Depends-on): Add binary-io.
38318
38319 2009-01-17  Bruno Haible  <bruno@clisp.org>
38320
38321         * lib/wchar.in.h: In another particular situation, include only the
38322         system's <wchar.h> file.
38323         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38324         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38325         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38326
38327 2009-01-17  Bruno Haible  <bruno@clisp.org>
38328
38329         Support for stripping executables in --enable-relocatable.
38330         * build-aux/install-reloc: Expect one more argument, or an environment
38331         variable RELOC_STRIP_PROG. If set, strip the destination program and
38332         its wrapper.
38333         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38334         RELOC_STRIP_PROG.
38335         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38336         to set RELOCATABLE_STRIP.
38337         * NEWS: Mention the new Makefile requirement.
38338
38339 2009-01-17  Bruno Haible  <bruno@clisp.org>
38340
38341         * build-aux/install-reloc: Remove debugging information left over by
38342         C compiler on MacOS X.
38343
38344 2009-01-17  Bruno Haible  <bruno@clisp.org>
38345
38346         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38347         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38348         _NSGetExecutablePath.
38349
38350 2009-01-16  Jim Meyering  <meyering@redhat.com>
38351
38352         strerror: avoid warnings about discarding "const"
38353         * lib/strerror.c (rpl_strerror): Instead of returning a const
38354         string from each and every "case", use a variable, and add a single
38355         cast after the switch.
38356
38357 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38358
38359         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38360
38361 2009-01-16  Bruno Haible  <bruno@clisp.org>
38362
38363         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38364         array initializer syntax that also works in C++ mode.
38365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38366
38367 2009-01-16  Jim Meyering  <meyering@redhat.com>
38368
38369         poll: suppress a warning
38370         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38371         to ignore "...unsigned expression < 0 is always false" warnings.
38372
38373 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38374
38375         poll: remove declarations of unused variables
38376         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38377         sockbuf and optlen.
38378
38379 2009-01-15  Bruno Haible  <bruno@clisp.org>
38380
38381         Make fflush-after-ungetc POSIX compliant on BSD systems.
38382         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38383         (clear_ungetc_buffer): Implement also for other systems.
38384         (rpl_fflush): On glibc systems, invoke
38385         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38386         clear_ungetc_buffer after fetching the stream's position, not before.
38387
38388 2009-01-15  Bruno Haible  <bruno@clisp.org>
38389
38390         Make fflush-after-ungetc POSIX compliant on glibc systems.
38391         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38392         after ungetc.
38393         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38394         (rpl_fflush): On glibc systems, simply call the system's fflush
38395         function after clearing the ungetc buffer.
38396         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38397         Instead, lseek only to the end of file, then use the system's fseeko
38398         for the rest. On glibc systems, reset the EOF indicator bit.
38399
38400 2009-01-15  Jim Meyering  <meyering@redhat.com>
38401
38402         openmp.m4: revert quote-adding change, for portability to older autoconf
38403         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38404         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38405         Simon Josefsson noticed the problem when using autoconf-2.61.
38406
38407 2009-01-15  Bruno Haible  <bruno@clisp.org>
38408
38409         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38410         * tests/test-fflush2.c (ASSERT): Always fail.
38411         (main): Add two tests for fflush() after ungetc(), taking into account
38412         the Austin Group's clarification.
38413         Suggested by Eric Blake.
38414
38415 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38416
38417         mktime.m4: remove K&R-style function prototypes
38418         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38419         for the Sun C++ compiler.
38420
38421 2009-01-14  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38424         while including <wchar.h>.
38425         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38426         the system's <wchar.h> file.
38427         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38428
38429 2009-01-14  Bruno Haible  <bruno@clisp.org>
38430
38431         * m4/csharp.m4: Don't mention gettext on the serial number line.
38432         * m4/csharpexec.m4: Likewise.
38433         * m4/eaccess.m4: Likewise.
38434         * m4/javaexec.m4: Likewise.
38435         * m4/sig_atomic_t.m4: Likewise.
38436         * m4/tmpdir.m4: Likewise.
38437         * m4/intldir.m4: Bump gettext version.
38438         * m4/lib-ld.m4: Likewise.
38439
38440 2009-01-14  Bruno Haible  <bruno@clisp.org>
38441
38442         * lib/progname.c (set_program_name): Add more comments.
38443         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38444
38445 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38446
38447         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38448         were sys/stat.h does not define it.
38449
38450 2009-01-14  Jim Meyering  <meyering@redhat.com>
38451
38452         many *.m4 files: improve m4 quoting
38453         99% of this change was performed by running the following commands:
38454         git ls-files | grep '\.m4$' | xargs perl -pi \
38455           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38456           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38457           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38458           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38459         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38460         The remainder were to add Copyright dates, increment serial numbers,
38461         undo some changes in comments, exclude m4/intl.m4, and add quotes
38462         around the "1" in ",1" where the unusual spacing prohibited the
38463         above regexps from doing the job.  For more details, see
38464         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38465         * m4/acl.m4: Modified.
38466         * m4/afs.m4: Likewise.
38467         * m4/alloca.m4: Likewise.
38468         * m4/argp.m4: Likewise.
38469         * m4/argz.m4: Likewise.
38470         * m4/atexit.m4: Likewise.
38471         * m4/bison-i18n.m4: Likewise.
38472         * m4/bison.m4: Likewise.
38473         * m4/byteswap.m4: Likewise.
38474         * m4/c-stack.m4: Likewise.
38475         * m4/c-strtod.m4: Likewise.
38476         * m4/calloc.m4: Likewise.
38477         * m4/canonicalize-lgpl.m4: Likewise.
38478         * m4/chown.m4: Likewise.
38479         * m4/clock_time.m4: Likewise.
38480         * m4/codeset.m4: Likewise.
38481         * m4/copy-file.m4: Likewise.
38482         * m4/csharp.m4: Likewise.
38483         * m4/csharpcomp.m4: Likewise.
38484         * m4/csharpexec.m4: Likewise.
38485         * m4/d-ino.m4: Likewise.
38486         * m4/d-type.m4: Likewise.
38487         * m4/dirfd.m4: Likewise.
38488         * m4/double-slash-root.m4: Likewise.
38489         * m4/eaccess.m4: Likewise.
38490         * m4/eealloc.m4: Likewise.
38491         * m4/environ.m4: Likewise.
38492         * m4/errno_h.m4: Likewise.
38493         * m4/euidaccess.m4: Likewise.
38494         * m4/execute.m4: Likewise.
38495         * m4/fatal-signal.m4: Likewise.
38496         * m4/fchdir.m4: Likewise.
38497         * m4/fcntl_h.m4: Likewise.
38498         * m4/fileblocks.m4: Likewise.
38499         * m4/filenamecat.m4: Likewise.
38500         * m4/findprog.m4: Likewise.
38501         * m4/flexmember.m4: Likewise.
38502         * m4/fnmatch.m4: Likewise.
38503         * m4/fopen.m4: Likewise.
38504         * m4/fpending.m4: Likewise.
38505         * m4/fprintf-posix.m4: Likewise.
38506         * m4/free.m4: Likewise.
38507         * m4/frexp.m4: Likewise.
38508         * m4/frexpl.m4: Likewise.
38509         * m4/fsusage.m4: Likewise.
38510         * m4/ftruncate.m4: Likewise.
38511         * m4/gc-camellia.m4: Likewise.
38512         * m4/gc-random.m4: Likewise.
38513         * m4/gc.m4: Likewise.
38514         * m4/getaddrinfo.m4: Likewise.
38515         * m4/getcwd-abort-bug.m4: Likewise.
38516         * m4/getcwd-path-max.m4: Likewise.
38517         * m4/getdate.m4: Likewise.
38518         * m4/getdomainname.m4: Likewise.
38519         * m4/getgroups.m4: Likewise.
38520         * m4/gethostname.m4: Likewise.
38521         * m4/gethrxtime.m4: Likewise.
38522         * m4/getline.m4: Likewise.
38523         * m4/getloadavg.m4: Likewise.
38524         * m4/getndelim2.m4: Likewise.
38525         * m4/getpass.m4: Likewise.
38526         * m4/gettext.m4: Likewise.
38527         * m4/gettime.m4: Likewise.
38528         * m4/gettimeofday.m4: Likewise.
38529         * m4/gnulib-common.m4: Likewise.
38530         * m4/group-member.m4: Likewise.
38531         * m4/host-os.m4: Likewise.
38532         * m4/iconv.m4: Likewise.
38533         * m4/iconv_open.m4: Likewise.
38534         * m4/inet_ntop.m4: Likewise.
38535         * m4/inet_pton.m4: Likewise.
38536         * m4/inline.m4: Likewise.
38537         * m4/intldir.m4: Likewise.
38538         * m4/intlmacosx.m4: Likewise.
38539         * m4/intmax.m4: Likewise.
38540         * m4/intmax_t.m4: Likewise.
38541         * m4/inttypes.m4: Likewise.
38542         * m4/inttypes_h.m4: Likewise.
38543         * m4/inttypes-pri.m4: Likewise.
38544         * m4/isapipe.m4: Likewise.
38545         * m4/isnand.m4: Likewise.
38546         * m4/isnanf.m4: Likewise.
38547         * m4/isnanl.m4: Likewise.
38548         * m4/javacomp.m4: Likewise.
38549         * m4/javaexec.m4: Likewise.
38550         * m4/jm-winsz1.m4: Likewise.
38551         * m4/jm-winsz2.m4: Likewise.
38552         * m4/lchown.m4: Likewise.
38553         * m4/lcmessage.m4: Likewise.
38554         * m4/ldexpl.m4: Likewise.
38555         * m4/lib-ld.m4: Likewise.
38556         * m4/lib-link.m4: Likewise.
38557         * m4/libsigsegv.m4: Likewise.
38558         * m4/link-follow.m4: Likewise.
38559         * m4/localcharset.m4: Likewise.
38560         * m4/locale-fr.m4: Likewise.
38561         * m4/locale-ja.m4: Likewise.
38562         * m4/locale-tr.m4: Likewise.
38563         * m4/locale-zh.m4: Likewise.
38564         * m4/lock.m4: Likewise.
38565         * m4/longlong.m4: Likewise.
38566         * m4/ls-mntd-fs.m4: Likewise.
38567         * m4/lstat.m4: Likewise.
38568         * m4/malloc.m4: Likewise.
38569         * m4/mathl.m4: Likewise.
38570         * m4/mbrtowc.m4: Likewise.
38571         * m4/mbstate_t.m4: Likewise.
38572         * m4/mbswidth.m4: Likewise.
38573         * m4/memchr.m4: Likewise.
38574         * m4/memcmp.m4: Likewise.
38575         * m4/memcpy.m4: Likewise.
38576         * m4/memmem.m4: Likewise.
38577         * m4/memmove.m4: Likewise.
38578         * m4/mempcpy.m4: Likewise.
38579         * m4/memrchr.m4: Likewise.
38580         * m4/memset.m4: Likewise.
38581         * m4/minmax.m4: Likewise.
38582         * m4/mkdir-slash.m4: Likewise.
38583         * m4/mkdtemp.m4: Likewise.
38584         * m4/mktime.m4: Likewise.
38585         * m4/mmap-anon.m4: Likewise.
38586         * m4/mountlist.m4: Likewise.
38587         * m4/nanosleep.m4: Likewise.
38588         * m4/nls.m4: Likewise.
38589         * m4/nocrash.m4: Likewise.
38590         * m4/open.m4: Likewise.
38591         * m4/openat.m4: Likewise.
38592         * m4/openmp.m4: Likewise.
38593         * m4/pathmax.m4: Likewise.
38594         * m4/perl.m4: Likewise.
38595         * m4/physmem.m4: Likewise.
38596         * m4/pipe.m4: Likewise.
38597         * m4/po.m4: Likewise.
38598         * m4/poll.m4: Likewise.
38599         * m4/posixtm.m4: Likewise.
38600         * m4/posixver.m4: Likewise.
38601         * m4/printf-frexp.m4: Likewise.
38602         * m4/printf-frexpl.m4: Likewise.
38603         * m4/printf-posix.m4: Likewise.
38604         * m4/printf-posix-rpl.m4: Likewise.
38605         * m4/printf.m4: Likewise.
38606         * m4/progtest.m4: Likewise.
38607         * m4/putenv.m4: Likewise.
38608         * m4/readline.m4: Likewise.
38609         * m4/readlink.m4: Likewise.
38610         * m4/readutmp.m4: Likewise.
38611         * m4/realloc.m4: Likewise.
38612         * m4/regex.m4: Likewise.
38613         * m4/relocatable.m4: Likewise.
38614         * m4/relocatable-lib.m4: Likewise.
38615         * m4/rename-dest-slash.m4: Likewise.
38616         * m4/rename.m4: Likewise.
38617         * m4/rmdir-errno.m4: Likewise.
38618         * m4/rmdir.m4: Likewise.
38619         * m4/roundf.m4: Likewise.
38620         * m4/roundl.m4: Likewise.
38621         * m4/rpmatch.m4: Likewise.
38622         * m4/save-cwd.m4: Likewise.
38623         * m4/selinux-selinux-h.m4: Likewise.
38624         * m4/setenv.m4: Likewise.
38625         * m4/settime.m4: Likewise.
38626         * m4/sig2str.m4: Likewise.
38627         * m4/sig_atomic_t.m4: Likewise.
38628         * m4/signalblocking.m4: Likewise.
38629         * m4/signbit.m4: Likewise.
38630         * m4/sigpipe.m4: Likewise.
38631         * m4/sockets.m4: Likewise.
38632         * m4/sockpfaf.m4: Likewise.
38633         * m4/st_dm_mode.m4: Likewise.
38634         * m4/stat-time.m4: Likewise.
38635         * m4/stdbool.m4: Likewise.
38636         * m4/stdint.m4: Likewise.
38637         * m4/stdint_h.m4: Likewise.
38638         * m4/stpcpy.m4: Likewise.
38639         * m4/stpncpy.m4: Likewise.
38640         * m4/strcase.m4: Likewise.
38641         * m4/strchrnul.m4: Likewise.
38642         * m4/strcspn.m4: Likewise.
38643         * m4/strdup.m4: Likewise.
38644         * m4/strftime.m4: Likewise.
38645         * m4/strndup.m4: Likewise.
38646         * m4/strnlen.m4: Likewise.
38647         * m4/strpbrk.m4: Likewise.
38648         * m4/strptime.m4: Likewise.
38649         * m4/strsep.m4: Likewise.
38650         * m4/strtod.m4: Likewise.
38651         * m4/strtoimax.m4: Likewise.
38652         * m4/strtok_r.m4: Likewise.
38653         * m4/strtol.m4: Likewise.
38654         * m4/strtoll.m4: Likewise.
38655         * m4/strtoul.m4: Likewise.
38656         * m4/strtoull.m4: Likewise.
38657         * m4/strtoumax.m4: Likewise.
38658         * m4/strverscmp.m4: Likewise.
38659         * m4/threadlib.m4: Likewise.
38660         * m4/timegm.m4: Likewise.
38661         * m4/tm_gmtoff.m4: Likewise.
38662         * m4/tmpdir.m4: Likewise.
38663         * m4/tmpfile.m4: Likewise.
38664         * m4/tzset.m4: Likewise.
38665         * m4/uintmax_t.m4: Likewise.
38666         * m4/unlinkdir.m4: Likewise.
38667         * m4/unlocked-io.m4: Likewise.
38668         * m4/uptime.m4: Likewise.
38669         * m4/userspec.m4: Likewise.
38670         * m4/utimbuf.m4: Likewise.
38671         * m4/utime.m4: Likewise.
38672         * m4/utimes-null.m4: Likewise.
38673         * m4/utimes.m4: Likewise.
38674         * m4/vararrays.m4: Likewise.
38675         * m4/vasnprintf.m4: Likewise.
38676         * m4/vfprintf-posix.m4: Likewise.
38677         * m4/vprintf-posix.m4: Likewise.
38678         * m4/wait-process.m4: Likewise.
38679         * m4/wchar_t.m4: Likewise.
38680         * m4/wint_t.m4: Likewise.
38681         * m4/write-any-file.m4: Likewise.
38682         * m4/yield.m4: Likewise.
38683
38684 2009-01-13  Bruno Haible  <bruno@clisp.org>
38685
38686         Avoid test-copy-file.sh failures when ACL support insufficient.
38687         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38688         TESTS_ENVIRONMENT.
38689         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38690         Reported by Jim Meyering.
38691
38692 2009-01-13  Bruno Haible  <bruno@clisp.org>
38693
38694         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38695         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38696         * modules/unistdio/u8-printf-parse (Files): Likewise.
38697         * modules/unistdio/u32-printf-parse (Files): Likewise.
38698         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38699
38700 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38701
38702         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38703         and m4/inttypes_h.m4 too.
38704
38705 2009-01-12  Eric Blake  <ebb9@byu.net>
38706
38707         tests: IRIX 6.2 cc can't compile -0.0 into .data
38708         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38709         rather than at compile-time.
38710         * tests/test-floorl.c (minus_zero): Likewise.
38711         * tests/test-frexpl.c (minus_zero): Likewise.
38712         * tests/test-isnan.c (minus_zerol): Likewise.
38713         * tests/test-isnanl.h (minus_zero): Likewise.
38714         * tests/test-ldexpl.c (minus_zero): Likewise.
38715         * tests/test-roundl.c (minus_zero): Likewise.
38716         * tests/test-signbit.c (minus_zerol): Likewise.
38717         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38718         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38719         * tests/test-truncl.c (minus_zero): Likewise.
38720         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38721         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38722         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38723
38724 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38725
38726         regex: fix glibc bug 9697
38727         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38728         handling.
38729
38730 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38731
38732         regex: fix glibc bug 697
38733         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38734         being NULL also if there are no backreferences.
38735
38736 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38737
38738         regex: merge glibc changes
38739         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38740         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38741         re_string_skip_chars, re_string_reconstruct): Likewise.
38742         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38743
38744 2009-01-07  Jim Meyering  <meyering@redhat.com>
38745
38746         poll: filter through cppi
38747         * lib/poll.c: Indent cpp directives to reflect nesting.
38748
38749 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38750
38751         poll: don't return uninitialized
38752         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38753
38754 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38755
38756         avoid compile failure on AIX 6.1
38757         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38758         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38759
38760 2009-01-04  Jim Meyering  <meyering@redhat.com>
38761
38762         remove duplicate inclusion of <stdio.h>
38763         * tests/test-fprintf-posix.c: Likewise.
38764         * tests/test-printf-posix.c: Likewise.
38765         * tests/test-snprintf-posix.c: Likewise.
38766         * tests/test-sprintf-posix.c: Likewise.
38767         * tests/test-vasprintf-posix.c: Likewise.
38768         * tests/test-vfprintf-posix.c: Likewise.
38769         * tests/test-vprintf-posix.c: Likewise.
38770         * tests/test-vsnprintf-posix.c: Likewise.
38771         * tests/test-vsprintf-posix.c: Likewise.
38772
38773 2009-01-03  Jim Meyering  <meyering@redhat.com>
38774
38775         gnulib-tool: fix sed-based filtering
38776         * gnulib-tool (func_filter_filelist): Remove extra backslash
38777         in sed_fff_filter definition.
38778
38779 2009-01-02  Jim Meyering  <meyering@redhat.com>
38780
38781         strftime: avoid compilation failure on Solaris 2.6
38782         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38783         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38784         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38785         be available.  Reported by Tom G. Christensen.  Details in
38786         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38787
38788 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38789             Bruno Haible  <bruno@clisp.org>
38790
38791         Speed up gnulib-tool by doing more string processing through shell
38792         built-ins.
38793         * gnulib-tool (fast_func_append): New variable.
38794         (func_remove_prefix, func_remove_suffix): New functions.
38795         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38796         (func_filter_filelist): New function.
38797         (func_get_dependencies): Use func_remove_suffix instead of sed.
38798         (func_get_automake_snippet): Use func_filter_filelist instead of a
38799         subshell and sed invocation.
38800
38801 2009-01-01  Bruno Haible  <bruno@clisp.org>
38802
38803         Fix a security bug.
38804         * gnulib-tool (func_import, import, update): Don't allow the characters
38805         '"', '$', '`', '\' in macro arguments that become part of commands that
38806         are evaluated.
38807
38808 2009-01-01  Bruno Haible  <bruno@clisp.org>
38809
38810         * gnulib-tool (func_reset_sigpipe): Add more comments.
38811
38812 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38813
38814         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38815         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38816         already know the answer.
38817
38818 2009-01-01  Jim Meyering  <meyering@redhat.com>
38819
38820         * lib/version-etc.c (version_etc_va): Update copyright year.
38821
38822 2008-12-30  Bruno Haible  <bruno@clisp.org>
38823
38824         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38825         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38826         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38827
38828 2008-12-29  Eric Blake  <ebb9@byu.net>
38829
38830         multiarch: avoid autoconf AC_REQUIRE bug
38831         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38832         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38833         2.63 and older.
38834         Reported by Bruno Haible, and analyzed in
38835         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38836
38837 2008-12-29  Bruno Haible  <bruno@clisp.org>
38838
38839         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38840         files in subdirectories correctly.
38841         Reported by Ralf Wildenhues.
38842
38843 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38844
38845         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38846         rather than 'join FILE -', for Solaris join.
38847
38848 2008-12-29  Bruno Haible  <bruno@clisp.org>
38849
38850         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38851         quoting.
38852         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38853         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38854         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38855         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38856         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38857         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38858         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38859         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38860         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38861         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38862         * m4/nls.m4 (AM_NLS): Likewise.
38863         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38864         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38865         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38866         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38867         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38868         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38869         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38870         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38871         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38872         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38873         * m4/xsize.m4 (gl_XSIZE): Likewise.
38874         Suggested by Jim Meyering.
38875
38876 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38877
38878         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38879         * lib/parse-duration.c: use a switch instead of cascading if's.
38880
38881 2008-12-29  Eric Blake  <ebb9@byu.net>
38882
38883         wchar.h: supply WEOF on Irix 5.3
38884         * lib/wchar.in.h (wint_t): Also supply WEOF.
38885         * lib/wctype.in.h (wint_t): Likewise.
38886         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38887         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38888         Reported by Tom G. Christensen.
38889
38890 2008-12-26  Bruno Haible  <bruno@clisp.org>
38891
38892         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38893         i486, i586, i686.
38894
38895 2008-12-26  Bruno Haible  <bruno@clisp.org>
38896
38897         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38898
38899 2008-12-26  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38902         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38903         not __STDC_CONSTANT_MACROS.
38904         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38905
38906 2008-12-25  Bruno Haible  <bruno@clisp.org>
38907
38908         Add support for universal builds to vasnprintf.
38909         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38910         universal builds, guess no.
38911         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38912         * modules/vasprintf-posix (Depends-on): Likewise.
38913         * modules/fprintf-posix (Depends-on): Likewise.
38914         * modules/vfprintf-posix (Depends-on): Likewise.
38915         * modules/snprintf-posix (Depends-on): Likewise.
38916         * modules/vsnprintf-posix (Depends-on): Likewise.
38917         * modules/sprintf-posix (Depends-on): Likewise.
38918         * modules/vsprintf-posix (Depends-on): Likewise.
38919         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38920         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38921         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38922         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38923         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38924         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38925         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38926
38927         Add support for universal builds to <inttypes.h>.
38928         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38929         _SCNu64_PREFIX): In Apple
38930         universal builds, define directly, using _LP64.
38931         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38932         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38933         * modules/inttypes (Depends-on): Add multiarch.
38934         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38935
38936         Add support for universal builds to <stdint.h>.
38937         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38938         universal builds, define directly, using _LP64.
38939         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38940         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38941         and size_t.
38942         * modules/stdint (Depends-on): Add multiarch.
38943         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38944
38945         New module 'multiarch'.
38946         * modules/multiarch: New file.
38947         * m4/multiarch.m4: New file.
38948
38949 2008-12-25  Bruno Haible  <bruno@clisp.org>
38950
38951         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38952
38953 2008-12-25  Bruno Haible  <bruno@clisp.org>
38954
38955         * modules/btowc (License): Relicense under LGPLv2+.
38956         * modules/mbsinit (License): Likewise.
38957         * modules/mbrtowc (License): Likewise.
38958         * modules/wcrtomb (License): Likewise.
38959         * modules/streq (License): Likewise.
38960         Reported by David Lutterkort <lutter@redhat.com>.
38961
38962 2008-12-23  Bruno Haible  <bruno@clisp.org>
38963
38964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38965
38966 2008-12-23  Bruno Haible  <bruno@clisp.org>
38967
38968         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38970         GETADDRINFO_LIB, not in LIBS.
38971         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38972         * modules/canon-host (Link): Likewise.
38973         * NEWS: Mention the change.
38974         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38975         GETADDRINFO_LIB.
38976
38977 2008-12-22  Bruno Haible  <bruno@clisp.org>
38978
38979         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38980         * doc/posix-functions/iswalpha_l.texi: Likewise.
38981         * doc/posix-functions/iswblank_l.texi: Likewise.
38982         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38983         * doc/posix-functions/iswctype_l.texi: Likewise.
38984         * doc/posix-functions/iswdigit_l.texi: Likewise.
38985         * doc/posix-functions/iswgraph_l.texi: Likewise.
38986         * doc/posix-functions/iswlower_l.texi: Likewise.
38987         * doc/posix-functions/iswprint_l.texi: Likewise.
38988         * doc/posix-functions/iswpunct_l.texi: Likewise.
38989         * doc/posix-functions/iswspace_l.texi: Likewise.
38990         * doc/posix-functions/iswupper_l.texi: Likewise.
38991         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38992         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38993         * doc/posix-functions/open_wmemstream.texi: Likewise.
38994         * doc/posix-functions/swscanf.texi: Likewise.
38995         * doc/posix-functions/towctrans_l.texi: Likewise.
38996         * doc/posix-functions/towlower.texi: Likewise.
38997         * doc/posix-functions/towlower_l.texi: Likewise.
38998         * doc/posix-functions/towupper.texi: Likewise.
38999         * doc/posix-functions/towupper_l.texi: Likewise.
39000         * doc/posix-functions/vfwprintf.texi: Likewise.
39001         * doc/posix-functions/vfwscanf.texi: Likewise.
39002         * doc/posix-functions/vswscanf.texi: Likewise.
39003         * doc/posix-functions/vwprintf.texi: Likewise.
39004         * doc/posix-functions/vwscanf.texi: Likewise.
39005         * doc/posix-functions/wcpcpy.texi: Likewise.
39006         * doc/posix-functions/wcpncpy.texi: Likewise.
39007         * doc/posix-functions/wcscasecmp.texi: Likewise.
39008         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39009         * doc/posix-functions/wcscoll_l.texi: Likewise.
39010         * doc/posix-functions/wcsdup.texi: Likewise.
39011         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39012         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39013         * doc/posix-functions/wcsnlen.texi: Likewise.
39014         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39015         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39016         * doc/posix-functions/wctrans_l.texi: Likewise.
39017         * doc/posix-functions/wctype_l.texi: Likewise.
39018         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39019         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39020         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39021         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39022         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39023         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39024         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39025         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39026         * doc/glibc-functions/wcschrnul.texi: Likewise.
39027         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39028         * doc/glibc-functions/wcstod_l.texi: Likewise.
39029         * doc/glibc-functions/wcstof_l.texi: Likewise.
39030         * doc/glibc-functions/wcstol_l.texi: Likewise.
39031         * doc/glibc-functions/wcstold_l.texi: Likewise.
39032         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39033         * doc/glibc-functions/wcstoq.texi: Likewise.
39034         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39035         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39036         * doc/glibc-functions/wcstouq.texi: Likewise.
39037         * doc/glibc-functions/wmempcpy.texi: Likewise.
39038
39039 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39040             Eric Blake  <ebb9@byu.net>
39041             Paolo Bonzini  <bonzini@gnu.org>
39042             Bruno Haible  <bruno@clisp.org>
39043
39044         Make c-stack work on Haiku.
39045         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39046         (c_stack_action): Use SA_ONSTACK flag.
39047
39048 2008-12-22  Bruno Haible  <bruno@clisp.org>
39049
39050         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39051
39052 2008-12-22  Bruno Haible  <bruno@clisp.org>
39053
39054         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39055         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39056         being overridden.
39057         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39058         New macros.
39059         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39061         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39062         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39063
39064 2008-12-22  Bruno Haible  <bruno@clisp.org>
39065
39066         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39067         from test code.
39068
39069 2008-12-22  Eric Blake  <ebb9@byu.net>
39070
39071         Avoid gcc warnings on cygwin.
39072         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39073         Avoid unused variable.
39074         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39075         Likewise.
39076
39077 2008-12-22  Bruno Haible  <bruno@clisp.org>
39078
39079         Remove HAVE_MBRTOWC conditionals.
39080         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39081         (mbscasecmp): Assume mbrtowc function.
39082         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39083         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39084         * lib/mbschr.c: Include mbuiter.h unconditionally.
39085         (mbschr): Assume mbrtowc function.
39086         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39087         (mbscspn): Assume mbrtowc function.
39088         * lib/mbslen.c: Include mbuiter.h unconditionally.
39089         (mbslen): Assume mbrtowc function.
39090         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39091         (mbsncasecmp): Assume mbrtowc function.
39092         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39093         (mbsnlen): Assume mbrtowc function.
39094         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39095         (mbspbrk): Assume mbrtowc function.
39096         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39097         (mbspcasecmp): Assume mbrtowc function.
39098         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39099         (mbsrchr): Assume mbrtowc function.
39100         * lib/mbssep.c: Include mbuiter.h unconditionally.
39101         (mbssep): Assume mbrtowc function.
39102         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39103         (mbsspn): Assume mbrtowc function.
39104         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39105         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39106         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39107         (mbstok_r): Assume mbrtowc function.
39108         * lib/propername.c: Include mbuiter.h unconditionally.
39109         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39110         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39111         (trim2): Assume mbrtowc function.
39112         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39113         (mbsnwidth): Assume mbrtowc function.
39114         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39115         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39116         fallback definitions.
39117         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39118
39119 2008-12-22  Bruno Haible  <bruno@clisp.org>
39120
39121         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39122
39123 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39124
39125         * modules/regex: Request emulations for the mb*/wc* functions we need.
39126         * m4/regex.m4: Don't look for those functions here.
39127         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39128
39129 2008-12-22  Bruno Haible  <bruno@clisp.org>
39130
39131         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39132
39133 2008-12-21  Bruno Haible  <bruno@clisp.org>
39134
39135         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39136         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39137         (Include): Remove conditionalization.
39138         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39139         (Include): Remove conditionalization.
39140         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39141         (Include): Remove conditionalization.
39142         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39143         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39144         * NEWS: Mention the change.
39145         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39146         via Sergey Poznyakoff <gray@gnu.org.ua>.
39147
39148 2008-12-21  Bruno Haible  <bruno@clisp.org>
39149
39150         * MODULES.html.sh (Extended multibyte and wide character utilities
39151         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39152         wcrtomb, wcsrtombs.
39153         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39154         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39155         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39156         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39157
39158 2008-12-21  Bruno Haible  <bruno@clisp.org>
39159
39160         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39161
39162 2008-12-21  Bruno Haible  <bruno@clisp.org>
39163
39164         * modules/wcsnrtombs-tests: New file.
39165         * tests/test-wcsnrtombs1.sh: New file.
39166         * tests/test-wcsnrtombs2.sh: New file.
39167         * tests/test-wcsnrtombs3.sh: New file.
39168         * tests/test-wcsnrtombs4.sh: New file.
39169         * tests/test-wcsnrtombs.c: New file.
39170
39171         New module 'wcsnrtombs'.
39172         * lib/wchar.in.h (wcsnrtombs): New declaration.
39173         * lib/wcsnrtombs.c: New file.
39174         * lib/wcsrtombs-state.c: New file.
39175         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39176         (internal_state): Remove variable.
39177         * m4/wcsnrtombs.m4: New file.
39178         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39179         compilation units.
39180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39181         HAVE_WCSNRTOMBS.
39182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39183         HAVE_WCSNRTOMBS.
39184         * modules/wcsnrtombs: New file.
39185         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39186         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39187
39188 2008-12-21  Bruno Haible  <bruno@clisp.org>
39189
39190         * modules/wcsrtombs-tests: New file.
39191         * tests/test-wcsrtombs1.sh: New file.
39192         * tests/test-wcsrtombs2.sh: New file.
39193         * tests/test-wcsrtombs3.sh: New file.
39194         * tests/test-wcsrtombs4.sh: New file.
39195         * tests/test-wcsrtombs.c: New file.
39196
39197         New module 'wcsrtombs'.
39198         * lib/wchar.in.h (wcsrtombs): New declaration.
39199         * lib/wcsrtombs.c: New file.
39200         * m4/wcsrtombs.m4: New file.
39201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39202         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39204         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39205         * modules/wcsrtombs: New file.
39206         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39207         bugs.
39208
39209 2008-12-21  Bruno Haible  <bruno@clisp.org>
39210
39211         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39212         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39214         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39215         if not correct.
39216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39217         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39218         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39219         m4/locale-zh.m4, m4/codeset.m4.
39220         * doc/posix-functions/wcrtomb.texi: Document the bug.
39221
39222 2008-12-21  Bruno Haible  <bruno@clisp.org>
39223
39224         Work around a btowc() bug on IRIX 6.5.
39225         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39226         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39227         REPLACE_WTOBC if not.
39228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39229         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39230         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39231
39232 2008-12-21  Bruno Haible  <bruno@clisp.org>
39233
39234         * modules/wcrtomb-tests: New file.
39235         * tests/test-wcrtomb.sh: New file.
39236         * tests/test-wcrtomb.c: New file.
39237
39238         New module 'wcrtomb'.
39239         * lib/wchar.in.h (wcrtomb): New declaration.
39240         * lib/wcrtomb.c: New file.
39241         * m4/wcrtomb.m4: New file.
39242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39243         HAVE_WCRTOMB.
39244         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39245         HAVE_WCRTOMB.
39246         * modules/wcrtomb: New file.
39247         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39248
39249 2008-12-21  Bruno Haible  <bruno@clisp.org>
39250
39251         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39252         * modules/mbsrtowcs (Files): Likewise.
39253         * modules/wctob (Files): Likewise.
39254         * modules/c-strcase-tests (Files): Likewise.
39255         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39256         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39257         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39258         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39259         * modules/vasnprintf-posix-tests (Files): Likewise.
39260
39261 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39262
39263         gitlog-to-changelog: pass all command-line arguments to git-log
39264         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39265         it is sometimes convenient to filter the commits in various ways.
39266         gitlog-to-changelog only allows --since to specify a start date,
39267         but git-log itself supports many other filtering mechanisms.
39268         At the moment, I want to filter by branch name.  Rather than
39269         adding a --branch option to gitlog-to-changelog, it seems more
39270         flexible to simply pass all options directly to git-log and let
39271         git do the work.  Notice that this effectively makes --since a
39272         redundant option for gitlog-to-changelog, but removing it would
39273         require current usage to change since calls would then require
39274         an additional '--'.
39275
39276 2008-12-21  Bruno Haible  <bruno@clisp.org>
39277
39278         * modules/mbsnrtowcs-tests: New file.
39279         * tests/test-mbsnrtowcs1.sh: New file.
39280         * tests/test-mbsnrtowcs2.sh: New file.
39281         * tests/test-mbsnrtowcs3.sh: New file.
39282         * tests/test-mbsnrtowcs4.sh: New file.
39283         * tests/test-mbsnrtowcs.c: New file.
39284
39285         New module 'mbsnrtowcs'.
39286         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39287         * lib/mbsnrtowcs.c: New file.
39288         * lib/mbsrtowcs-state.c: New file.
39289         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39290         (internal_state): Remove variable.
39291         * m4/mbsnrtowcs.m4: New file.
39292         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39293         compilation units.
39294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39295         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39296         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39297         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39298         * modules/mbsnrtowcs: New file.
39299         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39300         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39301         portability problem.
39302
39303 2008-12-21  Bruno Haible  <bruno@clisp.org>
39304
39305         Work around mbsrtowcs bug.
39306         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39307         (gl_FUNC_MBSRTOWCS): Invoke it.
39308         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39309         m4/locale-zh.m4.
39310         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39311
39312 2008-12-21  Bruno Haible  <bruno@clisp.org>
39313
39314         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39315
39316 2008-12-21  Bruno Haible  <bruno@clisp.org>
39317
39318         Update doc for AIX.
39319         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39320         16-bit wchar_t type.
39321         * doc/posix-functions/btowc.texi: Likewise.
39322         * doc/posix-functions/fgetwc.texi: Likewise.
39323         * doc/posix-functions/fgetws.texi: Likewise.
39324         * doc/posix-functions/fputwc.texi: Likewise.
39325         * doc/posix-functions/fputws.texi: Likewise.
39326         * doc/posix-functions/fwide.texi: Likewise.
39327         * doc/posix-functions/fwprintf.texi: Likewise.
39328         * doc/posix-functions/fwscanf.texi: Likewise.
39329         * doc/posix-functions/getwchar.texi: Likewise.
39330         * doc/posix-functions/getwc.texi: Likewise.
39331         * doc/posix-functions/iswalnum.texi: Likewise.
39332         * doc/posix-functions/iswalpha.texi: Likewise.
39333         * doc/posix-functions/iswblank.texi: Likewise.
39334         * doc/posix-functions/iswcntrl.texi: Likewise.
39335         * doc/posix-functions/iswctype.texi: Likewise.
39336         * doc/posix-functions/iswdigit.texi: Likewise.
39337         * doc/posix-functions/iswgraph.texi: Likewise.
39338         * doc/posix-functions/iswlower.texi: Likewise.
39339         * doc/posix-functions/iswprint.texi: Likewise.
39340         * doc/posix-functions/iswpunct.texi: Likewise.
39341         * doc/posix-functions/iswspace.texi: Likewise.
39342         * doc/posix-functions/iswupper.texi: Likewise.
39343         * doc/posix-functions/iswxdigit.texi: Likewise.
39344         * doc/posix-functions/mbrtowc.texi: Likewise.
39345         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39346         * doc/posix-functions/mbstowcs.texi: Likewise.
39347         * doc/posix-functions/mbtowc.texi: Likewise.
39348         * doc/posix-functions/putwchar.texi: Likewise.
39349         * doc/posix-functions/putwc.texi: Likewise.
39350         * doc/posix-functions/swprintf.texi: Likewise.
39351         * doc/posix-functions/tolower.texi: Likewise.
39352         * doc/posix-functions/toupper.texi: Likewise.
39353         * doc/posix-functions/towctrans.texi: Likewise.
39354         * doc/posix-functions/ungetwc.texi: Likewise.
39355         * doc/posix-functions/vswprintf.texi: Likewise.
39356         * doc/posix-functions/wcrtomb.texi: Likewise.
39357         * doc/posix-functions/wcscat.texi: Likewise.
39358         * doc/posix-functions/wcschr.texi: Likewise.
39359         * doc/posix-functions/wcscmp.texi: Likewise.
39360         * doc/posix-functions/wcscoll.texi: Likewise.
39361         * doc/posix-functions/wcscpy.texi: Likewise.
39362         * doc/posix-functions/wcscspn.texi: Likewise.
39363         * doc/posix-functions/wcsftime.texi: Likewise.
39364         * doc/posix-functions/wcslen.texi: Likewise.
39365         * doc/posix-functions/wcsncat.texi: Likewise.
39366         * doc/posix-functions/wcsncmp.texi: Likewise.
39367         * doc/posix-functions/wcsncpy.texi: Likewise.
39368         * doc/posix-functions/wcspbrk.texi: Likewise.
39369         * doc/posix-functions/wcsrchr.texi: Likewise.
39370         * doc/posix-functions/wcsrtombs.texi: Likewise.
39371         * doc/posix-functions/wcsspn.texi: Likewise.
39372         * doc/posix-functions/wcsstr.texi: Likewise.
39373         * doc/posix-functions/wcstod.texi: Likewise.
39374         * doc/posix-functions/wcstof.texi: Likewise.
39375         * doc/posix-functions/wcstoimax.texi: Likewise.
39376         * doc/posix-functions/wcstok.texi: Likewise.
39377         * doc/posix-functions/wcstold.texi: Likewise.
39378         * doc/posix-functions/wcstoll.texi: Likewise.
39379         * doc/posix-functions/wcstol.texi: Likewise.
39380         * doc/posix-functions/wcstombs.texi: Likewise.
39381         * doc/posix-functions/wcstoull.texi: Likewise.
39382         * doc/posix-functions/wcstoul.texi: Likewise.
39383         * doc/posix-functions/wcstoumax.texi: Likewise.
39384         * doc/posix-functions/wcswidth.texi: Likewise.
39385         * doc/posix-functions/wcsxfrm.texi: Likewise.
39386         * doc/posix-functions/wctob.texi: Likewise.
39387         * doc/posix-functions/wctomb.texi: Likewise.
39388         * doc/posix-functions/wctrans.texi: Likewise.
39389         * doc/posix-functions/wctype.texi: Likewise.
39390         * doc/posix-functions/wcwidth.texi: Likewise.
39391         * doc/posix-functions/wmemchr.texi: Likewise.
39392         * doc/posix-functions/wmemcmp.texi: Likewise.
39393         * doc/posix-functions/wmemcpy.texi: Likewise.
39394         * doc/posix-functions/wmemmove.texi: Likewise.
39395         * doc/posix-functions/wmemset.texi: Likewise.
39396         * doc/posix-functions/wprintf.texi: Likewise.
39397         * doc/posix-functions/wscanf.texi: Likewise.
39398
39399 2008-12-21  Bruno Haible  <bruno@clisp.org>
39400
39401         Update doc for HP-UX 11.11.
39402         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39403         in HP-UX version 11.00, not in all versions of HP-UX 11.
39404         * doc/posix-functions/fwide.texi: Likewise.
39405         * doc/posix-functions/fwprintf.texi: Likewise.
39406         * doc/posix-functions/fwscanf.texi: Likewise.
39407         * doc/posix-functions/inet_ntop.texi: Likewise.
39408         * doc/posix-functions/inet_pton.texi: Likewise.
39409         * doc/posix-functions/mbrlen.texi: Likewise.
39410         * doc/posix-functions/mbrtowc.texi: Likewise.
39411         * doc/posix-functions/mbsinit.texi: Likewise.
39412         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39413         * doc/posix-functions/swprintf.texi: Likewise.
39414         * doc/posix-functions/swscanf.texi: Likewise.
39415         * doc/posix-functions/towctrans.texi: Likewise.
39416         * doc/posix-functions/vfwprintf.texi: Likewise.
39417         * doc/posix-functions/vswprintf.texi: Likewise.
39418         * doc/posix-functions/vwprintf.texi: Likewise.
39419         * doc/posix-functions/wcrtomb.texi: Likewise.
39420         * doc/posix-functions/wcsrtombs.texi: Likewise.
39421         * doc/posix-functions/wcsstr.texi: Likewise.
39422         * doc/posix-functions/wctob.texi: Likewise.
39423         * doc/posix-functions/wctrans.texi: Likewise.
39424         * doc/posix-functions/wmemchr.texi: Likewise.
39425         * doc/posix-functions/wmemcmp.texi: Likewise.
39426         * doc/posix-functions/wmemcpy.texi: Likewise.
39427         * doc/posix-functions/wmemmove.texi: Likewise.
39428         * doc/posix-functions/wmemset.texi: Likewise.
39429         * doc/posix-functions/wprintf.texi: Likewise.
39430         * doc/posix-functions/wscanf.texi: Likewise.
39431
39432 2008-12-21  Bruno Haible  <bruno@clisp.org>
39433
39434         Work around a portability problem.
39435         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39436         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39437
39438 2008-12-20  Bruno Haible  <bruno@clisp.org>
39439
39440         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39441         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39442         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39444         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39445
39446         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39447         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39448         set.
39449         (GNULIB_defined_mbstate_t): New macro.
39450         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39451         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39452         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39453         reuses the system's mbrtowc function but works around the bugs.
39454         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39455         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39456         macros.
39457         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39458         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39459         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39460         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39461         REPLACE_MBSINIT if mbsinit needs to be overridden.
39462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39463         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39464         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39465         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39466         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39467         m4/locale-zh.m4.
39468         (Depends): Add mbsinit.
39469         * modules/mbsinit (Depends): Add mbrtowc.
39470         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39471
39472 2008-12-20  Bruno Haible  <bruno@clisp.org>
39473
39474         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39475         so that there are no conversion errors on AIX.
39476         * tests/test-mbsrtowcs.c (main): LIkewise.
39477
39478 2008-12-20  Bruno Haible  <bruno@clisp.org>
39479
39480         Work around wctob bug on Solaris <= 9.
39481         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39482         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39484         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39485         * modules/wctob (Files): Add m4/locale-fr.m4.
39486         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39487
39488 2008-12-20  Bruno Haible  <bruno@clisp.org>
39489
39490         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39491         /dev/null.
39492         * tests/test-select-in.sh: Likewise.
39493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39494
39495 2008-12-20  Bruno Haible  <bruno@clisp.org>
39496
39497         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39498         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39499         Cygwin 1.5.x.
39500
39501 2008-12-20  Bruno Haible  <bruno@clisp.org>
39502
39503         Ensure mbstate_t is defined on HP-UX 11.11.
39504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39505         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39506         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39507         AC_USE_SYSTEM_EXTENSIONS.
39508         * modules/fnmatch (Depends-on): Add extensions.
39509         * modules/mbrlen (Depends-on): Likewise.
39510         * modules/mbrtowc (Depends-on): Likewise.
39511         * modules/mbsinit (Depends-on): Likewise.
39512         * modules/mbsrtowcs (Depends-on): Likewise.
39513         * modules/mbswidth (Depends-on): Likewise.
39514         * modules/quotearg (Depends-on): Likewise.
39515         * modules/strftime (Depends-on): Likewise.
39516
39517 2008-12-20  Bruno Haible  <bruno@clisp.org>
39518
39519         Ensure wctob is declared on IRIX 6.5.
39520         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39521         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39522         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39524         of HAVE_WCTOB.
39525         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39526         HAVE_WCTOB.
39527         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39528
39529 2008-12-19  Bruno Haible  <bruno@clisp.org>
39530
39531         * modules/mbsrtowcs-tests: New file.
39532         * tests/test-mbsrtowcs1.sh: New file.
39533         * tests/test-mbsrtowcs2.sh: New file.
39534         * tests/test-mbsrtowcs3.sh: New file.
39535         * tests/test-mbsrtowcs4.sh: New file.
39536         * tests/test-mbsrtowcs.c: New file.
39537
39538         New module 'mbsrtowcs'.
39539         * lib/wchar.in.h (mbsrtowcs): New declaration.
39540         * lib/mbsrtowcs.c: New file.
39541         * m4/mbsrtowcs.m4: New file.
39542         * modules/mbsrtowcs: New file.
39543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39544         HAVE_MBSRTOWCS.
39545         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39546         HAVE_MBSRTOWCS.
39547         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39548
39549 2008-12-19  Bruno Haible  <bruno@clisp.org>
39550
39551         New module 'mbrlen'.
39552         * lib/wchar.in.h (mbrlen): New declaration.
39553         * lib/mbrlen.c: New file.
39554         * m4/mbrlen.m4: New file.
39555         * modules/mbrlen: New file.
39556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39557         HAVE_MBRLEN.
39558         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39559         HAVE_MBRLEN.
39560         * doc/posix-functions/mbrlen.texi: Document the new module.
39561
39562 2008-12-19  Bruno Haible  <bruno@clisp.org>
39563
39564         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39565         * modules/mbrtowc (Depends-on): Add verify.
39566         Suggested by Paul Eggert.
39567
39568 2008-12-18  Bruno Haible  <bruno@clisp.org>
39569
39570         * modules/mbsinit-tests: New file.
39571         * tests/test-mbsinit.sh: New file.
39572         * tests/test-mbsinit.c: New file.
39573
39574 2008-12-18  Bruno Haible  <bruno@clisp.org>
39575
39576         * modules/mbrtowc-tests: New file.
39577         * tests/test-mbrtowc1.sh: New file.
39578         * tests/test-mbrtowc2.sh: New file.
39579         * tests/test-mbrtowc3.sh: New file.
39580         * tests/test-mbrtowc4.sh: New file.
39581         * tests/test-mbrtowc.c: New file.
39582
39583         New module 'mbrtowc'.
39584         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39585         mbsinit and mbrtowc.
39586         (mbrtowc): New declaration.
39587         * lib/mbrtowc.c: New file.
39588         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39589         * modules/mbrtowc: New file.
39590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39591         HAVE_MBRTOWC.
39592         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39593         HAVE_MBRTOWC.
39594         * doc/posix-functions/mbrtowc.texi: Document the new module.
39595
39596 2008-12-18  Bruno Haible  <bruno@clisp.org>
39597
39598         New module 'wctob'.
39599         * lib/wchar.in.h (wctob): New declaration.
39600         * lib/wctob.c: New file.
39601         * m4/wctob.m4: New file.
39602         * modules/wctob: New file.
39603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39604         HAVE_WCTOB.
39605         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39606         * doc/posix-functions/wctob.texi: Document the new module.
39607
39608 2008-12-18  Bruno Haible  <bruno@clisp.org>
39609
39610         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39611         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39612
39613 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39614
39615         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39616         G. Christensen" <tgc@jupiterrise.com>.
39617
39618         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39619         G. Christensen" <tgc@jupiterrise.com>.
39620
39621         * lib/flock.c: Need to include string.h.  Reported by "Tom
39622         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39623         <ebb9@byu.net>.
39624
39625 2008-12-18  Bruno Haible  <bruno@clisp.org>
39626
39627         * m4/locale-ja.m4: New file, from GNU gettext.
39628
39629 2008-12-17  Bruno Haible  <bruno@clisp.org>
39630
39631         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39632         Suggested by Eric Blake.
39633
39634 2008-12-17  Bruno Haible  <bruno@clisp.org>
39635
39636         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39637
39638 2008-12-17  Bruno Haible  <bruno@clisp.org>
39639
39640         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39641         * modules/mbsinit (Depends-on): Add verify.
39642         Suggested by Paul Eggert.
39643
39644 2008-12-17  Bruno Haible  <bruno@clisp.org>
39645
39646         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39647         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39648         gl_FUNC_MBRTOWC.
39649         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39650         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39651         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39652         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39653         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39654         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39655         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39656         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39657         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39658         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39659         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39660         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39661         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39662         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39663         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39664         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39665         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39666         * modules/trim (configure.ac): Likewise.
39667
39668 2008-12-17  Bruno Haible  <bruno@clisp.org>
39669
39670         * modules/btowc-tests: New file.
39671         * tests/test-btowc1.sh: New file.
39672         * tests/test-btowc2.sh: New file.
39673         * tests/test-btowc.c: New file.
39674
39675         New module 'btowc'.
39676         * lib/wchar.in.h (btowc): New declaration.
39677         * lib/btowc.c: New file.
39678         * m4/btowc.m4: New file.
39679         * modules/btowc: New file.
39680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39681         HAVE_BTOWC.
39682         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39683         * doc/posix-functions/btowc.texi: Document the new module.
39684
39685 2008-12-17  Bruno Haible  <bruno@clisp.org>
39686
39687         New module 'mbsinit'.
39688         * lib/wchar.in.h (mbsinit): New declaration.
39689         * lib/mbsinit.c: New file.
39690         * m4/mbsinit.m4: New file.
39691         * modules/mbsinit: New file.
39692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39693         HAVE_MBSINIT.
39694         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39695         HAVE_MBSINIT.
39696         * doc/posix-functions/mbsinit.texi: Document the new module.
39697
39698 2008-12-16  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/unistd.in.h: Add comment.
39701         * tests/test-environ.c: Don't include <stdlib.h>.
39702
39703 2008-12-16  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/parse-duration.h (parse_duration): Document return value
39706         convention.
39707         * lib/parse-duration.c: Include specification header first. Add
39708         comments.
39709         (_): Remove macro.
39710         (parse_year_month_day, parse_hour_minute_second): Move side effects
39711         outside of strchr call.
39712         (parse_non_iso8601): Move side effects outside of isspace call.
39713         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39714         call.
39715
39716 2008-12-16  Bruno Haible  <bruno@clisp.org>
39717
39718         * tests/test-parse-duration.sh: Produce no output when the test
39719         succeeds.
39720
39721 2008-12-16  Bruno Haible  <bruno@clisp.org>
39722
39723         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39724         expressions.
39725
39726 2008-12-15  Bruno Haible  <bruno@clisp.org>
39727
39728         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39729         * doc/glibc-functions/flistxattr.texi: Likewise.
39730         * doc/glibc-functions/fopencookie.texi: Likewise.
39731         * doc/glibc-functions/fremovexattr.texi: Likewise.
39732         * doc/glibc-functions/fsetxattr.texi: Likewise.
39733         * doc/glibc-functions/getxattr.texi: Likewise.
39734         * doc/glibc-functions/lgetxattr.texi: Likewise.
39735         * doc/glibc-functions/listxattr.texi: Likewise.
39736         * doc/glibc-functions/llistxattr.texi: Likewise.
39737         * doc/glibc-functions/lremovexattr.texi: Likewise.
39738         * doc/glibc-functions/lsetxattr.texi: Likewise.
39739         * doc/glibc-functions/removexattr.texi: Likewise.
39740         * doc/glibc-functions/setxattr.texi: Likewise.
39741         * doc/posix-functions/open_memstream.texi: Likewise.
39742
39743 2008-12-15  Eric Blake  <ebb9@byu.net>
39744
39745         Update doc for cygwin 1.7.
39746         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39747         functions.
39748         * doc/posix-functions/fchmodat.texi: Likewise.
39749         * doc/posix-functions/fchownat.texi: Likewise.
39750         * doc/posix-functions/fdopendir.texi: Likewise.
39751         * doc/posix-functions/fmemopen.texi: Likewise.
39752         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39753         * doc/posix-functions/fstatat.texi: Likewise.
39754         * doc/posix-functions/futimens.texi: Likewise.
39755         * doc/posix-functions/gai_strerror.texi: Likewise.
39756         * doc/posix-functions/getaddrinfo.texi: Likewise.
39757         * doc/posix-functions/getnameinfo.texi: Likewise.
39758         * doc/posix-functions/if_freenameindex.texi: Likewise.
39759         * doc/posix-functions/if_indextoname.texi: Likewise.
39760         * doc/posix-functions/if_nameindex.texi: Likewise.
39761         * doc/posix-functions/if_nametoindex.texi: Likewise.
39762         * doc/posix-functions/insque.texi: Likewise.
39763         * doc/posix-functions/linkat.texi: Likewise.
39764         * doc/posix-functions/llrint.texi: Likewise.
39765         * doc/posix-functions/llrintf.texi: Likewise.
39766         * doc/posix-functions/llrintl.texi: Likewise.
39767         * doc/posix-functions/lockf.texi: Likewise.
39768         * doc/posix-functions/lrintl.texi: Likewise.
39769         * doc/posix-functions/mkdirat.texi: Likewise.
39770         * doc/posix-functions/mkfifoat.texi: Likewise.
39771         * doc/posix-functions/mknodat.texi: Likewise.
39772         * doc/posix-functions/mq_close.texi: Likewise.
39773         * doc/posix-functions/mq_getattr.texi: Likewise.
39774         * doc/posix-functions/mq_notify.texi: Likewise.
39775         * doc/posix-functions/mq_open.texi: Likewise.
39776         * doc/posix-functions/mq_receive.texi: Likewise.
39777         * doc/posix-functions/mq_send.texi: Likewise.
39778         * doc/posix-functions/mq_setattr.texi: Likewise.
39779         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39780         * doc/posix-functions/mq_timedsend.texi: Likewise.
39781         * doc/posix-functions/mq_unlink.texi: Likewise.
39782         * doc/posix-functions/open_memstream.texi: Likewise.
39783         * doc/posix-functions/openat.texi: Likewise.
39784         * doc/posix-functions/posix_fadvise.texi: Likewise.
39785         * doc/posix-functions/posix_fallocate.texi: Likewise.
39786         * doc/posix-functions/posix_madvise.texi: Likewise.
39787         * doc/posix-functions/posix_memalign.texi: Likewise.
39788         * doc/posix-functions/posix_openpt.texi: Likewise.
39789         * doc/posix-functions/readlinkat.texi: Likewise.
39790         * doc/posix-functions/remque.texi: Likewise.
39791         * doc/posix-functions/renameat.texi: Likewise.
39792         * doc/posix-functions/rintl.texi: Likewise.
39793         * doc/posix-functions/sem_unlink.texi: Likewise.
39794         * doc/posix-functions/shm_open.texi: Likewise.
39795         * doc/posix-functions/shm_unlink.texi: Likewise.
39796         * doc/posix-functions/signgam.texi: Likewise.
39797         * doc/posix-functions/sigset.texi: Likewise.
39798         * doc/posix-functions/stpcpy.texi: Likewise.
39799         * doc/posix-functions/stpncpy.texi: Likewise.
39800         * doc/posix-functions/strerror.texi: Likewise.
39801         * doc/posix-functions/strtod.texi: Likewise.
39802         * doc/posix-functions/symlinkat.texi: Likewise.
39803         * doc/posix-functions/unlinkat.texi: Likewise.
39804         * doc/posix-functions/utimensat.texi: Likewise.
39805         * doc/glibc-functions/bindresvport.texi: Likewise.
39806         * doc/glibc-functions/dn_expand.texi: Likewise.
39807         * doc/glibc-functions/exp10.texi: Likewise.
39808         * doc/glibc-functions/exp10f.texi: Likewise.
39809         * doc/glibc-functions/fgetxattr.texi: Likewise.
39810         * doc/glibc-functions/flistxattr.texi: Likewise.
39811         * doc/glibc-functions/fopencookie.texi: Likewise.
39812         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39813         * doc/glibc-functions/fremovexattr.texi: Likewise.
39814         * doc/glibc-functions/fsetxattr.texi: Likewise.
39815         * doc/glibc-functions/getifaddrs.texi: Likewise.
39816         * doc/glibc-functions/getxattr.texi: Likewise.
39817         * doc/glibc-functions/lgetxattr.texi: Likewise.
39818         * doc/glibc-functions/listxattr.texi: Likewise.
39819         * doc/glibc-functions/llistxattr.texi: Likewise.
39820         * doc/glibc-functions/lremovexattr.texi: Likewise.
39821         * doc/glibc-functions/lsetxattr.texi: Likewise.
39822         * doc/glibc-functions/pow10.texi: Likewise.
39823         * doc/glibc-functions/pow10f.texi: Likewise.
39824         * doc/glibc-functions/rcmd_af.texi: Likewise.
39825         * doc/glibc-functions/removexattr.texi: Likewise.
39826         * doc/glibc-functions/res_init.texi: Likewise.
39827         * doc/glibc-functions/res_mkquery.texi: Likewise.
39828         * doc/glibc-functions/res_query.texi: Likewise.
39829         * doc/glibc-functions/res_querydomain.texi: Likewise.
39830         * doc/glibc-functions/res_send.texi: Likewise.
39831         * doc/glibc-functions/rresvport_af.texi: Likewise.
39832         * doc/glibc-functions/setxattr.texi: Likewise.
39833         * doc/glibc-functions/strcasestr.texi: Likewise.
39834
39835 2008-12-15  Bruno Haible  <bruno@clisp.org>
39836
39837         Fix compilation error on OSF/1 4.0.
39838         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39839         <sys/time.h>, simply delegate to the system header.
39840         Reported by Daniel Richard G. <oss@teragram.com>.
39841
39842 2008-12-15  Bruno Haible  <bruno@clisp.org>
39843
39844         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39845         * doc/posix-functions/fchmodat.texi: Likewise.
39846         * doc/posix-functions/fchownat.texi: Likewise.
39847         * doc/posix-functions/fdopendir.texi: Likewise.
39848         * doc/posix-functions/fstatat.texi: Likewise.
39849         * doc/posix-functions/mkdirat.texi: Likewise.
39850         * doc/posix-functions/unlinkat.texi: Likewise.
39851
39852 2008-12-14  Bruno Haible  <bruno@clisp.org>
39853
39854         Update doc for POSIX:2008.
39855         * doc/posix-functions/faccessat.texi: New file.
39856         * doc/posix-functions/fchmodat.texi: New file.
39857         * doc/posix-functions/fchownat.texi: New file.
39858         * doc/posix-functions/fdopendir.texi: New file.
39859         * doc/posix-functions/fstatat.texi: New file.
39860         * doc/posix-functions/futimens.texi: New file.
39861         * doc/posix-functions/linkat.texi: New file.
39862         * doc/posix-functions/mkdirat.texi: New file.
39863         * doc/posix-functions/mkfifoat.texi: New file.
39864         * doc/posix-functions/mknodat.texi: New file.
39865         * doc/posix-functions/open_wmemstream.texi: New file.
39866         * doc/posix-functions/openat.texi: New file.
39867         * doc/posix-functions/psiginfo.texi: New file.
39868         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39869         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39870         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39871         * doc/posix-functions/readlinkat.texi: New file.
39872         * doc/posix-functions/renameat.texi: New file.
39873         * doc/posix-functions/strerror_l.texi: New file.
39874         * doc/posix-functions/symlinkat.texi: New file.
39875         * doc/posix-functions/unlinkat.texi: New file.
39876         * doc/posix-functions/utimensat.texi: New file.
39877         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39878
39879 2008-12-14  Bruno Haible  <bruno@clisp.org>
39880
39881         Update doc for POSIX:2008.
39882         * doc/posix-functions/alphasort.texi: Renamed from
39883         doc/glibc-functions/alphasort.texi.
39884         * doc/posix-functions/dirfd.texi: Renamed from
39885         doc/glibc-functions/dirfd.texi.
39886         * doc/posix-functions/dprintf.texi: Renamed from
39887         doc/glibc-functions/dprintf.texi.
39888         * doc/posix-functions/duplocale.texi: Renamed from
39889         doc/glibc-functions/duplocale.texi.
39890         * doc/posix-functions/fexecve.texi: Renamed from
39891         doc/glibc-functions/fexecve.texi.
39892         * doc/posix-functions/fmemopen.texi: Renamed from
39893         doc/glibc-functions/fmemopen.texi.
39894         * doc/posix-functions/freelocale.texi: Renamed from
39895         doc/glibc-functions/freelocale.texi.
39896         * doc/posix-functions/getdate_err.texi: Renamed from
39897         doc/glibc-functions/getdate_err.texi.
39898         * doc/posix-functions/isalnum_l.texi: Renamed from
39899         doc/glibc-functions/isalnum_l.texi.
39900         * doc/posix-functions/isalpha_l.texi: Renamed from
39901         doc/glibc-functions/isalpha_l.texi.
39902         * doc/posix-functions/isblank_l.texi: Renamed from
39903         doc/glibc-functions/isblank_l.texi.
39904         * doc/posix-functions/iscntrl_l.texi: Renamed from
39905         doc/glibc-functions/iscntrl_l.texi.
39906         * doc/posix-functions/isdigit_l.texi: Renamed from
39907         doc/glibc-functions/isdigit_l.texi.
39908         * doc/posix-functions/isgraph_l.texi: Renamed from
39909         doc/glibc-functions/isgraph_l.texi.
39910         * doc/posix-functions/islower_l.texi: Renamed from
39911         doc/glibc-functions/islower_l.texi.
39912         * doc/posix-functions/isprint_l.texi: Renamed from
39913         doc/glibc-functions/isprint_l.texi.
39914         * doc/posix-functions/ispunct_l.texi: Renamed from
39915         doc/glibc-functions/ispunct_l.texi.
39916         * doc/posix-functions/isspace_l.texi: Renamed from
39917         doc/glibc-functions/isspace_l.texi.
39918         * doc/posix-functions/isupper_l.texi: Renamed from
39919         doc/glibc-functions/isupper_l.texi.
39920         * doc/posix-functions/iswalnum_l.texi: Renamed from
39921         doc/glibc-functions/iswalnum_l.texi.
39922         * doc/posix-functions/iswalpha_l.texi: Renamed from
39923         doc/glibc-functions/iswalpha_l.texi.
39924         * doc/posix-functions/iswblank_l.texi: Renamed from
39925         doc/glibc-functions/iswblank_l.texi.
39926         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39927         doc/glibc-functions/iswcntrl_l.texi.
39928         * doc/posix-functions/iswctype_l.texi: Renamed from
39929         doc/glibc-functions/iswctype_l.texi.
39930         * doc/posix-functions/iswdigit_l.texi: Renamed from
39931         doc/glibc-functions/iswdigit_l.texi.
39932         * doc/posix-functions/iswgraph_l.texi: Renamed from
39933         doc/glibc-functions/iswgraph_l.texi.
39934         * doc/posix-functions/iswlower_l.texi: Renamed from
39935         doc/glibc-functions/iswlower_l.texi.
39936         * doc/posix-functions/iswprint_l.texi: Renamed from
39937         doc/glibc-functions/iswprint_l.texi.
39938         * doc/posix-functions/iswpunct_l.texi: Renamed from
39939         doc/glibc-functions/iswpunct_l.texi.
39940         * doc/posix-functions/iswspace_l.texi: Renamed from
39941         doc/glibc-functions/iswspace_l.texi.
39942         * doc/posix-functions/iswupper_l.texi: Renamed from
39943         doc/glibc-functions/iswupper_l.texi.
39944         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39945         doc/glibc-functions/iswxdigit_l.texi.
39946         * doc/posix-functions/isxdigit_l.texi: Renamed from
39947         doc/glibc-functions/isxdigit_l.texi.
39948         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39949         doc/glibc-functions/mbsnrtowcs.texi.
39950         * doc/posix-functions/mkdtemp.texi: Renamed from
39951         doc/glibc-functions/mkdtemp.texi.
39952         * doc/posix-functions/newlocale.texi: Renamed from
39953         doc/glibc-functions/newlocale.texi.
39954         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39955         doc/glibc-functions/nl_langinfo_l.texi.
39956         * doc/posix-functions/open_memstream.texi: Renamed from
39957         doc/glibc-functions/open_memstream.texi.
39958         * doc/posix-functions/opterr.texi: Renamed from
39959         doc/glibc-functions/opterr.texi.
39960         * doc/posix-functions/optind.texi: Renamed from
39961         doc/glibc-functions/optind.texi.
39962         * doc/posix-functions/optopt.texi: Renamed from
39963         doc/glibc-functions/optopt.texi.
39964         * doc/posix-functions/psignal.texi: Renamed from
39965         doc/glibc-functions/psignal.texi.
39966         * doc/posix-functions/scandir.texi: Renamed from
39967         doc/glibc-functions/scandir.texi.
39968         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39969         doc/glibc-functions/sched_get_priority_min.texi.
39970         * doc/posix-functions/signgam.texi: Renamed from
39971         doc/glibc-functions/signgam.texi.
39972         * doc/posix-functions/stpcpy.texi: Renamed from
39973         doc/glibc-functions/stpcpy.texi.
39974         * doc/posix-functions/stpncpy.texi: Renamed from
39975         doc/glibc-functions/stpncpy.texi.
39976         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39977         doc/glibc-functions/strcasecmp_l.texi.
39978         * doc/posix-functions/strcoll_l.texi: Renamed from
39979         doc/glibc-functions/strcoll_l.texi.
39980         * doc/posix-functions/strfmon_l.texi: Renamed from
39981         doc/glibc-functions/strfmon_l.texi.
39982         * doc/posix-functions/strftime_l.texi: Renamed from
39983         doc/glibc-functions/strftime_l.texi.
39984         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39985         doc/glibc-functions/strncasecmp_l.texi.
39986         * doc/posix-functions/strndup.texi: Renamed from
39987         doc/glibc-functions/strndup.texi.
39988         * doc/posix-functions/strnlen.texi: Renamed from
39989         doc/glibc-functions/strnlen.texi.
39990         * doc/posix-functions/strsignal.texi: Renamed from
39991         doc/glibc-functions/strsignal.texi.
39992         * doc/posix-functions/strxfrm_l.texi: Renamed from
39993         doc/glibc-functions/strxfrm_l.texi.
39994         * doc/posix-functions/timer_gettime.texi: Renamed from
39995         doc/glibc-functions/timer_gettime.texi.
39996         * doc/posix-functions/tolower_l.texi: Renamed from
39997         doc/glibc-functions/tolower_l.texi.
39998         * doc/posix-functions/toupper_l.texi: Renamed from
39999         doc/glibc-functions/toupper_l.texi.
40000         * doc/posix-functions/towctrans_l.texi: Renamed from
40001         doc/glibc-functions/towctrans_l.texi.
40002         * doc/posix-functions/towlower_l.texi: Renamed from
40003         doc/glibc-functions/towlower_l.texi.
40004         * doc/posix-functions/towupper_l.texi: Renamed from
40005         doc/glibc-functions/towupper_l.texi.
40006         * doc/posix-functions/uselocale.texi: Renamed from
40007         doc/glibc-functions/uselocale.texi.
40008         * doc/posix-functions/vdprintf.texi: Renamed from
40009         doc/glibc-functions/vdprintf.texi.
40010         * doc/posix-functions/wcpcpy.texi:
40011         Renamed from doc/glibc-functions/wcpcpy.texi.
40012         * doc/posix-functions/wcpncpy.texi: Renamed from
40013         doc/glibc-functions/wcpncpy.texi.
40014         * doc/posix-functions/wcscasecmp.texi: Renamed from
40015         doc/glibc-functions/wcscasecmp.texi.
40016         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40017         doc/glibc-functions/wcscasecmp_l.texi.
40018         * doc/posix-functions/wcscoll_l.texi: Renamed from
40019         doc/glibc-functions/wcscoll_l.texi.
40020         * doc/posix-functions/wcsdup.texi: Renamed from
40021         doc/glibc-functions/wcsdup.texi.
40022         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40023         doc/glibc-functions/wcsncasecmp.texi.
40024         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40025         doc/glibc-functions/wcsncasecmp_l.texi.
40026         * doc/posix-functions/wcsnlen.texi: Renamed from
40027         doc/glibc-functions/wcsnlen.texi.
40028         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40029         doc/glibc-functions/wcsnrtombs.texi.
40030         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40031         doc/glibc-functions/wcsxfrm_l.texi.
40032         * doc/posix-functions/wctrans_l.texi: Renamed from
40033         doc/glibc-functions/wctrans_l.texi.
40034         * doc/posix-functions/wctype_l.texi: Renamed from
40035         doc/glibc-functions/wctype_l.texi.
40036         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40037         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40038         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40039         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40040         these subsections.
40041         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40042         Remove sections.
40043
40044 2008-12-14  Bruno Haible  <bruno@clisp.org>
40045
40046         Update doc for POSIX:2008.
40047         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40048
40049 2008-12-14  Bruno Haible  <bruno@clisp.org>
40050
40051         Update doc for POSIX:2008.
40052         * doc/pastposix-functions/bcmp.texi: Renamed from
40053         doc/posix-functions/bcmp.texi.
40054         * doc/pastposix-functions/bcopy.texi: Renamed from
40055         doc/posix-functions/bcopy.texi.
40056         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40057         doc/posix-functions/bsd_signal.texi.
40058         * doc/pastposix-functions/bzero.texi: Renamed from
40059         doc/posix-functions/bzero.texi.
40060         * doc/pastposix-functions/ecvt.texi: Renamed from
40061         doc/posix-functions/ecvt.texi.
40062         * doc/pastposix-functions/fcvt.texi: Renamed from
40063         doc/posix-functions/fcvt.texi.
40064         * doc/pastposix-functions/ftime.texi: Renamed from
40065         doc/posix-functions/ftime.texi.
40066         * doc/pastposix-functions/gcvt.texi: Renamed from
40067         doc/posix-functions/gcvt.texi.
40068         * doc/pastposix-functions/getcontext.texi: Renamed from
40069         doc/posix-functions/getcontext.texi.
40070         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40071         doc/posix-functions/gethostbyaddr.texi.
40072         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40073         doc/posix-functions/gethostbyname.texi.
40074         * doc/pastposix-functions/getwd.texi: Renamed from
40075         doc/posix-functions/getwd.texi.
40076         * doc/pastposix-functions/h_errno.texi: Renamed from
40077         doc/posix-functions/h_errno.texi.
40078         * doc/pastposix-functions/index.texi: Renamed from
40079         doc/posix-functions/index.texi.
40080         * doc/pastposix-functions/makecontext.texi: Renamed from
40081         doc/posix-functions/makecontext.texi.
40082         * doc/pastposix-functions/mktemp.texi: Renamed from
40083         doc/posix-functions/mktemp.texi.
40084         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40085         doc/posix-functions/pthread_attr_getstackaddr.texi.
40086         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40087         doc/posix-functions/pthread_attr_setstackaddr.texi.
40088         * doc/pastposix-functions/rindex.texi: Renamed from
40089         doc/posix-functions/rindex.texi.
40090         * doc/pastposix-functions/scalb.texi: Renamed from
40091         doc/posix-functions/scalb.texi.
40092         * doc/pastposix-functions/setcontext.texi: Renamed from
40093         doc/posix-functions/setcontext.texi.
40094         * doc/pastposix-functions/swapcontext.texi: Renamed from
40095         doc/posix-functions/swapcontext.texi.
40096         * doc/pastposix-functions/ualarm.texi: Renamed from
40097         doc/posix-functions/ualarm.texi.
40098         * doc/pastposix-functions/usleep.texi: Renamed from
40099         doc/posix-functions/usleep.texi.
40100         * doc/pastposix-functions/vfork.texi: Renamed from
40101         doc/posix-functions/vfork.texi.
40102         * doc/pastposix-functions/wcswcs.texi: Renamed from
40103         doc/posix-functions/wcswcs.texi.
40104         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40105         (Function Substitutes): Update.
40106
40107 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40108
40109         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40110         m4/strerror.m4.
40111
40112 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40113             Bruno Haible  <bruno@clisp.org>
40114
40115         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40116
40117 2008-12-13  Bruno Haible  <bruno@clisp.org>
40118
40119         * modules/strtoull (Depends-on): Remove unistd.
40120
40121 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40122
40123         * modules/strtoull (Depends-on): Add stdlib.
40124
40125 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40126
40127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40128
40129 2008-12-10  Jim Meyering  <meyering@redhat.com>
40130
40131         gl_ASSERT: don't say assertions are disabled when they're not
40132         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40133         "checking whether to enable assertions... no", when they are in
40134         fact enabled.  This is solely a bug in the output of configure.
40135         In spite of saying "no", NDEBUG was not defined in that case.
40136         Also, as noted by Eric Blake, leave assertions enabled upon
40137         --enable-assert=INVALID.
40138
40139 2008-12-10  Bruno Haible  <bruno@clisp.org>
40140
40141         Change MODULES.html to refer to POSIX:2008 where possible.
40142         * MODULES.html.sh (POSIX2008_URL): New variable.
40143         (posix_headers): Remove sys/timeb, ucontext.
40144         (posix2001_headers): New variable.
40145         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40146         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40147         index, makecontext, mktemp, pthread_attr_getstackaddr,
40148         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40149         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40150         (posix2001_functions): New variable.
40151         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40152         otherwise.
40153
40154 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40155
40156         add missing include to parse-duration.c
40157         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40158         * modules/parse-duration (Depends-on): Add xalloc.
40159
40160         fix sed script reading maint.mk
40161         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40162         (syntax-check-rules): Use it.
40163
40164 2008-12-09  Bruno Haible  <bruno@clisp.org>
40165
40166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40167         MacOS X 10.4/PowerPC.
40168         Reported by Simon Josefsson.
40169
40170 2008-12-08  Jim Meyering  <meyering@redhat.com>
40171
40172         work around mingw's lack of some S_IF definitions
40173         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40174         Reported by Simon Josefsson.
40175
40176 2008-12-08  Bruno Haible  <bruno@clisp.org>
40177
40178         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40179         applied to variables. Needed on MacOS X 10.4/PowerPC.
40180         Reported by Simon Josefsson.
40181
40182 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40183         and Eric Blake  <ebb9@byu.net>
40184
40185         assert: honor --enable-assert
40186         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40187         order to honor --enable-assert, rather than treating it as a
40188         synonym for --disable-assert.
40189
40190 2008-12-08  Jim Meyering  <meyering@redhat.com>
40191
40192         * lib/posixtm.c: Remove now-useless declaration of mktime.
40193
40194         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40195
40196 2008-12-07  Bruno Haible  <bruno@clisp.org>
40197
40198         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40199         test_once): Mark functions as static.
40200         * tests/test-tls.c (test_tls): Likewise.
40201
40202 2008-12-07  Bruno Haible  <bruno@clisp.org>
40203
40204         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40205         iconv_register_autodetect.
40206
40207 2008-12-07  Jim Meyering  <meyering@redhat.com>
40208
40209         posixtm.c: avoid a warning
40210         * lib/posixtm.c (posixtime): Don't initialize tm0.
40211         It's no longer needed to placate gcc4's -Wuninitialized,
40212         and the attempt to placate would elicit a new warning.
40213
40214         unicodeio.c: mark unused parameters
40215         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40216         (fallback_failure_callback): Likewise.
40217
40218 2008-12-07  Bruno Haible  <bruno@clisp.org>
40219
40220         * gnulib-tool (func_create_testdir): When building the tests
40221         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40222         Reported by Simon Josefsson.
40223
40224 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40225
40226         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40227
40228 2008-12-06  Bruno Haible  <bruno@clisp.org>
40229
40230         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40231         Suggested by Eric Blake.
40232
40233 2008-12-06  Bruno Haible  <bruno@clisp.org>
40234
40235         Fix a c-stack test failure on MacOS X.
40236         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40237         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40238         handler for SIGBUS as well.
40239         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40240         install a signal handler for SIGBUS as well.
40241         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40242
40243 2008-12-06  Bruno Haible  <bruno@clisp.org>
40244
40245         Advocacy documentation.
40246         * doc/gnulib-intro.texi (Benefits): New section.
40247         * doc/gnulib.texi: Update.
40248
40249 2008-12-06  Bruno Haible  <bruno@clisp.org>
40250
40251         Document the 'manywarnings' module.
40252         * doc/manywarnings.texi: New file.
40253         * doc/gnulib.texi: Include it.
40254
40255 2008-12-05  Eric Blake  <ebb9@byu.net>
40256
40257         tests: silence some gcc warnings
40258         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40259         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40260         type mismatches.
40261
40262 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40263             Bruno Haible  <bruno@clisp.org>
40264
40265         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40266
40267 2008-11-29  Jim Meyering  <meyering@redhat.com>
40268
40269         unicodeio.c: mark unused parameters
40270         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40271         (fallback_failure_callback): Likewise.
40272
40273         fts: fix a thinko
40274         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40275         (set_stat_type): Return S_IF*-valued "type" directly.
40276         Prompted by James Youngman's spotting a related bug.
40277         Confirmed by further testing through find.
40278
40279         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40280         * lib/fts.c (D_TYPE): Define.
40281         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40282         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40283         (s_ifmt_shift_bits): New function.
40284         (set_stat_type): New function.
40285         (fts_build): When not calling fts_stat, call set_stat_type
40286         to propagate dirent.d_type info to fts_read caller.
40287         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40288         fts_statp->st_mode type information may be valid.
40289
40290 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40291
40292         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40293         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40294         <sds@gnu.org>.
40295
40296 2008-11-20  Bruno Haible  <bruno@clisp.org>
40297
40298         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40299         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40300         INCLUDE_NEXT.
40301         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40302         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40303         * modules/math (Makefile.am): Substitute
40304         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40306
40307 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40308             Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/stdint.in.h: Define all type macros so that their expansion is
40311         a single typedef'ed token. Fixes a compilation failure in Boost which
40312         does "using ::int8_t;".
40313
40314 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40315
40316         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40317         gl_MANYWARN_ALL_GCC.
40318         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40319         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40320         * modules/manywarnings: New file.
40321         * MODULES.html.sh: Mention manywarnings module.
40322
40323 2008-11-18  Bruno Haible  <bruno@clisp.org>
40324
40325         * doc/gnulib-tool.texi (Unit tests): New section.
40326
40327 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40328
40329         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40330         paths like 'lib/po/foo.po'.
40331
40332 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40333
40334         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40335         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40336
40337 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40338
40339         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40340         parameter works.
40341
40342 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40343
40344         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40345
40346 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40347
40348         * modules/parse-duration-tests: New file.
40349         * tests/test-parse-duration.sh: New file.
40350         * tests/test-parse-duration.c: New file.
40351
40352         New module 'parse-duration'.
40353         * lib/parse-duration.h: New file.
40354         * lib/parse-duration.c: New file.
40355         * modules/parse-duration: New file.
40356
40357 2008-11-17  Bruno Haible  <bruno@clisp.org>
40358
40359         * tests/test-select-out.sh: Comment out the first pipe test.
40360         Reported by Simon Josefsson.
40361
40362 2008-11-17  Bruno Haible  <bruno@clisp.org>
40363
40364         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40366         gl_HOSTENT.
40367
40368 2008-11-17  Bruno Haible  <bruno@clisp.org>
40369
40370         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40371         -lnetwork and -lnet. Needed for Haiku and BeOS.
40372
40373 2008-11-16  Bruno Haible  <bruno@clisp.org>
40374
40375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40376
40377 2008-11-16  Bruno Haible  <bruno@clisp.org>
40378
40379         Avoid test failure on Haiku.
40380         * tests/test-fsync.c: Include <errno.h>.
40381         (main): Don't require that fsync (0) fails.
40382
40383 2008-11-15  Bruno Haible  <bruno@clisp.org>
40384
40385         New module 'hostent'.
40386         * modules/hostent: New file.
40387         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40388
40389 2008-11-15  Bruno Haible  <bruno@clisp.org>
40390
40391         New module 'servent'.
40392         * modules/servent: New file.
40393         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40394
40395 2008-11-15  Bruno Haible  <bruno@clisp.org>
40396
40397         Avoid generating same test program with two different rules.
40398         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40399         test-frexp to test-frexp-nolibm.
40400         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40401         test-frexpl to test-frexpl-nolibm.
40402
40403 2008-11-15  Bruno Haible  <bruno@clisp.org>
40404
40405         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40406         $(FREXPL_LIBM).
40407
40408 2008-11-15  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/netdb.in.h: Activate the definitions also when the system's
40411         <netdb.h> has 'struct addrinfo'.
40412         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40413         EAI_OVERFLOW or AI_NUMERICSERV.
40414         * doc/posix-headers/netdb.texi: Document the problem.
40415
40416 2008-11-15  Bruno Haible  <bruno@clisp.org>
40417
40418         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40419
40420         Make the 'sched' module work on platforms where <sched.h> exists but
40421         is incomplete (such as Haiku).
40422         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40423         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40424         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40425         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40426         HAVE_STRUCT_SCHED_PARAM.
40427         * modules/sched (Depends-on): Add include_next.
40428         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40429         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40430         * doc/posix-headers/sched.texi: Document the issue.
40431
40432 2008-11-13  Jim Meyering  <meyering@redhat.com>
40433
40434         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40435         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40436         test would fail due to the difference in the Report bugs to ...
40437         line.  The expected address is empty, "<>", while the actual
40438         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40439
40440 2008-11-12  Bruno Haible  <bruno@clisp.org>
40441
40442         lstat: don't compile lstat.c on systems lacking lstat
40443         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40444         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40445         Reported by Daniel P. Berrange via Jim Meyering.
40446
40447 2008-11-12  Jim Meyering  <meyering@redhat.com>
40448
40449         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40450
40451 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40452
40453         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40454         instead.
40455
40456 2008-11-12  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/unicodeio.c: Include unistr.h.
40459         (utf8_wctomb): Remove function.
40460         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40461
40462 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40463
40464         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40465         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40466         <bruno@clisp.org>.
40467         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40468
40469 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40470
40471         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40472         * doc/gnulib.texi: Add section for warnings.
40473
40474 2008-11-11  Bruno Haible  <bruno@clisp.org>
40475
40476         * lib/sockets.h: Add a comment.
40477
40478 2008-11-11  Karl Berry  <karl@gnu.org>
40479
40480         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40481
40482 2008-11-11  Eric Blake  <ebb9@byu.net>
40483
40484         fdl.texi: avoid git symlinks
40485         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40486
40487 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40488
40489         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40490
40491 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40492
40493         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40494         (gl_WARN_ADD): Substitute $2 if literal.
40495
40496 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40497
40498         * m4/warning.m4: Remove.
40499
40500 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40501
40502         * m4/warnings.m4: Almost complete rewrite. :-)
40503
40504 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40505
40506         * modules/warnings: New module.
40507         * m4/warnings.m4: New file.
40508         * MODULES.html.sh: Mention warnings module.
40509         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40510         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40511
40512 2008-11-10  Eric Blake  <ebb9@byu.net>
40513
40514         fdl.texi: make a symlink to the latest version
40515         * doc/standards.texi: Revert today's earlier change.
40516         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40517         * doc/fdl.texi: ...and replace this with a symlink to the newer
40518         fdl-1.3.texi.
40519
40520 2008-11-10  Bruno Haible  <bruno@clisp.org>
40521
40522         * tests/test-select-fd.c (main): Accept the result file name as fourth
40523         argument.
40524         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40525         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40526
40527 2008-11-10  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40530         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40531         as autoconf-substituted macros.
40532         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40534         gl_NETDB_H_DEFAULTS. Set these variables.
40535         * modules/netdb (Makefile.am): Substitute these variables.
40536
40537 2008-11-10  Eric Blake  <ebb9@byu.net>
40538
40539         standards.texi: include correct file for FDL 1.3
40540         * doc/standards.texi (GNU Free Documentation License): Change
40541         include file to pull in FDL 1.3, not 1.2.
40542
40543         fdl.texi: revert accidental change to license
40544         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40545
40546 2008-11-10  Bruno Haible  <bruno@clisp.org>
40547
40548         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40549         cross-compiling guesses also when the native compile gives no result.
40550
40551 2008-11-10  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/spawni.c (__spawni): Force variable into the stack.
40554
40555 2008-11-10  Bruno Haible  <bruno@clisp.org>
40556
40557         Add support for Haiku.
40558         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40559         glibc and BeOS, but also on Haiku.
40560         * lib/fpurge.c (fpurge): Likewise.
40561         * lib/freadable.c (freadable): Likewise.
40562         * lib/freadahead.c (freadahead): Likewise.
40563         * lib/freading.c (freading): Likewise.
40564         * lib/freadptr.c (freadptr): Likewise.
40565         * lib/freadseek.c (freadptrinc): Likewise.
40566         * lib/fseeko.c (rpl_fseeko): Likewise.
40567         * lib/fseterr.c (fseterr): Likewise.
40568         * lib/fwritable.c (fwritable): Likewise.
40569         * lib/fwriting.c (fwriting): Likewise.
40570         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40571
40572 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40573
40574         * lib/config.charset: Treat Haiku like BeOS.
40575
40576 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40577
40578         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40579         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40580
40581 2008-11-08  Bruno Haible  <bruno@clisp.org>
40582
40583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40584         AC_CACHE_CHECK.
40585
40586 2008-11-08  Bruno Haible  <bruno@clisp.org>
40587
40588         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40589
40590 2008-11-08  Bruno Haible  <bruno@clisp.org>
40591
40592         * tests/test-select-fd.c: New file.
40593         * tests/test-select-in.sh: New file.
40594         * tests/test-select-out.sh: New file.
40595         * tests/test-select-stdin.c: New file.
40596         * modules/select-tests (Files): Add the new files.
40597         (Depends-on): Add gettimeofday.
40598         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40599         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40600         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40601
40602 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40603             Bruno Haible  <bruno@clisp.org>
40604
40605         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40606
40607 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40608
40609         * build-aux/pmccabe2html: Added support for C++ source files.
40610
40611 2008-11-05  Ben Pfaff  <blp@gnu.org>
40612
40613         Fix lib/close.c build on Windows.
40614         * modules/close (Files): Add lib/w32sock.h.
40615
40616 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40617
40618         Accept Bison's NEWS format.
40619         * build-aux/announce-gen (print_news_deltas): Tweak
40620         $re_prefix.
40621
40622 2008-11-04  Bruno Haible  <bruno@clisp.org>
40623
40624         * modules/random_r (Maintainer): Add glibc.
40625
40626 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40627
40628         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40629         by karl@freefriends.org (Karl Berry).
40630         * doc/alloca.texi: Likewise.
40631         * doc/c-ctype.texi: Likewise.
40632         * doc/c-strcase.texi: Likewise.
40633         * doc/c-strcaseeq.texi: Likewise.
40634         * doc/c-strcasestr.texi: Likewise.
40635         * doc/c-strstr.texi: Likewise.
40636         * doc/c-strtod.texi: Likewise.
40637         * doc/c-strtold.texi: Likewise.
40638         * doc/ctime.texi: Likewise.
40639         * doc/error.texi: Likewise.
40640         * doc/fdl.texi: Likewise.
40641         * doc/gcd.texi: Likewise.
40642         * doc/getdate.texi: Likewise.
40643         * doc/gnulib-intro.texi: Likewise.
40644         * doc/gnulib-tool.texi: Likewise.
40645         * doc/gnulib.texi: Likewise.
40646         * doc/inet_ntoa.texi: Likewise.
40647         * doc/maintain.texi: Likewise.
40648         * doc/make-stds.texi: Likewise.
40649         * doc/quote.texi: Likewise.
40650         * doc/regexprops-generic.texi: Likewise.
40651         * doc/standards.texi: Likewise.
40652         * doc/verify.texi: Likewise.
40653         * doc/visibility.texi: Likewise.
40654         * doc/gnulib.texi (GNU Free Documentation License): Include
40655         fdl-1.3.texi instead of fdl.texi.
40656
40657 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40658
40659         * doc/fdl-1.3.texi: New file, from
40660         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40661         * modules/fdl-1.3: Add.
40662         * MODULES.html.sh: Add fdl-1.3.
40663
40664 2008-11-03  Bruno Haible  <bruno@clisp.org>
40665
40666         Make determination of absolute name of header file work with AIX xlc.
40667         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40668         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40669         preprocessing.
40670         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40671         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40672
40673 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40674
40675         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40676         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40677         <ludo@gnu.org>.
40678
40679 2008-11-02  Bruno Haible  <bruno@clisp.org>
40680
40681         Mark 'strpbrk' obsolete.
40682         * modules/strpbrk (Status, Notice): New sections.
40683         * modules/strtok_r (Depends-on): Add strpbrk.
40684
40685 2008-11-02  Bruno Haible  <bruno@clisp.org>
40686
40687         Mark 'strdup' obsolete.
40688         * modules/strdup (Status, Notice): New sections.
40689         * modules/findprog (Depends-on): Add strdup.
40690         * modules/getaddrinfo (Depends-on): Likewise.
40691         * modules/localename (Depends-on): Likewise.
40692         * modules/relocatable-lib (Depends-on): Likewise.
40693         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40694         * modules/relocatable-prog (Depends-on): Likewise.
40695         * modules/trim (Depends-on): Likewise.
40696         * modules/unictype/gen-ctype (Depends-on): Likewise.
40697         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40698
40699 2008-11-02  Bruno Haible  <bruno@clisp.org>
40700
40701         Mark 'strcspn' obsolete.
40702         * modules/strcspn (Status, Notice): New sections.
40703
40704 2008-11-02  Bruno Haible  <bruno@clisp.org>
40705
40706         Mark 'rmdir' obsolete.
40707         * modules/rmdir (Status, Notice): New sections.
40708         * modules/clean-temp (Depends-on): Add rmdir.
40709         * modules/openat (Depends-on): Likewise.
40710
40711 2008-11-02  Bruno Haible  <bruno@clisp.org>
40712
40713         Mark 'raise' obsolete.
40714         * modules/raise (Status, Notice): New sections.
40715         (Include): Specify <signal.h>.
40716         * modules/stdio (Depends-on): Add raise.
40717         * modules/write (Depends-on): Likewise.
40718
40719 2008-11-02  Bruno Haible  <bruno@clisp.org>
40720
40721         Mark 'memset' obsolete.
40722         * modules/memset (Status, Notice): New sections.
40723
40724 2008-11-02  Bruno Haible  <bruno@clisp.org>
40725
40726         Mark 'memmove' obsolete.
40727         * modules/memmove (Status, Notice): New sections.
40728         * modules/argp (Depends-on): Add memmove.
40729         * modules/argz (Depends-on): Likewise.
40730         * modules/canonicalize (Depends-on): Likewise.
40731         * modules/canonicalize-lgpl (Depends-on): Likewise.
40732         * modules/fts (Depends-on): Likewise.
40733         * modules/getcwd (Depends-on): Likewise.
40734         * modules/human (Depends-on): Likewise.
40735         * modules/regex (Depends-on): Likewise.
40736         * modules/striconveh (Depends-on): Likewise.
40737         * modules/trim (Depends-on): Likewise.
40738         * modules/unistr/u8-move (Depends-on): Likewise.
40739         * modules/unistr/u16-move (Depends-on): Likewise.
40740         * modules/unistr/u32-move (Depends-on): Likewise.
40741
40742 2008-11-02  Bruno Haible  <bruno@clisp.org>
40743
40744         Mark 'memcpy' obsolete.
40745         * modules/memcpy (Status, Notice): New sections.
40746
40747 2008-11-02  Bruno Haible  <bruno@clisp.org>
40748
40749         Mark 'memcmp' obsolete.
40750         * modules/memcmp (Status, Notice): New sections.
40751         * modules/argmatch (Depends-on): Add memchr.
40752         * modules/backupfile (Depends-on): Likewise.
40753         * modules/c-strcasestr (Depends-on): Likewise.
40754         * modules/crypto/des (Depends-on): Likewise.
40755         * modules/csharpcomp (Depends-on): Likewise.
40756         * modules/fnmatch (Depends-on): Likewise.
40757         * modules/git-merge-changelog (Depends-on): Likewise.
40758         * modules/isnand (Depends-on): Likewise.
40759         * modules/isnand-nolibm (Depends-on): Likewise.
40760         * modules/isnanf (Depends-on): Likewise.
40761         * modules/isnanf-nolibm (Depends-on): Likewise.
40762         * modules/isnanl (Depends-on): Likewise.
40763         * modules/isnanl-nolibm (Depends-on): Likewise.
40764         * modules/mbchar (Depends-on): Likewise.
40765         * modules/memcoll (Depends-on): Likewise.
40766         * modules/quotearg (Depends-on): Likewise.
40767         * modules/regex (Depends-on): Likewise.
40768         * modules/relocatable-prog (Depends-on): Likewise.
40769         * modules/same (Depends-on): Likewise.
40770         * modules/signbit (Depends-on): Likewise.
40771         * modules/strcasestr-simple (Depends-on): Likewise.
40772         * modules/unictype/gen-ctype (Depends-on): Likewise.
40773         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40774         * modules/uniname/uniname (Depends-on): Likewise.
40775         * modules/unistr/u8-cmp (Depends-on): Likewise.
40776
40777 2008-11-02  Bruno Haible  <bruno@clisp.org>
40778
40779         Mark 'memchr' obsolete.
40780         * modules/memchr (Status, Notice): New sections.
40781         * modules/argp (Depends-on): Add memchr.
40782         * modules/base64 (Depends-on): Likewise.
40783         * modules/c-strcasestr (Depends-on): Likewise.
40784         * modules/chdir-long (Depends-on): Likewise.
40785         * modules/fnmatch (Depends-on): Likewise.
40786         * modules/getsubopt (Depends-on): Likewise.
40787         * modules/git-merge-changelog (Depends-on): Likewise.
40788         * modules/glob (Depends-on): Likewise.
40789         * modules/strcasestr-simple (Depends-on): Likewise.
40790         * modules/strnlen (Depends-on): Likewise.
40791
40792 2008-11-02  Bruno Haible  <bruno@clisp.org>
40793
40794         Mark 'atexit' obsolete.
40795         * modules/atexit (Status, Notice): New sections.
40796         * modules/chdir-long (Depends-on): Add atexit.
40797         * modules/wait-process (Depends-on): Likewise.
40798
40799 2008-11-02  Bruno Haible  <bruno@clisp.org>
40800
40801         * gnulib-tool: New option --with-obsolete.
40802         (func_usage): Document it.
40803         (func_modules_transitive_closure): Drop obsolete dependencies if
40804         incobsolete is not true.
40805         (func_import): Read and save the incobsolete variable to the cache.
40806
40807 2008-11-02  Bruno Haible  <bruno@clisp.org>
40808
40809         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40810         * gnulib-tool: New option --extract-status.
40811         (func_usage): Document it.
40812         (sed_extract_prog): Recognize it.
40813         (func_get_status): New function.
40814
40815 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40816
40817         * modules/sockets (License): Change from LGPL to LGPLv2+.
40818
40819 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40820
40821         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40822
40823 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40824
40825         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40826         Mention times and sys_times.
40827         * modules/sys_times, modules/sys_times-tests: New modules.
40828         * modules/times, modules/times-tests: Likewise
40829         * m4/sys_times_h.m4: New file.
40830         * lib/sys_times.in.h: Likewise
40831         * lib/times.c: Likewise.
40832         * tests/test-sys_times.c: Likewise.
40833         * tests/test-times.c: Likewise.
40834         * doc/posix-headers/sys_times.texi: Update.
40835         * doc/posix-functions/times.texi: Update.
40836
40837 2008-10-28  Jim Meyering  <meyering@redhat.com>
40838
40839         * modules/tempname (Depends-on): Add lstat.
40840
40841         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40842
40843 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40844
40845         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40846         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40847         using idiom used elsewhere in gnulib.
40848
40849 2008-10-27  Jim Meyering  <meyering@redhat.com>
40850
40851         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40852
40853 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40854
40855         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40856         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40857         programs.
40858         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40859
40860 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40861
40862         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40863
40864 2008-10-27  Bruno Haible  <bruno@clisp.org>
40865
40866         * tests/test-lstat.c: Include <stdio.h>.
40867
40868 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40869
40870         * modules/lstat-tests: New module.
40871         * tests/test-lstat.c: New file.
40872
40873 2008-10-26  Jim Meyering  <meyering@redhat.com>
40874
40875         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40876
40877 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40878             Bruno Haible  <bruno@clisp.org>
40879
40880         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40881         * modules/configmake (Include): Add a note that the include must come
40882         after all system headers.
40883         * lib/javaversion.c: Include configmake.h after all other includes.
40884
40885 2008-10-26  Bruno Haible  <bruno@clisp.org>
40886
40887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40888         HAVE_STRUCT_RANDOM_DATA to 1.
40889         (gl_STDLIB_H): Simplify.
40890
40891 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40892
40893         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40894         substitute HAVE_STRUCT_RANDOM_DATA.
40895         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40896         random_data.
40897         * modules/stdlib (Makefile.am): Substitute
40898         HAVE_STRUCT_RANDOM_DATA.
40899
40900 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40901
40902         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40903         * doc/gnulib-intro.texi (Copyright): Likewise.
40904
40905 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40906
40907         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40908         findings.
40909
40910 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40911             Bruno Haible  <bruno@clisp.org>
40912
40913         * lib/unistd.in.h: Include <winsock2.h>.
40914         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40915         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40916         Provide dummy declarations.
40917         (gethostname): Override.
40918         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40919         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40920         gl_PREREQ_SYS_H_WINSOCK2.
40921         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40922         * doc/posix-functions/gethostname.texi: More details.
40923
40924 2008-10-25  Bruno Haible  <bruno@clisp.org>
40925
40926         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40927         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40928         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40929
40930         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40931         here ...
40932         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40933         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40934         gl_UNISTD_H_DEFAULTS.
40935
40936 2008-10-25  Eric Blake  <ebb9@byu.net>
40937
40938         signbit: avoid spurious compiler failure
40939         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40940         declarations inside function.
40941
40942 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40943             Bruno Haible  <bruno@clisp.org>
40944
40945         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40946         * modules/random_r (Depends-on): Add stdint.
40947
40948 2008-10-24  Bruno Haible  <bruno@clisp.org>
40949
40950         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40951         Eggert.
40952         * modules/strerror (License): Likewise.
40953
40954 2008-10-24  Jim Meyering  <meyering@redhat.com>
40955
40956         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40957         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40958
40959 2008-10-24  Eric Blake  <ebb9@byu.net>
40960
40961         getgroups: fix compilation when getgroups is available
40962         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40963         but with <config.h> override of getgroups disabled.
40964
40965 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40966
40967         * doc/gnulib.texi (Header files): Add note about C++ problems.
40968         Explained by Bruno Haible <bruno@clisp.org>.
40969
40970 2008-10-23  Bruno Haible  <bruno@clisp.org>
40971
40972         Define a dummy SA_NODEFER macro on Interix.
40973         * lib/signal.in.h (SA_NODEFER): Define fallback.
40974         Reported by Aleksey Cheusov <cheusov@tut.by> via
40975         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40976
40977 2008-10-23  Bruno Haible  <bruno@clisp.org>
40978
40979         * modules/freadahead (License): Change to LGPLv2+.
40980         Suggested by Simon Josefsson.
40981
40982 2008-10-23  Jim Meyering  <meyering@redhat.com>
40983
40984         random_r: new module
40985         * modules/random_r: New file.
40986         * m4/random_r.m4: New file.
40987         * lib/random_r.c: New file, from glibc.
40988         * modules/random_r-tests: New file.
40989         * tests/test-random_r.c: New file.
40990         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40991          Declare.
40992         (RAND_MAX): Define.
40993         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40994         * modules/stdlib: Substitute them, too.
40995         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40996         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40997         * doc/glibc-functions/random_r.texi: Likewise.
40998         * doc/glibc-functions/setstate_r.texi: Likewise.
40999         * doc/glibc-functions/srandom_r.texi: Likewise.
41000         * config/srclist.txt: Mention it.
41001
41002 2008-10-23  David Lutterkort  <lutter@redhat.com>
41003
41004         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41005         link requirement
41006
41007 2008-10-23  Jim Meyering  <meyering@redhat.com>
41008
41009         selinux-h: mark parameters of stub functions as intentionally unused
41010         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41011         * lib/se-context.in.h: Likewise.
41012
41013 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41014
41015         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41016
41017 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41018
41019         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41020
41021 2008-10-22  Eric Blake  <ebb9@byu.net>
41022
41023         glthread/thread: avoid compiler warning
41024         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41025         Add unreachable abort to silence compiler.
41026
41027 2008-10-22  Eric Blake  <ebb9@byu.net>
41028
41029         netdb: also supply struct addrinfo for cygwin 1.5.x
41030         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41031         older cygwin.
41032         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41033         cygwin.
41034         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41035
41036 2008-10-22  Bruno Haible  <bruno@clisp.org>
41037
41038         * users.txt: Update entry about pspp.
41039
41040 2008-10-21  Bruno Haible  <bruno@clisp.org>
41041
41042         Simplification.
41043         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41044         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41045
41046         Simplification.
41047         * lib/ioctl.c (ioctl): Don't undefine.
41048         * lib/socket.c (socket): Don't undefine.
41049
41050         Remove unused module indicator macros.
41051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41052         GNULIB_$1 as a C macro.
41053
41054         * doc/posix-functions/close.texi: Undo last change.
41055         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41056         Windows platforms.
41057
41058 2008-10-21  Bruno Haible  <bruno@clisp.org>
41059
41060         Add gethostname() declaration to <unistd.h>.
41061         * lib/unistd.in.h (gethostname): New declaration.
41062         * lib/gethostname.c: Include <unistd.h>.
41063         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41064         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41066         and HAVE_GETHOSTNAME.
41067         * modules/gethostname (Depends-on): Add unistd.
41068         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41069         (Include): Specify <unistd.h>.
41070         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41071         HAVE_GETHOSTNAME.
41072         * tests/test-gethostname.c: Include <unistd.h> first.
41073
41074 2008-10-21  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41077         * modules/select-tests (Depends-on): Likewise.
41078         Reported by Simon Josefsson.
41079
41080 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41081
41082         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41083         * lib/accept.c: New file, based on winsock.c.
41084         * lib/bind.c: New file, based on winsock.c.
41085         * lib/connect.c: New file, based on winsock.c.
41086         * lib/getpeername.c: New file, based on winsock.c.
41087         * lib/getsockname.c: New file, based on winsock.c.
41088         * lib/getsockopt.c: New file, based on winsock.c.
41089         * lib/ioctl.c: New file, based on winsock.c.
41090         * lib/listen.c: New file, based on winsock.c.
41091         * lib/recv.c: New file, based on winsock.c.
41092         * lib/recvfrom.c: New file, based on winsock.c.
41093         * lib/send.c: New file, based on winsock.c.
41094         * lib/sendto.c: New file, based on winsock.c.
41095         * lib/setsockopt.c: New file, based on winsock.c.
41096         * lib/shutdown.c: New file, based on winsock.c.
41097         * lib/socket.c: New file, based on winsock.c.
41098         * lib/w32sock.h: New file, based on winsock.c.
41099         * lib/winsock.c: Remove file.
41100         * modules/accept: Likewise.
41101         * modules/bind: Likewise.
41102         * modules/connect: Likewise.
41103         * modules/getpeername: Likewise.
41104         * modules/getsockname: Likewise.
41105         * modules/getsockopt: Likewise.
41106         * modules/ioctl: Likewise.
41107         * modules/listen: Likewise.
41108         * modules/recv: Likewise.
41109         * modules/recvfrom: Likewise.
41110         * modules/send: Likewise.
41111         * modules/sendto: Likewise.
41112         * modules/setsockopt: Likewise.
41113         * modules/shutdown: Likewise.
41114         * modules/socket: Use socket.c instead of winsock.c.
41115         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41116         * doc/posix-functions/accept.texi: Doc fix.
41117         * doc/posix-functions/bind.texi: Doc fix.
41118         * doc/posix-functions/close.texi: Doc fix.
41119         * doc/posix-functions/connect.texi: Doc fix.
41120         * doc/posix-functions/getpeername.texi: Doc fix.
41121         * doc/posix-functions/getsockname.texi: Doc fix.
41122         * doc/posix-functions/getsockopt.texi: Doc fix.
41123         * doc/posix-functions/ioctl.texi: Doc fix.
41124         * doc/posix-functions/listen.texi: Doc fix.
41125         * doc/posix-functions/recv.texi: Doc fix.
41126         * doc/posix-functions/recvfrom.texi: Doc fix.
41127         * doc/posix-functions/send.texi: Doc fix.
41128         * doc/posix-functions/sendto.texi: Doc fix.
41129         * doc/posix-functions/setsockopt.texi: Doc fix.
41130         * doc/posix-functions/shutdown.texi: Doc fix.
41131         * doc/posix-functions/socket.texi: Doc fix.
41132
41133 2008-10-20  Bruno Haible  <bruno@clisp.org>
41134
41135         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41136         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41137         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41138         as an alias for SIGABRT.
41139         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41140         (sigaction): Map it to SIGABRT.
41141         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41142
41143 2008-10-20  Bruno Haible  <bruno@clisp.org>
41144
41145         * lib/fts.c: Don't include lstat.h.
41146         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41147
41148         Move the lstat() declaration to <sys/stat.h>.
41149         * lib/lstat.h: Remove file.
41150         * lib/sys_stat.in.h: Add special invocation convention.
41151         (lstat): New declaration.
41152         * lib/lstat.c (orig_lstat): New function.
41153         (rpl_lstat): Use orig_lstat instead of lstat.
41154         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41155         AC_C_INLINE. Set REPLACE_LSTAT.
41156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41157         and REPLACE_LSTAT.
41158         * modules/lstat (Files): Remove lib/lstat.h.
41159         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41160         (Include): Specify <sys/stat.h> instead of lstat.h.
41161         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41162         REPLACE_LSTAT.
41163         * NEWS: Mention the change.
41164
41165 2008-10-20  Bruno Haible  <bruno@clisp.org>
41166
41167         * modules/posix_spawn-tests: New file.
41168         * tests/test-posix_spawn3.c: New file.
41169
41170 2008-10-20  Bruno Haible  <bruno@clisp.org>
41171
41172         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41173         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41174         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41175         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41176         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41177
41178 2008-10-20  Bruno Haible  <bruno@clisp.org>
41179
41180         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41181         of posix_spawn on AIX 5.3.
41182
41183 2008-10-20  Bruno Haible  <bruno@clisp.org>
41184
41185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41186
41187 2008-10-20  Bruno Haible  <bruno@clisp.org>
41188
41189         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41190         of AC_LANG_PROGRAM.
41191
41192 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41193
41194         * lib/netdb.in.h: Don't define GNU specific constants until they
41195         are supported or needed.  Reported by Bruno Haible
41196         <bruno@clisp.org>.
41197
41198 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41199
41200         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41201
41202 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41203
41204         * lib/getaddrinfo.h: Remove file.
41205         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41206         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41207         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41208         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41209         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41210         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41211         * tests/test-getaddrinfo.c: Likewise.
41212         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41213         * NEWS: Mention change.
41214
41215 2008-10-19  Bruno Haible  <bruno@clisp.org>
41216
41217         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41218
41219 2008-10-19  Bruno Haible  <bruno@clisp.org>
41220
41221         * lib/wait-process.c: Include simply <sys/wait.h>.
41222         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41223         WIFSTOPPED): Remove fallback definitions.
41224         * modules/wait-process (Depends-on): Add sys_wait.
41225
41226         New module 'sys_wait'.
41227         * modules/sys_wait: New file.
41228         * lib/sys_wait.in.h: New file, partially copied from
41229         lib/wait-process.c.
41230         * m4/sys_wait_h.m4: New file.
41231         * doc/posix-headers/sys_wait.texi: Mention the new module.
41232
41233 2008-10-19  Bruno Haible  <bruno@clisp.org>
41234
41235         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41236
41237 2008-10-19  Bruno Haible  <bruno@clisp.org>
41238
41239         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41240         * lib/wait-process.c (WAIT_T): Remove type.
41241         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41242         (wait_subprocess): Update.
41243
41244 2008-10-19  Bruno Haible  <bruno@clisp.org>
41245
41246         New module 'atoll'.
41247         * modules/atoll: New file.
41248         * lib/stdlib.in.h (atoll): New declaration.
41249         * lib/atoll.c: New file, from glibc with modifications.
41250         * m4/atoll.m4: New file.
41251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41252         HAVE_ATOLL.
41253         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41254         * doc/posix-functions/atoll.texi: Mention the new module.
41255
41256 2008-10-19  Bruno Haible  <bruno@clisp.org>
41257
41258         Add strtoull() declaration to <stdlib.h>.
41259         * lib/stdlib.in.h (strtoull): New declaration.
41260         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41261         Set HAVE_STRTOULL.
41262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41263         HAVE_STRTOULL.
41264         * modules/strtoull (Depends-on): Add stdlib.
41265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41266         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41267         HAVE_STRTOULL.
41268
41269 2008-10-19  Bruno Haible  <bruno@clisp.org>
41270
41271         Add strtoll() declaration to <stdlib.h>.
41272         * lib/stdlib.in.h (strtoll): New declaration.
41273         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41274         Set HAVE_STRTOLL.
41275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41276         HAVE_STRTOLL.
41277         * modules/strtoll (Depends-on): Add stdlib.
41278         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41279         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41280
41281 2008-10-19  Bruno Haible  <bruno@clisp.org>
41282
41283         * modules/bcopy (Depends-on): Add strings.
41284         (Include): Specify <strings.h>.
41285
41286 2008-10-19  Bruno Haible  <bruno@clisp.org>
41287
41288         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41289
41290 2008-10-19  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41293         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41294         mingw.
41295
41296 2008-10-19  Bruno Haible  <bruno@clisp.org>
41297
41298         * lib/atanl.c: Don't include isnanl.h.
41299         * lib/cosl.c: Likewise.
41300         * lib/ldexpl.c: Likewise.
41301         * lib/logl.c: Likewise.
41302         * lib/sinl.c: Likewise.
41303         * lib/sqrtl.c: Likewise.
41304         * lib/tanl.c: Likewise.
41305
41306         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41307         * lib/isnanf.h: Remove file.
41308         * lib/isnand.h: Remove file.
41309         * lib/isnanl.h: Remove file.
41310         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41311         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41312         macros.
41313         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41314         HAVE_ISNANF, don't define it as a C macro.
41315         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41316         HAVE_ISNAND, don't define it as a C macro.
41317         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41318         HAVE_ISNANL, don't define it as a C macro.
41319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41320         HAVE_ISNAN[FDL].
41321         * modules/isnanf (Files): Remove lib/isnanf.h.
41322         (Depends-on): Add math.
41323         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41324         (Include): Specify <math.h> instead of isnanf.h.
41325         * modules/isnand (Files): Remove lib/isnand.h.
41326         (Depends-on): Add math.
41327         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41328         (Include): Specify <math.h> instead of isnand.h.
41329         * modules/isnanl (Files): Remove lib/isnanl.h.
41330         (Depends-on): Add math.
41331         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41332         (Include): Specify <math.h> instead of isnanl.h.
41333         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41334         HAVE_ISNAN[FDL].
41335         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41336         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41337         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41338         * NEWS: Mention the change.
41339
41340 2008-10-18  Bruno Haible  <bruno@clisp.org>
41341
41342         Add getusershell(), setusershell(), endusershell() declarations to
41343         <unistd.h>.
41344         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41345         declarations.
41346         * lib/getusershell.c: Include unistd.h.
41347         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41348         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41349         HAVE_GETUSERSHELL.
41350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41351         and HAVE_GETUSERSHELL.
41352         * modules/getusershell (Depends-on): Add unistd, extensions.
41353         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41354         (Include): Specify <unistd.h>.
41355         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41356         HAVE_GETUSERSHELL.
41357
41358 2008-10-18  Bruno Haible  <bruno@clisp.org>
41359
41360         Add a getloadavg() declaration to <stdlib.h>.
41361         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41362         getloadavg declaration.
41363         (getloadavg): New declaration.
41364         * lib/getloadavg.c: Include <stdlib.h> first.
41365         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41366         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41367         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41369         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41370         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41371         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41372         (Include): Specify <stdlib.h>.
41373         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41374         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41375
41376 2008-10-18  Bruno Haible  <bruno@clisp.org>
41377
41378         * lib/dirchownmod.c: Don't include lchmod.h.
41379
41380         Move the lchmod() declaration to <sys/stat.h>.
41381         * lib/lchmod.h: Remove file.
41382         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41383         (lchmod): New declaration, moved here from lib/lchown.h.
41384         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41385         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41387         and HAVE_LCHMOD.
41388         * modules/lchmod (Files): Remove lib/lchmod.h.
41389         (Depends-on): Add sys_stat, extensions.
41390         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41391         (Include): Specify <sys/stat.h> instead of lchmod.h.
41392         * modules/sys_stat (Depends-on): Add link-warning.
41393         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41394         definition of GL_LINK_WARNING.
41395         * NEWS: Mention the change.
41396
41397 2008-10-18  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/fchdir.c: Don't include dirfd.h.
41400         * lib/fts.c: Likewise.
41401         * lib/getcwd.c: Likewise.
41402         * lib/glob.c: Likewise.
41403
41404         Move the dirfd() declaration to <dirent.h>.
41405         * lib/dirfd.h: Remove file.
41406         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41407         (dirfd): New declaration.
41408         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41409         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41410         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41411         HAVE_DECL_DIRFD.
41412         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41413         HAVE_DECL_DIRFD.
41414         * modules/dirfd (Files): Remove lib/dirfd.h.
41415         (Depends-on): Add dirent, extensions.
41416         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41417         (Include): Specify <dirent.h> instead of dirfd.h.
41418         * modules/dirent (Depends-on): Add link-warning.
41419         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41420         definition of GL_LINK_WARNING.
41421         * NEWS: Mention the change.
41422
41423 2008-10-18  Bruno Haible  <bruno@clisp.org>
41424
41425         Move the euidaccess() declaration to <unistd.h>.
41426         * lib/euidaccess.h: Remove file.
41427         * lib/unistd.in.h (euidaccess): New declaration.
41428         * lib/euidaccess.c: Don't include euidaccess.h.
41429         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41430         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41432         and HAVE_EUIDACCESS.
41433         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41434         (Depends-on): Add unistd.
41435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41436         (Include): Specify <unistd.h> instead of euidaccess.h.
41437         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41438         HAVE_EUIDACCESS.
41439         * NEWS: Mention the change.
41440
41441 2008-10-18  Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41444
41445         Move the getdomainname() declaration to <unistd.h>.
41446         * lib/getdomainname.h: Remove file.
41447         * lib/unistd.in.h (getdomainname): New declaration.
41448         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41449         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41450         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41451         HAVE_GETDOMAINNAME.
41452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41453         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41454         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41455         (Depends-on): Add unistd, extensions.
41456         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41457         (Includes): Specify <unistd.h> instead of getdomainname.h.
41458         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41459         HAVE_GETDOMAINNAME.
41460         * NEWS: Mention the change.
41461
41462 2008-10-18  Bruno Haible  <bruno@clisp.org>
41463
41464         * modules/dirent: New file.
41465         * m4/dirent_h.m4: New file.
41466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41467         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41468         * modules/fchdir (Files): Remove lib/dirent.in.h.
41469         (Depends-on): Add dirent.
41470         (Makefile.am): Move rules to modules/dirent.
41471         * doc/posix-headers/dirent.texi: Mention the new module.
41472
41473 2008-10-18  Bruno Haible  <bruno@clisp.org>
41474
41475         Avoid -Wunused-parameter warnings in public gnulib header files.
41476         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41477         macro.
41478         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41479
41480 2008-10-18  Bruno Haible  <bruno@clisp.org>
41481
41482         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41483         * doc/glibc-functions/error.texi: Mention the module 'error'.
41484         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41485         * doc/glibc-functions/getdomainname.texi: Mention the module
41486         'getdomainname'.
41487         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41488         * doc/glibc-functions/getpagesize.texi: Mention the module
41489         'getpagesize'.
41490         * doc/glibc-functions/getusershell.texi: Mention the module
41491         'getusershell'.
41492         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41493         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41494         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41495         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41496         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41497         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41498         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41499         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41500         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41501         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41502         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41503         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41504         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41505         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41506
41507 2008-10-17  Bruno Haible  <bruno@clisp.org>
41508
41509         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41510         HP-UX and IRIX, use -0.0L.
41511         * tests/test-ceill.c (minus_zero): Likewise.
41512         * tests/test-floorl.c (minus_zero): Likewise.
41513         * tests/test-frexpl.c (minus_zero): Likewise.
41514         * tests/test-isnan.c (minus_zerol): Likewise.
41515         * tests/test-isnanl.h (minus_zero): Likewise.
41516         * tests/test-ldexpl.c (minus_zero): Likewise.
41517         * tests/test-roundl.c (minus_zero): Likewise.
41518         * tests/test-signbit.c (minus_zerol): Likewise.
41519         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41520         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41521         * tests/test-truncl.c (minus_zero): Likewise.
41522         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41523         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41524         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41525         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41526
41527 2008-10-17  Bruno Haible  <bruno@clisp.org>
41528
41529         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41530         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41531         that it gets activated only for gcc >= 3.0.
41532         * lib/dirent.in.h: Likewise.
41533         * lib/errno.in.h: Likewise.
41534         * lib/fcntl.in.h: Likewise.
41535         * lib/float.in.h: Likewise.
41536         * lib/iconv.in.h: Likewise.
41537         * lib/inttypes.in.h: Likewise.
41538         * lib/locale.in.h: Likewise.
41539         * lib/math.in.h: Likewise.
41540         * lib/netdb.in.h: Likewise.
41541         * lib/netinet_in.in.h: Likewise.
41542         * lib/search.in.h: Likewise.
41543         * lib/signal.in.h: Likewise.
41544         * lib/spawn.in.h: Likewise.
41545         * lib/stdarg.in.h: Likewise.
41546         * lib/stdint.in.h: Likewise.
41547         * lib/stdio.in.h: Likewise.
41548         * lib/stdlib.in.h: Likewise.
41549         * lib/string.in.h: Likewise.
41550         * lib/strings.in.h: Likewise.
41551         * lib/sys_file.in.h: Likewise.
41552         * lib/sys_ioctl.in.h: Likewise.
41553         * lib/sys_select.in.h: Likewise.
41554         * lib/sys_socket.in.h: Likewise.
41555         * lib/sys_stat.in.h: Likewise.
41556         * lib/sys_time.in.h: Likewise.
41557         * lib/sysexits.in.h: Likewise.
41558         * lib/time.in.h: Likewise.
41559         * lib/unistd.in.h: Likewise.
41560         * lib/wchar.in.h: Likewise.
41561         * lib/wctype.in.h: Likewise.
41562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41563
41564 2008-10-17  Jim Meyering  <meyering@redhat.com>
41565
41566         ignore-value: don't depend on inline module
41567         * modules/ignore-value (Depends-on): Remove 'inline'.
41568         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41569         Suggestion from Bruno Haible.
41570
41571 2008-10-17  Bruno Haible  <bruno@clisp.org>
41572
41573         New implementation of condition variables for Win32.
41574         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41575         (gl_linked_waitqueue_t): New type.
41576         (gl_cond_t): Use it.
41577         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41578         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41579         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41580         (glthread_cond_init_func, glthread_cond_wait_func,
41581         glthread_cond_timedwait_func, glthread_cond_signal_func,
41582         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41583         Reimplemented on the basis of gl_linked_waitqueue_t.
41584         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41585         gl_waitqueue_t.
41586         (gl_rwlock_t): Update.
41587         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41588
41589 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41590
41591         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41592         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41593
41594 2008-10-17  Jim Meyering  <meyering@redhat.com>
41595
41596         ignore-value: new module
41597         * modules/ignore-value: New file.
41598         * lib/ignore-value.h: New file.
41599         * MODULES.html.sh (Compiler warning management): New section,
41600         just for this module.  More to come.
41601
41602 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41603
41604         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41605         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41606         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41607
41608 2008-10-16  Jim Meyering  <meyering@redhat.com>
41609
41610         openat-die.c: avoid 'no previous prototype' warning
41611         * lib/openat-die.c: Include "openat.h".
41612         Reported by Reuben Thomas <rrt@sc3d.org>.
41613
41614 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41615
41616         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41617         * lib/netdb.in.h: Fix typo.
41618         Reported by Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/netdb.in.h: Include sys/socket.h for platforms without
41621         netdb.h, to get structures like hostent on MinGW.
41622         * modules/netdb (Depends-on): Add sys_socket.
41623
41624 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41625
41626         * modules/netdb, modules/netdb-tests: New file.
41627         * m4/netdb_h.m4: New file.
41628         * lib/netdb.in.h: Add, currently just an empty file pending
41629         definitions.
41630         * tests/test-netdb.c: New file.
41631         * doc/posix-headers/netdb.texi: Mention that we replace it if
41632         needed.
41633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41634         netdb.
41635
41636 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41637
41638         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41639         with code.
41640
41641 2008-10-13  Bruno Haible  <bruno@clisp.org>
41642
41643         * lib/glthread/cond.c (glthread_cond_wait_func,
41644         glthread_cond_timedwait_func): Add a comment.
41645
41646 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41647
41648         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41649         * tests/test-select.c: Likewise,
41650
41651 2008-10-13  Bruno Haible  <bruno@clisp.org>
41652
41653         * lib/glthread/cond.c (glthread_cond_wait_func,
41654         glthread_cond_timedwait_func): Fix variable name.
41655         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41656
41657 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41658
41659         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41660         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41661         struct sockaddr.sa_len.
41662         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41663
41664 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41665
41666         * build-aux/pmccabe2html: Add css and css_url parameters.
41667
41668 2008-10-12  Bruno Haible  <bruno@clisp.org>
41669
41670         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41671         calling aclx_get.
41672         Reported by Rainer Tammer <tammer@tammer.net>.
41673
41674 2008-10-12  Bruno Haible  <bruno@clisp.org>
41675
41676         Use msvcrt aware primitives for creation/termination of Win32 threads.
41677         * lib/glthread/thread.c: Include <process.h>.
41678         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41679         (wrapper_func): Update signature.
41680         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41681
41682 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41683             Bruno Haible  <bruno@clisp.org>
41684
41685         Provide a Win32 implementation of the 'cond' module.
41686         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41687         * lib/glthread/cond.c (glthread_cond_init_func,
41688         glthread_cond_wait_func, glthread_cond_timedwait_func,
41689         glthread_cond_signal_func, glthread_cond_broadcast_func,
41690         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41691         * modules/cond (Dependencies): Add gettimeofday.
41692
41693 2008-10-11  Bruno Haible  <bruno@clisp.org>
41694
41695         Make sleep work on older versions of mingw.
41696         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41697         only whether it exists.
41698         * doc/posix-functions/sleep.texi: Mention the problem with older
41699         versions of mingw.
41700
41701 2008-10-11  Bruno Haible  <bruno@clisp.org>
41702
41703         New module 'shutdown'.
41704         * modules/shutdown: New file.
41705         * lib/sys_socket.in.h (shutdown): New declaration.
41706         * lib/winsock.c (shutdown): New function.
41707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41708         GNULIB_SHUTDOWN.
41709         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41710         * doc/posix-functions/shutdown.texi: Document the new module.
41711
41712 2008-10-11  Jim Meyering  <meyering@redhat.com>
41713
41714         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41715
41716 2008-10-11  Bruno Haible  <bruno@clisp.org>
41717
41718         New module 'fclose'.
41719         * modules/fclose: New file.
41720         * lib/stdio.in.h (fclose): New declaration.
41721         * lib/fclose.c: New file.
41722         * m4/fclose.m4: New file.
41723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41724         REPLACE_FCLOSE.
41725         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41726         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41727         REPLACE_FCLOSE.
41728         * modules/close (Depends-on): fclose.
41729         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41730
41731 2008-10-11  Bruno Haible  <bruno@clisp.org>
41732
41733         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41734         set errno and don't call _close.
41735
41736 2008-10-10  Bruno Haible  <bruno@clisp.org>
41737
41738         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41739         ACL, not afterwards. Fixes test failure on Cygwin.
41740
41741 2008-10-09  Ben Pfaff  <blp@gnu.org>
41742
41743         * build-aux/announce-gen: Fix gnulib version related part of usage
41744         message.  Die with a useful error message if no tarballs are
41745         found.
41746
41747 2008-10-10  Jim Meyering  <meyering@redhat.com>
41748
41749         bootstrap: use git's --depth=N option only if it's supported
41750         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41751         recognize the --depth option.  Reported by Pádraig Brady.
41752
41753 2008-10-09  Bruno Haible  <bruno@clisp.org>
41754
41755         New module 'ioctl'.
41756         * modules/ioctl: New file.
41757         * lib/sys_socket.in.h (ioctl): Remove declaration.
41758         * lib/winsock.c: Include <sys/ioctl.h>.
41759         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41760         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41761         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41762         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41763         * doc/posix-functions/ioctl.texi: Mention the new module.
41764
41765 2008-10-09  Bruno Haible  <bruno@clisp.org>
41766
41767         New module 'sys_ioctl'.
41768         * lib/sys_ioctl.in.h: New file.
41769         * m4/sys_ioctl_h.m4: New file.
41770         * modules/sys_ioctl: New file.
41771         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41772
41773 2008-10-09  Bruno Haible  <bruno@clisp.org>
41774
41775         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41776         * lib/winsock.c: Include <stdarg.h>.
41777         (rpl_ioctl): Change to second argument 'int' and then varargs.
41778
41779 2008-10-09  Bruno Haible  <bruno@clisp.org>
41780
41781         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41782         when the sys_socket module is present and the system has <winsock2.h>.
41783
41784 2008-10-09  Bruno Haible  <bruno@clisp.org>
41785
41786         * doc/posix-functions/close.texi: Mention module 'close' instead of
41787         module 'sys_socket'.
41788
41789 2008-10-09  Bruno Haible  <bruno@clisp.org>
41790
41791         * doc/glibc-headers/sys_ioctl.texi: New file.
41792         * doc/gnulib.texi: Include it.
41793
41794 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41795             Bruno Haible  <bruno@clisp.org>
41796
41797         Combine the two replacements of 'close'.
41798         * lib/sys_socket.in.h (close): Define to a reminder to include
41799         <unistd.h>.
41800         (_gl_close_fd_maybe_socket): New declaration.
41801         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41802         * lib/winsock.c (close): Remove undefinition.
41803         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41804         needed for the gnulib module 'close'.
41805         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41806         define to an error symbol or to a warning, if suitable.
41807         * lib/close.c: Include <sys/socket.h>.
41808         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41809         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41810         UNISTD_H_HAVE_WINSOCK2_H.
41811         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41813         UNISTD_H_HAVE_WINSOCK2_H.
41814         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41815         (configure.ac): Set a module indicator.
41816         (Makefile.am): Substitute GNULIB_CLOSE.
41817         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41818         * modules/poll-tests (Depends-on): Add close.
41819         * modules/select-tests (Depends-on): Likewise.
41820
41821 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41822             Bruno Haible  <bruno@clisp.org>
41823
41824         New module 'close'.
41825         * modules/close: New file.
41826         * lib/unistd.in.h (close): Move declaration out of the
41827         FCHDIR_REPLACEMENT scope.
41828         (_gl_unregister_fd): New declaration.
41829         * lib/close.c: New file.
41830         * lib/fchdir.c (rpl_close): Remove function.
41831         * m4/close.m4: New file.
41832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41833         close.
41834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41835         REPLACE_CLOSE.
41836         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41837         REPLACE_CLOSE.
41838         * modules/fchdir (Depends-on): Add close.
41839
41840 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41841             Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/fcntl.in.h (open): Simplify conditionals.
41844         (_gl_register_fd): New declaration.
41845         * lib/fchdir.c (rpl_open): Remove function.
41846         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41847         also.
41848         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41850         open.
41851
41852 2008-10-09  Jim Meyering  <meyering@redhat.com>
41853
41854         GNUmakefile: use the more name-space-friendly "_version"
41855         * top/GNUmakefile (_dummy): Update.
41856         (_version): Rename from "version".
41857
41858 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41859             Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41862         rpl_close.
41863         (_gl_register_fd): New function, extracted from rpl_open.
41864         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41865         (rpl_open, rpl_opendir): Use _gl_register_fd.
41866
41867 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41868
41869         Fix organization of 'open' replacement.
41870         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41871         (gl_FUNC_OPEN): Use it.
41872         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41873
41874 2008-10-08  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41877
41878 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41879
41880         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41881         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41882         listen).
41883
41884 2008-10-08  Eric Blake  <ebb9@byu.net>
41885
41886         GNUmakefile: add 'make version' target
41887         * top/GNUmakefile (_curr-ver): Split version update rules...
41888         (version): ...into a target.
41889
41890 2008-10-07  Bruno Haible  <bruno@clisp.org>
41891
41892         Use a more portable replacement expression for -0.0L.
41893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41894         instead of -0.0L. Fix m4 quotation.
41895
41896         * tests/test-signbit.c: Include <float.h>.
41897         (minus_zero): New variable.
41898         (test_signbitl): Use minus_zero instead of -zero.
41899         * modules/signbit-tests (Depends-on): Add float.
41900
41901         * tests/test-ceill.c: Include <float.h>.
41902         (zero): Remove variable.
41903         (minus_zero): New variable.
41904         (main): Use minus_zero instead of -zero.
41905         * modules/ceill-tests (Depends-on): Add float.
41906
41907         * tests/test-floorl.c: Include <float.h>.
41908         (zero): Remove variable.
41909         (minus_zero): New variable.
41910         (main): Use minus_zero instead of -zero.
41911         * modules/floorl-tests (Depends-on): Add float.
41912
41913         * tests/test-roundl.c: Include <float.h>.
41914         (zero): Remove variable.
41915         (minus_zero): New variable.
41916         (main): Use minus_zero instead of -zero.
41917         * modules/roundl-tests (Depends-on): Add float.
41918
41919         * tests/test-truncl.c: Include <float.h>.
41920         (zero): Remove variable.
41921         (minus_zero): New variable.
41922         (main): Use minus_zero instead of -zero.
41923         * modules/truncl-tests (Depends-on): Add float.
41924
41925         * tests/test-frexpl.c (zero): Remove variable.
41926         (minus_zero): New variable.
41927         (main): Use minus_zero instead of -zero.
41928         * modules/frexpl-tests (Depends-on): Add float.
41929
41930         * tests/test-isnan.c (zerol): Remove variable.
41931         (minus_zerol): New variable.
41932         (test_long_double): Use minus_zerol instead of -zerol.
41933         * modules/isnan-tests (Depends-on): Add float.
41934
41935         * tests/test-isnanl.h (zero): Remove variable.
41936         (minus_zero): New variable.
41937         (main): Use minus_zero instead of -zero.
41938         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41939         * modules/isnanl-tests (Depends-on): Add float.
41940
41941         * tests/test-ldexpl.c (zero): Remove variable.
41942         (minus_zero): New variable.
41943         (main): Use minus_zero instead of -zero.
41944         * modules/ldexpl-tests (Depends-on): Add float.
41945
41946         * tests/test-snprintf-posix.h (zerol): Remove variable.
41947         (minus_zerol): New variable.
41948         (test_function): Use minus_zerol instead of -zerol.
41949         * modules/snprintf-posix-tests (Depends-on): Add float.
41950         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41951
41952         * tests/test-sprintf-posix.h (zerol): Remove variable.
41953         (minus_zerol): New variable.
41954         (test_function): Use minus_zerol instead of -zerol.
41955         * modules/sprintf-posix-tests (Depends-on): Add float.
41956         * modules/vsprintf-posix-tests (Depends-on): Add float.
41957
41958         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41959         (minus_zerol): New variable.
41960         (test_function): Use minus_zerol instead of -zerol.
41961         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41962
41963         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41964         (minus_zerol): New variable.
41965         (test_function): Use minus_zerol instead of -zerol.
41966         * modules/vasprintf-posix-tests (Depends-on): Add float.
41967
41968 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41969
41970         * MODULES.html.sh (Support for building documentation): Mention
41971         pmccabe2html.  Sort entries.
41972
41973         Add pmccabe2html module, from gnupdf.
41974         * build-aux/pmccabe.css: New file.
41975         * build-aux/pmccabe2html: New file.
41976         * m4/pmccabe2html.m4: New file.
41977         * modules/pmccabe2html: New file.
41978
41979 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41980
41981         flock: new module
41982         * MODULES.html.sh: Add to list of modules.
41983         * lib/flock.c: flock implementation for Windows and Unix systems
41984         which have fcntl.
41985         * doc/glibc-functions/flock.texi: Update documentation.
41986         * lib/sys_file.in.h: <sys/file.h> header file.
41987         * m4/flock.m4: M4 macros.
41988         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41989         * modules/flock: flock module.
41990         * modules/flock-tests: flock tests module.
41991         * modules/sys_file: sys/file.h module.
41992         * tests/test-flock.c: test suite for flock.
41993
41994 2008-10-06  Jim Meyering  <meyering@redhat.com>
41995
41996         bootstrap: check for LT_INIT more portably still ;-)
41997         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41998         Spotted by Bruno Haible.
41999
42000 2008-10-06  Eric Blake  <ebb9@byu.net>
42001
42002         test-signbit: avoid tripping Irix cc bug on -0.0L
42003         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42004         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42005         entire testsuite consistent and avoids an Irix 6.2 bug.
42006
42007 2008-10-05  Bruno Haible  <bruno@clisp.org>
42008             Jim Meyering  <jim@meyering.net>
42009
42010         Add an option for ignoring EPIPE during close_stdout.
42011         * lib/closeout.h: Include <stdbool.h>.
42012         (close_stdout_set_ignore_EPIPE): New declaration.
42013         * lib/closeout.c: Include <stdbool.h>.
42014         (ignore_EPIPE): New variable.
42015         (close_stdout_set_ignore_EPIPE): New function.
42016         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42017         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42018         failure.
42019         * modules/closeout (Depends-on): Add stdbool.
42020
42021 2008-10-05  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/accept: New file.
42024         * modules/bind: New file.
42025         * modules/connect: New file.
42026         * modules/getpeername: New file.
42027         * modules/getsockname: New file.
42028         * modules/getsockopt: New file.
42029         * modules/listen: New file.
42030         * modules/recv: New file.
42031         * modules/recvfrom: New file.
42032         * modules/send: New file.
42033         * modules/sendto: New file.
42034         * modules/setsockopt: New file.
42035         * modules/socket: New file.
42036         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42037         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42038         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42039         the particular module is requested. Add a link warning when the
42040         particular module is not requested.
42041         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42042         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42043         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42044         the particular module is requested.
42045         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42046         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42047         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42048         * modules/sys_socket (Depends-on): Add link-warning.
42049         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42050         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42051         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42052         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42053         GL_LINK_WARNING.
42054         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42055         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42056         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42057         * doc/posix-functions/getpeername.texi: Mention the new module
42058         'getpeername'.
42059         * doc/posix-functions/getsockname.texi: Mention the new module
42060         'getsockname'.
42061         * doc/posix-functions/getsockopt.texi: Mention the new module
42062         'getsockopt'.
42063         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42064         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42065         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42066         * doc/posix-functions/send.texi: Mention the new module 'send'.
42067         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42068         * doc/posix-functions/setsockopt.texi: Mention the new module
42069         'setsockopt'.
42070         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42071         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42072         listen, connect, accept.
42073         * modules/select-tests (Depends-on): Likewise.
42074
42075 2008-10-05  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/winsock.c (strerror): Remove unused #undef.
42078         (rpl_close): Remove unused local variable.
42079
42080         * modules/sys_socket (Depends-on); Add errno.
42081
42082 2008-10-05  Bruno Haible  <bruno@clisp.org>
42083
42084         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42085         (select): Add a link warning when the 'select' module is not used.
42086         * modules/sys_select (Depends-on): Add link-warning.
42087         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42088         Suggested by Paolo Bonzini.
42089
42090 2008-10-05  Jim Meyering  <meyering@redhat.com>
42091
42092         bootstrap: check for LT_INIT more portably
42093         * build-aux/bootstrap: Avoid using grep -E, since it's not
42094         portable enough.  Suggestion from Bruno Haible.
42095
42096 2008-10-05  Bruno Haible  <bruno@clisp.org>
42097
42098         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42099         as being fixed by gnulib.
42100
42101 2008-10-05  Bruno Haible  <bruno@clisp.org>
42102
42103         * modules/select-tests: New file, mostly copied from
42104         modules/sys_select-tests.
42105         * tests/test-select.c: New file, mostly copied from
42106         tests/test-sys_select.c.
42107         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42108         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42109         (Makefile.am): Remove test_sys_select_LDADD.
42110
42111         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42112         to an undefined symbol, for an error message.
42113         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42114         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42115         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42116         winsock-select.c here.
42117         * modules/sys_select (Files): Remove lib/winsock-select.c.
42118         (Depends-on): Remove alloca.
42119         (Makefile.am): Substitute GNULIB_SELECT.
42120         * modules/select: New file.
42121         * doc/posix-functions/select.texi: Update.
42122
42123 2008-10-05  Bruno Haible  <bruno@clisp.org>
42124
42125         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42126         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42127         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42128         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42129         getdtablesize.
42130         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42131         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42132
42133 2008-10-05  Bruno Haible  <bruno@clisp.org>
42134
42135         * modules/getdtablesize-tests: New file.
42136         * tests/test-getdtablesize.c: New file.
42137
42138         New module 'getdtablesize'.
42139         * lib/unistd.in.h (getdtablesize): New declaration.
42140         * lib/getdtablesize.c: New file.
42141         * m4/getdtablesize.m4: New file.
42142         * modules/getdtablesize: New file.
42143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42144         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42145         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42146         HAVE_GETDTABLESIZE.
42147         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42148
42149 2008-10-05  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/sched (Makefile.am): Fix typo.
42152         Reported by Simon Josefsson.
42153
42154 2008-10-05  Jim Meyering  <meyering@redhat.com>
42155
42156         bootstrap: check for LT_INIT, too
42157         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42158         are deprecated.  Suggestion from Ralf Wildenhues.
42159
42160 2008-10-05  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42163         overriding them by ours.
42164         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42165
42166 2008-10-05  Jim Meyering  <meyering@redhat.com>
42167
42168         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42169         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42170         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42171
42172 2008-10-04  Bruno Haible  <bruno@clisp.org>
42173
42174         * modules/dup2 (License): Change to LGPLv2+.
42175         * modules/sleep (License): Likewise.
42176         * modules/perror (License): Likewise.
42177         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42178         Blake.
42179         * modules/signal (License): Likewise.
42180         * modules/sigprocmask (License): Likewise.
42181         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42182         Meyering.
42183
42184 2008-10-04  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42187         Reported by Rainer Tammer <tammer@tammer.net>.
42188
42189 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42190             Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42193         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42194         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42195
42196 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42197
42198         filevercmp: new module
42199         * lib/filevercmp.h: New function filevercmp comparing version strings.
42200         * lib/filevercmp.c: Implementation of filevercmp function.
42201         * modules/filevercmp: Module metadata.
42202         * tests/test-filevercmp.c: Unit test for new module.
42203         * modules/filevercmp-tests: Unit test metadata.
42204         * MODULES.html.sh: Add filevercmp module.
42205
42206 2008-10-03  Bruno Haible  <bruno@clisp.org>
42207
42208         * lib/c-ctype.h: Add comment.
42209         Reported by Jim Meyering.
42210
42211 2008-10-02  Bruno Haible  <bruno@clisp.org>
42212
42213         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42214
42215 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42216
42217         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42218         name of bootstrap.conf accordingly.
42219
42220 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42221
42222         * build-aux/bootstrap: Install git-merge-changelog configuration
42223         items into .gitconfig if needed.
42224
42225 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42226
42227         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42228         git repository, and initialize/update it accordingly.
42229
42230 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42231
42232         * modules/fsync-tests: New file.
42233         * tests/test-fsync.c: New file.
42234
42235         New module 'fsync'.
42236         * lib/fsync.c: New file.
42237         * m4/fsync.m4: New file.
42238         * modules/fsync: New file.
42239         * lib/unistd.in.h (fsync): New declaration.
42240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42241         GNULIB_FSYNC and HAVE_FSYNC.
42242         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42243         * MODULES.html.sh (posix_functions): Add fsync.
42244         * doc/posix-functions/fsync.texi: Mention the new module.
42245
42246 2008-10-02  Jim Meyering  <meyering@redhat.com>
42247
42248         fts.c: sync with similar code from coreutils' remove.c
42249         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42250         Guard also with "#if defined __linux__", since for now at least,
42251         this code is Linux-kernel-specific.
42252
42253 2008-10-02  Jim Meyering  <meyering@redhat.com>
42254
42255         fts: bug fixes
42256         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42257         Include <sys/vfs.h>, not <sys/statfs.h>.
42258
42259         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42260         Include <sys/vfs.h>, not <sys/statfs.h>.
42261
42262 2008-10-01  Bruno Haible  <bruno@clisp.org>
42263
42264         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42266         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42267         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42268         * doc/posix-functions/posix_spawnp.texi: Likewise.
42269         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42270         whether posix_spawn actually works.
42271         * m4/pipe.m4 (gl_PIPE): Likewise.
42272         * modules/execute (Files): Add m4/posix_spawn.m4.
42273         * modules/pipe (Files): Add m4/posix_spawn.m4.
42274         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42275
42276 2008-10-01  Jim Meyering  <meyering@redhat.com>
42277
42278         remove trailing spaces
42279         * NEWS: Likewise.
42280         * lib/poll.c (poll): Likewise.
42281         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42282         * lib/winsock.c (rpl_close): Likewise.
42283         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42284         * modules/yield: Likewise.
42285         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42286         * tests/test-sys_select.c (connect_to_socket): Likewise.
42287
42288         fts.c: adjust a new interface to be more generally useful
42289         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42290         (fts_build): Adjust caller.
42291
42292 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42293
42294         * modules/cond-tests: New file.
42295         * tests/test-cond.c: New file.
42296
42297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42298             Bruno Haible  <bruno@clisp.org>
42299
42300         * modules/cond (Dependencies): Add errno, time.
42301         * lib/glthread/cond.h: Include <time.h>.
42302         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42303         across platforms.
42304
42305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42306             Bruno Haible  <bruno@clisp.org>
42307
42308         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42309
42310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42311             Bruno Haible  <bruno@clisp.org>
42312
42313         * modules/tls-tests (Depends-on): Add thread, yield.
42314         (configure.ac): Remove all checks.
42315         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42316         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42317         gl_thread_self): Remove definitions. Include glthread/thread.h and
42318         glthread/yield.h instead.
42319         (test_tls): Pass an additional NULL argument to gl_thread_join.
42320
42321 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42322             Bruno Haible  <bruno@clisp.org>
42323
42324         * modules/lock-tests (Depends-on): Add thread, yield.
42325         (configure.ac): Remove all checks.
42326         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42327         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42328         gl_thread_self): Remove definitions. Include glthread/thread.h and
42329         glthread/yield.h instead.
42330         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42331         additional NULL argument to gl_thread_join.
42332
42333 2008-09-30  Bruno Haible  <bruno@clisp.org>
42334
42335         Fix the Win32 implementation of the 'thread' module.
42336         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42337         pointer type.
42338         (gl_thread_self): Invoke gl_thread_self_func.
42339         (gl_thread_self_func): New declaration.
42340         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42341         (do_init_self_key, init_self_key): New functions.
42342         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42343         Remove some fields.
42344         (running_threads, running_lock): Remove variables.
42345         (get_current_thread_handle): New function.
42346         (gl_thread_self_func, wrapper_func, glthread_create_func,
42347         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42348         simplified.
42349
42350 2008-09-30  Bruno Haible  <bruno@clisp.org>
42351
42352         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42353         files.
42354
42355 2008-09-30  Jim Meyering  <meyering@redhat.com>
42356
42357         fts.m4: correct the test for statfs.f_type
42358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42359         when checking for statfs.f_type.
42360
42361 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42362
42363         tests: avoid some compiler warnings
42364         * tests/test-memchr.c (main): Pass NULL indirectly.
42365         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42366
42367 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42368
42369         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42370         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42371         exactly specified dayshifts.
42372         (dayshift): New rule.
42373         (rel): Add dayshift.
42374         (relative_time_table) [tomorrow, yesterday, today, now]:
42375         Use tDAY_SHIFT in place of tDAY_UNIT.
42376         * tests/test-getdate.c: Add tests for now-disallowed countable
42377         dayshifts, e.g., "4 yesterday ago".
42378
42379 2008-09-29  Bruno Haible  <bruno@clisp.org>
42380
42381         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42382         * tests/test-posix_spawn1.in.sh: Renamed from
42383         tests/test-posix_spawn.in.sh.
42384         * tests/test-posix_spawn2.c: New file.
42385         * tests/test-posix_spawn2.in.sh: New file.
42386         * modules/posix_spawnp-tests (Files): Update.
42387         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42388
42389 2008-09-29  Bruno Haible  <bruno@clisp.org>
42390
42391         Propagate effects of putenv/setenv/unsetenv to child processes.
42392         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42393         * lib/pipe.c (create_pipe): Likewise.
42394
42395 2008-09-29  Bruno Haible  <bruno@clisp.org>
42396
42397         Enable use of shell scripts as executables in mingw.
42398         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42399         run the program as a shell script.
42400         * lib/pipe.c (create_pipe): Likewise.
42401         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42402         resulting array.
42403
42404 2008-09-29  Eric Blake  <ebb9@byu.net>
42405
42406         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42407
42408 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42409
42410         * doc/posix-functions/accept.texi: Update mingw problems.
42411         * doc/posix-functions/bind.texi: Update mingw problems.
42412         * doc/posix-functions/close.texi: Update mingw problems.
42413         * doc/posix-functions/connect.texi: Update mingw problems.
42414         * doc/posix-functions/getpeername.texi: Update mingw problems.
42415         * doc/posix-functions/getsockname.texi: Update mingw problems.
42416         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42417         * doc/posix-functions/ioctl.texi: Update mingw problems.
42418         * doc/posix-functions/listen.texi: Update mingw problems.
42419         * doc/posix-functions/recv.texi: Update mingw problems.
42420         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42421         * doc/posix-functions/select.texi: Update mingw problems.
42422         * doc/posix-functions/send.texi: Update mingw problems.
42423         * doc/posix-functions/sendto.texi: Update mingw problems.
42424         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42425         * doc/posix-functions/socket.texi: Update mingw problems.
42426
42427 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42428             Bruno Haible  <bruno@clisp.org>
42429
42430         * lib/sys_select.in.h: Include sys/time.h.
42431         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42432         * modules/sys_select: Depend on sys_time.
42433         * tests/test-sys_select.c: Test that sys/select.h defines struct
42434         timeval fully.
42435
42436 2008-09-29  Bruno Haible  <bruno@clisp.org>
42437
42438         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42439         * lib/sys_select.in.h: Likewise.
42440
42441 2008-09-29  Bruno Haible  <bruno@clisp.org>
42442
42443         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42444
42445 2008-09-29  Bruno Haible  <bruno@clisp.org>
42446
42447         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42448         Set LIBSOCKET instead of augmenting LIBS.
42449         * modules/sockets (Link): New section.
42450         * modules/sockets-tests (test_sockets_LDADD): New variable.
42451         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42452         * modules/poll-tests (test_poll_LDADD): New variable.
42453         * NEWS: Document the change.
42454
42455 2008-09-29  Bruno Haible  <bruno@clisp.org>
42456
42457         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42458         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42459         ARPA_INET_H directly.
42460         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42461
42462 2008-09-28  Bruno Haible  <bruno@clisp.org>
42463
42464         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42465         from gl_HEADER_SYS_SOCKET.
42466         (gl_HEADER_SYS_SOCKET): Invoke it.
42467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42468
42469 2008-09-28  Bruno Haible  <bruno@clisp.org>
42470
42471         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42472         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42473         Needed on OSF/1 4.0.
42474
42475 2008-09-28  Bruno Haible  <bruno@clisp.org>
42476
42477         Override open more carefully.
42478         * lib/open.c (orig_open): New function.
42479         (rpl_open): Use orig_open instead of open.
42480         * lib/fcntl.in.h: Add special invocation convention.
42481         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42482         (gl_FUNC_OPEN): Invoke it.
42483
42484         Override freopen more carefully.
42485         * lib/freopen.c (orig_freopen): New function.
42486         (rpl_freopen): Use orig_freopen instead of freopen.
42487         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42488         (gl_FUNC_FREOPEN): Invoke it.
42489
42490         Override fopen more carefully.
42491         * lib/fopen.c (orig_fopen): New function.
42492         (rpl_fopen): Use orig_fopen instead of fopen.
42493         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42494         (gl_FUNC_FOPEN): Invoke it.
42495         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42496
42497 2008-09-28  Bruno Haible  <bruno@clisp.org>
42498
42499         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42500         SIGPIPE.
42501
42502 2008-09-28  Bruno Haible  <bruno@clisp.org>
42503
42504         * tests/test-sigaction.c (handler, main): Disable the check whether
42505         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42506         glibc systems with LinuxThreads.
42507
42508 2008-09-28  Bruno Haible  <bruno@clisp.org>
42509
42510         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42511
42512         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42513         with AIX xlc.
42514         * lib/fcntl.in.h (open): Likewise.
42515         Reported by Rainer Tammer <tammer@tammer.net>.
42516
42517 2008-09-28  Bruno Haible  <bruno@clisp.org>
42518
42519         * modules/posix_spawnp-tests: New file.
42520         * tests/test-posix_spawn.c: New file.
42521         * tests/test-posix_spawn.in.sh: New file.
42522
42523         New module 'posix_spawnp'.
42524         * modules/posix_spawnp: New file.
42525         * lib/spawnp.c: New file, from GNU libc with modifications.
42526         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42527
42528         New module 'posix_spawn'.
42529         * modules/posix_spawn: New file.
42530         * lib/spawn.c: New file, from GNU libc with modifications.
42531         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42532
42533         New module 'posix_spawnattr_destroy'.
42534         * modules/posix_spawnattr_destroy: New file.
42535         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42536         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42537         module.
42538
42539         New module 'posix_spawnattr_setsigmask'.
42540         * modules/posix_spawnattr_setsigmask: New file.
42541         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42542         modifications.
42543         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42544         new module.
42545
42546         New module 'posix_spawnattr_getsigmask'.
42547         * modules/posix_spawnattr_getsigmask: New file.
42548         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42549         modifications.
42550         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42551         new module.
42552
42553         New module 'posix_spawnattr_setsigdefault'.
42554         * modules/posix_spawnattr_setsigdefault: New file.
42555         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42556         modifications.
42557         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42558         new module.
42559
42560         New module 'posix_spawnattr_getsigdefault'.
42561         * modules/posix_spawnattr_getsigdefault: New file.
42562         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42563         modifications.
42564         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42565         new module.
42566
42567         New module 'posix_spawnattr_setschedpolicy'.
42568         * modules/posix_spawnattr_setschedpolicy: New file.
42569         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42570         modifications.
42571         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42572         new module.
42573
42574         New module 'posix_spawnattr_getschedpolicy'.
42575         * modules/posix_spawnattr_getschedpolicy: New file.
42576         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42577         modifications.
42578         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42579         new module.
42580
42581         New module 'posix_spawnattr_setschedparam'.
42582         * modules/posix_spawnattr_setschedparam: New file.
42583         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42584         modifications.
42585         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42586         new module.
42587
42588         New module 'posix_spawnattr_getschedparam'.
42589         * modules/posix_spawnattr_getschedparam: New file.
42590         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42591         modifications.
42592         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42593         new module.
42594
42595         New module 'posix_spawnattr_setpgroup'.
42596         * modules/posix_spawnattr_setpgroup: New file.
42597         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42598         modifications.
42599         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42600         module.
42601
42602         New module 'posix_spawnattr_getpgroup'.
42603         * modules/posix_spawnattr_getpgroup: New file.
42604         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42605         modifications.
42606         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42607         module.
42608
42609         New module 'posix_spawnattr_setflags'.
42610         * modules/posix_spawnattr_setflags: New file.
42611         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42612         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42613         module.
42614
42615         New module 'posix_spawnattr_getflags'.
42616         * modules/posix_spawnattr_getflags: New file.
42617         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42618         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42619         module.
42620
42621         New module 'posix_spawnattr_init'.
42622         * modules/posix_spawnattr_init: New file.
42623         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42624         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42625         module.
42626
42627         New module 'posix_spawn_file_actions_destroy'.
42628         * modules/posix_spawn_file_actions_destroy: New file.
42629         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42630         modifications.
42631         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42632         the new module.
42633
42634         New module 'posix_spawn_file_actions_addopen'.
42635         * modules/posix_spawn_file_actions_addopen: New file.
42636         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42637         modifications.
42638         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42639         the new module.
42640
42641         New module 'posix_spawn_file_actions_adddup2'.
42642         * modules/posix_spawn_file_actions_adddup2: New file.
42643         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42644         modifications.
42645         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42646         the new module.
42647
42648         New module 'posix_spawn_file_actions_addclose'.
42649         * modules/posix_spawn_file_actions_addclose: New file.
42650         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42651         modifications.
42652         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42653         the new module.
42654
42655         New module 'posix_spawn_file_actions_init'.
42656         * modules/posix_spawn_file_actions_init: New file.
42657         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42658         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42659         new module.
42660
42661         New module 'posix_spawn-internal'.
42662         * modules/posix_spawn-internal: New file.
42663         * lib/spawn_int.h: New file, from GNU libc with modifications.
42664         * lib/spawni.c: New file, from GNU libc with modifications.
42665         * m4/posix_spawn.m4: New file.
42666
42667         New module 'spawn'.
42668         * modules/spawn: New file.
42669         * lib/spawn.in.h: New file, from GNU libc with modifications.
42670         * m4/spawn_h.m4: New file.
42671         * doc/posix-headers/spawn.texi: Mention the new module.
42672
42673 2008-09-28  Bruno Haible  <bruno@clisp.org>
42674
42675         * modules/sched-tests: New file.
42676         * tests/test-sched.c: New file.
42677
42678         New module 'sched'.
42679         * modules/sched: New file.
42680         * lib/sched.in.h: New file.
42681         * m4/sched_h.m4: New file.
42682         * doc/posix-headers/sched.texi: Mention the new module.
42683
42684 2008-09-27  Eric Blake  <ebb9@byu.net>
42685
42686         Fix previous patch, and tweak references to $0.
42687         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42688         (func_version, func_gnulib_dir): Don't call this program
42689         gnulib-tool.
42690         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42691         with using $0 in function.
42692         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42693         (func_fatal_error): Reuse the name the user invoked us with.
42694
42695 2008-09-27  Bruno Haible  <bruno@clisp.org>
42696
42697         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42698         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42699         (gl_ICONV_H): Not here.
42700         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42701         instead of assigning ICONV_H directly.
42702
42703         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42705         WCHAR_H directly.
42706
42707 2008-09-27  Bruno Haible  <bruno@clisp.org>
42708
42709         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42710         * modules/arpa_inet (Depends-on): Add link-warning.
42711         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42712         * modules/unistd (Makefile.am): Likewise.
42713
42714 2008-09-26  Bruno Haible  <bruno@clisp.org>
42715
42716         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42717         variables.
42718         (func_version): Essentially copied from gnulib-tool.
42719         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42720         func_readlink): Copied from gnulib-tool.
42721
42722 2008-09-26  Bruno Haible  <bruno@clisp.org>
42723
42724         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42725         invoking git-version-gen.
42726
42727 2008-09-26  Bruno Haible  <bruno@clisp.org>
42728
42729         * posix-modules: Update to directory names changed on 2008-01-19.
42730         Remove commas in output before splitting into words. No more need to
42731         avoid 'ftruncate' since 2007-02-19.
42732
42733 2008-09-26  Bruno Haible  <bruno@clisp.org>
42734
42735         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42736
42737 2008-09-26  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42740         * modules/fwriteerror (Depends-on): Add errno.
42741
42742 2008-09-26  Bruno Haible  <bruno@clisp.org>
42743
42744         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42745         * tests/test-vc-list-files-cvs.sh: Likewise.
42746
42747 2008-09-26  Bruno Haible  <bruno@clisp.org>
42748
42749         * doc/posix-headers/sys_resource.texi: Reorder items.
42750
42751 2008-09-26  Jim Meyering  <meyering@redhat.com>
42752
42753         fts: tweak inode comparison function
42754         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42755         inode numbers, as documented.
42756
42757         fts: sort dirent entries on inode number before traversing
42758         This avoids a quadratic, seek-related performance penalty when
42759         operating on a directory containing many entries (measurable at 10k;
42760         3.5 hours at 2 million entries with a cold cache) on certain types
42761         of file systems, including ext3 and ext4, but not tmpfs.
42762         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42763         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42764         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42765         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42766         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42767         (fts_build): Set the stat.st_ino member from D_INO.
42768         If it is likely to be useful, sort dirent entries on inode number.
42769
42770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42771         and the struct statfs.f_type member.
42772         * modules/fts (Depends-on): Add d-ino.
42773
42774 2008-09-26  Bruno Haible  <bruno@clisp.org>
42775
42776         * modules/sigpipe-die (Depends-on): Add sigpipe.
42777
42778         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42779         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42780         and GNULIB_STDIO_H_SIGPIPE are set.
42781         * lib/stdio-write.c: New file.
42782         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42783         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42784         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42785         REPLACE_STDIO_WRITE_FUNCS.
42786         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42787         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42788         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42789         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42790         * modules/stdio (Files): Add lib/stdio-write.c.
42791         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42792         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42793         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42794         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42795         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42796         REPLACE_FPRINTF_POSIX.
42797         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42798         REPLACE_PRINTF_POSIX.
42799         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42800         REPLACE_VFPRINTF_POSIX.
42801         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42802         REPLACE_VPRINTF_POSIX.
42803         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42804         SIGPIPE issue.
42805         * doc/posix-functions/fputc.texi: Likewise.
42806         * doc/posix-functions/fputs.texi: Likewise.
42807         * doc/posix-functions/fwrite.texi: Likewise.
42808         * doc/posix-functions/printf.texi: Likewise.
42809         * doc/posix-functions/putc.texi: Likewise.
42810         * doc/posix-functions/putchar.texi: Likewise.
42811         * doc/posix-functions/puts.texi: Likewise.
42812         * doc/posix-functions/vfprintf.texi: Likewise.
42813         * doc/posix-functions/vprintf.texi: Likewise.
42814
42815         * modules/safe-write (Depends-on): Add write.
42816
42817         * modules/sigpipe-tests: New file.
42818         * tests/test-sigpipe.c: New file.
42819         * tests/test-sigpipe.sh: New file.
42820
42821         * modules/write: New file.
42822         * lib/unistd.in.h: Include <sys/types.h>.
42823         (write): New declaration.
42824         * lib/write.c: New file.
42825         * m4/write.m4: New file.
42826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42827         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42828         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42829         GNULIB_WRITE, REPLACE_WRITE.
42830         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42831         and the SIGPIPE issue.
42832
42833         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42834         (raise): New declaration.
42835         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42836         (ext_signal): New function.
42837         (rpl_raise): New function.
42838         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42839         GNULIB_SIGNAL_H_SIGPIPE.
42840         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42841         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42842
42843         * modules/sigpipe: New file.
42844         * m4/sigpipe.m4: New file.
42845
42846 2008-09-25  Derek Price  <derek@ximbiot.com>
42847             Bruno Haible  <bruno@clisp.org>
42848
42849         * gnulib-tool (func_import): Report all license incompatibilities, not
42850         just the first one.
42851
42852 2008-09-25  Bruno Haible  <bruno@clisp.org>
42853
42854         * gnulib-tool (func_import): When computing the edits, consider not
42855         only the Makefile.ams that exist but also those that will be generated.
42856
42857 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42858
42859         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42860         fixes gnulib-tool --test warning about duplicate dependency.
42861
42862 2008-09-25  Bruno Haible  <bruno@clisp.org>
42863
42864         * gnulib-tool: Don't ask the user to perform edits in the generated
42865         Makefile.ams.
42866         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42867         apply to the Makefile.am being generated.
42868         (func_emit_tests_Makefile_am): Execute edits that apply to the
42869         Makefile.am being generated.
42870         (func_import): Setup list of Makefile.am edits before emitting the
42871         Makefile.ams, not at the end.
42872         (func_create_testdir): Update.
42873         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42874
42875 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42876
42877         * gnulib-tool (func_import): Store the --tests-base option in the
42878         comment in gnulib-cache.m4.
42879
42880 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42881
42882         * NEWS: Document increased portability that sys_select now provides.
42883
42884         * lib/sys_select.in.h: Install select wrapper.
42885         * lib/sys_socket.in.h: Use more descriptive name when there is no
42886         select wrapper.
42887         * lib/winsock-select.c: New.
42888         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42889         Require gl_HEADER_SYS_SOCKET.
42890         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42891         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42892         * tests/test-sys_select.c: Add functional tests.
42893
42894 2008-09-24  Eric Blake  <ebb9@byu.net>
42895
42896         open, fopen: close fd leak in last patch
42897         * lib/open.c (rpl_open): Close fd before returning error.
42898         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42899         * doc/posix-functions/open.texi (open): Document that Irix also
42900         has the bug.
42901         * doc/posix-functions/fopen.texi (fopen): Likewise.
42902         Reported by Paolo Bonzini.
42903
42904 2008-09-24  Bruno Haible  <bruno@clisp.org>
42905
42906         Ensure that a filename ending in a slash cannot be used to access a
42907         non-directory.
42908         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42909         to check whether it's really a directory.
42910         * lib/fopen.c: Include fcntl.h, unistd.h.
42911         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42912         and fdopen().
42913         * modules/fopen (Depends-on): Add unistd.
42914         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42915         * tests/test-fopen.c (main): Likewise.
42916         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42917         * doc/posix-functions/fopen.texi: Likewise.
42918         Reported by Eric Blake.
42919
42920 2008-09-23  Eric Blake  <ebb9@byu.net>
42921
42922         c-stack: avoid compiler optimizations when provoking overflow
42923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42924         recursion harder to optimize, to ensure a stack overflow occurs.
42925         * tests/test-c-stack.c (recurse): Likewise.
42926         Borrowed from libsigsegv.
42927
42928         c-stack: work around Irix sigaltstack bug
42929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42930         whether sigaltstack uses wrong end of stack_t (copied in part from
42931         libsigsegv).
42932         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42933         Irix bug, without requiring an over-allocation.
42934         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42935         bug.
42936
42937         fopen: document mingw bug on directories
42938         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42939         not allowing a stream visiting a directory, even though reading
42940         from such a stream is not portable.
42941
42942 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42943
42944         * lib/poll.c: Rewrite.
42945         * modules/poll: Depend on alloca.
42946
42947 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42948
42949         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42950         instead define prototypes for a full set of wrappers.  Ensure
42951         that Cygwin does not use the compatibility code, which is only
42952         for MinGW.
42953         * lib/winsock.c: New.
42954         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42955         * modules/sys_socket: Add lib/winsock.c.
42956
42957         * modules/poll-tests: Add errno and perror.
42958         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42959
42960 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42961
42962         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42963
42964 2008-09-23  Bruno Haible  <bruno@clisp.org>
42965
42966         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42967         * doc/glibc-functions/*: Likewise.
42968
42969 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42970
42971         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42972         success.
42973
42974 2008-09-22  Eric Blake  <ebb9@byu.net>
42975             Bruno Haible  <bruno@clisp.org>
42976
42977         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42978         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42979         supply %A but mishandle pseudo-NaN.
42980         Reported by Simon Josefsson.
42981
42982 2008-09-21  Bruno Haible  <bruno@clisp.org>
42983
42984         * tests/test-lock.c (main): Tweak skip message.
42985         * tests/test-tls.c (main): Likewise.
42986
42987 2008-09-21  Bruno Haible  <bruno@clisp.org>
42988
42989         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42990         whether 'struct sigaction' has sa_sigaction here...
42991         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42992         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42993
42994 2008-09-21  Bruno Haible  <bruno@clisp.org>
42995
42996         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42997         section.
42998         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42999         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43000         the new section.
43001         (Support for obsolete systems lacking POSIX:2001): New section.
43002         (String handling <string.h>): Move strdup to the new section.
43003         Suggested by Simon Josefsson and Paolo Bonzini.
43004
43005 2008-09-21  Bruno Haible  <bruno@clisp.org>
43006
43007         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43008         exponents in %e and %g results on 'long double'. Needed for mingw's
43009         improved *printf functions.
43010         * tests/test-vasprintf-posix.c (test_function): Likewise.
43011         * tests/test-snprintf-posix.h (test_function): Likewise.
43012         * tests/test-sprintf-posix.h (test_function): Likewise.
43013         Reported by Eric Blake.
43014
43015 2008-09-21  Bruno Haible  <bruno@clisp.org>
43016
43017         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43018         * tests/test-sprintf-posix.h (test_function): Likewise.
43019
43020 2008-09-21  Bruno Haible  <bruno@clisp.org>
43021
43022         * modules/getpass (Depends-on): Add strdup-posix.
43023
43024         New module 'strdup-posix'.
43025         * modules/strdup-posix: New file.
43026         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43027         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43029         REPLACE_STRDUP.
43030         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43031         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43033         strdup-posix.
43034
43035         * modules/strdup (Depends-on): Remove malloc-posix.
43036
43037 2008-09-20  Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43040         Wildenhues.
43041
43042 2008-09-20  Bruno Haible  <bruno@clisp.org>
43043
43044         Ensure that wint_t gets defined on IRIX 5.3.
43045         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43046         * lib/wctype.in.h (wint_t): Likewise.
43047         (__wctype_wint_t): Remove type.
43048         (isw*): Use wint_t instead of __wctype_wint_t.
43049         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43050         * modules/wchar (Files): Add m4/wint_t.m4.
43051         (Makefile.am): Substitute HAVE_WINT_T.
43052         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43053         * tests/test-wctype.c: Check that wint_t is defined.
43054         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43055         * doc/posix-headers/wctype.texi: Likewise.
43056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43057
43058 2008-09-18  Bruno Haible  <bruno@clisp.org>
43059
43060         * gnulib-tool (func_exit): Update comment.
43061
43062 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43063
43064         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43065         assumes strdup exists and does not depend on strdup to return
43066         ENOMEM on out of memory conditions.
43067
43068 2008-09-18  Bruno Haible  <bruno@clisp.org>
43069
43070         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43071         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43072         digits for the exponent.
43073
43074 2008-09-18  Jim Meyering  <meyering@redhat.com>
43075             Bruno Haible  <bruno@clisp.org>
43076
43077         * lib/vasnprintf.c (decimal_point_char): Define also if
43078         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43079
43080 2008-09-16  Bruno Haible  <bruno@clisp.org>
43081         and Eric Blake  <ebb9@byu.net>
43082
43083         vasnprintf: support Irix 5.3
43084         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43085         that mishandle long double infinity.
43086         Reported by Tom G. Christensen.
43087
43088 2008-09-16  Bruno Haible  <bruno@clisp.org>
43089
43090         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43091         Solaris 9.
43092         * doc/glibc-functions/alphasort.texi: Likewise.
43093         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43094
43095 2008-09-16  Jim Meyering  <meyering@redhat.com>
43096
43097         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43098         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43099         a umask modification leak out of a subshell.  Otherwise, the
43100         opensolaris /bin/sh would be accepted and thus cause unwarranted
43101         failures in the coreutils test suite.
43102
43103 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43104
43105         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43106         to succeed.
43107
43108 2008-09-16  Jim Meyering  <meyering@redhat.com>
43109
43110         avoid spurious test failure when library is built without ACL support
43111         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43112         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43113         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43114         * tests/test-copy-acl.sh: Likewise.
43115
43116 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43117
43118         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43119         based on character occurrence counts.
43120
43121 2008-09-15  Eric Blake  <ebb9@byu.net>
43122
43123         tests: avoid some compiler warnings
43124         * tests/test-memchr.c (main): Pass NULL indirectly.
43125         * tests/test-closein.c (main): Avoid unused variable.
43126
43127 2008-09-15  Bruno Haible  <bruno@clisp.org>
43128
43129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43130         are missing on OpenBSD 4.0 individually.
43131         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43132
43133 2008-09-15  Bruno Haible  <bruno@clisp.org>
43134
43135         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43136         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43137         * doc/posix-functions/perror.texi: Likewise.
43138         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43139         is missing.
43140         Reported by Eric Blake.
43141
43142         * lib/errno.in.h: Use replacement values >= 2000.
43143         Reported by Eric Blake.
43144
43145 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43146
43147         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43148         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43149         limit.
43150         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43151         compareseq was aborted.
43152
43153 2008-09-14  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43156         yvec_edit_count.
43157         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43158         (fstrcmp_bounded): Simplify result computation accordingly.
43159
43160 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43161
43162         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43163         (fstrcmp): Define in terms of fstrcmp_bounded.
43164         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43165         lower_bound argument.
43166         Return quickly if the result is certainly < lower_bound.
43167         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43168
43169 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43170
43171         * lib/diffseq.h (EARLY_ABORT): New macro.
43172         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43173         evaluates to true.
43174
43175 2008-09-14  Bruno Haible  <bruno@clisp.org>
43176
43177         * modules/perror-tests: New file.
43178         * tests/test-perror.sh: New file.
43179         * tests/test-perror.c: New file.
43180
43181         New module 'perror'.
43182         * lib/stdio.in.h (perror): New declaration.
43183         * lib/perror.c: New file.
43184         * m4/perror.m4: New file.
43185         * modules/perror: New file.
43186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43187         * doc/posix-functions/perror.texi: Mention the perror module.
43188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43189         REPLACE_PERROR.
43190         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43191         REPLACE_PERROR.
43192
43193 2008-09-14  Bruno Haible  <bruno@clisp.org>
43194
43195         * modules/stdio (Makefile.am): Reorder to match the order in
43196         lib/stdio.in.h.
43197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43198
43199 2008-09-13  Bruno Haible  <bruno@clisp.org>
43200
43201         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43202
43203 2008-09-13  Bruno Haible  <bruno@clisp.org>
43204
43205         Extend strerror to cover the added errno values.
43206         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43207         (rpl_strerror): Provide error messages for the added errno values and
43208         for the WSA* values.
43209         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43210         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43211         strerror.
43212         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43213         * modules/strerror (Depends-on): Add errno.
43214         * doc/posix-functions/strerror.texi: Document the change.
43215         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43216         and EOVERFLOW.
43217
43218 2008-09-13  Bruno Haible  <bruno@clisp.org>
43219
43220         * modules/EOVERFLOW: Remove file.
43221         * m4/eoverflow.m4: Remove file.
43222         * modules/EOVERFLOW-tests: Remove file.
43223         * tests/test-EOVERFLOW.c: Remove file.
43224         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43225         * modules/ftell (Depends-on): Likewise.
43226         * modules/getdelim (Depends-on): Likewise.
43227         * modules/getugroups (Depends-on): Likewise.
43228         * modules/poll (Depends-on): Likewise.
43229         * modules/snprintf (Depends-on): Likewise.
43230         * modules/sprintf-posix (Depends-on): Likewise.
43231         * modules/vasnprintf (Depends-on): Likewise.
43232         * modules/vasprintf (Depends-on): Likewise.
43233         * modules/vfprintf-posix (Depends-on): Likewise.
43234         * modules/vsnprintf (Depends-on): Likewise.
43235         * modules/vsprintf-posix (Depends-on): Likewise.
43236         * modules/xvasprintf (Depends-on): Likewise.
43237         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43238         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43239         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43240         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43241         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43242         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43243         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43244         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43245         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43246         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43247         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43248         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43249         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43250         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43251         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43252         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43253         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43254         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43255         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43256         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43257         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43258         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43259         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43260         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43261         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43262         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43263         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43264         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43265         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43266         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43267         * MODULES.html.sh: Remove EOVERFLOW.
43268         * NEWS: Mention the change.
43269
43270 2008-09-13  Bruno Haible  <bruno@clisp.org>
43271
43272         * modules/errno-tests: New file.
43273         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43274
43275         * lib/errno.in.h: New file.
43276         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43277         * modules/errno: New file.
43278         * doc/posix-headers/errno.texi: Update documentation.
43279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43280
43281 2008-09-13  Bruno Haible  <bruno@clisp.org>
43282
43283         * tests/test-poll.c: Use #if for native Windows, rather than testing
43284         __MSVCRT__.
43285
43286 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43287             Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/glob.c: Don't include <pwd.h> on native Windows.
43290         (WINDOWS32): New macro.
43291         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43292
43293 2008-09-13  Bruno Haible  <bruno@clisp.org>
43294
43295         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43296         (ETIMEDOUT): Remove macro.
43297         (glthread_cond_timedwait_multithreaded): New declaration.
43298         (glthread_cond_timedwait): Use it.
43299         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43300         (glthread_cond_timedwait_multithreaded): New function.
43301
43302 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43303
43304         * modules/poll-tests: Do not check for io.h.
43305         * tests/test-poll.c: Check for __MSVCRT__ instead.
43306
43307 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43308
43309         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43310         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43311         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43312
43313 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43314
43315         * modules/poll-tests: New.
43316         * tests/test-poll.c: New.
43317
43318 2008-09-12  Eric Blake  <ebb9@byu.net>
43319
43320         frexp: test for NetBSD failure on -0.0
43321         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43322         not all, bugs from NetBSD 3.0 have been fixed.
43323         * doc/posix-functions/frexp.texi (frexp): Document bug.
43324         Reported by Thomas Klausner.
43325
43326         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43327         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43328         literal -0.0.
43329         Reported by Jonathan C. Patschke <jp@centtech.com>.
43330
43331 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43332
43333         * lib/glthread/cond.h: Use dummy implementation also if
43334         USE_WIN32_THREADS.
43335
43336 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43337
43338         * modules/fnmatch-posix (License): Change to LGPLv2+.
43339         * modules/fnmatch-gnu (License): Likewise.
43340
43341 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43342
43343         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43344
43345 2008-09-11  Jim Meyering  <meyering@redhat.com>
43346
43347         * users.txt: Add gtk-vnc.
43348
43349 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43350
43351         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43352         rotate amounts.
43353
43354         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43355         required for 16-bit and 8-bit rotates.
43356         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43357         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43358         UINT8_MAX instead of hard-coded constants.
43359         Suggested by Paul Eggert.
43360
43361 2008-09-07  Bruno Haible  <bruno@clisp.org>
43362
43363         * tests/test-striconveh.c (main): Check behaviour when converting from
43364         UTF-7.
43365
43366         Make striconveh work better with stateful encodings.
43367         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43368         that iconv does not increment the inptr when returning -1/EINVAL.
43369
43370 2008-09-07  Bruno Haible  <bruno@clisp.org>
43371
43372         * build-aux/config.rpath: Update according to libtool-2.2.6.
43373         * build-aux/config.libpath: Likewise.
43374
43375 2008-09-06  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43378         * lib/freadptr.c (freadptr): Likewise.
43379         * lib/freadseek.c (freadptrinc): Likewise.
43380         Reported by Simon Josefsson.
43381
43382 2008-09-06  Bruno Haible  <bruno@clisp.org>
43383
43384         * modules/freadptr (License): Change to LGPLv2+.
43385         * modules/freadseek (License): Likewise.
43386         Suggested by Eric Blake.
43387
43388         * modules/memchr2 (License): Change to LGPLv2+.
43389         Approved by Eric Blake.
43390
43391 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43392             Bruno Haible  <bruno@clisp.org>
43393
43394         Make gnulib-tool work with native 'sed' on AIX.
43395         * gnulib-tool (sed_noop): New variable.
43396         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43397         func_add_or_update, func_create_testdir): Use it to initialize sed
43398         script variables.
43399         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43400
43401 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43402             Bruno Haible  <bruno@clisp.org>
43403
43404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43405         also works after #include directives.
43406
43407 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43408
43409         getdate.y: reject an out-of-range timezone value
43410         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43411         the range [-24...+24].  When specified with only one or two digits,
43412         * tests/test-getdate.c: Tests for the fix.
43413         * doc/getdate.texi: Document this change.
43414
43415 2008-09-03  Bruno Haible  <bruno@clisp.org>
43416
43417         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43418
43419 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43420
43421         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43422         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43423         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43424         Blake <ebb9@byu.net>.
43425
43426         * tests/test-bitrotate.c: Add more test vectors.
43427
43428 2008-09-02  Eric Blake  <ebb9@byu.net>
43429
43430         vasnprintf-posix: handle large precision via %.*d
43431         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43432         when handling it ourselves.
43433         * tests/test-vasnprintf-posix.c (test_function): Add test.
43434         * tests/test-snprintf-posix.h (test_function): Likewise.
43435         * tests/test-sprintf-posix.h (test_function): Likewise.
43436         * tests/test-vasprintf-posix.c (test_function): Likewise.
43437         Reported by Alain Guibert.
43438
43439 2008-09-01  Eric Blake  <ebb9@byu.net>
43440
43441         c-stack: make configure-time check more robust
43442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43443         successful sigaction call.
43444         Reported by Tom G. Christensen.
43445
43446 2008-09-01  Bruno Haible  <bruno@clisp.org>
43447
43448         New module 'findprog-lgpl'.
43449         * modules/findprog-lgpl: New file.
43450         * lib/findprog-lgpl.c: New file.
43451         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43452         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43453         to decide whether to use strdup or xstrdup, concatenated_filename or
43454         xconcatenated_filename.
43455
43456 2008-09-01  Bruno Haible  <bruno@clisp.org>
43457
43458         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43459         'xconcat-filename' (GPL).
43460         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43461         (License): Change to LGPLv2+.
43462         * modules/xconcat-filename: New file.
43463         * lib/concat-filename.h (concatenated_filename): Change specification.
43464         (xconcatenated_filename): New declaration.
43465         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43466         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43467         memory situations.
43468         * lib/xconcat-filename.c: New file.
43469         * NEWS: Mention the change.
43470         * lib/findprog.c: Include concat-filename.h, not filename.h.
43471         (find_in_path): Use xconcatenated_filename instead of
43472         concatenated_filename.
43473         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43474         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43475         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43476         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43477         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43478         instead of concatenated_filename.
43479         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43480         (execute_java_class): Use xconcatenated_filename instead of
43481         concatenated_filename.
43482         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43483         * modules/javacomp (Depends-on): Likewise.
43484         * modules/javaexec (Depends-on): Likewise.
43485
43486 2008-09-01  Bruno Haible  <bruno@clisp.org>
43487
43488         Split module 'filename' into 'filename' and 'concat-filename'.
43489         * modules/filename: Keep only lib/filename.h.
43490         (License): Change to LGPLv2+.
43491         * modules/concat-filename: New file, extracted from modules/filename.
43492         * lib/filename.h (concatenated_filename): Remove declaration.
43493         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43494         * lib/concat-filename.c: Include concat-filename.h.
43495         * NEWS: Mention the change.
43496
43497 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43498
43499         * lib/bitrotate.h (rotl8, rotr8): Add.
43500
43501         * modules/bitrotate (configure.ac): Need
43502         AC_REQUIRE([AC_C_INLINE]).
43503         (Description): Mention stdint.h.  Reported by Bruno Haible
43504         <bruno@clisp.org>.
43505
43506         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43507         Paolo Bonzini <bonzini@gnu.org>.
43508
43509 2008-08-31  Bruno Haible  <bruno@clisp.org>
43510
43511         Assume Solaris specific bi-arch conventions on Solaris systems.
43512         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43513         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43515         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43516         like acl_libdirstem.
43517         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43518         acl_libdirstem.
43519         * NEWS: Mention the change.
43520         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43521
43522 2008-08-31  Jim Meyering  <meyering@redhat.com>
43523
43524         * lib/strftime.h: Add comments describing the two added arguments.
43525
43526         remove duplicate #include directives
43527         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43528         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43529
43530 2008-08-31  Bruno Haible  <bruno@clisp.org>
43531
43532         New module 'sigpipe-die'.
43533         * modules/sigpipe-die: New file.
43534         * lib/sigpipe-die.h: New file.
43535         * lib/sigpipe-die.c: New file.
43536         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43537
43538 2008-08-31  Bruno Haible  <bruno@clisp.org>
43539
43540         Don't override previously installed signal handlers.
43541         * lib/fatal-signal.c (saved_sigactions): New variable.
43542         (uninstall_handlers): Reset the signal to the saved handler, not
43543         to SIG_DFL (except when ignored).
43544         (install_handlers): Save the previous handlers.
43545
43546 2008-08-30  Bruno Haible  <bruno@clisp.org>
43547
43548         * gnulib-tool (func_reset_sigpipe): New function.
43549         (func_get_automake_snippet, func_modules_transitive_closure,
43550         func_import): Invoke it before a join command that reads from stdin,
43551         to avoid "echo: write error: Broken pipe" error messages on stderr.
43552         Reported by Sam Steingold <sds@gnu.org>.
43553
43554 2008-08-30  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43557         Code copied from m4/open.m4.
43558         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43559         access and the filename ends in a slash. Code copied from lib/open.c.
43560         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43561         * tests/test-fopen.c (main): Check against bug with trailing slash.
43562
43563 2008-08-29  Bruno Haible  <bruno@clisp.org>
43564
43565         Avoid some "gcc -pedantic" warnings.
43566         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43567         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43568         * lib/dirent.in.h: Likewise.
43569         * lib/fcntl.in.h: Likewise.
43570         * lib/float.in.h: Likewise.
43571         * lib/iconv.in.h: Likewise.
43572         * lib/inttypes.in.h: Likewise.
43573         * lib/locale.in.h: Likewise.
43574         * lib/math.in.h: Likewise.
43575         * lib/netinet_in.in.h: Likewise.
43576         * lib/search.in.h: Likewise.
43577         * lib/signal.in.h: Likewise.
43578         * lib/stdarg.in.h: Likewise.
43579         * lib/stdint.in.h: Likewise.
43580         * lib/stdio.in.h: Likewise.
43581         * lib/stdlib.in.h: Likewise.
43582         * lib/string.in.h: Likewise.
43583         * lib/strings.in.h: Likewise.
43584         * lib/sys_select.in.h: Likewise.
43585         * lib/sys_socket.in.h: Likewise.
43586         * lib/sys_stat.in.h: Likewise.
43587         * lib/sys_time.in.h: Likewise.
43588         * lib/sysexits.in.h: Likewise.
43589         * lib/time.in.h: Likewise.
43590         * lib/unistd.in.h: Likewise.
43591         * lib/wchar.in.h: Likewise.
43592         * lib/wctype.in.h: Likewise.
43593         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43594         * modules/fchdir (Makefile.am): Likewise.
43595         * modules/fcntl (Makefile.am): Likewise.
43596         * modules/float (Makefile.am): Likewise.
43597         * modules/iconv_open (Makefile.am): Likewise.
43598         * modules/inttypes (Makefile.am): Likewise.
43599         * modules/locale (Makefile.am): Likewise.
43600         * modules/math (Makefile.am): Likewise.
43601         * modules/netinet_in (Makefile.am): Likewise.
43602         * modules/search (Makefile.am): Likewise.
43603         * modules/signal (Makefile.am): Likewise.
43604         * modules/stdarg (Makefile.am): Likewise.
43605         * modules/stdint (Makefile.am): Likewise.
43606         * modules/stdio (Makefile.am): Likewise.
43607         * modules/stdlib (Makefile.am): Likewise.
43608         * modules/string (Makefile.am): Likewise.
43609         * modules/strings (Makefile.am): Likewise.
43610         * modules/sys_select (Makefile.am): Likewise.
43611         * modules/sys_socket (Makefile.am): Likewise.
43612         * modules/sys_stat (Makefile.am): Likewise.
43613         * modules/sys_time (Makefile.am): Likewise.
43614         * modules/sysexits (Makefile.am): Likewise.
43615         * modules/time (Makefile.am): Likewise.
43616         * modules/unistd (Makefile.am): Likewise.
43617         * modules/wchar (Makefile.am): Likewise.
43618         * modules/wctype (Makefile.am): Likewise.
43619         Reported by Reuben Thomas <rrt@sc3d.org>.
43620
43621 2008-08-29  Bruno Haible  <bruno@clisp.org>
43622
43623         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43624         any more.
43625
43626 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43627
43628         * MODULES.html.sh (Misc): Add bitrotate.
43629
43630         * modules/bitrotate: New file.
43631
43632         * lib/bitrotate.h: New file.
43633
43634         * modules/bitrotate-tests: New file.
43635
43636         * tests/test-bitrotate.c: New file.
43637
43638         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43639         on the bitrotate module.
43640
43641         * lib/arctwo.c: Use new bitrotate module.
43642
43643 2008-08-29  Jim Meyering  <meyering@redhat.com>
43644
43645         bootstrap: merge changes from coreutils
43646         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43647         of copied files.  Remove a kludge, now that this is fixed.
43648         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43649         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43650         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43651
43652 2008-08-29  Bruno Haible  <bruno@clisp.org>
43653
43654         * MODULES.html.sh: Remove --cvs-urls option.
43655
43656 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43657
43658         maint.mk: adjust to file name change
43659         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43660
43661 2008-08-28  Jim Meyering  <meyering@redhat.com>
43662
43663         * modules/getndelim2 (License): Relicense to LGPLv2+.
43664         Approved by Richard Stallman for the version of 1995, and by
43665         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43666
43667 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43668
43669         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43670         dummy if one is not available.  Do not touch them if
43671         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43672         (getc_maybe_unlocked): New.
43673         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43674
43675 2008-08-26  Eric Blake  <ebb9@byu.net>
43676
43677         doc/INSTALL: resync from autoconf
43678         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43679         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43680         moving...
43681         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43682         * INSTALL: Regenerate.
43683         * INSTALL.ISO: New file.
43684         * INSTALL.UTF-8: Likewise.
43685
43686 2008-08-26  Jim Meyering  <meyering@redhat.com>
43687
43688         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43689         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43690         these definitions conditional, so that they may be overridden, too.
43691
43692 2008-08-26  Bruno Haible  <bruno@clisp.org>
43693
43694         Generate INSTALL file variants with prettier quotes.
43695         * doc/Makefile (INSTALL_PRELUDE): New macro.
43696         (INSTALL): Use it.
43697         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43698
43699 2008-08-26  Bruno Haible  <bruno@clisp.org>
43700
43701         Run makeinfo in an English locale.
43702         * doc/Makefile (MAKEINFO): New variable.
43703
43704 2008-08-26  Bruno Haible  <bruno@clisp.org>
43705
43706         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43707         Suggested by Eric Blake.
43708
43709 2008-08-25  Bruno Haible  <bruno@clisp.org>
43710
43711         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43712
43713 2008-08-25  Eric Blake  <ebb9@byu.net>
43714
43715         c-stack: test that stack overflow can be caught
43716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43717         that platform allows handling stack overflow; at least OS/2 EMX
43718         has sigaltstack, but crashes before transferring control to
43719         handler on stack overflow.
43720         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43721         check for HAVE_STACK_OVERFLOW_HANDLING.
43722         Reported by Elbert Pol.
43723
43724 2008-08-25  Bruno Haible  <bruno@clisp.org>
43725
43726         * doc/posix-functions/strftime.texi: Fix description of strftime
43727         module.
43728
43729 2008-08-24  Bruno Haible  <bruno@clisp.org>
43730
43731         * tests/uniwidth/test-uc_width2.c: New file.
43732         * tests/uniwidth/test-uc_width2.sh: New file.
43733         * modules/uniwidth/width-tests (Files): Add the new files.
43734         (TESTS): Add uniwidth/test-uc_width2.sh.
43735         (TESTS_ENVIRONMENT): New variable.
43736         (check_PROGRAMS): Add test-uc_width2.
43737         (test_uc_width2_SOURCES): New variable.
43738
43739         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43740         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43741         not 0x00AB.
43742         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43743
43744 2008-08-22  Eric Blake  <ebb9@byu.net>
43745
43746         test-lock, test-tls: mention why a test is skipped
43747         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43748         skipped.
43749         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43750
43751         count-one-bits: relax license
43752         * modules/count-one-bits (License): Relicense to LGPLv2+.
43753         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43754
43755 2008-08-22  Andreas Schwab  <schwab@suse.de>
43756
43757         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43758         Remove spurious space in assignment.
43759
43760 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43761
43762         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43763         Paul Eggert <eggert@CS.UCLA.EDU>.
43764
43765 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43766
43767         * modules/gettext: Add m4/threadlib.m4.
43768
43769 2008-08-19  Eric Blake  <ebb9@byu.net>
43770
43771         test-c-stack: fix compilation failure on FreeBSD 5.0
43772         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43773         headers before <sys/resource.h>.
43774         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43775         the bug.
43776         Reported by Nelson H. F. Beebe.
43777
43778         strverscmp: migrate from "strverscmp.h" to <string.h>
43779         * modules/string (Makefile.am): Add new hooks.
43780         * modules/strverscmp (Files): Remove strverscmp.h.
43781         (Depends-on): Add string.
43782         (configure.ac): Add indicator.
43783         (Include): Mention new header.
43784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43785         defaults.
43786         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43787         results.
43788         * lib/strverscmp.h: Delete.
43789         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43790         * tests/test-strverscmp.c (includes): Adjust client.
43791         * lib/check-version.c (includes): Likewise.
43792         * NEWS: Document the change.
43793
43794         strverscmp: add unit test
43795         * modules/strverscmp-tests: New file.
43796         * tests/test-strverscmp.c: Likewise.
43797
43798 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43799
43800         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43801         regarding Windows crypto stuff, from Mono.
43802
43803 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43804
43805         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43806         if present, for intel RND.  Return error on failures.
43807
43808 2008-08-18  Ben Pfaff  <blp@gnu.org>
43809
43810         gitlog-to-changelog: give better diagnostic for failed pipe-open
43811         * build-aux/gitlog-to-changelog: Improve error message: suggest
43812         that the version of Git may be too old.
43813
43814 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43815
43816         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43817         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43818
43819 2008-08-18  Bruno Haible  <bruno@clisp.org>
43820
43821         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43822         pthread_in_use().
43823
43824 2008-08-18  Bruno Haible  <bruno@clisp.org>
43825
43826         * lib/glthread/threadlib.c: Include <pthread.h>.
43827
43828 2008-08-18  Bruno Haible  <bruno@clisp.org>
43829
43830         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43831         glthread_recursive_lock_* macros.
43832         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43833         Fix syntax error.
43834
43835 2008-08-18  Bruno Haible  <bruno@clisp.org>
43836
43837         * lib/glthread/thread.c: Avoid forcing a context switch right after
43838         thread creation.
43839
43840 2008-08-17  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43843         * lib/glthread/thread.h: Provide Win32 specific implementation.
43844         * modules/thread (Files): Add lib/glthread/thread.c.
43845         (Depends-on): Add lock.
43846         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43847
43848 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43849
43850         New module 'yield'.
43851         * modules/yield: New file.
43852         * lib/glthread/yield.h: New file.
43853         * m4/yield.m4: New file.
43854         * MODULES.html.sh (Multithreading): Add yield.
43855
43856 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43857
43858         New module 'thread'.
43859         * modules/thread: New file.
43860         * lib/glthread/thread.h: New file.
43861         * m4/thread.m4: New file.
43862         * MODULES.html.sh (Multithreading): Add thread.
43863
43864 2008-08-17  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/glthread/lock.h: Include <stdlib.h> always.
43867         * lib/glthread/tls.h: Likewise.
43868         * lib/glthread/cond.h: Likewise.
43869
43870 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43871
43872         New module 'cond'.
43873         * modules/cond: New file.
43874         * lib/glthread/cond.h: New file.
43875         * lib/glthread/cond.c: New file.
43876         * m4/cond.m4: New file.
43877         * MODULES.html.sh (Multithreading): Add cond.
43878
43879 2008-08-16  Eric Blake  <ebb9@byu.net>
43880
43881         c-stack: fix regression on Irix 5.3 from 2008-06-21
43882         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43883         sa_sigaction...
43884         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43885         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43886         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43887         * modules/signal (Makefile.am): Use the value.
43888         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43889         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43890         * doc/posix-headers/signal.texi (signal.h): Document this
43891         portability issue.
43892         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43893         Reported by Tom G. Christensen.
43894
43895 2008-08-17  Bruno Haible  <bruno@clisp.org>
43896
43897         New module 'threadlib'.
43898         * modules/threadlib: New file.
43899         * lib/glthread/threadlib.c: New file, extracted from
43900         lib/glthread/lock.c.
43901         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43902         functions.
43903         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43904         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43905         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43906         macros.
43907         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43908         (gl_DISABLE_THREADS): Remove macro.
43909         * modules/lock (Files): Remove build-aux/config.rpath.
43910         (Depends-on): Remove havelib. Add threadlib.
43911         (configure.ac-early): Remove section.
43912         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43913         * modules/tls (Depends-on): Remove lock. Add threadlib.
43914         (Link): New section, copied from threadlib.
43915         * MODULES.html.sh (Multithreading): Add threadlib.
43916
43917 2008-08-14  Bruno Haible  <bruno@clisp.org>
43918
43919         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43920         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43921         glthread_rwlock_unlock, glthread_rwlock_destroy,
43922         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43923         glthread_recursive_lock_destroy): Define as macros always.
43924         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43925         glthread_lock_lock.
43926         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43927         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43928         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43929         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43930         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43931         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43932         (glthread_recursive_lock_lock_func): Renamed from
43933         glthread_recursive_lock_lock.
43934         (glthread_recursive_lock_unlock_func): Renamed from
43935         glthread_recursive_lock_unlock.
43936         (glthread_recursive_lock_destroy_func): Renamed from
43937         glthread_recursive_lock_destroy.
43938
43939 2008-08-14  Bruno Haible  <bruno@clisp.org>
43940
43941         * lib/glthread/lock.h: Renamed from lib/lock.h.
43942         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43943         * lib/glthread/tls.h: Renamed from lib/tls.h.
43944         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43945         * lib/fstrcmp.c: Update includes.
43946         * lib/strsignal.c: Update includes.
43947         * modules/lock (Files, Makefile.am): Update.
43948         (Include): Change to "glthread/lock.h".
43949         * modules/tls (Files, Makefile.am): Update.
43950         (Include): Change to "glthread/tls.h".
43951         * tests/test-lock.c: Update includes.
43952         * tests/test-tls.c: Update includes.
43953         * NEWS: Mention the renamed header files.
43954
43955 2008-08-11  Jim Meyering  <meyering@redhat.com>
43956
43957         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43958
43959 2008-08-11  Eric Blake  <ebb9@byu.net>
43960
43961         test-c-stack: avoid C99-ism
43962         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43963         before statement.
43964         Reported by Alain Guibert.
43965
43966 2008-08-10  Jim Meyering  <meyering@redhat.com>
43967
43968         ensure that return value of uinttostr et al are not ignored
43969         * lib/inttostr.h (__GNUC_PREREQ): Define.
43970         (__attribute_warn_unused_result__): Define.
43971         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43972
43973 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43974
43975         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43976         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43977
43978 2008-08-07  Jim Meyering  <meyering@redhat.com>
43979
43980         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43981
43982         * modules/mkstemp (License): Relicense under LGPLv2+.
43983         * modules/tempname (License): Likewise.
43984
43985 2008-08-06  Bruno Haible  <bruno@clisp.org>
43986
43987         * lib/poll.c (poll): Further micro-optimization.
43988
43989 2008-08-06  Jim Meyering  <meyering@redhat.com>
43990
43991         inet_pton.c: use locale-independent tolower
43992         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43993         (inet_pton6): Use c_tolower rather than tolower.
43994         * modules/inet_pton (Depends-on): Add c-ctype.
43995
43996 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43997
43998         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43999         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44000
44001 2008-08-06  Jim Meyering  <meyering@redhat.com>
44002
44003         * modules/inet_pton (License): Relicense under LGPLv2+.
44004
44005 2008-08-03  Bruno Haible  <bruno@clisp.org>
44006
44007         Additional non-aborting API for lock and tls.
44008         * lib/lock.h: Include <errno.h>.
44009         (glthread_lock_init): New macro/function.
44010         (gl_lock_init): Define as wrapper around glthread_lock_init.
44011         (glthread_lock_lock): New macro/function.
44012         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44013         (glthread_lock_unlock): New macro/function.
44014         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44015         (glthread_lock_destroy): New macro/function.
44016         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44017         (glthread_rwlock_init): New macro/function.
44018         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44019         (glthread_rwlock_rdlock): New macro/function.
44020         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44021         (glthread_rwlock_wrlock): New macro/function.
44022         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44023         (glthread_rwlock_unlock): New macro/function.
44024         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44025         (glthread_rwlock_destroy): New macro/function.
44026         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44027         (glthread_recursive_lock_init): New macro/function.
44028         (gl_recursive_lock_init): Define as wrapper around
44029         glthread_recursive_lock_init.
44030         (glthread_recursive_lock_lock): New macro/function.
44031         (gl_recursive_lock_lock): Define as wrapper around
44032         glthread_recursive_lock_lock.
44033         (glthread_recursive_lock_unlock): New macro/function.
44034         (gl_recursive_lock_unlock): Define as wrapper around
44035         glthread_recursive_lock_unlock.
44036         (glthread_recursive_lock_destroy): New macro/function.
44037         (gl_recursive_lock_destroy): Define as wrapper around
44038         glthread_recursive_lock_destroy.
44039         (glthread_once): New macro/function.
44040         (gl_once): Define as wrapper around glthread_once.
44041         Update function declarations.
44042         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44043         glthread_rwlock_init. Return error code.
44044         (glthread_rwlock_rdlock_multithreaded): Renamed from
44045         glthread_rwlock_rdlock. Return error code.
44046         (glthread_rwlock_wrlock_multithreaded): Renamed from
44047         glthread_rwlock_wrlock. Return error code.
44048         (glthread_rwlock_unlock_multithreaded): Renamed from
44049         glthread_rwlock_unlock. Return error code.
44050         (glthread_rwlock_destroy_multithreaded): Renamed from
44051         glthread_rwlock_destroy. Return error code.
44052         (glthread_recursive_lock_init_multithreaded): Renamed from
44053         glthread_recursive_lock_init. Return error code.
44054         (glthread_recursive_lock_lock_multithreaded): Renamed from
44055         glthread_recursive_lock_lock. Return error code.
44056         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44057         glthread_recursive_lock_unlock. Return error code.
44058         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44059         glthread_recursive_lock_destroy. Return error code.
44060         (glthread_once_call): Make static.
44061         (glthread_once_multithreaded): Renamed from glthread_once.
44062         * lib/tls.h: Include <errno.h>.
44063         (glthread_tls_key_init): New macro/function.
44064         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44065         (glthread_tls_set): New macro/function.
44066         (gl_tls_set): Define as wrapper around glthread_tls_set.
44067         (glthread_tls_key_destroy): New macro/function.
44068         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44069         Update function declarations.
44070         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44071         glthread_tls_get.
44072         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44073
44074 2008-08-04  Eric Blake  <ebb9@byu.net>
44075
44076         gnumakefile: use space, not TAB, outside of targets
44077         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44078
44079 2008-08-02  Jim Meyering  <meyering@redhat.com>
44080
44081         getdate.y: avoid locale-dependent date parsing failure
44082         In Turkish locales, getdate would fail to recognize keywords
44083         containing a lowercase "i".  The solution is not to rely on
44084         locale-sensitive case-conversion.
44085         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44086         (lookup_word): Use c_toupper in place of toupper.
44087         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44088         Reported by Vefa Bicakci <bicave@superonline.com> in
44089         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44090         * modules/getdate (Depends-on): Add c-ctype.
44091
44092 2008-08-02  Bruno Haible  <bruno@clisp.org>
44093
44094         * gnulib-tool (func_import): When updating or creating a .gitignore
44095         file, prepend each added line with a slash, and ignore leading slashes
44096         from the existing lines.
44097         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44098
44099 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44100
44101         Portability fix for GNU make 3.79.1.
44102         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44103         versions do not understand.
44104
44105 2008-08-01  Bruno Haible  <bruno@clisp.org>
44106
44107         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44108         * tests/test-isnanf.h (zero): New variable.
44109         (main): Avoid literal -0.0f.
44110         * tests/test-isnand.h (zero): New variable.
44111         (main): Avoid literal -0.0.
44112         * tests/test-isnanl.h (zero): New variable.
44113         (main): Avoid literal -0.0L.
44114         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44115         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44116         -0.0, -0.0L.
44117         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44118         (test_signbitd): Avoid literal -0.0.
44119         (test_signbitl): Avoid literal -0.0L.
44120         * tests/test-ceilf1.c (zero): New variable.
44121         (main): Avoid literal -0.0f.
44122         * tests/test-ceill.c (zero): New variable.
44123         (main): Avoid literal -0.0L.
44124         * tests/test-floorf1.c (zero): New variable.
44125         (main): Avoid literal -0.0f.
44126         * tests/test-floorl.c (zero): New variable.
44127         (main): Avoid literal -0.0L.
44128         * tests/test-roundf1.c (zero): New variable.
44129         (main): Avoid literal -0.0f.
44130         * tests/test-round1.c (zero): New variable.
44131         (main): Avoid literal -0.0.
44132         * tests/test-roundl.c (zero): New variable.
44133         (main): Avoid literal -0.0L.
44134         * tests/test-truncf1.c (zero): New variable.
44135         (main): Avoid literal -0.0f.
44136         * tests/test-trunc1.c (zero): New variable.
44137         (main): Avoid literal -0.0.
44138         * tests/test-truncl.c (zero): New variable.
44139         (main): Avoid literal -0.0L.
44140         * tests/test-frexp.c (zero): New variable.
44141         (main): Avoid literal -0.0.
44142         * tests/test-frexpl.c (zero): New variable.
44143         (main): Avoid literal -0.0L.
44144         * tests/test-ldexpl.c (zero): New variable.
44145         (main): Avoid literal -0.0L.
44146         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44147         (zerod, zerol): New variables.
44148         (test_function): Avoid literals -0.0, -0.0L.
44149         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44150         (zerod, zerol): New variables.
44151         (test_function): Avoid literals -0.0, -0.0L.
44152         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44153         (zerod, zerol): New variables.
44154         (test_function): Avoid literals -0.0, -0.0L.
44155         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44156         (zerod, zerol): New variables.
44157         (test_function): Avoid literals -0.0, -0.0L.
44158         * tests/test-strtod.c (zero): New variable.
44159         (main): Avoid literal -0.0.
44160         Reported by Jonathan C. Patschke <jp@centtech.com>.
44161
44162 2008-07-31  Jim Meyering  <meyering@redhat.com>
44163
44164         sha256.h: correct definition of SHA224_DIGEST_SIZE
44165         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44166         Reported by Paulie Pena IV <paulie4@gmail.com>.
44167         Define as 224 / 8, rather than as a literal.
44168         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44169         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44170         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44171
44172 2008-07-31  Bruno Haible  <bruno@clisp.org>
44173
44174         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44175         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44176         Reported by Jonathan Patschke <jp@centtech.com>.
44177
44178 2008-07-31  Bruno Haible  <bruno@clisp.org>
44179
44180         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44181         Reported by Paolo Bonzini <bonzini@gnu.org>.
44182
44183 2008-07-30  Eric Blake  <ebb9@byu.net>
44184
44185         test-strtod: allow compilation without -lm
44186         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44187         Reported by Dennis Clarke <blastwave@gmail.com>.
44188
44189 2008-07-28  Jim Meyering  <meyering@redhat.com>
44190
44191         bootstrap: work also when there are no .po files in po/
44192         * build-aux/bootstrap (update_po_files): Complete the change
44193         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44194
44195 2008-07-27  Jim Meyering  <meyering@redhat.com>
44196
44197         * users.txt: Add zile.
44198
44199 2008-07-26  Ben Pfaff  <blp@gnu.org>
44200
44201         Add missing dependencies on new m4/exponent[fdl].m4 files.
44202         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44203         * modules/isnand-nolibm: Add m4/exponentd.m4.
44204         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44205         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44206         m4/isnan[fdl].m4, because the macros actually used moved.
44207         Reported by Jim Meyering.
44208
44209 2008-07-14  Ben Pfaff  <blp@gnu.org>
44210
44211         Add isinf module.
44212         * lib/isinf.c: New file.
44213         * lib/math.in.h: Define isinf macro if we have decided to replace
44214         it.
44215         * m4/isinf.m4: New file.
44216         * m4/math_h.m4: Initialize and substitute variables for isinf
44217         module.
44218         * modules/isinf: New file.
44219         * modules/isinf-tests: New file.
44220         * modules/math: Add substitutions for new module.
44221         * tests/test-isinf.c: New file.
44222         * doc/posix-functions/isinf.texi: Mention new module.
44223         * MODULES.html.sh: Mention new module.
44224
44225 2008-07-14  Ben Pfaff  <blp@gnu.org>
44226
44227         Factor out some macros for use by additional modules.
44228         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44229         exponentf.m4.
44230         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44231         exponentd.m4.
44232         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44233         file exponentl.m4.
44234         * m4/exponentf.m4: New file.
44235         * m4/exponentd.m4: New file.
44236         * m4/exponentl.m4: New file.
44237         * modules/isnanf: Use new file m4/exponentf.m4.
44238         * modules/isnand: Use new file m4/exponentd.m4.
44239         * modules/isnanl: Use new file m4/exponentl.m4.
44240
44241 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44242
44243         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44244         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44245         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44246         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44247
44248         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44249         readlink on platforms without PATH_MAX.
44250
44251 2008-07-21  Eric Blake  <ebb9@byu.net>
44252
44253         Warn, not fail, on stale version.
44254         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44255
44256         Don't allow installation with stale devel version number.
44257         * top/GNUmakefile (_is-install-target): New macro.
44258         (_curr-ver): Forbid installation with stale version number.
44259
44260 2008-07-20  Bruno Haible  <bruno@clisp.org>
44261
44262         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44263         TESTS_ENVIRONMENT.
44264         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44265
44266 2008-07-20  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/c-stack.h (c_stack_action): Add documentation.
44269         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44270
44271 2008-07-20  Bruno Haible  <bruno@clisp.org>
44272
44273         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44274         * modules/readlink (License): Likewise.
44275
44276 2008-07-17  Eric Blake  <ebb9@byu.net>
44277
44278         * modules/c-stack (Link): Fix typo.
44279
44280         Make c-stack use libsigsegv, when available.
44281         * modules/c-stack (Depends-on): Add libsigsegv.
44282         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44283         needed.
44284         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44285         (segv_handler, overflow_handler, c_stack_action)
44286         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44287         implementation when libsigsegv is available, but only when using
44288         the library is necessary.
44289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44290         comment, explaining why XSI check fails on Linux.
44291         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44292         * tests/test-c-stack2.sh: Tweak skip message.
44293         * NEWS: Document new link-time requirements.
44294
44295 2008-07-16  Eric Blake  <ebb9@byu.net>
44296
44297         c-stack: Expose false positives when not using libsigsegv.
44298         * modules/c-stack-tests (Files): Expand test.
44299         * tests/test-c-stack.c (main): Add means to conditionally trigger
44300         non-overflow SIGSEGV.
44301         * tests/test-c-stack2.sh: New file.
44302
44303 2008-07-14  Bruno Haible  <bruno@clisp.org>
44304
44305         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44306         Reported by Eric Blake.
44307
44308 2008-07-14  Sam Steingold  <sds@gnu.org>
44309             Bruno Haible  <bruno@clisp.org>
44310
44311         New module libsigsegv.
44312         * modules/libsigsegv: New file.
44313         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44314         modifications.
44315         * MODULES.html.sh (Signal handling): New section.
44316
44317 2008-07-14  Bruno Haible  <bruno@clisp.org>
44318
44319         * modules/unictype/ctype-* (Description): Add the word "function".
44320         Improves the resulting doc in MODULES.html.
44321
44322 2008-07-12  Ben Pfaff  <blp@gnu.org>
44323
44324         Add longlong module.
44325         * modules/longlong: New file.
44326
44327 2008-07-12  Bruno Haible  <bruno@clisp.org>
44328
44329         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44330         to empty.
44331
44332 2008-07-10  Ben Pfaff  <blp@gnu.org>
44333
44334         Add isnan module.
44335         * doc/posix-functions/isnan.texi: Mention new module.
44336         * lib/math.in.h: Define isnan macro if we have decided to replace
44337         it.
44338         * m4/isnan.m4: New file.
44339         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44340         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44341         also.
44342         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44343         redundancy.
44344         * m4/math_h.m4: Initialize and substitute variables for isnan
44345         module.
44346         * modules/isnan: New file.
44347         * modules/isnan-tests: New file.
44348         * modules/math: Add substitutions for new module.
44349         * tests/test-isnan.c: New file.
44350         * MODULES.html.sh: Mention new module.
44351
44352 2008-07-10  Ben Pfaff  <blp@gnu.org>
44353
44354         Add isnanf module.
44355         * lib/isnanf.m4: New file.
44356         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44357         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44358         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44359         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44360         * modules/isnanf: New file.
44361         * modules/isnanf-tests: New file.
44362         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44363         files.
44364         * tests/test-isnanf-nolibm.c: factored most of its contents into
44365         new file tests/test-isnanf.h.
44366         * tests/test-isnanf.h: New file.
44367         * tests/test-isnanf.c: New file.
44368         * MODULES.html.sh: Mention new module.
44369         * doc/glibc-functions/isnanf.texi: Mention new module.
44370
44371 2008-07-10  Ben Pfaff  <blp@gnu.org>
44372
44373         Add isnand module.
44374         * lib/isnand.h: New file.
44375         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44376         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44377         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44378         functionality also.
44379         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44380         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44381         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44382         * modules/isnand: New file.
44383         * modules/isnand-tests: New file.
44384         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44385         files.
44386         * tests/test-isnand-nolibm.c: factored most of its contents into
44387         new file tests/test-isnand.h.
44388         * tests/test-isnand.h: New file.
44389         * tests/test-isnand.c: New file.
44390         * MODULES.html.sh: Mention new module.
44391
44392 2008-07-10  Ben Pfaff  <blp@gnu.org>
44393
44394         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44395         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44396         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44397         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44398         * modules/isnanf-nolibm: Update references to renamed files.
44399         * modules/isnand-nolibm: Likewise.
44400         * modules/isnanf-nolibm-tests: Likewise.
44401         * modules/isnand-nolibm-tests: Likewise.
44402         * lib/frexp.c: Likewise.
44403         * lib/isfinite.c: Likewise.
44404         * lib/signbitd.c: Likewise.
44405         * lib/signbitf.c: Likewise.
44406         * lib/vasnprintf.c: Likewise.
44407         * tests/test-ceilf1.c: Likewise.
44408         * tests/test-ceilf2.c: Likewise.
44409         * tests/test-floorf1.c: Likewise.
44410         * tests/test-floorf2.c: Likewise.
44411         * tests/test-frexp.c: Likewise.
44412         * tests/test-round1.c: Likewise.
44413         * tests/test-round2.c: Likewise.
44414         * tests/test-roundf1.c: Likewise.
44415         * tests/test-strtod.c: Likewise.
44416         * tests/test-trunc1.c: Likewise.
44417         * tests/test-trunc2.c: Likewise.
44418         * tests/test-truncf1.c: Likewise.
44419         * tests/test-truncf2.c: Likewise.
44420         * NEWS: Mention the renamed header files.
44421
44422 2008-07-11  Jim Meyering  <meyering@redhat.com>
44423
44424         vc-list-files: make the last-resort awk code more portable
44425         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44426         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44427         does not support it.
44428
44429 2008-07-10  Eric Blake  <ebb9@byu.net>
44430
44431         Work with tar's bootstrap.
44432         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44433         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44434         an m4 comment.
44435
44436 2008-07-09  Jim Meyering  <meyering@redhat.com>
44437
44438         posix-shell.m4: fix typo that made this test malfunction
44439         * m4/posix-shell.m4: Remove capitalization in variable name.
44440
44441 2008-07-08  Bruno Haible  <bruno@clisp.org>
44442
44443         * m4/onceonly.m4: Update comments.
44444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44445
44446 2008-07-04  Jim Meyering  <meyering@redhat.com>
44447
44448         * users.txt: Add vc-dwim.
44449         (bison, coreutils): Use the gitweb URL.
44450
44451 2008-07-03  Jim Meyering  <meyering@redhat.com>
44452
44453         * users.txt: Add libffcall.  From Sam Steingold.
44454
44455 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44456
44457         getdate.y: do not ignore TZ with relative day, month or year offset
44458         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44459         relative-date-handling, since otherwise, the latter would clobber the
44460         sole output (an updated Start value) of the tz-handling block.
44461         * tests/test-getdate.c: Tests for the fix
44462
44463 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44464
44465         Recognize 'foo_LIBRARIES += libgnu.a'.
44466         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44467         makefile snippet has already specified an installation location,
44468         also using '+='.
44469
44470 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44471
44472         getdate.y: factor out common actions
44473         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44474         Use them in place of open-coded actions.
44475
44476 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44477
44478         Add self-test for getdate module.
44479         * modules/getdate-tests: New file.
44480         * tests/test-getdate.c: New file.
44481
44482 2008-06-29  Bruno Haible  <bruno@clisp.org>
44483
44484         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44485         .gitignore.
44486         Reported by Sylvain Beucler <beuc@beuc.net>.
44487
44488 2008-06-29  Bruno Haible  <bruno@clisp.org>
44489
44490         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44491         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44492
44493 2008-06-29  Bruno Haible  <bruno@clisp.org>
44494
44495         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44496         EXTRA_DIST.
44497         Reported by Sylvain Beucler <beuc@beuc.net>.
44498
44499 2008-06-26  Jim Meyering  <meyering@redhat.com>
44500
44501         make several modules depend on the "open" module
44502         This provides slightly increased consistency when opening-for-write
44503         the name of a non-directory spelled with a trailing slash.
44504         * modules/chdir-safer: Likewise.
44505         * modules/chown: Likewise.
44506         * modules/clean-temp: Likewise.
44507         * modules/copy-file: Likewise.
44508         * modules/fchdir: Likewise.
44509         * modules/fcntl-safer: Likewise.
44510         * modules/pipe: Likewise.
44511         * modules/utime: Likewise.
44512         Prompted by Eric Blake and Bruno Haible.
44513
44514 2008-06-24  Andreas Schwab  <schwab@suse.de>
44515
44516         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44517         literals can be used as initializers for global variables.
44518
44519 2008-06-23  Eric Blake  <ebb9@byu.net>
44520
44521         Make gnulib-cache.m4 easier to diff.
44522         * gnulib-tool (func_import): Allow newlines when reading cached
44523         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44524
44525 2008-06-23  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44528         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44529         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44530         m4/signalblocking.m4.
44531         (gl_PREREQ_SIGACTION): Don't invoke it.
44532         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44533         gl_PREREQ_SIG_HANDLER_H.
44534         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44535         Don't check for sigaction here.
44536
44537 2008-06-23  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44540         (install_handlers): Don't set the SA_RESETHAND flag.
44541
44542 2008-06-23  Bruno Haible  <bruno@clisp.org>
44543
44544         * m4/sigaction.m4: Comment fixes.
44545         * lib/signal.in.h: Likewise.
44546
44547 2008-06-23  Eric Blake  <ebb9@byu.net>
44548
44549         Fix typo.
44550         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44551
44552         Avoid SA_ namespace.
44553         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44554         Reported by Ralf Wildenhues.
44555
44556         Avoid test failure due to SA_RESTORER.
44557         * tests/test-sigaction.c (SA_MASK): New macro.
44558         (main): Avoid failing due to extension flags being set.
44559         Reported by Jim Meyering.
44560
44561         Revert use of sig-handler.h in sigprocmask.c.
44562         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44563         it requires the existence of struct sigaction.
44564         * lib/sigprocmask.c (handler_t): Restore typedef.
44565         (rpl_signal, old_handlers): Use local type.
44566
44567 2008-06-22  Bruno Haible  <bruno@clisp.org>
44568
44569         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44570         conditionally.
44571         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44572
44573 2008-06-22  Bruno Haible  <bruno@clisp.org>
44574
44575         * doc/posix-functions/siginterrupt.texi: Move note.
44576
44577         * lib/signal.in.h (SA_RESTART): New macro.
44578         * lib/sigaction.c: Update comment.
44579
44580         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44581
44582         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44583         (gl_PREREQ_SIGPROCMASK): Invoke it.
44584         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44585
44586         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44587
44588         * lib/sigprocmask.c: Update a comment.
44589
44590 2008-06-21  Eric Blake  <ebb9@byu.net>
44591
44592         Use sigaction module rather than signal().
44593         * modules/c-stack (Depends-on): Add sigaction.
44594         * modules/fatal-signal (Depends-on): Likewise.
44595         * modules/nanosleep (Depends-on): Likewise.
44596         * modules/sigprocmask (Files): Add sig-handler.h.
44597         * modules/sigaction (Files): Likewise.
44598         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44599         Eggert.
44600         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44601         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44602         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44603         (init_fatal_signals): Likewise.
44604         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44605         (siginterrupt): Delete fallback.
44606         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44607         instead.
44608         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44609         siginterrupt.
44610
44611         New module sigaction, for mingw.
44612         * modules/sigaction: New module...
44613         * modules/sigaction-tests: ...and its test.
44614         * m4/sigaction.m4: New file.
44615         * lib/sigaction.c: Likewise.
44616         * tests/test-sigaction.c: Likewise.
44617         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44618         * modules/signal (Makefile.am): Likewise.
44619         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44620         needed.
44621         * doc/posix-headers/signal.texi (signal.h): Mention provided
44622         types.
44623         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44624         that sigaction is preferable.
44625         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44626         module.
44627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44628         sigaction.
44629
44630         Improve robustness of sigprocmask by overriding signal.
44631         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44632         is in use.
44633         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44634         (SIGKILL, SIGSTOP): Provide fallbacks.
44635         (rpl_signal): Implement.
44636         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44637         signal can be called inside handlers.
44638
44639         Fix nanosleep module on mingw.
44640         * modules/nanosleep (Depends-on): Add sys_select.
44641         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44642
44643         Fix licensing of sigprocmask.
44644         * modules/raise (License): Relicense as LGPL.
44645
44646 2008-06-21  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44649         result if it contains question marks.
44650         Reported by Michael Geng <linux@michaelgeng.de>.
44651
44652 2008-06-19  Bruno Haible  <bruno@clisp.org>
44653
44654         Fix CVS-ism.
44655         * doc/gnulib.texi: Include updated-stamp.texi.
44656         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44657         (updated-stamp.texi): New rule.
44658         (gnulib.info): Depend on it.
44659         * doc/.gitignore: Add updated-stamp.texi.
44660         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44661
44662 2008-06-19  Bruno Haible  <bruno@clisp.org>
44663
44664         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44665         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44666
44667 2008-06-19  Eric Blake  <ebb9@byu.net>
44668
44669         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44670         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44671         Reported by Stepan Kasal.
44672
44673 2008-06-18  Bruno Haible  <bruno@clisp.org>
44674
44675         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44676         Reported by Eric Blake.
44677
44678 2008-06-18  Eric Blake  <ebb9@byu.net>
44679
44680         Work around cygwin 1.5.25 strsignal bug.
44681         * tests/test-strsignal.c: Allow for const char *.
44682         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44683
44684 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44685
44686         * users.txt: Update URL to article and add author/date
44687         information.
44688
44689 2008-06-17  Bruno Haible  <bruno@clisp.org>
44690
44691         New macro gl_DISABLE_THREADS.
44692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44693         if the user did not pass --enable-threads or --disable-threads option.
44694         (gl_DISABLE_THREADS): New macro.
44695         Reported by Eric Blake <ebb9@byu.net>.
44696
44697 2008-06-17  Bruno Haible  <bruno@clisp.org>
44698
44699         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44700         when the macro ignores it.
44701         Based on a patch by Eric Blake <ebb9@byu.net>.
44702
44703 2008-06-17  Bruno Haible  <bruno@clisp.org>
44704
44705         * modules/tls (License): Change to LGPLv2+.
44706         Reported by Eric Blake.
44707
44708 2008-06-17  Eric Blake  <ebb9@byu.net>
44709
44710         Simplify c-stack prerequisites.
44711         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44713         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44714         check.
44715         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44716         <sys/resource.h>.
44717
44718         Move c-stack test into testsuite.
44719         * modules/c-stack-tests: New file.
44720         * lib/c-stack.c [DEBUG]: Move test program...
44721         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44722         fail test if sigaltstack is lacking.
44723         * tests/test-c-stack.sh: New driver file.
44724
44725 2008-06-16  Eric Blake  <ebb9@byu.net>
44726
44727         Use raise module consistently.
44728         * modules/fatal-signal (Depends-on): Add raise.
44729         * modules/sigprocmask (Depends-on): Likewise.
44730         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44731         * lib/sigprocmask.c (sigprocmask): Likewise.
44732         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44733         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44734
44735         Fix compliance bug in sigpending.
44736         * lib/sigprocmask.c (sigpending): Return pending array via
44737         parameter, not return value.
44738
44739 2008-06-14  Eric Blake  <ebb9@byu.net>
44740
44741         Improve obstack-printf test code.
44742         * tests/test-obstack-printf.c (test_function): Fix comment, and
44743         simplify usage of obstack_* in macros.  Add a test for coverage.
44744         Reported by Bruno Haible.
44745
44746 2008-06-14  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44749         array size as a constant, not as a const variable.
44750         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44751         AC_USE_SYSTEM_EXTENSIONS.
44752         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44753         Test whether the obstack_printf function actually exists.
44754         * modules/obstack-printf (Depends-on): Add extensions.
44755         (Include): Remove obstack.h.
44756         * modules/obstack-printf-posix (Depends-on): Add extensions.
44757         (Include): Remove obstack.h.
44758
44759 2008-06-13  Eric Blake  <ebb9@byu.net>
44760
44761         Add obstack-printf and obstack-printf-posix modules.
44762         * modules/obstack-printf: New file.
44763         * modules/obstack-printf-posix: Likewise.
44764         * MODULES.html.sh (Misc): Mention them.
44765         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44766         Likewise.
44767         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44768         Likewise.
44769         * modules/stdio (Makefile.am): Accomodate new modules.
44770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44771         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44772         Declare.
44773         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44774         functions.
44775         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44776         (gl_REPLACE_OBSTACK_PRINTF): New macros
44777         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44778         * tests/test-obstack-printf.c: New file.
44779         * modules/obstack-printf-tests: Likewise.
44780         * modules/obstack-printf-posix-tests: Likewise.
44781
44782 2008-06-11  Bruno Haible  <bruno@clisp.org>
44783
44784         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44785         * lib/open.c: Include errno.h.
44786         (open): Fail when attempting to write to a file that has a trailing
44787         slash.
44788         * tests/test-open.c (main): Test against trailing slash bug.
44789         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44790
44791 2008-06-10  Bruno Haible  <bruno@clisp.org>
44792
44793         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44794         for $? to work inside the trap command, with various /bin/sh-s.
44795         * tests/test-vc-list-files-cvs.sh: Likewise.
44796
44797 2008-06-10  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/acl-internal.h: Don't include gettext.h here.
44800         * lib/set-mode-acl.c: Include gettext.h here.
44801         * lib/copy-acl.c: Likewise.
44802
44803 2008-06-10  Bruno Haible  <bruno@clisp.org>
44804
44805         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44806         * lib/wait-process.c (wait_subprocess): Likewise.
44807         * lib/execute.h (execute): Add termsigp argument.
44808         * lib/execute.c (execute): Likewise.
44809         * lib/csharpcomp.c (compile_csharp_using_pnet,
44810         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44811         * lib/csharpexec.c (execute_csharp_using_pnet,
44812         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44813         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44814         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44815         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44816         is_jikes_present): Update.
44817         * lib/javaexec.c (execute_java_class): Update.
44818         * lib/javaversion.c (execute_and_read_line): Update.
44819         * NEWS: Document the changes.
44820         Reported by Eric Blake.
44821
44822 2008-06-10  Eric Blake  <ebb9@byu.net>
44823
44824         Add missing include.
44825         * tests/test-strstr.c (includes): Add <signal.h>.
44826         * tests/test-strcasestr.c (includes): Likewise.
44827         * tests/test-memmem.c (includes): Likewise.
44828
44829 2008-06-10  Bruno Haible  <bruno@clisp.org>
44830
44831         * lib/wait-process.c (wait_subprocess): Add an assertion.
44832
44833 2008-06-10  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44836
44837 2008-06-10  Bruno Haible  <bruno@clisp.org>
44838
44839         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44840         using alarm().
44841         * tests/test-strcasestr.c (main): Likewise.
44842         * tests/test-strstr.c (main): Likewise.
44843
44844 2008-06-09  Bruno Haible  <bruno@clisp.org>
44845
44846         Work around the Solaris 10 ACE ACLs ABI change.
44847         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44848         declare if ACL_NO_TRIVIAL is present.
44849         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44850         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44851         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44852         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44853         define if ACL_NO_TRIVIAL is present.
44854         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44855         and use the current ABI.
44856         (file_has_acl): Use same #if condition as elsewhere.
44857         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44858         in use, and use the current ABI.
44859         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44860         Reported by Jim Meyering.
44861
44862 2008-06-09  Eric Blake  <ebb9@byu.net>
44863
44864         Work around environments that (stupidly) ignore SIGALRM.
44865         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44866         before using alarm().
44867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44869         Reported by Ian Beckwith <ianb@erislabs.net>.
44870
44871         Produce autobuild blurb earlier in log.
44872         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44873
44874 2008-06-09  Jim Meyering  <meyering@redhat.com>
44875         and OndÅ™ej Vašík  <ovasik@redhat.com>
44876
44877         utimens.c: correct kernel bug work-around
44878         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44879         failure, not success, and the kernel bug we're trying to work
44880         around affects not just the utimensat call, but also the fallback
44881         futimens call.
44882         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44883         not success.
44884         [HAVE_FUTIMENS]: Use the same work-around, here.
44885
44886 2008-06-09  Jim Meyering  <meyering@redhat.com>
44887
44888         add more guards around definition of ACE_-related code
44889         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44890         ALLOW and ACE_OWNER are also defined.
44891
44892 2008-06-08  Bruno Haible  <bruno@clisp.org>
44893
44894         * lib/acl-internal.h: Add me as co-author.
44895         * lib/file-has-acl.c: Likewise.
44896         * lib/set-mode-acl.c: Likewise.
44897         * lib/copy-acl.c: Likewise.
44898
44899 2008-06-08  Bruno Haible  <bruno@clisp.org>
44900
44901         Add support for AIX ACLs.
44902         * lib/acl-internal.h (acl_nontrivial): New declaration.
44903         * lib/file-has-acl.c (acl_nontrivial): New function.
44904         (file_has_acl): Add implementation using AIX 4 ACL API.
44905         * lib/set-mode-acl.c (qset_acl): Likewise.
44906         * lib/copy-acl.c (qcopy_acl): Likewise.
44907
44908 2008-06-08  Bruno Haible  <bruno@clisp.org>
44909
44910         Add support for HP-UX ACLs.
44911         * lib/acl-internal.h (acl_nontrivial): New declaration.
44912         * lib/file-has-acl.c (acl_nontrivial): New function.
44913         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44914         * lib/set-mode-acl.c (qset_acl): Likewise.
44915         * lib/copy-acl.c (qcopy_acl): Likewise.
44916
44917 2008-06-08  Bruno Haible  <bruno@clisp.org>
44918
44919         Add support for Cygwin ACLs.
44920         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44921         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44922         the chmod_or_fchmod call.
44923         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44924
44925 2008-06-08  Bruno Haible  <bruno@clisp.org>
44926
44927         Fix bug with setuid modes in Solaris 10+ code.
44928         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44929         succeeded, when the mode contains some special bits.
44930
44931 2008-06-08  Bruno Haible  <bruno@clisp.org>
44932
44933         Add support for Solaris 7..10 ACLs.
44934         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44935         declarations.
44936         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44937         functions.
44938         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44939         * lib/set-mode-acl.c (qset_acl): Likewise.
44940         * lib/copy-acl.c (qcopy_acl): Likewise.
44941
44942 2008-06-08  Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44945         declaration.
44946         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44947         (acl_access_nontrivial): Remove MacOS X case.
44948         (file_has_acl): Use acl_extended_nontrivial.
44949         * lib/copy-acl.c (qcopy_acl): Likewise.
44950
44951 2008-06-08  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44954
44955 2008-06-08  Jim Meyering  <meyering@redhat.com>
44956
44957         * modules/acl (Maintainer): Add Bruno Haible.
44958
44959 2008-06-07  Bruno Haible  <bruno@clisp.org>
44960
44961         Improve support for Tru64 ACLs.
44962         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44963         ACL on OSF/1.
44964
44965 2008-06-07  Bruno Haible  <bruno@clisp.org>
44966
44967         Add support for MacOS X ACLs.
44968         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44969         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44970         * lib/set-mode-acl.c (qset_acl): Likewise.
44971         * lib/copy-acl.c (qcopy_acl): Likewise.
44972
44973 2008-06-07  Bruno Haible  <bruno@clisp.org>
44974
44975         Fix memory leak introduced on 2008-05-22.
44976         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44977         use.
44978
44979 2008-06-07  Bruno Haible  <bruno@clisp.org>
44980
44981         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44982         to construct an empty ACL.
44983
44984 2008-06-07  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44987         precisely.
44988         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44989
44990 2008-06-07  Bruno Haible  <bruno@clisp.org>
44991
44992         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44993         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44994
44995 2008-06-07  Bruno Haible  <bruno@clisp.org>
44996
44997         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44998         regardless of POSIX.
44999         * doc/posix-functions/_longjmp.texi: Likewise.
45000         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45001         SystemV platform in this case.
45002
45003 2008-06-06  Eric Blake  <ebb9@byu.net>
45004
45005         Document abort() bugs.
45006         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45007
45008         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45009         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45010         sigsetjmp.
45011         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45012         siglongjmp, but only as a macro.
45013         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45014         is obsolete.
45015         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45016
45017         Tweak documentation to cover cygwin argz bugs.
45018         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45019         argz bug fix; no code change needed since no cygwin releases
45020         occurred between the last fix and the bug being tested.
45021         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45022         module and recently fixed cygwin bugs.
45023         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45024         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45025         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45026         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45027         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45028         Likewise.
45029         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45030         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45031         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45032         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45033         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45034         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45035         Likewise.
45036
45037         Avoid gcc warning on cygwin.
45038         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45039         !ACL_NO_TRIVIAL]: Avoid unused variable.
45040
45041 2008-06-05  Eric Blake  <ebb9@byu.net>
45042
45043         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45044         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45045         git-version-gen fails to come up with a version.
45046         Reported by Simon Josefsson.
45047
45048 2008-06-05  Jim Meyering  <meyering@redhat.com>
45049             Paul Eggert  <eggert@cs.ucla.edu>
45050
45051         utimens.c: work around a probable Linux kernel bug
45052         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45053         appears to be a kernel bug that causes utimensat to return 280
45054         instead of 0, indicating success.
45055
45056 2008-06-04  Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45059         2008-06-01 commit.
45060
45061 2008-06-04  Bruno Haible  <bruno@clisp.org>
45062
45063         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45064         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45065         (file_has_acl): Use it. Save errno afterwards.
45066         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45067
45068 2008-06-03  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45071         draft code. Simplify #ifs.
45072         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45073         Put Solaris code after POSIX-draft code. Fix comments regarding
45074         Solaris 10, HP-UX. Mention Cygwin.
45075         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45076
45077 2008-06-03  Eric Blake  <ebb9@byu.net>
45078
45079         Provide fallback for older kernels.
45080         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45081         Provide runtime fallback if kernel lacks support.
45082         Reported by Mike Frysinger.
45083
45084 2008-06-02  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45087         it exists.
45088
45089 2008-06-02  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45092         * lib/copy-acl.c (qcopy_acl): Update comment.
45093
45094 2008-06-02  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45097         like ACL APIs.
45098
45099 2008-06-02  Bruno Haible  <bruno@clisp.org>
45100
45101         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45102         * tests/test-set-mode-acl.sh: Likewise.
45103         * tests/test-copy-acl.sh: Likewise.
45104         * tests/test-copy-file.sh: Likewise.
45105
45106 2008-06-02  Bruno Haible  <bruno@clisp.org>
45107
45108         * tests/test-file-has-acl.sh: Remove unused code.
45109
45110 2008-06-01  Bruno Haible  <bruno@clisp.org>
45111
45112         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45113         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45114         messages.
45115         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45116
45117 2008-06-01  Bruno Haible  <bruno@clisp.org>
45118
45119         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45120         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45121         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45122         APIs.
45123         * modules/acl-tests (configure.ac): Remove tests now contained in
45124         m4/acl.m4.
45125
45126 2008-06-02  Jim Meyering  <meyering@redhat.com>
45127
45128         announce-gen: use a better key-server host name
45129         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45130         it may be more consistently reliable.  Suggested by Werner Koch
45131         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45132
45133 2008-06-01  Bruno Haible  <bruno@clisp.org>
45134
45135         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45136         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45137
45138 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45139
45140         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45141
45142 2008-06-01  Bruno Haible  <bruno@clisp.org>
45143
45144         New ACL tests.
45145         * tests/test-file-has-acl.sh: New file.
45146         * tests/test-file-has-acl.c: New file.
45147         * tests/test-set-mode-acl.sh: New file.
45148         * tests/test-set-mode-acl.c: New file.
45149         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45150         * tests/test-copy-acl.c: New file.
45151         * modules/acl-tests: New file, based on modules/copy-file-tests.
45152         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45153         (Depends-on): Add acl-tests.
45154         (configure.ac): Remove checks.
45155         (Makefile.am): Don't create test-sameacls program here any more.
45156
45157 2008-06-01  Bruno Haible  <bruno@clisp.org>
45158
45159         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45160         * tests/test-sameacls.c: Include progname.h.
45161         (main): Invoke set_program_name. Portability fixes for MacOS X,
45162         Solaris, HP-UX.
45163
45164 2008-06-01  Bruno Haible  <bruno@clisp.org>
45165
45166         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45167         function.
45168         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45169
45170 2008-06-01  Bruno Haible  <bruno@clisp.org>
45171
45172         * modules/rpmatch (Depends-on): Add strdup.
45173
45174 2008-06-01  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/pipe.c: Include unistd-safer.h.
45177         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45178         * modules/pipe (Depends-on): Add unistd-safer.
45179
45180 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45181
45182         * modules/autobuild (configure.ac): Call AB_INIT.
45183
45184 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45185
45186         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45187         Suggested by Bruno Haible <bruno@clisp.org>.
45188
45189 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45190
45191         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45192         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45193         <bruno@clisp.org>.
45194
45195 2008-05-29  Eric Blake  <ebb9@byu.net>
45196
45197         Prefer new POSIX 200x interfaces over futimesat.
45198         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45199         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45200         when available.
45201         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45202
45203 2008-05-28  Bruno Haible  <bruno@clisp.org>
45204
45205         * modules/stpcpy (License): Change to LGPLv2+.
45206         Requested by David Lutterkort <dlutter@redhat.com>.
45207
45208 2008-05-27  Bruno Haible  <bruno@clisp.org>
45209
45210         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45211         current mingw.
45212         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45213
45214 2008-05-27  Bruno Haible  <bruno@clisp.org>
45215
45216         * modules/iconv_open (Link): New section, from module 'iconv'.
45217         * modules/striconv (Link): Likewise.
45218         * modules/striconveh (Link): Likewise.
45219         * modules/xstriconv (Link): Likewise.
45220         * modules/unicodeio (Link): Likewise.
45221         * modules/propername (Link): Likewise.
45222         Reported by Jim Meyering.
45223
45224 2008-05-26  Jim Meyering  <meyering@redhat.com>
45225
45226         sha256: do not artificially restrict buffer length to be < 2^32
45227         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45228         uint32_t to size_t.
45229         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45230         to match.
45231
45232         avoid unaligned access errors, e.g., on sparc
45233         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45234         direct access through a possibly-unaligned uint64* pointer.
45235         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45236         direct access through a possibly-unaligned uint32* pointer.
45237         Prompted by this patch from Tom "spot" Callaway:
45238         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45239
45240         sha512.c: fix typo in comment
45241         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45242
45243 2008-05-25  Bruno Haible  <bruno@clisp.org>
45244
45245         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45246         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45247         (Makefile.am): Update lib_SOURCES.
45248
45249 2008-05-25  Bruno Haible  <bruno@clisp.org>
45250
45251         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45252
45253 2008-05-25  Jim Meyering  <meyering@redhat.com>
45254
45255         useless-if-before-free: freed expr may have white-space differences
45256         * build-aux/useless-if-before-free: Recognize cases in which the
45257         freed expression differs from the tested one in embedded white
45258         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45259         $1 was used, so we can't make any regexp shy.  Improved tests now
45260         detect this.
45261
45262         useless-if-before-free: accept white space in the expression.
45263         * build-aux/useless-if-before-free: For now, any white space
45264         in the expression must be identical in the free argument.
45265
45266         useless-if-before-free: efficiency tweak
45267         * build-aux/useless-if-before-free: Make the expression-matching
45268         regexp "shy".
45269         Make the *outer* regexp shy, not the expr-matching one.
45270
45271         update code-in-comment to accept cast of free arg
45272         * build-aux/useless-if-before-free: Update regexp.
45273
45274 2008-05-25  Bruno Haible  <bruno@clisp.org>
45275
45276         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45277         * modules/copy-file-tests (Files, Makefile.am): Update.
45278         * tests/test-copy-file.c (func_test_copy): Update.
45279
45280 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45281
45282         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45283
45284 2008-05-23  Bruno Haible  <bruno@clisp.org>
45285
45286         Improve support for ACLs on OSF/1.
45287         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45288         Remove fallback for unknown flavors of ACLs.
45289
45290 2008-05-22  Bruno Haible  <bruno@clisp.org>
45291
45292         Add support for ACLs on OSF/1.
45293         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45294         replacements.
45295         (acl_free_text): New macro fallback.
45296         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45297         acl_free.
45298         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45299         acl_free_text function. Require AC_C_INLINE.
45300
45301 2008-05-22  Bruno Haible  <bruno@clisp.org>
45302
45303         Make copy_acl work on MacOS X 10.5.
45304         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45305         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45306         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45307         If MODE_INSIDE_ACL, don't assume that every system has the same text
45308         representation for ACLs as FreeBSD.
45309         * lib/copy-acl.c (copy_acl): Add support for platforms with
45310         !MODE_INSIDE_ACL.
45311         * lib/file-has-acl.c (file_has_acl): Likewise.
45312         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45313         FreeBSD, MacOS X, or IRIX, respectively.
45314
45315 2008-05-22  Bruno Haible  <bruno@clisp.org>
45316
45317         * lib/acl.h: Don't include <sys/acl.h>.
45318         (GETACLCNT): Move fallback to lib/acl-internal.h.
45319         * lib/acl-internal.h: Include <sys/acl.h> here.
45320         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45321
45322 2008-05-22  Bruno Haible  <bruno@clisp.org>
45323
45324         Split off copy_acl function to separate file.
45325         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45326         * lib/acl.c (copy_acl): Moved function to separate file.
45327         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45328         * modules/acl (Files): Add lib/copy-acl.c.
45329         (Makefiles.am): Augment lib_SOURCES.
45330
45331 2008-05-22  Bruno Haible  <bruno@clisp.org>
45332
45333         * modules/copy-file-tests: New file.
45334         * tests/test-copy-file.sh: New file.
45335         * tests/test-copy-file.c: New file.
45336         * tests/test-copy-file-sameacls.c: New file.
45337
45338 2008-05-22  Eric Blake  <ebb9@byu.net>
45339
45340         Avoid gcc warning.
45341         * tests/test-memcmp.c (main): Pass NULL indirectly.
45342
45343 2008-05-21  Bruno Haible  <bruno@clisp.org>
45344
45345         Add reference doc about ACLs.
45346         * doc/acl-resources.txt: New file.
45347         * doc/acl-cygwin.txt: New file.
45348
45349 2008-05-21  Bruno Haible  <bruno@clisp.org>
45350
45351         Avoid one more warning from gcc.
45352         * lib/vasnprintf.c (IF_LINT): Update comments.
45353         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45354
45355 2008-05-21  Jim Meyering  <meyering@redhat.com>
45356
45357         avoid a warning from gcc
45358         * lib/vasnprintf.c (IF_LINT): Define.
45359         (scale10_round_decimal_long_double):
45360         Use it to avoid a "may be used uninitialized" warning.
45361         (scale10_round_decimal_double): Likewise.
45362
45363 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45364
45365         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45366         declared.
45367
45368 2008-05-20  Bruno Haible  <bruno@clisp.org>
45369
45370         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45371         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45372
45373 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45374
45375         * modules/memcmp-tests: New file.
45376         * tests/test-memcmp.c: New file.
45377
45378 2008-05-19  Bruno Haible  <bruno@clisp.org>
45379
45380         * modules/propername (Notice, configure.ac): Put quoted "..." into
45381         --keyword option.
45382         * lib/propername.h: Update comments accordingly.
45383         Reported by Eric Blake.
45384
45385 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45386
45387         * modules/getpass-gnu (Depends-on): Add fseeko.
45388
45389 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45390
45391         * modules/base64-tests: New file.
45392
45393 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45394
45395         * lib/base64.c (base64_decode_ctx): If a decode context structure
45396         was passed in use it to ignore newlines.  If a context structure
45397         was _not_ passed in, continue to treat newlines as garbage (this
45398         is the historical behavior).  Formerly base64_decode.
45399         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45400         takes a decode context structure.
45401         * lib/base64.h (base64_decode): Macro for four-argument calls.
45402         (base64_decode_alloc): Likewise.
45403         * lib/base64.c (base64_decode_ctx): If a decode context structure
45404         was passed in use it to ignore newlines.  If a context structure
45405         was _not_ passed in, continue to treat newlines as garbage (this
45406         is the historical behavior).  Formerly base64_decode.
45407         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45408         takes a decode context structure.
45409         * lib/base64.h (base64_decode): Macro for four-argument calls.
45410         (base64_decode_alloc): Likewise.
45411
45412 2008-05-19  Jim Meyering  <meyering@redhat.com>
45413
45414         avoid a warning from gcc
45415         * lib/trim.c (IF_LINT): Define.
45416         (trim2): Use it to avoid a "may be used uninitialized" warning.
45417
45418         Fix doc typo.
45419         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45420
45421 2008-05-19  Bruno Haible  <bruno@clisp.org>
45422
45423         * doc/glibc-functions/getpass.texi: Document limits of other
45424         implementations.
45425
45426 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45427             Bruno Haible <bruno@clisp.org>
45428
45429         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45430
45431 2008-05-18  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/propername: New file, from GNU gettext.
45434         * lib/propername.h: New file, from GNU gettext.
45435         * lib/propername.c: New file, from GNU gettext.
45436         * MODULES.html.sh (Internationalization functions): Add propername.
45437
45438 2008-05-16  Jim Meyering  <meyering@redhat.com>
45439             Bruno Haible  <bruno@clisp.org>
45440
45441         Avoid some warnings from "gcc -Wshadow".
45442         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45443
45444 2008-05-15  Eric Blake  <ebb9@byu.net>
45445
45446         Extend previous patch to cygwin 1.7.0.
45447         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45448         fast implementation in cygwin >= 1.7.0.
45449         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45451
45452 2008-05-15  Bruno Haible  <bruno@clisp.org>
45453
45454         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45455         implementation in glibc >= 2.9.
45456         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45458
45459 2008-05-15  Bruno Haible  <bruno@clisp.org>
45460
45461         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45462         (Unicode string functions): Add unilbrk/*.
45463         Reported by Karl Berry.
45464
45465 2008-05-15  Eric Blake  <ebb9@byu.net>
45466
45467         Fix violation of <stdbool.h> replacement in regex.
45468         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45469         * lib/regexec.c (re_search_internal): Likewise.
45470         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45471
45472 2008-05-15  Jim Meyering  <meyering@redhat.com>
45473
45474         avoid distracting test output when git or cvs is not found
45475         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45476         * tests/test-vc-list-files-git.sh: Likewise.
45477
45478 2008-05-15  Eric Blake  <ebb9@byu.net>
45479
45480         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45481         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45482         glibc version.
45483         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45484         * doc/posix-functions/strstr.texi (strstr): Likewise.
45485         * lib/str-two-way.h (MAX): Sychronize with glibc.
45486
45487 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45488
45489         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45490         opr.ctx_type.
45491         (calc_first): Initialize constraint field.
45492         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45493         Fix grammar.
45494         (duplicate_node): Merge constraint field for all node types.
45495         (calc_eclosure_iter): Look at constraint field for all node types.
45496         * lib/regex_internal.c (create_cd_newstate): Don't look at
45497         opr.ctx_type.
45498
45499 2008-05-14  Bruno Haible  <bruno@clisp.org>
45500
45501         Help GCC to do better code generation.
45502         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45503         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45504         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45505         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45506         Declare with attribute 'malloc' if supported.
45507
45508 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45509
45510         use "echo STR|wc -c" rather than unportable "expr length STR"
45511         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45512         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45513
45514 2008-05-14  Jim Meyering  <meyering@redhat.com>
45515
45516         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45517         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45518         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45519         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45520         via Collin Lasse.
45521
45522 2008-05-14  Eric Blake  <ebb9@byu.net>
45523
45524         Avoid quadratic growth in gl_LIBSOURCES.
45525         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45526         Suggested by Bruno Haible.
45527
45528         Test xmemdup0.
45529         * modules/xmemdup0-tests: New file.
45530         * tests/test-xmemdup0.c: Likewise.
45531
45532 2008-05-13  Eric Blake  <ebb9@byu.net>
45533
45534         Split xmemdup0 into its own module.
45535         * modules/xmemdup0: New file.
45536         * lib/xmemdup0.h: Likewise.
45537         * lib/xmemdup0.c: Likewise.
45538         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45539         * lib/xalloc.h (xmemdup0): Remove.
45540         * lib/xmalloc.c (xmemdup0): Likewise.
45541
45542 2008-05-13  Eric Blake  <ebb9@byu.net>
45543             Bruno Haible  <bruno@clisp.org>
45544
45545         Reduce number of forks required during autoconf.
45546         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45547         and gl_LIBSOURCES_DIR.
45548         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45549         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45550         m4_syscmd per file.
45551         <m4_foreach_w>: Move...
45552         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45553
45554 2008-05-13  Eric Blake  <ebb9@byu.net>
45555
45556         * gnulib-tool: Fix various comment typos.
45557
45558 2008-05-12  Bruno Haible  <bruno@clisp.org>
45559
45560         Tailor the linebreaking algorithm.
45561         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45562
45563 2008-05-12  Bruno Haible  <bruno@clisp.org>
45564
45565         Update to Unicode 5.0.0.
45566         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45567         LBP_JV, LBP_JT. Redistribute values.
45568         (unilbrk_table): Change size.
45569         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45570         Unicode TR#14 rev. 22.
45571         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45572         LBP_JV, LBP_JT. Redistribute values.
45573         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45574         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45575         Update.
45576         * lib/unilbrk/lbrkprop1.h: Regenerated.
45577         * lib/unilbrk/lbrkprop2.h: Regenerated.
45578         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45579         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45580         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45581         Likewise.
45582         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45583         Likewise.
45584         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45585         result.
45586         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45587         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45588         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45589         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45590         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45591         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45592
45593 2008-05-11  Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45596
45597 2008-05-11  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45600         * modules/unilbrk/gen-lbrk: New file.
45601
45602 2008-05-11  Bruno Haible  <bruno@clisp.org>
45603
45604         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45605         * m4/sha512.m4 (gl_SHA512): Likewise.
45606
45607 2008-05-11  Jim Meyering  <meyering@redhat.com>
45608
45609         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45610         * modules/crypto/sha256: New file.
45611         * modules/crypto/sha512: Likewise.
45612         * lib/sha256.c: Likewise.
45613         * lib/sha256.h: Likewise.
45614         * lib/sha512.c: Likewise.
45615         * lib/sha512.h: Likewise.
45616         * lib/u64.h: Likewise.
45617         * m4/sha256.m4: Likewise.
45618         * m4/sha512.m4: Likewise.
45619         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45620
45621 2008-05-10  Bruno Haible  <bruno@clisp.org>
45622
45623         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45624         (Input/Output <stdio.h>): Add xprintf.
45625         (Signal handling <signal.h>): Add strsignal.
45626         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45627         (Core language properties): Add func.
45628         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45629         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45630         strings.
45631         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45632         (Input/output): New section.
45633         (File system functions): Add openat-die, stat-macros.
45634         (Networking functions): Add sockets.
45635         (Unicode string functions): Add unictype/*.
45636         (Support for building libraries and executables): Add gperf.
45637         (Support for building documentation): Add agpl-3.0.
45638         (Misc): Add nocrash.
45639
45640 2008-05-10  Bruno Haible  <bruno@clisp.org>
45641
45642         * modules/unictype/gen-ctype: New file.
45643
45644 2008-05-10  Jim Meyering  <meyering@redhat.com>
45645
45646         Make chdir-safer.c more efficient on a system with no symlinks.
45647         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45648         also if ELOOP is zero.  Suggested by Bruno Haible.
45649
45650         Make chdir-safer.c slightly safer.
45651         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45652         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45653
45654         Avoid compile failure on systems without ELOOP (like mingw).
45655         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45656         Reported by Bruno Haible.
45657
45658 2008-05-10  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45661         (is_utf8_encoding): Use a case-insensitive comparison.
45662         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45663         streq.
45664
45665 2008-05-10  Bruno Haible  <bruno@clisp.org>
45666
45667         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45668         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45669         * lib/unilbrk/ulc-common.h (iconv_string_length,
45670         iconv_string_keeping_offsets): Remove declarations.
45671         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45672         Don't include <iconv.h>, streq.h, xsize.h.
45673         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45674         conversion.
45675         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45676         <iconv.h>, streq.h, xsize.h.
45677         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45678         conversion.
45679         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45680         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45681         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45682         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45683
45684 2008-05-10  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45687         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45688
45689         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45690         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45691
45692         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45693         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45694
45695         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45696         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45697
45698         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45699         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45700
45701         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45702         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45703
45704         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45705         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45706
45707         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45708         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45709
45710 2008-05-10  Bruno Haible  <bruno@clisp.org>
45711
45712         Split up 'linebreak' module.
45713         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45714         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45715         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45716         modifications.
45717         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45718         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45719         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45720         lib/linebreak.c.
45721         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45722         lib/linebreak.c.
45723         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45724         lib/linebreak.c.
45725         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45726         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45727         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45728         lib/linebreak.c.
45729         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45730         lib/linebreak.c.
45731         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45732         lib/linebreak.c.
45733         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45734         lib/linebreak.c.
45735         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45736         lib/linebreak.c.
45737         * modules/unilbrk/base: New file.
45738         * modules/unilbrk/tables: New file.
45739         * modules/unilbrk/u8-possible-linebreaks: New file.
45740         * modules/unilbrk/u16-possible-linebreaks: New file.
45741         * modules/unilbrk/u32-possible-linebreaks: New file.
45742         * modules/unilbrk/ulc-common: New file.
45743         * modules/unilbrk/ulc-possible-linebreaks: New file.
45744         * modules/unilbrk/u8-width-linebreaks: New file.
45745         * modules/unilbrk/u16-width-linebreaks: New file.
45746         * modules/unilbrk/u32-width-linebreaks: New file.
45747         * modules/unilbrk/ulc-width-linebreaks: New file.
45748         * lib/linebreak.h: Remove file.
45749         * lib/linebreak.c: Remove file.
45750         * m4/linebreak.m4: Remove file.
45751         * modules/linebreak: Remove file.
45752         * NEWS: Mention the changes.
45753
45754 2008-05-09  Eric Blake  <ebb9@byu.net>
45755
45756         Add xmemdup0.
45757         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45758         implementation.
45759         * lib/xmalloc.c (xmemdup0): New C implementation.
45760
45761 2008-05-08  Bruno Haible  <bruno@clisp.org>
45762
45763         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45764
45765 2008-05-07  Eric Blake  <ebb9@byu.net>
45766
45767         Support cross-compilation of <wctype.h>.
45768         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45769         AC_CACHE_CHECK.
45770
45771 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45772
45773         * build-aux/vc-list-files: Add support for bzr.
45774
45775 2008-05-03  Jim Meyering  <meyering@redhat.com>
45776
45777         avoid failed assertion with tight malloc
45778         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45779
45780 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45781
45782         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45783         are needed from arpa/inet.h.
45784         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45785         Reported by Bruno Haible.
45786
45787 2008-05-02  Jim Meyering  <meyering@redhat.com>
45788
45789         avoid compilation error on FreeBSD 6
45790         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45791
45792 2008-05-01  Jim Meyering  <meyering@redhat.com>
45793
45794         useless-if-before-free: correct --help's exit status description
45795         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45796         for one or more matches, etc.  Reported by Bruno Haible.
45797
45798         vc-list-files: make the stand-alone gnulib test work
45799         * modules/vc-list-files-tests (configure.ac):
45800         Define and AC_SUBST abs_aux_dir.
45801         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45802         $(abs_top_srcdir) to each script and having each of them
45803         duplicate the work of setting PATH, set PATH here, using
45804         the new variable, abs_aux_dir instead.
45805         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45806         * tests/test-vc-list-files-git.sh: Likewise.
45807         Reported by Bruno Haible.
45808
45809 2008-05-01  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45812         reallocation. Rename 'done' to 'found_delimiter'.
45813
45814 2008-05-01  Jim Meyering  <meyering@redhat.com>
45815
45816         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45817         * build-aux/vc-list-files: Use `...`, not $(...).
45818
45819 2008-04-30  Jim Meyering  <meyering@redhat.com>
45820
45821         add tests for vc-list-files
45822         * modules/vc-list-files-tests: New module.
45823         * tests/test-vc-list-files-cvs.sh: New file.
45824         * tests/test-vc-list-files-git.sh: New file.
45825
45826         avoid a warning from gcc
45827         * lib/getndelim2.c (IF_LINT): Define.
45828         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45829
45830         vc-list-files: work properly with build-aux/cvsu, too
45831         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45832         to all cvs-based clauses.
45833
45834         vc-list-files: work properly in the CVS+awk case, too
45835         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45836
45837         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45838         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45839         take more than one file argument, so .  Add quotes, just in case $dir
45840         ever contains a shell meta-character.  Prompted by Soren Hansen in
45841         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45842
45843 2008-04-29  Eric Blake  <ebb9@byu.net>
45844
45845         Optimize getndelim2 to use block operations when possible.
45846         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45847         freadseek, and memchr2.
45848         * lib/getndelim2.c (getndelim2): Use them for block reads.
45849
45850 2008-04-29  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45853         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45854         * modules/inet_ntop (Depends-on): Add extensions.
45855         * modules/inet_pton (Depends-on): Likewise.
45856         Reported by Simon Josefsson.
45857
45858 2008-04-29  Jim Meyering  <meyering@redhat.com>
45859
45860         When the is more than one match in a block, match all of them.
45861         * build-aux/useless-if-before-free: Iterate through each block
45862         until there are no more matches.
45863
45864         Fix broken useless-if-before-free script.
45865         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45866         the expression to match cast of argument to free-like function.
45867
45868 2008-04-29  Eric Blake  <ebb9@byu.net>
45869
45870         Use new header.
45871         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45872
45873 2008-04-29  Jim Meyering  <meyering@redhat.com>
45874
45875         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45876         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45877         by gnulib to exist and to declare e.g., inet_ntop.
45878         Don't include "inet_ntop.h", now removed.
45879
45880         * m4/arpa_inet_h.m4: Remove trailing blanks.
45881
45882 2008-04-29  Eric Blake  <ebb9@byu.net>
45883
45884         Silence valgrind on safe reads beyond potential array bounds.
45885         * lib/rawmemchr.valgrind: New file.
45886         * lib/strchrnul.valgrind: Likewise.
45887         * modules/rawmemchr (Files): Distribute new file.
45888         * modules/strchrnul (Files): Likewise.
45889         Suggested by Bruno Haible.
45890
45891 2008-04-29  Bruno Haible  <bruno@clisp.org>
45892
45893         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45894         (inet_ntop, inet_pton): Change portability warning's wording.
45895         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45896         Invoke gl_CHECK_NEXT_HEADERS.
45897         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45898         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45899         set ARPA_INET_H.
45900         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45901         * modules/arpa_inet (Description): No longer only for systems that
45902         lack it.
45903         (Depends-on): Add include_next.
45904         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45905         HAVE_ARPA_INET_H.
45906
45907 2008-04-29  Jim Meyering  <meyering@redhat.com>
45908
45909         * modules/mkdir (License): Re-license as LGPLv2+.
45910
45911 2008-04-29  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/rawmemchr (Maintainer): Set to Eric.
45914         * modules/strchrnul (Maintainer): Likewise.
45915
45916 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45917
45918         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45919         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45920
45921         * modules/arpa_inet (arpa/inet.h): Use them.
45922
45923 2008-04-28  Eric Blake  <ebb9@byu.net>
45924
45925         Test getndelim2.
45926         * modules/getndelim2-tests: New file.
45927         * tests/test-getndelim2.c: Likewise.
45928         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45929         stream.
45930         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45931
45932         * MODULES.html.sh: Document new module.
45933
45934 2008-04-20  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/c-stack.c (die): Use raise.
45937         * modules/c-stack (Depends-on): Add raise.
45938
45939 2008-04-28  Bruno Haible  <bruno@clisp.org>
45940
45941         Expect rpmatch to be declared.
45942         * lib/yesno.c (rpmatch): Remove declaration.
45943
45944         Declare rpmatch.
45945         * lib/stdlib.in.h (rpmatch): New declaration.
45946         * lib/rpmatch.c: Include <stdlib.h> first.
45947         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45948         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45950         HAVE_RPMATCH.
45951         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45952         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45953         (Include): Set to <stdlib.h>.
45954         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45955         HAVE_RPMATCH.
45956         * NEWS: Document the change.
45957
45958 2008-04-28  Bruno Haible  <bruno@clisp.org>
45959
45960         Change rpmatch to use nl_langinfo when appropriate.
45961         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45962         (N_): New macro.
45963         (localized_pattern): New function/macro.
45964         (try): Remove match, nomatch arguments. Copy the pattern into safe
45965         memory before caching it.
45966         (rpmatch): Use localized_pattern. Add translator comments.
45967         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45968         Suggested by Eric Blake.
45969         * modules/rpmatch (Depends-on): Add stdbool.
45970
45971 2008-04-28  Eric Blake  <ebb9@byu.net>
45972
45973         Add rawmemchr module, matching glibc.
45974         * modules/string (Makefile.am): New indicator.
45975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45976         * lib/string.in.h (rawmemchr): Declare when appropriate.
45977         * modules/rawmemchr: New file.
45978         * m4/rawmemchr.m4: Likewise.
45979         * lib/rawmemchr.c: Likewise.
45980         * modules/rawmemchr-tests: Likewise.
45981         * tests/test-rawmemchr.c: Likewise.
45982         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45983         module.
45984         * modules/strchrnul (Depends-on): Add rawmemchr.
45985         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45986
45987         Whitespace cleanup.
45988         * tests/test-strchrnul.c: Reindent.
45989         * lib/strchrnul.c: Likewise.
45990
45991         Optimize and test strchrnul.
45992         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45993         * modules/strchrnul-tests: New file.
45994         * tests/test-strchrnul.c: Likewise.
45995
45996         Remove intprops dependency.
45997         * modules/memchr (Depends-on): Remove intprops.
45998         * modules/memrchr (Depends-on): Likewise.
45999         * modules/memchr2 (Depends-on): Likewise.
46000         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46001         * lib/memrchr.c (__memrchr): Likewise.
46002         * lib/memrchr2.c (memchr2): Likewise.
46003         Reported by Simon Josefsson.
46004
46005 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46006
46007         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46008         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46009
46010 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46011
46012         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46013
46014         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46015
46016         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46017
46018         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46019         declarations.
46020         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46021
46022         * m4/inet_pton.m4: Don't check for header files.
46023
46024         * m4/inet_ntop.m4: Don't check for header files.
46025
46026 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46027
46028         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46029         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46030         trigger for cygwin).
46031         Reported by Bruno Haible  <bruno@clisp.org>.
46032
46033 2008-04-28  Bruno Haible  <bruno@clisp.org>
46034
46035         * doc/posix-functions/strdup.texi: Mention mingw problem.
46036
46037 2008-04-27  Bruno Haible  <bruno@clisp.org>
46038
46039         * modules/stat-time-tests (Depends-on): Add sleep.
46040         * tests/test-stat-time.c (force_unlink): New function.
46041         (cleanup): Use it.
46042         (test_mtime): Remove the ctime related tests.
46043         (test_ctime): New function, containing the ctime related tests.
46044         (main): Call test_ctime, except on native Windows platforms.
46045
46046 2008-04-27  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/rpmatch.c (rpmatch): Add some comments.
46049         Reported by James Youngman <jay@gnu.org>.
46050
46051 2008-04-27  Bruno Haible  <bruno@clisp.org>
46052
46053         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46054         quiet NaNs.
46055
46056 2008-04-27  Bruno Haible  <bruno@clisp.org>
46057
46058         Make test-yesno.sh work on mingw.
46059         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46060         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46061         (main): Set stdin to binary mode.
46062         * modules/yesno-tests (Depends-on): Add binary-io.
46063
46064 2008-04-27  Bruno Haible  <bruno@clisp.org>
46065
46066         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46067         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46068         argument that lie outside the IEEE 854 domain.
46069         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46070         (gl_ISFINITE): Use it.
46071         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46072
46073 2008-04-27  Bruno Haible  <bruno@clisp.org>
46074
46075         Allow local renaming in config.h.
46076         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46077
46078 2008-04-27  Bruno Haible  <bruno@clisp.org>
46079
46080         * lib/memchr.c (__memchr): Change type of 'i'.
46081         * lib/memchr2.c (memchr2): Likewise.
46082
46083 2008-04-26  Eric Blake  <ebb9@byu.net>
46084         and Bruno Haible  <bruno@clisp.org>
46085
46086         Optimize and test memrchr.
46087         * modules/memrchr (Depends-on): Add intprops.
46088         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46089         * modules/memrchr-tests: New file.
46090         * tests/test-memrchr.c: New file.
46091
46092 2008-04-26  Bruno Haible  <bruno@clisp.org>
46093
46094         Add tentative support for DragonFly BSD.
46095         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46096         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46097         fp.
46098         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46099         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46100         * lib/fpurge.c (fpurge): Likewise.
46101         * lib/freadable.c (freaadable): Likewise.
46102         * lib/freadahead.c (freadahead): Likewise.
46103         * lib/freading.c (freading): Likewise.
46104         * lib/freadptr.c (freadptr): Likewise.
46105         * lib/freadseek.c (freadptrinc): Likewise.
46106         * lib/fseeko.c (fseeko): Likewise.
46107         * lib/fseterr.c (fseterr): Likewise.
46108         * lib/fwritable.c (fwritable): Likewise.
46109         * lib/fwriting.c (fwriting): Likewise.
46110
46111 2008-04-26  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/stdio-impl.h: New file.
46114         * lib/fbufmode.c: Include stdio-impl.h.
46115         (fbufmode): Use fp_, remove redundant #defines.
46116         * lib/fflush.c: Include stdio-impl.h.
46117         (clear_ungetc_buffer): Remove redundant #defines.
46118         * lib/fpurge.c: Include stdio-impl.h.
46119         (fpurge): Remove redundant #defines.
46120         * lib/freadable.c: Include stdio-impl.h.
46121         (freadable): Remove redundant #defines.
46122         * lib/freadahead.c: Include stdio-impl.h.
46123         (freadahead): Remove redundant #defines.
46124         * lib/freading.c: Include stdio-impl.h.
46125         (freading): Remove redundant #defines.
46126         * lib/freadptr.c: Include stdio-impl.h.
46127         (freadptr): Remove redundant #defines.
46128         * lib/freadseek.c: Include stdio-impl.h.
46129         (freadptrinc): Remove redundant #defines.
46130         * lib/fseeko.c: Include stdio-impl.h.
46131         (rpl_fseeko): Remove redundant #defines.
46132         * lib/fseterr.c: Include stdio-impl.h.
46133         (fseterr): Remove redundant #defines.
46134         * lib/fwritable.c: Include stdio-impl.h.
46135         (fwritable: Remove redundant #defines.
46136         * lib/fwriting.c: Include stdio-impl.h.
46137         (fwriting): Remove redundant #defines.
46138         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46139         * modules/fflush (Files): Likewise.
46140         * modules/fpurge (Files): Likewise.
46141         * modules/freadable (Files): Likewise.
46142         * modules/freadahead (Files): Likewise.
46143         * modules/freading (Files): Likewise.
46144         * modules/freadptr (Files): Likewise.
46145         * modules/freadseek (Files): Likewise.
46146         * modules/fseeko (Files): Likewise.
46147         * modules/fseterr (Files): Likewise.
46148         * modules/fwritable (Files): Likewise.
46149         * modules/fwriting (Files): Likewise.
46150
46151 2008-04-26  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46154         restore_seek_optimization, update_fpos_cache): New functions, extracted
46155         from rpl_fflush.
46156         (rpl_fflush): Use them.
46157         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46158         (gl_REPLACE_FFLUSH): Use it.
46159
46160 2008-04-26  Bruno Haible  <bruno@clisp.org>
46161
46162         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46163         on Solaris.
46164         * tests/test-xstrtoimax.sh: Likewise.
46165         * tests/test-xstrtoumax.sh: Likewise.
46166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46167
46168 2008-04-26  Bruno Haible  <bruno@clisp.org>
46169
46170         * modules/memchr-tests: New file.
46171         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46172
46173 2008-04-26  Eric Blake  <ebb9@byu.net>
46174             Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/memchr.c: Include intprops.h.
46177         (__memchr): Optimize parallel detection of matching bytes. Rename local
46178         variables. Add explanatory comments.
46179
46180 2008-04-26  Bruno Haible  <bruno@clisp.org>
46181
46182         Fix module 'memchr', broken since 2000-10-28.
46183         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46184
46185 2008-04-26  Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46188         comments.
46189
46190 2008-04-25  Eric Blake  <ebb9@byu.net>
46191
46192         Use native fstatat on cygwin 1.7.0.
46193         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46194         first.
46195
46196 2008-04-23  Eric Blake  <ebb9@byu.net>
46197
46198         Improve memchr2 performance.
46199         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46200         NUL bytes.
46201         * modules/memchr2 (Depends-on): Use intprops.h.
46202
46203 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46204
46205         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46206         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46207         <blp@cs.stanford.edu>.
46208
46209 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46210
46211         * lib/arpa_inet.in.h: New file.
46212
46213         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46214         (Makefile.am): Sed in substitute header file.
46215
46216         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46217         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46218
46219         * modules/inet_ntop (configure.ac): Use
46220         gl_ARPA_INET_MODULE_INDICATOR.
46221
46222         * modules/inet_pton (configure.ac): Use
46223         gl_ARPA_INET_MODULE_INDICATOR.
46224
46225 2008-04-22  Jim Meyering  <meyering@redhat.com>
46226
46227         * modules/verify (License): Re-license as LGPLv2+.
46228
46229 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46230
46231         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46232         parameter to void* as per POSIX standard (MinGW uses char*).
46233
46234 2008-04-21  Bruno Haible  <bruno@clisp.org>
46235
46236         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46237         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46238         Define to replacements if REPLACE_ISWCNTRL is 1.
46239         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46240         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46241         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46242         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46243         what it fixes.
46244         * doc/posix-functions/iswalpha.texi: Likewise.
46245         * doc/posix-functions/iswblank.texi: Likewise.
46246         * doc/posix-functions/iswcntrl.texi: Likewise.
46247         * doc/posix-functions/iswdigit.texi: Likewise.
46248         * doc/posix-functions/iswgraph.texi: Likewise.
46249         * doc/posix-functions/iswlower.texi: Likewise.
46250         * doc/posix-functions/iswprint.texi: Likewise.
46251         * doc/posix-functions/iswpunct.texi: Likewise.
46252         * doc/posix-functions/iswspace.texi: Likewise.
46253         * doc/posix-functions/iswupper.texi: Likewise.
46254         * doc/posix-functions/iswxdigit.texi: Likewise.
46255         Reported by Alain Guibert.
46256
46257 2008-04-21  Bruno Haible  <bruno@clisp.org>
46258
46259         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46260         Patch by Alain Guibert.
46261
46262 2008-04-21  Bruno Haible  <bruno@clisp.org>
46263
46264         Fix test failures on mingw.
46265         * tests/test-xstrtol.c (print_no_progname): New function.
46266         (main): Install it in error_print_progname hook.
46267         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46268         * tests/test-xstrtoimax.sh: Likewise.
46269         * tests/test-xstrtoumax.sh: Likewise.
46270
46271 2008-04-21  Bruno Haible  <bruno@clisp.org>
46272
46273         Fix test failure on mingw.
46274         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46275
46276 2008-04-21  Bruno Haible  <bruno@clisp.org>
46277
46278         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46279         Actually assign a value.
46280
46281 2008-04-20  Bruno Haible  <bruno@clisp.org>
46282
46283         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46284         take 2.
46285         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46286         'canonicalize-lgpl' module is also used.
46287         * lib/canonicalize-lgpl.c: Undo last change.
46288         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46289
46290 2008-04-20  Bruno Haible  <bruno@clisp.org>
46291
46292         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46293         config.h. Provide _mkdir based fallback for mingw.
46294         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46295         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46297         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46298         rather than defining mkdir in config.h.
46299         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46300         (gl_SYS_STAT_H_DEFAULTS): New macro.
46301         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46302         HAVE_IO_H any more.
46303         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46304         HAVE_DECL_MKDIR and HAVE_IO_H.
46305
46306 2008-04-20  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/isapipe.c: Port to native Windows platforms.
46309
46310 2008-04-20  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46313
46314 2008-04-21  Eric Blake  <ebb9@byu.net>
46315
46316         Work around preprocessors that don't handle UINTMAX_MAX.
46317         * lib/memchr2.c (memchr2): Avoid embedded #if.
46318         Reported by Alain Guibert, fix suggested by Bruno Haible.
46319
46320 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46321
46322         * doc/posix-functions/strftime.texi (strftime): Explain better
46323         Windows incompatibility.  Suggested by Micah Cowan
46324         <micah@cowan.name>.
46325
46326 2008-04-20  Bruno Haible  <bruno@clisp.org>
46327
46328         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46329         unistr/u8-mblen.
46330
46331 2008-04-20  Bruno Haible  <bruno@clisp.org>
46332
46333         Fix test failure on platforms with non-GNU iconv.
46334         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46335         (U_TO_U8): Use it, rather than u16_to_u8.
46336         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46337         units at the end of the input string.
46338         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46339
46340 2008-04-20  Bruno Haible  <bruno@clisp.org>
46341
46342         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46343         when the resulting length is 0.
46344         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46345
46346 2008-04-20  Bruno Haible  <bruno@clisp.org>
46347
46348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46349         works.
46350         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46351
46352 2008-04-20  Bruno Haible  <bruno@clisp.org>
46353
46354         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46355         * modules/tsearch-tests (configure.ac): Test for initstate function.
46356
46357 2008-04-20  Bruno Haible  <bruno@clisp.org>
46358
46359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46360         for nlink_t if missing.
46361         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46362
46363 2008-04-19  Bruno Haible  <bruno@clisp.org>
46364
46365         Work around snprintf bug on Linux libc5.
46366         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46368         gl_SNPRINTF_SIZE1.
46369         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46370         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46371         that test failed.
46372         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46373         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46374         * modules/snprintf (Files): Add m4/printf.m4.
46375         * modules/vsnprintf (Files): Likewise.
46376         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46377         * doc/posix-functions/vsnprintf.texi: Likewise.
46378
46379 2008-04-19  Bruno Haible  <bruno@clisp.org>
46380
46381         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46382         from 0.0058 to less than 10^-7.
46383
46384 2008-04-19  Bruno Haible  <bruno@clisp.org>
46385
46386         Fix rounding when a precision is given.
46387         * lib/vasnprintf.c (is_borderline): New function.
46388         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46389         9...9x.
46390         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46391         %e, %g.
46392         * tests/test-vasprintf-posix.c (test_function): Likewise.
46393         * tests/test-snprintf-posix.h (test_function): Likewise.
46394         * tests/test-sprintf-posix.h (test_function): Likewise.
46395         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46396         * tests/test-printf-posix.h (test_function): Likewise.
46397         * tests/test-printf-posix.output: Update.
46398         Reported by John Darrington <john@darrington.wattle.id.au> via
46399         Ben Pfaff <blp@cs.stanford.edu>.
46400
46401 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46402
46403         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46404         Suggested by Bruno Haible <bruno@clisp.org>.
46405
46406 2008-04-17  Bruno Haible  <bruno@clisp.org>
46407
46408         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46409         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46410         implementation.
46411         Patch by Bruce Merry <bmerry@gmail.com>.
46412
46413 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46414
46415         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46416         doesn't work under Windows.
46417
46418 2008-04-16  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46421         New macros.
46422         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46423         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46424         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46425         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46426         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46427         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46428         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46429         macros.
46430         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46431         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46432         Northern Sotho, Uighur.
46433
46434 2008-04-16  Bruno Haible  <bruno@clisp.org>
46435
46436         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46437         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46438         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46439         Reported by Daniel Bergström <daniel@octocode.com>.
46440
46441 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46442             Bruno Haible  <bruno@clisp.org>
46443
46444         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46445         function.
46446         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46447         New functions, mostly extracted from gl_locale_name_default.
46448         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46449
46450 2008-04-16  Eric Blake  <ebb9@byu.net>
46451
46452         Adjust strtod detection to catch glibc 2.7 bug.
46453         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46454         Reported by John Gatewood Ham.
46455
46456 2008-04-16  Bruno Haible  <bruno@clisp.org>
46457
46458         Add tentative support for Linux libc5.
46459         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46460         * lib/fpurge.c (fpurge): Likewise.
46461         * lib/freadable.c (freadable): Likewise.
46462         * lib/freadahead.c (freadahead): Likewise.
46463         * lib/freading.c (freading): Likewise.
46464         * lib/freadptr.c (freadptr): Likewise.
46465         * lib/freadseek.c (freadptrinc): Likewise.
46466         * lib/fseeko.c (rpl_fseeko): Likewise.
46467         * lib/fseterr.c (fseterr): Likewise.
46468         * lib/fwritable.c (fwritable): Likewise.
46469         * lib/fwriting.c (fwriting): Likewise.
46470         Reported by Alain Guibert <alguibert+bts@free.fr>.
46471
46472 2008-04-15  Bruno Haible  <bruno@clisp.org>
46473
46474         * modules/mathl (configure.ac): Define module indicator.
46475
46476 2008-04-15  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/logl.c (logl): Remove unused variables.
46479
46480 2008-04-15  Bruno Haible  <bruno@clisp.org>
46481
46482         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46483         fails.
46484
46485 2008-04-15  Bruno Haible  <bruno@clisp.org>
46486
46487         * lib/trim.c (trim2): Fix argument of isspace() macro.
46488
46489 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46490
46491         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46492         to 0.
46493         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46494
46495 2008-04-14  Bruno Haible  <bruno@clisp.org>
46496
46497         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46498         AC_LANG_PROGRAM argument.
46499         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46500         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46502         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46503         * m4/math_h.m4 (gl_MATH_H): Likewise.
46504         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46505         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46506         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46507         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46508         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46509         * m4/regex.m4 (gl_REGEX): Likewise.
46510         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46511         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46513         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46514         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46515         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46518
46519 2008-04-14  Jim Meyering  <meyering@redhat.com>
46520
46521         test-strtod: fix typos: s/abs/fabs/
46522         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46523
46524 2008-04-13  Bruno Haible  <bruno@clisp.org>
46525
46526         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46527         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46528         module is also used and while not building the reloc-wrapper.
46529
46530 2008-04-13  Bruno Haible  <bruno@clisp.org>
46531
46532         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46533
46534 2008-04-13  Bruno Haible  <bruno@clisp.org>
46535
46536         Fix AIX compilation failure introduced on 2008-04-02.
46537         * tests/test-frexp.c (exp): Undefine before redefining.
46538         * tests/test-frexpl.c (exp): Likewise.
46539
46540 2008-04-13  Bruno Haible  <bruno@clisp.org>
46541
46542         Work around a HP-UX stdio bug.
46543         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46544         * tests/test-ftello.c (main): Likewise.
46545         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46546         * doc/posix-functions/ftello.texi: Likewise.
46547
46548 2008-04-13  Bruno Haible  <bruno@clisp.org>
46549
46550         Make test-signbit pass on HP-UX/hppa.
46551         * tests/test-signbit.c (minus_zerol): New variable.
46552         (test_signbitl): Use it.
46553
46554 2008-04-13  Bruno Haible  <bruno@clisp.org>
46555
46556         Make truncl work on OSF/1 4.0.
46557         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46558         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46559         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46561         HAVE_DECL_TRUNCL.
46562         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46563         HAVE_DECL_TRUNCL.
46564         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46565
46566 2008-04-13  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46569
46570 2008-04-13  Bruno Haible  <bruno@clisp.org>
46571
46572         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46573         expression, so as to avoid HP-UX 11 cc compiler bug.
46574
46575 2008-04-13  Bruno Haible  <bruno@clisp.org>
46576
46577         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46578
46579 2008-04-13  Bruno Haible  <bruno@clisp.org>
46580
46581         * lib/git-merge-changelog.c: Remove empty declaration outside of
46582         functions.
46583
46584 2008-04-13  Bruno Haible  <bruno@clisp.org>
46585
46586         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46587
46588 2008-04-13  Bruno Haible  <bruno@clisp.org>
46589
46590         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46591         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46593         also if it exists but lacks definitions of the SHUT_* macros.
46594         * modules/sys_socket (Description): Update.
46595         Reported by Elbert Pol <e.pol@chello.nl>.
46596
46597 2008-04-13  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/localcharset.c (OS2): Don't redefine if already defined.
46600         Reported by Elbert Pol <e.pol@chello.nl>.
46601
46602 2008-04-13  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/binary-io.h [__EMX__]: Include <io.h>.
46605         Reported by Elbert Pol <e.pol@chello.nl>.
46606
46607 2008-04-12  Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/fpucw.h: Enable the definitions also for x86_64.
46610         Needed for NetBSD/x86_64.
46611         Reported by Thomas Klausner <tk@giga.or.at>.
46612
46613 2008-04-12  Bruno Haible  <bruno@clisp.org>
46614
46615         * tests/test-strtod.c: Include isnand.h.
46616         (main): Use isnand instead of isnan.
46617         Reported by Jim Meyering.
46618
46619 2008-04-12  Bruno Haible  <bruno@clisp.org>
46620
46621         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46622         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46623
46624 2008-04-12  Jim Meyering  <meyering@redhat.com>
46625
46626         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46627
46628 2008-04-12  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46631         Reported by Elbert Pol <e.pol@chello.nl>.
46632
46633 2008-04-12  Eric Blake  <ebb9@byu.net>
46634
46635         Work around Solaris 10 math.h bug.
46636         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46637         (gl_MATH_H_DEFAULTS): Set up default.
46638         * modules/math (Makefile.am): Replace new indicators.
46639         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46640         * tests/test-math.c (main): Test this.
46641         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46642         * doc/posix-headers/math.texi (math.h): Mention bug.
46643         Reported by Nelson H. F. Beebe and Jim Meyering.
46644
46645 2008-04-11  Bruno Haible  <bruno@clisp.org>
46646
46647         Adapt to future versions of Apple GCC.
46648         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46649         Reported by Peter O'Gorman <peter@pogma.com>.
46650
46651 2008-04-11  Bruno Haible  <bruno@clisp.org>
46652
46653         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46654
46655 2008-04-11  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46658
46659         * modules/getaddrinfo-tests (Makefile.am): Define
46660         test_getaddrinfo_LDADD.
46661
46662 2008-04-11  Bruno Haible  <bruno@clisp.org>
46663
46664         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46665         (init): Fix syntax error.
46666         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46667         is declared.
46668
46669 2008-04-11  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46672         * modules/glob (Depends-on): Add stdbool.
46673
46674 2008-04-11  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/trim.c: Include <string.h>.
46677
46678 2008-04-11  Eric Blake  <ebb9@byu.net>
46679
46680         Avoid compile failure on OS/2.
46681         * lib/regex_internal.h (internal_function): Disable optimization
46682         on OS/2 (__EMX__), where it caused compiler error.
46683         Reported by Elbert Pol.
46684
46685 2008-04-11  Bruno Haible  <bruno@clisp.org>
46686
46687         Flush the standard error stream before aborting. Needed on mingw.
46688         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46689         * tests/test-array_list.c (ASSERT): Likewise.
46690         * tests/test-array_oset.c (ASSERT): Likewise.
46691         * tests/test-avltree_list.c (ASSERT): Likewise.
46692         * tests/test-avltree_oset.c (ASSERT): Likewise.
46693         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46694         * tests/test-binary-io.c (ASSERT): Likewise.
46695         * tests/test-byteswap.c (ASSERT): Likewise.
46696         * tests/test-c-ctype.c (ASSERT): Likewise.
46697         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46698         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46699         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46700         * tests/test-c-strstr.c (ASSERT): Likewise.
46701         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46702         * tests/test-canonicalize.c (ASSERT): Likewise.
46703         * tests/test-carray_list.c (ASSERT): Likewise.
46704         * tests/test-ceilf1.c (ASSERT): Likewise.
46705         * tests/test-ceilf2.c (ASSERT): Likewise.
46706         * tests/test-ceill.c (ASSERT): Likewise.
46707         * tests/test-count-one-bits.c (ASSERT): Likewise.
46708         * tests/test-fbufmode.c (ASSERT): Likewise.
46709         * tests/test-fflush2.c (ASSERT): Likewise.
46710         * tests/test-floorf1.c (ASSERT): Likewise.
46711         * tests/test-floorf2.c (ASSERT): Likewise.
46712         * tests/test-floorl.c (ASSERT): Likewise.
46713         * tests/test-fopen.c (ASSERT): Likewise.
46714         * tests/test-fpending.c (ASSERT): Likewise.
46715         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46716         * tests/test-fpurge.c (ASSERT): Likewise.
46717         * tests/test-freadable.c (ASSERT): Likewise.
46718         * tests/test-freadahead.c (ASSERT): Likewise.
46719         * tests/test-freading.c (ASSERT): Likewise.
46720         * tests/test-freadptr.c (ASSERT): Likewise.
46721         * tests/test-freadptr2.c (ASSERT): Likewise.
46722         * tests/test-freadseek.c (ASSERT): Likewise.
46723         * tests/test-freopen.c (ASSERT): Likewise.
46724         * tests/test-frexp.c (ASSERT): Likewise.
46725         * tests/test-frexpl.c (ASSERT): Likewise.
46726         * tests/test-fseek.c (ASSERT): Likewise.
46727         * tests/test-fseeko.c (ASSERT): Likewise.
46728         * tests/test-fstrcmp.c (ASSERT): Likewise.
46729         * tests/test-ftell.c (ASSERT): Likewise.
46730         * tests/test-ftello.c (ASSERT): Likewise.
46731         * tests/test-func.c (ASSERT): Likewise.
46732         * tests/test-fwritable.c (ASSERT): Likewise.
46733         * tests/test-fwriting.c (ASSERT): Likewise.
46734         * tests/test-getdelim.c (ASSERT): Likewise.
46735         * tests/test-getline.c (ASSERT): Likewise.
46736         * tests/test-i-ring.c (ASSERT): Likewise.
46737         * tests/test-iconv-utf.c (ASSERT): Likewise.
46738         * tests/test-iconv.c (ASSERT): Likewise.
46739         * tests/test-isfinite.c (ASSERT): Likewise.
46740         * tests/test-isnand.c (ASSERT): Likewise.
46741         * tests/test-isnanf.c (ASSERT): Likewise.
46742         * tests/test-isnanl.h (ASSERT): Likewise.
46743         * tests/test-ldexpl.c (ASSERT): Likewise.
46744         * tests/test-linked_list.c (ASSERT): Likewise.
46745         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46746         * tests/test-localename.c (ASSERT): Likewise.
46747         * tests/test-lseek.c (ASSERT): Likewise.
46748         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46749         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46750         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46751         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46752         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46753         * tests/test-mbschr.c (ASSERT): Likewise.
46754         * tests/test-mbscspn.c (ASSERT): Likewise.
46755         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46756         * tests/test-mbspbrk.c (ASSERT): Likewise.
46757         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46758         * tests/test-mbsrchr.c (ASSERT): Likewise.
46759         * tests/test-mbsspn.c (ASSERT): Likewise.
46760         * tests/test-mbsstr1.c (ASSERT): Likewise.
46761         * tests/test-mbsstr2.c (ASSERT): Likewise.
46762         * tests/test-mbsstr3.c (ASSERT): Likewise.
46763         * tests/test-memchr2.c (ASSERT): Likewise.
46764         * tests/test-memmem.c (ASSERT): Likewise.
46765         * tests/test-open.c (ASSERT): Likewise.
46766         * tests/test-printf-frexp.c (ASSERT): Likewise.
46767         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46768         * tests/test-printf-posix.c (ASSERT): Likewise.
46769         * tests/test-quotearg.c (ASSERT): Likewise.
46770         * tests/test-rbtree_list.c (ASSERT): Likewise.
46771         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46772         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46773         * tests/test-round1.c (ASSERT): Likewise.
46774         * tests/test-roundf1.c (ASSERT): Likewise.
46775         * tests/test-roundl.c (ASSERT): Likewise.
46776         * tests/test-signbit.c (ASSERT): Likewise.
46777         * tests/test-sleep.c (ASSERT): Likewise.
46778         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46779         * tests/test-snprintf.c (ASSERT): Likewise.
46780         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46781         * tests/test-stat-time.c (ASSERT): Likewise.
46782         * tests/test-strcasestr.c (ASSERT): Likewise.
46783         * tests/test-strerror.c (ASSERT): Likewise.
46784         * tests/test-striconv.c (ASSERT): Likewise.
46785         * tests/test-striconveh.c (ASSERT): Likewise.
46786         * tests/test-striconveha.c (ASSERT): Likewise.
46787         * tests/test-strsignal.c (ASSERT): Likewise.
46788         * tests/test-strstr.c (ASSERT): Likewise.
46789         * tests/test-strtod.c (ASSERT): Likewise.
46790         * tests/test-trunc1.c (ASSERT): Likewise.
46791         * tests/test-trunc2.c (ASSERT): Likewise.
46792         * tests/test-truncf1.c (ASSERT): Likewise.
46793         * tests/test-truncf2.c (ASSERT): Likewise.
46794         * tests/test-truncl.c (ASSERT): Likewise.
46795         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46796         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46797         * tests/test-vasnprintf.c (ASSERT): Likewise.
46798         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46799         * tests/test-vasprintf.c (ASSERT): Likewise.
46800         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46801         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46802         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46803         * tests/test-vsnprintf.c (ASSERT): Likewise.
46804         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46805         * tests/test-wcwidth.c (ASSERT): Likewise.
46806         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46807         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46808         * tests/test-xvasprintf.c (ASSERT): Likewise.
46809         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46810         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46811         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46812         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46813         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46814         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46815         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46816         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46817         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46818         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46819         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46820         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46821         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46822         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46823         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46824         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46825         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46826         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46827         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46828         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46829         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46830         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46831         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46832         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46833         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46834         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46835         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46836         * tests/unictype/test-combining.c (ASSERT): Likewise.
46837         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46838         * tests/unictype/test-digit.c (ASSERT): Likewise.
46839         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46840         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46841         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46842         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46843         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46844         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46845         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46846         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46847         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46848         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46849         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46850         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46851         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46852         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46853         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46854         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46855         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46856         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46857         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46858         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46859         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46860         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46861         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46862         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46863         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46864         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46865         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46866         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46867         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46868         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46869         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46870         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46871         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46872         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46873         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46874         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46875         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46876         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46877         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46878         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46879         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46880         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46881         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46882         Reported by Eric Blake.
46883
46884 2008-04-11  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/wchar.in.h: Tweak comment.
46887
46888 2008-04-11  Bruno Haible  <bruno@clisp.org>
46889
46890         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46891         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46892         gl_COMMON.
46893         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46894
46895 2008-04-11  Bruno Haible  <bruno@clisp.org>
46896
46897         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46898
46899 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46900
46901         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46902         of attempting to use non-existing /dev/*random.  Based on patch
46903         from Adam Strzelecki <ono@java.pl> in
46904         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46905
46906 2008-04-08  Bruno Haible  <bruno@clisp.org>
46907
46908         Add tentative support for emx+gcc.
46909         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46910         * lib/fpurge.c (fpurge): Likewise.
46911         * lib/freadable.c (freadable): Likewise.
46912         * lib/freadahead.c (freadahead): Likewise.
46913         * lib/freading.c (freading): Likewise.
46914         * lib/freadptr.c (freadptr): Likewise.
46915         * lib/freadseek.c (freadptrinc): Likewise.
46916         * lib/fseeko.c (rpl_fseeko): Likewise.
46917         * lib/fseterr.c (fseterr): Likewise.
46918         * lib/fwritable.c (fwritable): Likewise.
46919         * lib/fwriting.c (fwriting): Likewise.
46920         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46921
46922 2008-04-09  Eric Blake  <ebb9@byu.net>
46923
46924         Avoid some autoconf warnings.
46925         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46926         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46927         * m4/afs.m4 (gl_AFS): Likewise.
46928         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46929         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46930         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46931         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46932         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46933         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46934         (AC_CHECK_DECLS_ONCE): Likewise.
46935         Rename file...
46936         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46937         gnulib-tool requires autoconf 2.59 or better.
46938         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46939
46940 2008-04-08  Eric Blake  <ebb9@byu.net>
46941
46942         Use 'git describe --match' if present (added in git 1.5.5).
46943         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46944         if possible.
46945
46946 2008-04-08  Bruno Haible  <bruno@clisp.org>
46947
46948         Add tentative support for OpenServer.
46949         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46950         _ptr, _cnt.
46951         * lib/fpurge.c (fpurge): Likewise.
46952         * lib/freadable.c (freadable): Likewise.
46953         * lib/freadahead.c (freadahead): Likewise.
46954         * lib/freading.c (freading): Likewise.
46955         * lib/freadptr.c (freadptr): Likewise.
46956         * lib/freadseek.c (freadptrinc): Likewise.
46957         * lib/fseeko.c (rpl_fseeko): Likewise.
46958         * lib/fseterr.c (fseterr): Likewise.
46959         * lib/fwritable.c (fwritable): Likewise.
46960         * lib/fwriting.c (fwriting): Likewise.
46961         Reported by Roger Cornelius <rac@tenzing.org> and
46962         Brian K. White <brian@aljex.com>.
46963
46964 2008-04-06  Jim Meyering  <meyering@redhat.com>
46965
46966         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46967
46968 2008-04-06  Bruno Haible  <bruno@clisp.org>
46969
46970         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46971         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46972         * tests/test-printf-posix.sh: Likewise.
46973         * tests/test-vfprintf-posix.sh: Likewise.
46974         * tests/test-vprintf-posix.sh: Likewise.
46975         * tests/test-xprintf-posix.sh: Likewise.
46976
46977 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46978
46979         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46980         hide error from 'ls', needed on OS/2.
46981         Report by Elbert Pol <elbert.pol@gmail.com>.
46982
46983 2008-04-04  Eric Blake  <ebb9@byu.net>
46984
46985         Make test-fseeko.c failures meaningful.
46986         * tests/test-fseeko.c: Print line number on failure.
46987         * tests/test-fseek.c: Likewise.
46988         Reported by Nelson H. F. Beebe.
46989
46990         Improve strtod bug detection check.
46991         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46992         required for Solaris 10.
46993         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46994
46995 2008-04-04  Bruno Haible  <bruno@clisp.org>
46996
46997         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46998         by m4/setenv.m4.
46999
47000 2008-04-03  Eric Blake  <ebb9@byu.net>
47001
47002         Ensure sane .version contents.
47003         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47004         version string.
47005         * build-aux/git-version-gen: Improve documentation.
47006
47007         Make GNU make output nicer.
47008         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47009         MAKECMDGOALS to enforce message for all command line targets.  Set
47010         srcdir for use in maint.mk.
47011
47012         Another maintainer tweak.
47013         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47014         a target that regenerates version.
47015
47016 2008-04-03  Jim Meyering  <meyering@redhat.com>
47017
47018         vc-list-files: don't cause coreutils "make po-check" failure
47019         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47020
47021 2008-04-03  Eric Blake  <ebb9@byu.net>
47022
47023         Allow VPATH usage of vc-list-files.
47024         * build-aux/vc-list-files (scriptversion): Add timestamp.
47025         (options): Add --help, --version, -C.
47026         (CVS): Support installed cvsu.
47027
47028 2008-04-02  Bruno Haible  <bruno@clisp.org>
47029
47030         Avoid some "statement with no effect" warnings from gcc.
47031         * tests/test-wctype.c (main): Explicitly ignore unused values.
47032         Reported by Jim Meyering.
47033
47034 2008-04-02  Jim Meyering  <meyering@redhat.com>
47035
47036         Avoid some warnings from "gcc -Wshadow".
47037         * tests/test-frexp.c (exp): Define to a different identifier.
47038         * tests/test-frexpl.c (exp): Likewise.
47039
47040 2008-04-03  Jim Meyering  <meyering@redhat.com>
47041
47042         bootstrap: remove dangling *.[ch] symlinks from lib
47043         * build-aux/bootstrap [dangling symlink removal]: Move find's
47044         -depth option to precede all others, to avoid a warning.
47045         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47046
47047 2008-04-02  Bruno Haible  <bruno@clisp.org>
47048
47049         Avoid some warnings from "gcc -Wshadow".
47050         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47051         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47052         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47053         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47054         Reported by Jim Meyering.
47055
47056 2008-04-01  Bruno Haible  <bruno@clisp.org>
47057
47058         Fix test to work on IRIX 6.5 with cc.
47059         * tests/test-math.c (numeric_equal): New function.
47060         (main): Use it.
47061
47062 2008-04-01  Bruno Haible  <bruno@clisp.org>
47063
47064         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47065
47066 2008-04-01  Bruno Haible  <bruno@clisp.org>
47067
47068         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47069         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47070         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47071         (Depends-on): Remove math.
47072
47073         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47074         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47075         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47076         (Depends-on): Remove math.
47077
47078         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47079         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47080         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47081         (Depends-on): Remove math.
47082         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47083         (Depends-on): Remove math.
47084
47085         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47086         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47087         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47088         (Depends-on): Remove math.
47089         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47090         (Depends-on): Remove math.
47091
47092         * tests/test-round1.c: Include nan.h.
47093         (main): Use NaNd instead of NAN.
47094         * modules/round-tests (Files): Add tests/nan.h.
47095
47096         * tests/test-trunc1.c: Include nan.h.
47097         (main): Use NaNd instead of NAN.
47098         * modules/trunc-tests (Files): Add tests/nan.h.
47099
47100         * tests/test-roundf1.c: Include nan.h.
47101         (main): Use NaNf instead of NAN.
47102         * modules/roundf-tests (Files): Add tests/nan.h.
47103
47104         * tests/test-truncf1.c: Include nan.h.
47105         (main): Use NaNf instead of NAN.
47106         * modules/truncf-tests (Files): Add tests/nan.h.
47107
47108         * tests/test-ceilf1.c: Include nan.h.
47109         (main): Use NaNf instead of NAN.
47110         * modules/ceilf-tests (Files): Add tests/nan.h.
47111
47112         * tests/test-floorf1.c: Include nan.h.
47113         (main): Use NaNf instead of NAN.
47114         * modules/floorf-tests (Files): Add tests/nan.h.
47115
47116         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47117         (main): Use NaNf instead of NAN.
47118         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47119
47120         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47121         (main): Use NaNd instead of NAN.
47122         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47123
47124         * tests/test-frexp.c: Include nan.h.
47125         (main): Use NaNd instead of NAN.
47126         * modules/frexp-tests (Files): Add tests/nan.h.
47127
47128         * lib/isnan.c: Don't include <math.h>.
47129         (FUNC): Don't use NAN macro.
47130         * modules/isnand-nolibm (Depends-on): Remove math.
47131         * modules/isnanf-nolibm (Depends-on): Remove math.
47132         * modules/isnanl (Depends-on): Remove math.
47133         * modules/isnanl-nolibm (Depends-on): Remove math.
47134
47135         * tests/nan.h: New file.
47136
47137 2008-04-01  Eric Blake  <ebb9@byu.net>
47138
47139         Fix typos.
47140         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47141         values to be the right type.
47142
47143         For now, cater to gnulib strtod inaccuracies.
47144         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47145         fractional results.  While not as nice from a QoI perspective, it
47146         is a quicker patch than correctly implementing decimal to binary
47147         rounding.
47148
47149 2008-03-31  Eric Blake  <ebb9@byu.net>
47150
47151         Guarantee a definition of NAN.
47152         * lib/math.in.h (NAN): Define if missing.
47153         * tests/test-math.c (main): Test it.
47154         * doc/posix-headers/math.texi (math.h): Document this.
47155         * lib/isnan.c (rpl_isnand): Use it.
47156         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47157         * tests/test-floorf1.c (NaN): Likewise.
47158         * tests/test-frexp.c (NaN): Likewise.
47159         * tests/test-isnand.c (NaN): Likewise.
47160         * tests/test-isnanf.c (NaN): Likewise.
47161         * tests/test-round1.c (NaN): Likewise.
47162         * tests/test-roundf1.c (NaN): Likewise.
47163         * tests/test-snprintf-posix.h (NaN): Likewise.
47164         * tests/test-sprintf-posix.h (NaN): Likewise.
47165         * tests/test-trunc1.c (NaN): Likewise.
47166         * tests/test-truncf1.c (NaN): Likewise.
47167         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47168         * tests/test-vasprintf-posix.c (NaN): Likewise.
47169         * modules/isnand-nolibm (Depends-on): Add math.
47170         * modules/isnanf-nolibm (Depends-on): Likewise.
47171         * modules/isnanl (Depends-on): Likewise.
47172         * modules/isnanl-nolibm (Depends-on): Likewise.
47173         * modules/snprintf-posix-tests (Depends-on): Likewise.
47174         * modules/sprintf-posix-tests (Depends-on): Likewise.
47175         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47176         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47177         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47178         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47179
47180 2008-03-31  Bruno Haible  <bruno@clisp.org>
47181
47182         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47183         * doc/posix-functions/strtod.texi: Likewise.
47184
47185 2008-03-31  Bruno Haible  <bruno@clisp.org>
47186
47187         * tests/test-strtod.c (main): Don't use C99 syntax.
47188
47189 2008-03-31  Bruno Haible  <bruno@clisp.org>
47190
47191         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47192         Reported by Eric Blake.
47193
47194 2008-03-31  Jim Meyering  <meyering@redhat.com>
47195
47196         Don't compare actual signbit return values.
47197         * tests/test-strtod.c (main): Rather, compare only their
47198         zero/non-zero nature.
47199
47200 2008-03-31  Eric Blake  <ebb9@byu.net>
47201
47202         More strtod documentation.
47203         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47204         failures as distinct bugs.
47205
47206 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47207
47208         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47209         Problem reported by Erik Benada in
47210         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47211
47212 2008-03-30  Bruno Haible  <bruno@clisp.org>
47213
47214         * tests/test-strtod.c: Add comments about which assertion fails on which
47215         platform.
47216         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47217
47218 2008-03-30  Eric Blake  <ebb9@byu.net>
47219
47220         Test signbit behavior on zeros.
47221         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47222         (test_signbitd, test_signbitl): Likewise.
47223
47224         More strtod touchups.
47225         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47226         sign of negative underflow, for now.  Use .5, not .1.
47227         * doc/posix-functions/strtod.texi (strtod): Mention these
47228         limitations.
47229         Reported by Jim Meyering.
47230
47231 2008-03-30  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47234         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47235
47236 2008-03-30  Bruno Haible  <bruno@clisp.org>
47237
47238         Avoid failure when attempting to return empty iconv results on some
47239         platforms.
47240         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47241         allocation, don't report ENOMEM when the resulting string is empty.
47242
47243 2008-03-30  Bruno Haible  <bruno@clisp.org>
47244
47245         Fix buffer overrun.
47246         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47247         Don't consider the width for tmp_length. Check count against tmp_length
47248         before doing the padding. Ensure enough allocation during padding.
47249
47250 2008-03-30  Eric Blake  <ebb9@byu.net>
47251
47252         strtod touchups.
47253         * lib/strtod.c (strtod): Avoid compiler warnings.
47254         Reported by Jim Meyering.
47255
47256 2008-03-30  Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47259         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47260         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47261         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47262         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47263         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47264         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47265         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47266
47267         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47268         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47269         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47270         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47271         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47272         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47273         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47274         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47275
47276         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47277         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47278         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47279         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47280         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47281         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47282         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47283         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47284
47285         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47286         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47287
47288         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47289         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47290
47291         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47292         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47293
47294         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47296         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47297
47298         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47300         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47301
47302         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47304         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47305
47306         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47308         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47309
47310         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47311         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47313         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47314         (Depends-on): Add EOVERFLOW.
47315         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47316         (Depends-on): Add EOVERFLOW.
47317         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47318         (Depends-on): Add EOVERFLOW.
47319         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47320         (Depends-on): Add EOVERFLOW.
47321         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47322         (Depends-on): Add EOVERFLOW.
47323         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47324         (Depends-on): Add EOVERFLOW.
47325         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47326         (Depends-on): Add EOVERFLOW.
47327         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47328         (Depends-on): Add EOVERFLOW.
47329
47330         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47332         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47333
47334         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47336         * modules/snprintf (Depends-on): Add EOVERFLOW.
47337
47338         * lib/poll.c (EOVERFLOW): Remove fallback.
47339         * modules/poll (Depends-on): Add EOVERFLOW.
47340
47341         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47342         * modules/getugroups (Depends-on): Add EOVERFLOW.
47343
47344         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47345         * modules/getdelim (Depends-on): Add EOVERFLOW.
47346
47347         * lib/ftell.c (EOVERFLOW): Remove fallback.
47348         * modules/ftell (Depends-on): Add EOVERFLOW.
47349
47350         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47352         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47353
47354         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47355
47356         * modules/EOVERFLOW-tests: New file.
47357         * tests/test-EOVERFLOW.c: New file.
47358
47359         * modules/EOVERFLOW: New file.
47360         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47361
47362 2008-03-30  Bruno Haible  <bruno@clisp.org>
47363
47364         Fix bug introduced on 2007-06-10.
47365         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47366         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47367
47368 2008-03-30  Bruno Haible  <bruno@clisp.org>
47369
47370         Improve freadseek's efficiency after ungetc.
47371         * lib/freadseek.c: Include freadahead.h.
47372         (freadptrinc): New function, extracted from freadseek.
47373         (freadseek): Use it in a loop. Use freadahead to determine the number
47374         of loop iterations.
47375         * modules/freadseek (Depends-on): Add freadahead.
47376         (configure.ac): Require AC_C_INLINE.
47377
47378 2008-03-30  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/freadseek.c (freadseek): Don't ignore the return value of
47381         freadptr.
47382
47383 2008-03-29  Eric Blake  <ebb9@byu.net>
47384
47385         Add hex float support.
47386         * modules/strtod (Depends-on): Add c-ctype.
47387         (Link): Mention POW_LIB.
47388         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47389         whitespace between 'e' and exponent.
47390         * tests/test-strtod.c (main): Enable hex float tests.
47391         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47392         now provides.
47393
47394         Document various strtod bugs, with some fixes.
47395         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47396         "-0x", "inf", "nan", and hex constants.
47397         * doc/posix-functions/atof.texi (atof): Likewise.
47398         * modules/stdlib (Makefile.am): Support strtod.
47399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47400         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47401         detect additional strtod bugs.
47402         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47403         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47404         bool where appropriate.  Parse 'inf' and 'nan'.
47405         * tests/test-strtod.c: New file.
47406         * modules/strtod (Depends-on): Add stdbool, stdlib.
47407         (configure.ac): Turn on module indicator.
47408         * modules/strtod-tests: New module.
47409
47410 2008-03-29  Eric Blake  <ebb9@byu.net>
47411
47412         Fix ftell on mingw.
47413         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47414         * modules/ftell-tests (Depends-on): Add binary-io.
47415         * modules/ftello-tests (Depends-on): Likewise.
47416         * tests/test-ftell.c (main): Enhance test to cover behavior after
47417         ungetc.  Enforce binary mode.
47418         * tests/test-ftello.c (main): Likewise.
47419
47420         Pass test-freadseek on cygwin.
47421         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47422         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47423         ungetc buffer.
47424
47425         * tests/test-fflush2.c (main): Fix typo.
47426
47427 2008-03-29  Bruno Haible  <bruno@clisp.org>
47428
47429         * tests/test-fflush2.c (main): Temporarily disable the contents of
47430         this test.
47431         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47432         Reported by Eric Blake.
47433
47434 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47435
47436         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47437         (GC_SHA224_DIGEST_SIZE): Add.
47438
47439         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47440         (gc_hash_digest_length): Likewise.
47441         (gc_hash_buffer): Likewise.
47442
47443 2008-03-25  Bruno Haible  <bruno@clisp.org>
47444
47445         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47446         detail which gettext release to use.
47447         Reported by Simon Josefsson.
47448
47449 2008-03-26  Jim Meyering  <meyering@redhat.com>
47450
47451         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47452         * modules/gnumakefile (clean-GNUmakefile): Also, use
47453         test ... && ... || : syntax rather than if-then ... fi.
47454
47455         gnumakefile: Don't double-quote-expand $(VPATH) value.
47456         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47457
47458 2008-03-24  Eric Blake  <ebb9@byu.net>
47459
47460         Alter GNUmakefile to install into top directory.
47461         * modules/maintainer-makefile: Split, and add dependency...
47462         * modules/gnumakefile: to this new module.
47463         * build-aux/GNUmakefile: Move...
47464         * top/GNUmakefile: ...here.
47465         * build-aux/maint.mk: Move...
47466         * top/maint.mk: ...here.
47467         * MODULES.html.sh (Support for maintaining...): Document new
47468         module.
47469
47470 2008-03-23  Bruno Haible  <bruno@clisp.org>
47471
47472         * gnulib-tool: New options --vc-files, --no-vc-files.
47473         (func_usage): Document them.
47474         (vc_files): New variable.
47475         (func_import): Consider vc_files.
47476         (func_create_testdir): Set vc_files to empty.
47477         Suggested by Jim Meyering and Karl Berry.
47478
47479 2008-03-23  Bruno Haible  <bruno@clisp.org>
47480
47481         Fix regex compilation error on HP-UX 11.
47482         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47483         * modules/regex (Files): Add m4/mbstate_t.m4.
47484         Reported by Ton Voon <ton.voon@altinity.com>.
47485
47486 2008-03-23  Bruno Haible  <bruno@clisp.org>
47487
47488         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47489
47490 2008-03-23  Eric Blake  <ebb9@byu.net>
47491             Bruno Haible  <bruno@clisp.org>
47492
47493         Install files from top/ in the destination directory.
47494         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47495         augmentation also for the files from top/.
47496         (func_import, func_create_testdir): Rewrite file names:
47497         top/filename -> filename.
47498
47499 2008-03-23  Bruno Haible  <bruno@clisp.org>
47500
47501         Tweak "gnulib --version" output.
47502         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47503
47504 2008-03-23  Bruno Haible  <bruno@clisp.org>
47505
47506         Tweak "gnulib --version" output.
47507         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47508         rather than contents of ChangeLog, when possible.
47509
47510 2008-03-21  Eric Blake  <ebb9@byu.net>
47511
47512         More --version tweaks.
47513         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47514         date of last ChangeLog entry.
47515
47516 2008-03-21  Jim Meyering  <meyering@redhat.com>
47517
47518         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47519
47520 2008-03-20  Eric Blake  <ebb9@byu.net>
47521
47522         VPATH fix.
47523         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47524
47525 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47526
47527         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47528         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47529
47530 2008-03-20  Eric Blake  <ebb9@byu.net>
47531
47532         Sync GNUmakefile with coreutils.
47533         * build-aux/GNUmakefile (have-Makefile): Rename...
47534         (_have-Makefile): ...to this, for namespace consideration.
47535         (GNUmakefile.cfg): Include, if present.
47536         (_autoreconf): Define a default.
47537         (_is-dist-target): New rule for rebuilds to pick up intra-release
47538         version.
47539         (maint-cfg.mk): Rename...
47540         (cfg.mk): ...to this.
47541
47542 2008-03-18  Jim Meyering  <meyering@redhat.com>
47543
47544         New script and module: mktempd
47545         * MODULES.html.sh (maint+release support): Add mktempd.
47546         * build-aux/mktempd: New file.
47547         * modules/mktempd: New file.
47548
47549 2008-03-15  Jim Meyering  <meyering@redhat.com>
47550
47551         Undo last change.
47552         * lib/sha1.c, lib/md5.c: 63 != ~63.
47553         Reported by Andreas Schwab.
47554
47555         sha1.c, md5.c: Hoist a redundant expression.
47556         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47557         "ctx->buflen" only once, before calling *_process_block.
47558         * lib/md5.c (md5_process_bytes): Likewise.
47559
47560 2008-03-14  Eric Blake  <ebb9@byu.net>
47561
47562         Bump copyright year in files generated by gnulib-tool.
47563         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47564         gnulib-tool, rather than hard-coding it.
47565
47566         Fix 'gnulib-tool --version' output to work with git.
47567         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47568         (startup): ...here.
47569         (func_version): Use it to invoke git-version-gen, rather than
47570         relying on CVS keyword expansion.  Modernize wording.
47571         (cvsdatestamp, last_checkin_date, version): Kill unused
47572         variables.
47573
47574 2008-03-12  Jim Meyering  <meyering@redhat.com>
47575
47576         Recognize optional cast of the argument to free.
47577         * build-aux/useless-if-before-free: Update regexps.
47578
47579         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47580
47581 2008-03-11  Bruno Haible  <bruno@clisp.org>
47582
47583         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47584         by a single package.
47585         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47586         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47587         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47588         Reported by Sam Steingold <sds@gnu.org>.
47589
47590 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47591
47592         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47593         repositories.
47594
47595 2008-03-11  Bruno Haible  <bruno@clisp.org>
47596
47597         Avoid conflicts between local macro definitions.
47598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47599         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47600
47601 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47602             Bruno Haible  <bruno@clisp.org>
47603
47604         Make va_copy work with some version of xlc on AIX 5.1.
47605         * lib/stdarg.in.h: New file.
47606         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47607         On AIX, use a <stdarg.h> file substitute.
47608         * modules/stdarg (Files): Add lib/stdarg.in.h.
47609         (Depends-on): Add include_next.
47610         (Makefile.am): Build a stdarg.h substitute if requested.
47611         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47612
47613 2008-03-10  Bruno Haible  <bruno@clisp.org>
47614
47615         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47617         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47618
47619 2008-03-10  Bruno Haible  <bruno@clisp.org>
47620
47621         * modules/stdlib (Depends-on): Add include_next, remove
47622         absolute-header.
47623
47624 2008-03-09  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/freadahead.h (freadahead): Document more precisely.
47627         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47628         the sum of both buffer sizes.
47629         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47630         * NEWS: Document the change.
47631
47632 2008-03-09  Bruno Haible  <bruno@clisp.org>
47633
47634         Extend freadptr to return also the buffer size.
47635         * lib/freadptr.h (freadptr): Add sizep argument.
47636         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47637         (freadptr): Add sizep argument. Determine buffer size like freadahead
47638         does.
47639         * tests/test-freadptr.c: Don't include freadahead.h.
47640         (main): Adapt for new calling convention of freadptr.
47641         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47642         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47643         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47644         tests/test-freadptr2.sh.
47645         (Depends): Remove freadahead.
47646         (TESTS): Add test-freadptr2.sh.
47647         (check_PROGRAMS): Add test-freadptr2.
47648
47649 2008-03-09  Bruno Haible  <bruno@clisp.org>
47650
47651         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47652         Report and solution by Simon Josefsson.
47653
47654 2008-03-06  Bruno Haible  <bruno@clisp.org>
47655
47656         Make fflush after ungetc work on BSD platforms.
47657         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47658         * tests/test-fflush2.c: New file.
47659         * tests/test-fflush2.sh: New file.
47660         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47661         tests/test-fflush2.c.
47662         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47663         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47664
47665 2008-03-06  Eric Blake  <ebb9@byu.net>
47666
47667         Likewise for ftello.
47668         * modules/ftello (Dependencies): Add extensions.
47669         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47670
47671 2008-03-06  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/fseeko (Dependencies): Add extensions.
47674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47675         Needed on glibc systems.
47676
47677 2008-03-06  Bruno Haible  <bruno@clisp.org>
47678
47679         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47680         email address.
47681         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47682
47683 2008-03-06  Bruno Haible  <bruno@clisp.org>
47684
47685         * users.txt: Add libgnupdf.
47686
47687 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47688
47689         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47690         (Header File Substitutes, Function Substitutes,
47691         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47692         (Build robot for gnulib): Fix typo.
47693
47694 2008-03-06  Bruno Haible  <bruno@clisp.org>
47695
47696         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47697         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47698
47699 2008-03-06  Bruno Haible  <bruno@clisp.org>
47700
47701         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47702         * doc/gnulib.texi: Include it.
47703
47704 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47705
47706         * modules/func (License): Change license to unlimited; there was
47707         no LGPL parts in the module anyway.
47708
47709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47710
47711         * modules/__func__: Renamed to modules/func.
47712         * modules/__func__-tests: Renamed to modules/func-tests.
47713         * tests/test-__func__.c: Renamed to tests/test-func.c.
47714         * m4/__func__.m4: Renamed to m4/func.m4.
47715         * doc/gnulib.texi (__func__): Section renamed to func.
47716         Suggested by Eric Blake <ebb9@byu.net>.
47717
47718 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47719
47720         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47721         about __func__.  Make example self-contained.  Suggested by Eric
47722         Blake <ebb9@byu.net>.
47723
47724         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47725         Suggested by Eric Blake <ebb9@byu.net>.
47726
47727 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47728
47729         * modules/__func__: New file.
47730         * modules/__func__-tests: New file.
47731         * tests/test-__func__.c: New file.
47732         * m4/__func__.m4: New file.
47733         * doc/gnulib.texi (__func__): Document __func__ module.
47734
47735 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47736
47737         * modules/byteswap (License): Re-license as LGPLv2+.
47738
47739 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47740
47741         * doc/Makefile: Add pdf target.
47742
47743 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47744
47745         * modules/inline (License): Use 'unlimited', since there are only
47746         *.m4 files in this module.
47747
47748 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47749             Bruno Haible  <bruno@clisp.org>
47750
47751         Add support for HP C 7.1 on OpenVMS 8.3.
47752         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47753
47754 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47755
47756         Update VMS specifics.
47757         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47758
47759 2008-03-02  Jim Meyering  <meyering@redhat.com>
47760
47761         Remove the last dependency on the "free" module.
47762         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47763         Reported by Bob Proulx.
47764
47765         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47766
47767         Remove useless "if" tests before free.  Deprecate "free" module.
47768         * doc/posix-functions/free.texi: Mention that this
47769         module is no longer useful.
47770         * modules/free (Notice): Say this module is obsolete.
47771         * modules/readutmp (Depends-on): Remove free.
47772         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47773         * lib/putenv.c (putenv): Likewise.
47774         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47775         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47776         * tests/test-c-strcasestr.c (main): Likewise.
47777         * tests/test-c-strstr.c (main): Likewise.
47778         * tests/test-mbscasestr1.c (main): Likewise.
47779         * tests/test-mbscasestr2.c (main): Likewise.
47780         * tests/test-mbsstr1.c (main): Likewise.
47781         * tests/test-mbsstr2.c (main): Likewise.
47782         * tests/test-memmem.c (main): Likewise.
47783         * tests/test-strcasestr.c (main): Likewise.
47784         * tests/test-striconv.c (main): Likewise.
47785         * tests/test-striconveh.c (main): Likewise.
47786         * tests/test-striconveha.c (main): Likewise.
47787         * tests/test-strstr.c (main): Likewise.
47788
47789         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47790
47791         bootstrap: sync from coreutils again
47792         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47793
47794 2008-03-01  Jim Meyering  <meyering@redhat.com>
47795
47796         bootstrap: sync from coreutils
47797         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47798         also when the target doesn't exist.
47799
47800 2008-03-01  Eric Blake  <ebb9@byu.net>
47801
47802         Fix bugs in last patch.
47803         * lib/memchr2.c (memchr2): Fix typo.
47804         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47805         extension.
47806         Reported by Bruce Korb.
47807
47808         New module 'memchr2'.
47809         * modules/memchr2: New file.
47810         * modules/memchr2-tests: Likewise.
47811         * lib/memchr2.h: Likewise.
47812         * lib/memchr2.c: Likewise, based on memchr.c.
47813         * tests/test-memchr2.c: New test.
47814         * MODULES.html.sh (String handling): Add memchr2.
47815
47816 2008-02-29  Bruno Haible  <bruno@clisp.org>
47817
47818         * modules/freadseek-tests: New file.
47819         * tests/test-freadseek.sh: New file.
47820         * tests/test-freadseek.c: New file.
47821
47822         New module 'freadseek'.
47823         * modules/freadseek: New file.
47824         * lib/freadseek.h: New file.
47825         * lib/freadseek.c: New file.
47826         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47827
47828 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47829
47830         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47831         wydawca.
47832
47833         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47834         program_invocation_name and program_invocation_short_name are
47835         present.
47836
47837 2008-02-28  Bruno Haible  <bruno@clisp.org>
47838
47839         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47840         * tests/test-freadptr.sh: Also test non-seekable stdin.
47841
47842 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47843
47844         * build-aux/bootstrap (source_base, m4_base)
47845         (doc_base, tests_base): New variables.
47846         (gnulib_tool_options): Do not hardcode base directories, use
47847         the above variables instead.
47848
47849 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47850
47851         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47852
47853 2008-02-28  Bruno Haible  <bruno@clisp.org>
47854
47855         * modules/freadptr-tests: New file.
47856         * tests/test-freadptr.sh: New file.
47857         * tests/test-freadptr.c: New file.
47858
47859         New module 'freadptr'.
47860         * modules/freadptr: New file.
47861         * lib/freadptr.h: New file.
47862         * lib/freadptr.c: New file.
47863         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47864
47865 2008-02-26  Karl Berry  <karl@freefriends.org>
47866
47867         Sync from Libtool:
47868         * libltdl/argz.c (argz_add, argz_count): New functions.
47869         * libltdl/argz.in.h: Declare them.
47870         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47871
47872 2008-02-22  Bruno Haible  <bruno@clisp.org>
47873
47874         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47875         is a pointer type.  Needed for HP-UX 10.
47876         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47877         * doc/posix-functions/gmtime_r.texi: Likewise.
47878         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47879
47880 2008-02-24  Bruno Haible  <bruno@clisp.org>
47881
47882         * modules/environ-tests: New file.
47883         * tests/test-environ.c: New file.
47884
47885         New module 'environ'.
47886         * modules/environ: New file.
47887         * lib/unistd.in.h (environ): New declaration.
47888         * m4/environ.m4: New file.
47889         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47890         after use.
47891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47892         HAVE_DECL_ENVIRON.
47893         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47894         HAVE_DECL_ENVIRON.
47895         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47896         wrong claim that 'environ' is missing on some systems.
47897         * modules/execute (Depends-on): Add environ.
47898         * lib/execute.c (environ): Remove fallback declaration.
47899         * modules/pipe (Depends-on): Add environ.
47900         * lib/pipe.c (environ): Remove fallback declaration.
47901         * modules/setenv (Depends-on): Add environ.
47902         * lib/setenv.c (environ): Remove fallback declaration.
47903         * modules/unsetenv (Depends-on): Add environ.
47904         * lib/unsetenv.c (environ): Remove fallback declaration.
47905         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47906         m4/environ.m4.
47907         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47908         (gl_PREREQ_UNSETENV): Likewise.
47909
47910 2008-02-24  Bruno Haible  <bruno@clisp.org>
47911
47912         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47913
47914 2008-02-20  Bob Proulx  <bob@proulx.com>
47915
47916         Enable use of older two part flavor 'git describe'.
47917         * build-aux/git-version-gen: If using the older two part flavor of
47918         git version then recreate the third part now present in the
47919         newer three part flavor of git describe.
47920
47921 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47922
47923         * lib/fts.c (fts_build): Typo correction to comment.
47924
47925 2008-02-17  Bruno Haible  <bruno@clisp.org>
47926
47927         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47928         generating no-op conflicts.
47929
47930 2008-02-17  Bruno Haible  <bruno@clisp.org>
47931
47932         Speed up by 10%.
47933         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47934         result_entries, rather than an index-based loop.
47935
47936 2008-02-17  Bruno Haible  <bruno@clisp.org>
47937
47938         Speed up by 25%.
47939         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47940         'hashcode_cached'.
47941         (entry_create): New function.
47942         (entry_hashcode): Use the cached hashcode if possible.
47943         (read_changelog_file, try_split_merged_entry): Use entry_create.
47944
47945 2008-02-17  Bruno Haible  <bruno@clisp.org>
47946
47947         Speed up from O(n^2) to O(n) for long ChangeLog files.
47948         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47949         (read_changelog_file): Change implementation of entries_reversed list
47950         to rbtreehash.
47951         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47952
47953 2008-02-17  Bruno Haible  <bruno@clisp.org>
47954
47955         New option --split-merged-entry.
47956         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47957         (find_paragraph_end, try_split_merged_entry): New functions.
47958         (long_options): Add option --split-merged-entry.
47959         (usage): Document option --split-merged-entry.
47960         (main): Implement option --split-merged-entry.
47961         Reported by Eric Blake.
47962
47963 2008-02-17  Bruno Haible  <bruno@clisp.org>
47964
47965         * lib/git-merge-changelog.c: Include c-strstr.h.
47966         (main): Support the "git pull --rebase" situation.
47967         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47968         Reported by Eric Blake.
47969
47970 2008-02-16  Eric Blake  <ebb9@byu.net>
47971
47972         Avoid doubling \ in common case of "c-maybe" quoting style.
47973         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47974         eliding outer quotes.
47975         * lib/quotearg.h: Document this.
47976         * tests/test-quotearg.c (result_strings, inputs, results_g)
47977         (flag_results, locale_results): Test it by adding a new string to
47978         each test group.
47979         (compare_strings): Test new string.
47980
47981 2008-02-13  Eric Blake  <ebb9@byu.net>
47982
47983         Avoid trigraph quoting in default output.
47984         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47985         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47986         unless explicitly requested.
47987         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47988
47989 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47990
47991         Don't rely on signed integer overflowing to negative value.
47992         * lib/getugroups.c (getugroups): Include <limits.h>.
47993         Instead, compare against INT_MAX, and increment only if the test passes.
47994
47995 2008-02-13  Jim Meyering  <meyering@redhat.com>
47996         and Eric Blake  <ebb9@byu.net>
47997
47998         Avoid shadowing warning and compile errors on Linux.
47999         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48000         forwarding macros on Linux.
48001         (dcgettext): Define a stub, for Linux.
48002         (results_g, main): Avoid warnings.
48003
48004 2008-02-12  Eric Blake  <ebb9@byu.net>
48005
48006         Silence warning in last patch.
48007         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48008
48009         Quotearg part 4: add tests, fix c-maybe colon quoting.
48010         * lib/quotearg.h: Improve documentation.
48011         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48012         escapes when adding outer quotes.  When quoting trigraphs, use
48013         valid C notation.  When quoting NUL, omit extra characters if next
48014         character is not digit.  Alter prototype.
48015         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48016         callers.
48017         * modules/quotearg-tests: New module.
48018         * tests/test-quotearg.c: New test.
48019
48020 2008-02-07  Eric Blake  <ebb9@byu.net>
48021
48022         Quotearg part 3: add flag to control outer quote elision.
48023         * lib/quotearg.h (c_maybe_quoting_style): New style.
48024         (enum quoting_flags): Better documentation of flags.
48025         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48026         c-maybe style.
48027         (quotearg_buffer_restyled): Handle new flag to elide outer
48028         quotes.
48029
48030         Quotearg part 2: add flag that can control NUL elision.
48031         * lib/quotearg.h (set_quoting_flags): New prototype.
48032         * lib/quotearg.c (struct quoting_options): Add flag field.
48033         (set_quoting_flags): New function.
48034         (quotearg_buffer_restyled): Add flags parameter.
48035         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48036         (quotearg_n_options): Set the flag, since length cannot be
48037         returned.
48038         (quoting_options_from_style): Default flags correctly.
48039
48040         Quotearg part 1: more wrappers, restore quotearg_char state.
48041         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48042         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48043         (quotearg_colon_mem): New wrappers.
48044         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48045         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48046         functions.
48047         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48048         (quotearg_colon_mem): New functions.
48049
48050 2008-02-11  Bruno Haible  <bruno@clisp.org>
48051
48052         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48053         library in the current directory: it does not work with parallel make.
48054         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48055
48056 2008-02-11  Bruno Haible  <bruno@clisp.org>
48057
48058         * .gitattributes: New file.
48059
48060 2008-02-11  Jim Meyering  <meyering@redhat.com>
48061
48062         useless-if-before-free: Fix reversed exit values.
48063         * build-aux/useless-if-before-free: Use correct values
48064         for EXIT_MATCH and EXIT_NO_MATCH.
48065
48066         * build-aux/useless-if-before-free: Close stdout carefully.
48067
48068 2008-02-10  Bruno Haible  <bruno@clisp.org>
48069
48070         New module 'git-merge-changelog'.
48071         * modules/git-merge-changelog: New file.
48072         * lib/git-merge-changelog.c: New file.
48073
48074 2008-02-10  Jim Meyering  <meyering@redhat.com>
48075
48076         useless-if-before-free: New option: --list (-l).
48077
48078         useless-if-before-free: Don't exit immediately upon open failure.
48079         * build-aux/useless-if-before-free: Exit 2 for errors.
48080         Upon failure to open a file, don't exit immediately.
48081         Rather, just warn and continue with any remaining files.
48082
48083 2008-02-10  Bruno Haible  <bruno@clisp.org>
48084
48085         New abstract list operation 'node_set_value'.
48086         * lib/gl_list.h (gl_list_node_set_value): New function.
48087         (struct gl_list_implementation): New field node_set_value.
48088         * lib/gl_list.c (gl_list_node_set_value): New function.
48089         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48090         (gl_array_list_implementation): Update.
48091         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48092         (gl_carray_list_implementation): Update.
48093         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48094         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48095         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48096         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48097         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48098         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48099         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48100         Update.
48101         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48102         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48103         (gl_sublist_list_implementation): Update.
48104
48105 2008-02-10  Bruno Haible  <bruno@clisp.org>
48106
48107         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48108         Needed when ELEMENT is #defined to 'some_type *'.
48109
48110 2008-02-10  Jim Meyering  <meyering@redhat.com>
48111
48112         New script and module: useless-if-before-free
48113         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48114         * build-aux/useless-if-before-free: New file.
48115         * modules/useless-if-before-free: New file.
48116
48117         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48118
48119         xstrtol_error: Fix typo.
48120         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48121         s/exit_failure/exit_status/.
48122
48123 2008-02-09  Jim Meyering  <meyering@redhat.com>
48124
48125         New script and module: gitlog-to-changelog
48126         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48127         * modules/gitlog-to-changelog: New file.
48128         * build-aux/gitlog-to-changelog: New file.
48129
48130 2008-02-08  Jim Meyering  <meyering@redhat.com>
48131
48132         Avoid two "parameter unused" warnings.
48133         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48134         Mark "st" as used.
48135
48136         Use "git COMMAND", not "git-COMMAND".
48137         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48138         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48139         * build-aux/git-version-gen: Use "git status", not "git-status".
48140
48141 2008-02-07  Bruno Haible  <bruno@clisp.org>
48142
48143         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48144         Avoids a crash on Windows Vista.
48145         Reported by Adam Strzelecki <ono@java.pl> via
48146         Simon Josefsson <simon@josefsson.org>.
48147
48148 2008-02-06  Bruno Haible  <bruno@clisp.org>
48149
48150         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48151         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48152         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48154         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48156         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48157         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48165         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48166         left-adjust flag.
48167         * tests/test-snprintf-posix.h (test_function): Likewise.
48168         * tests/test-sprintf-posix.h (test_function): Likewise.
48169         * tests/test-vasprintf-posix.c (test_function): Likewise.
48170         * doc/posix-functions/fprintf.texi: Update.
48171         * doc/posix-functions/printf.texi: Update.
48172         * doc/posix-functions/snprintf.texi: Update.
48173         * doc/posix-functions/sprintf.texi: Update.
48174         * doc/posix-functions/vfprintf.texi: Update.
48175         * doc/posix-functions/vprintf.texi: Update.
48176         * doc/posix-functions/vsnprintf.texi: Update.
48177         * doc/posix-functions/vsprintf.texi: Update.
48178         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48179
48180 2008-02-06  Bruno Haible  <bruno@clisp.org>
48181
48182         Fix bug introduced on 2008-01-26.
48183         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48184
48185 2008-02-06  Bruno Haible  <bruno@clisp.org>
48186
48187         Fix bug introduced on 2007-06-10.
48188         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48189         !NEED_PRINTF_FLAG_ZERO.
48190
48191 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48192
48193         getloadavg: use libperfstat on AIX5
48194         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48195
48196 2008-02-03  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/diffseq.h: Add comments about required #includes.
48199         Reported by Michael Biggs <gnulib@doubleplum.net>.
48200
48201 2008-02-01  Bruno Haible  <bruno@clisp.org>
48202
48203         * users.txt: Add gnuit.
48204
48205 2008-01-31  Bruno Haible  <bruno@clisp.org>
48206
48207         * lib/md4.c (set_uint32): Mark as inline.
48208         * lib/md5.c (set_uint32): Likewise.
48209         * lib/sha1.c (set_uint32): Likewise.
48210         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48211         * m4/md5.m4 (gl_MD5): Likewise.
48212         * m4/sha1.m4 (gl_SHA1): Likewise.
48213
48214 2008-01-31  Jim Meyering  <meyering@redhat.com>
48215
48216         Use "sizeof VAR", rather than a literal "4".
48217         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48218         * lib/md4.c (md4_read_ctx): Likewise.
48219         * lib/sha1.c (sha1_read_ctx): Likewise.
48220
48221 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48222
48223         * tests/test-sha1.c: New file, based on test-md5.c.
48224
48225         * modules/crypto/sha1-tests: New file.
48226
48227 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48228
48229         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48230
48231 2008-01-31  Jim Meyering  <meyering@redhat.com>
48232
48233         Prefer "sizeof v" over the equivalent "4".
48234         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48235         * lib/md5.c (set_uint32): Likewise.
48236         * lib/sha1.c (set_uint32): Likewise.
48237
48238 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48239
48240         * lib/sha1.c (set_uint32): Mark function as static.
48241
48242 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48243
48244         md2: clarify comments to say that alignment is not required.
48245         * lib/md2.h: Remove warning about alignment in comment.
48246         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48247         never been required.
48248
48249 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48250
48251         md4: adapt alignment constraint fix from sha1.
48252         * lib/md4.c (set_uint32): New function, from sha1.c
48253         (md4_read_ctx): Use it.
48254         (md4_finish_ctx): Doc fix.
48255         * lib/md4.h: Doc fix.
48256
48257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48258
48259         md5: adapt alignment constraint fix from sha1.
48260         * lib/md5.c (set_uint32): New function, from sha1.c
48261         (md5_read_ctx): Use it.
48262         (md5_finish_ctx): Doc fix.
48263         * lib/md5.h: Doc fix.
48264
48265 2008-01-30  Peter Palfrader  <weasel@debian.org>
48266
48267         sha1: remove the result buffer alignment constraint
48268         * lib/sha1.c (set_uint32): New function.
48269         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48270         constraint.
48271         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48272         * lib/sha1.h: Likewise.
48273
48274 2008-01-30  Andreas Schwab  <schwab@suse.de>
48275             Bruno Haible  <bruno@clisp.org>
48276
48277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48278         correct definition of LDBL_MIN_EXP.
48279
48280 2008-01-30  Karl Berry  <karl@gnu.org>
48281
48282         * config/srclist-update: try to preserve x bit on updates.
48283         * config/srclistvars.sh: update for karl.
48284
48285 2008-01-29  Jim Meyering  <meyering@redhat.com>
48286
48287         vasnprintf.c: Avoid warning about unused label
48288         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48289         "overflow" label definition and associated code with the
48290         same cpp condition that guards the sole use of that label.
48291
48292 2008-01-26  Bruno Haible  <bruno@clisp.org>
48293
48294         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48295         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48296         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48297         * lib/isnanl-nolibm.h (isnanl): Likewise.
48298         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48299
48300 2008-01-26  Bruno Haible  <bruno@clisp.org>
48301
48302         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48303         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48304
48305 2008-01-26  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48308         GCC >= 4.0 built-in.
48309         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48310
48311 2008-01-26  Bruno Haible  <bruno@clisp.org>
48312
48313         Rename isnan, applicable to 'double' only, to isnand.
48314         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48315         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48316         (configure.ac): Update.
48317         (Include): Replace "isnan.h" with "isnand.h".
48318         * m4/isnand.m4: Renamed from m4/isnan.m4.
48319         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48320         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48321         instead of isnan.c.
48322         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48323         instead of HAVE_ISNAN_IN_LIBC.
48324         (isnand): Renamed from isnan.
48325         * lib/isnand.c: New file.
48326         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48327         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48328         (Makefile.am): Update.
48329         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48330         Include isnand.h instead of isnan.h.
48331         (main): Test isnand instead of isnan.
48332         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48333         isnan-nolibm.
48334         * modules/frexp (Depends-on): Likewise.
48335         * modules/frexp-tests (Depends-on): Likewise.
48336         * modules/frexp-nolibm (Depends-on): Likewise.
48337         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48338         * modules/isfinite (Depends-on): Likewise.
48339         * modules/round-tests (Depends-on): Likewise.
48340         * modules/signbit (Depends-on): Likewise.
48341         * modules/signbit-tests (Depends-on): Likewise.
48342         * modules/snprintf-posix (Depends-on): Likewise.
48343         * modules/sprintf-posix (Depends-on): Likewise.
48344         * modules/trunc-tests (Depends-on): Likewise.
48345         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48352         * modules/vasnprintf-posix (Depends-on): Likewise.
48353         * modules/vasprintf-posix (Depends-on): Likewise.
48354         * modules/vfprintf-posix (Depends-on): Likewise.
48355         * modules/vsnprintf-posix (Depends-on): Likewise.
48356         * modules/vsprintf-posix (Depends-on): Likewise.
48357         * lib/frexp.c: Include isnand.h instead of isnan.h.
48358         (ISNAN): Set to isnand instead of isnan.
48359         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48360         (gl_isfinited): Use isnand instead of isnan.
48361         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48362         (gl_signbitd): Use isnand instead of isnan.
48363         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48364         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48365         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48366         (main): Use isnand instead of isnan.
48367         * tests/test-round1.c: Include isnand.h.
48368         (main): Use isnand instead of isnan.
48369         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48370         (ISNAN): Set to isnand instead of isnan.
48371         * tests/test-trunc1.c: Include isnand.h.
48372         (main): Use isnand instead of isnan.
48373         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48374         (equal): Use isnand instead of isnan.
48375         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48376         isnand-nolibm.
48377         * NEWS: Mention the change.
48378
48379 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48380             Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48383         the GCC builtins for signbits are present and set
48384         REPLACE_SIGNBIT_USING_GCC if so.
48385         * lib/math.in.h (signbit): Define using GCC builtins if
48386         REPLACE_SIGNBIT_USING_GCC is set.
48387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48388         REPLACE_SIGNBIT_USING_GCC.
48389         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48390
48391 2008-01-25  Jim Meyering  <meyering@redhat.com>
48392
48393         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48394         * lib/poll.c: Include <config.h>, not "config.h".
48395         * tests/test-getaddrinfo.c: Likewise.
48396
48397 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48398
48399         * modules/sockets-tests: New file.
48400
48401 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48402
48403         * modules/sockets: New module, can be used to call WSA_Startup and
48404         WSA_Cleanup when needed.
48405
48406         * lib/sockets.h, lib/sockets.c: New files.
48407
48408         * m4/sockets.m4: New file.
48409
48410         * tests/test-sockets.c: New file.
48411
48412 2008-01-19  Bruno Haible  <bruno@clisp.org>
48413
48414         * doc/posix-headers: Renamed from doc/headers.
48415         * doc/posix-functions: Renamed from doc/functions.
48416         * doc/gnulib.texi: Update.
48417
48418 2008-01-19  Bruno Haible  <bruno@clisp.org>
48419
48420         * doc/glibc-functions/strcasestr.texi: Include contents of
48421         doc/functions/strcasestr.texi, fixing the list of platforms.
48422         * doc/functions/strcasestr.texi: Remove file.
48423
48424 2008-01-19  Bruno Haible  <bruno@clisp.org>
48425
48426         * doc/glibc-functions/memmem.texi: Include contents of
48427         doc/functions/memmem.texi.
48428         * doc/functions/memmem.texi: Remove file.
48429
48430 2008-01-18  Bruno Haible  <bruno@clisp.org>
48431
48432         * doc/glibc-functions/*.texi: New files.
48433         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48434         to use the new files.
48435
48436 2008-01-17  Bruno Haible  <bruno@clisp.org>
48437
48438         * tests/test-gethostname.c (main): Fix printf statement.
48439
48440 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48441
48442         * modules/gethostname-tests: New file.
48443
48444         * tests/test-gethostname.c: New file.
48445
48446 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48447
48448         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48449         used by the UNAME case.  Reported by Bruno Haible
48450         <bruno@clisp.org>.
48451
48452 2008-01-17  Eric Blake  <ebb9@byu.net>
48453
48454         Convert c-strcasestr to be more efficient.
48455         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48456         (Depends-on): Add c-strcase, remove malloca, strnlen.
48457         * tests/test-c-strcasestr.c (main): Enhance test.
48458         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48459
48460 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48461
48462         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48463         Use it in creating po/Makevars.
48464
48465 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48466
48467         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48468         Applications that requires it should initialize libgcrypt
48469         manually.
48470
48471 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48472
48473         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48474
48475 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48476
48477         Fix problem with getdate on mingw32 reported by Simon Josefsson
48478         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48479         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48480         tzname", when deciding whether to declare tzname.
48481         * lib/strftime.c (tzname): Likewise.
48482
48483 2008-01-15  Bruno Haible  <bruno@clisp.org>
48484
48485         Work around a MacOS X 10.5 bug in frexpl().
48486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48487         * doc/functions/frexpl.texi: Document the bug.
48488         Reported by Elias Pipping <pipping@gentoo.org>.
48489
48490 2008-01-14  Eric Blake  <ebb9@byu.net>
48491
48492         Touch up previous patch.
48493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48494         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48495
48496         Convert strcasestr module to use Two-Way algorithm.
48497         * modules/strcasestr-simple: New module, based on the old
48498         strcasestr, but with Two-Way rather than KMP.
48499         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48500         * lib/string.in.h (rpl_strcasestr): Declare.
48501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48502         performance.
48503         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48504         * modules/string (Makefile.am): Support strcasestr.
48505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48506         * modules/strcasestr-tests (Depends-on): Check for alarm.
48507         * tests/test-strcasestr.c: Augment test.
48508         * lib/str-two-way.h: Clean up stray macro.
48509         * NEWS: Document new module.
48510         * MODULES.html.sh (string handling): Likewise.
48511         * doc/functions/strcasestr.texi: New file.
48512         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48513         here, since it is not a POSIX function.
48514
48515 2008-01-14  Colin Watson  <cjwatson@debian.org>
48516             Bruno Haible  <bruno@clisp.org>
48517
48518         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48519         works fine; if not, set REPLACE_STRSIGNAL.
48520         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48522         REPLACE_STRSIGNAL.
48523         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48524         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48525         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48526
48527 2008-01-14  Bruno Haible  <bruno@clisp.org>
48528
48529         * modules/strsignal (Include): Change to <string.h>.
48530
48531 2008-01-14  Colin Watson  <cjwatson@debian.org>
48532
48533         * modules/argp (Notice): Add a notice recommending to change
48534         XGETTEXT_OPTIONS.
48535         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48536
48537 2008-01-13  Colin Watson  <cjwatson@debian.org>
48538
48539         * modules/strsignal-tests: New file.
48540         * tests/test-strsignal.c: New file.
48541
48542         * lib/strsignal.c: New file, from glibc with modifications.
48543         * lib/siglist.h: New file, from glibc with modifications.
48544         * lib/string.in.h (strsignal): New declaration.
48545         * m4/strsignal.m4: New file.
48546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48547         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48548         * modules/strsignal: New file.
48549         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48550         HAVE_DECL_STRSIGNAL.
48551
48552 2008-01-13  Bruno Haible  <bruno@clisp.org>
48553
48554         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48555         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48556         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48557         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48558
48559 2008-01-13  Bruno Haible  <bruno@clisp.org>
48560
48561         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48562         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48563         * lib/argp.h (__attribute__): Likewise.
48564         * lib/c-stack.c (__attribute__): Likewise.
48565         * lib/error.h (__attribute__): Likewise.
48566         * lib/fts.c (__attribute__): Likewise.
48567         * lib/openat.h (__attribute__): Likewise.
48568         * lib/stdio.in.h (__attribute__): Likewise.
48569         * lib/string.in.h (__attribute__): Likewise.
48570         * lib/utimens.c (__attribute__): Likewise.
48571         * lib/vasnprintf.h (__attribute__): Likewise.
48572         * lib/xalloc.h (__attribute__): Likewise.
48573         * lib/xprintf.h (__attribute__): Likewise.
48574         * lib/xstrtol.h (__attribute__): Likewise.
48575         * lib/xvasprintf.h (__attribute__): Likewise.
48576
48577 2008-01-12  Bruno Haible  <bruno@clisp.org>
48578
48579         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48580         * doc/glibc-headers/a.out.texi: New file.
48581         * doc/glibc-headers/aliases.texi: New file.
48582         * doc/glibc-headers/alloca.texi: New file.
48583         * doc/glibc-headers/ar.texi: New file.
48584         * doc/glibc-headers/argp.texi: New file.
48585         * doc/glibc-headers/argz.texi: New file.
48586         * doc/glibc-headers/byteswap.texi: New file.
48587         * doc/glibc-headers/crypt.texi: New file.
48588         * doc/glibc-headers/endian.texi: New file.
48589         * doc/glibc-headers/envz.texi: New file.
48590         * doc/glibc-headers/err.texi: New file.
48591         * doc/glibc-headers/error.texi: New file.
48592         * doc/glibc-headers/execinfo.texi: New file.
48593         * doc/glibc-headers/fpu_control.texi: New file.
48594         * doc/glibc-headers/fstab.texi: New file.
48595         * doc/glibc-headers/fts.texi: New file.
48596         * doc/glibc-headers/getopt.texi: New file.
48597         * doc/glibc-headers/ieee754.texi: New file.
48598         * doc/glibc-headers/ifaddrs.texi: New file.
48599         * doc/glibc-headers/libintl.texi: New file.
48600         * doc/glibc-headers/mcheck.texi: New file.
48601         * doc/glibc-headers/mntent.texi: New file.
48602         * doc/glibc-headers/obstack.texi: New file.
48603         * doc/glibc-headers/paths.texi: New file.
48604         * doc/glibc-headers/printf.texi: New file.
48605         * doc/glibc-headers/pty.texi: New file.
48606         * doc/glibc-headers/resolv.texi: New file.
48607         * doc/glibc-headers/shadow.texi: New file.
48608         * doc/glibc-headers/sysexits.texi: New file.
48609         * doc/glibc-headers/ttyent.texi: New file.
48610
48611 2008-01-12  Jim Meyering  <meyering@redhat.com>
48612
48613         announce-gen: emit Gnulib's git-based version string.
48614         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48615         New option --gnulib-version=V, where V is expected to be
48616         the output of running git describe in the gnulib directory.
48617         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48618         not useful, and plan to stop publishing an xdelta file with each
48619         coreutils release.
48620
48621         * build-aux/announce-gen: Also check for lzma-compressed files.
48622
48623 2008-01-11  Bruno Haible  <bruno@clisp.org>
48624
48625         * tests/test-memmem.c (main): Increase maximum allowed time.
48626         * tests/test-strstr.c (main): Likewise.
48627
48628 2008-01-11  Bruno Haible  <bruno@clisp.org>
48629
48630         * doc/functions/memmem.texi: Add more precisions about platforms.
48631         * doc/functions/strstr.texi: Likewise.
48632
48633 2008-01-10  Eric Blake  <ebb9@byu.net>
48634
48635         * m4/strstr.m4: Delete cruft from copy-n-paste.
48636         Reported by Bruno Haible.
48637
48638 2008-01-10  Bruno Haible  <bruno@clisp.org>
48639
48640         Make c-strstr rely on strstr.
48641         * lib/c-strstr.c: Don't include str-kmp.h.
48642         (c_strstr): Define in terms of strstr.
48643         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48644         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48645
48646 2008-01-10  Bruno Haible  <bruno@clisp.org>
48647
48648         * doc/gnulib.texi (String Functions in C Locale): New section.
48649         * doc/c-ctype.texi: New file.
48650         * doc/c-strcase.texi: New file.
48651         * doc/c-strcaseeq.texi: New file.
48652         * doc/c-strcasestr.texi: New file.
48653         * doc/c-strstr.texi: New file.
48654         * doc/c-strtod.texi: New file.
48655         * doc/c-strtold.texi: New file.
48656
48657 2008-01-10  Eric Blake  <ebb9@byu.net>
48658
48659         * lib/relocatable.h: Fix a comment.
48660
48661 2008-01-10  Eric Blake  <ebb9@byu.net>
48662
48663         Share two-way algorithm.
48664         * lib/str-two-way.h: New file, merged from...
48665         * lib/memmem.c: ...here...
48666         * lib/strstr.c: ...and here.
48667         * modules/memmem (Files): Use it.
48668         * modules/strstr (Files): Likewise.
48669
48670         Avoid quadratic strstr implementations.
48671         * lib/strstr.c: New file.
48672         * m4/strstr.m4: Likewise.
48673         * modules/strstr: Likewise.
48674         * modules/strstr-tests: Likewise.
48675         * tests/test-strstr.c: Likewise.
48676         * lib/string.in.h (rpl_strstr): Declare.
48677         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48679         * modules/string (Makefile.am): Likewise.
48680         * MODULES.html.sh (string handling): Mention new module.
48681         * doc/functions/strstr.texi (strstr): Document the bug.
48682
48683 2008-01-10  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/relocatable.h (relocate): State whether result is freshly
48686         allocated or not.
48687         * lib/relocatable.c (relocate): Return a freshly allocated string
48688         instead of a pointer to a privately held string.
48689         Reported by Sylvain Beucler <beuc@gnu.org>.
48690
48691 2008-01-10  Colin Watson  <cjwatson@debian.org>
48692
48693         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48694         s/S_ISNLK/S_ISLNK/.
48695
48696 2008-01-09  Bruno Haible  <bruno@clisp.org>
48697
48698         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48699         and other files.
48700         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48701         if it's only a guess.
48702         * modules/memmem: Simplify by depending on memmem-simple.
48703
48704 2008-01-09  Bruno Haible  <bruno@clisp.org>
48705
48706         Work around OpenBSD 4.0 tdelete() bug.
48707         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48708         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48709         macros and don't redefine the enum values.
48710         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48711         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48712         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48713
48714 2008-01-09  Bruno Haible  <bruno@clisp.org>
48715
48716         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48717         (main): Don't perform the tests if setlocale did not install a UTF-8
48718         locale. Needed on OpenBSD 4.0.
48719         * modules/wcwidth-tests (Depends-on): Add localcharset.
48720
48721 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48722
48723         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48724         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48725         * NEWS: announce this.
48726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48727
48728 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48729         and Eric Blake  <ebb9@byu.net>
48730
48731         Add memmem-simple module.
48732         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48733         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48734         * modules/memmem-simple: New file.
48735         * modules/memmem (Description): Tweak.
48736         * MODULES.html.sh (string handling): Mention new module.
48737         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48738         addressed by memmem-simple.
48739         * NEWS: Document the difference.
48740
48741 2008-01-09  Eric Blake  <ebb9@byu.net>
48742
48743         Give gcc some memmem optimization hints.
48744         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48745         (strcasestr): Declare as pure.
48746         * modules/memmem (Maintainer): Claim my implementation.
48747
48748 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48749
48750         Support AIX 6.1 and higher.
48751         * build-aux/config.libpath: Likewise.
48752         * build-aux/config.rpath: Likewise.
48753
48754 2008-01-08  Jim Meyering  <meyering@redhat.com>
48755             Bruno Haible  <bruno@clisp.org>
48756
48757         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48758         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48759         Reported by Peter Fales in
48760         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48761
48762 2008-01-08  Bruno Haible  <bruno@clisp.org>
48763
48764         * modules/unictype/category-of (Depends-on): Add
48765         unictype/category-none.
48766         * modules/unictype/category-and-tests (Depends-on): Add
48767         unictype/category-{L,N,Lu,Nd}.
48768         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48769         * modules/unictype/category-or-tests (Depends-on): Add
48770         unictype/category-{L,N}.
48771         * modules/unictype/category-name-tests (Depends-on): Add
48772         unictype/category-{Z,Nl}.
48773         Reported by Simon Josefsson.
48774
48775 2008-01-08  Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48778         convention better.
48779         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48780         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48781         Reported by Peter Miller <millerp@canb.auug.org.au>.
48782
48783 2008-01-08  Eric Blake  <ebb9@byu.net>
48784
48785         Rewrite memmem to guarantee linear complexity without malloc.
48786         * lib/memmem.c (memmem): Use Two-Way rather than
48787         Knuth-Morris-Pratt, to allow O(1) space usage.
48788         (critical_factorization, two_way_short_needle)
48789         (two_way_long_needle): New functions.
48790         (knuth_morris_pratt): Delete.
48791         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48792         Add stdint.
48793         * tests/test-memmem.c (main): Add tests for periodic needle and
48794         sublinear performance.
48795         * doc/functions/memmem.texi (memmem): Document other deficiencies
48796         in cygwin and older glibc.
48797
48798 2008-01-08  Bruno Haible  <bruno@clisp.org>
48799
48800         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48801         augmentation.
48802
48803 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48804
48805         Add a configure time option: --disable-acl.
48806         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48807         AC_ARG_ENABLE(acl).
48808
48809 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48810
48811         * tests/test-localename.c: Don't include obsolete "setenv.h".
48812
48813         * modules/localename-tests (Depends-on): Need unsetenv.
48814
48815 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48816
48817         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48818
48819 2008-01-06  Colin Watson  <cjwatson@debian.org>
48820
48821         * users.txt: Add man-db.
48822
48823 2008-01-07  Bruno Haible  <bruno@clisp.org>
48824
48825         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48826         previous section name.
48827
48828 2008-01-07  Bruno Haible  <bruno@clisp.org>
48829
48830         * lib/progname.c (set_program_name): Don't strip off a leading
48831         "lt-" prefix outside a .libs directory.
48832         Suggested by Paul Eggert.
48833
48834 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48835             Bruno Haible  <bruno@clisp.org>
48836
48837         Improve memory cleanup in 'relocatable' module.
48838         * lib/relocatable.h (compute_curr_prefix): Change return type to
48839         'char *'.
48840         * lib/relocatable.c (compute_curr_prefix): Change return type to
48841         'char *'. Free curr_installdir after use.
48842         (relocate): Free curr_prefix_better after use.
48843         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48844
48845 2008-01-01  Bruno Haible  <bruno@clisp.org>
48846
48847         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48848         failure on older glibc systems.
48849         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48850
48851 2008-01-05  Eric Blake  <ebb9@byu.net>
48852
48853         Avoid quadratic system memmem.
48854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48855         Reported by Ralf Wildenhues.
48856
48857         Fix memmem test for mingw.
48858         * modules/memmem-tests (configure.ac): Check for alarm.
48859         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48860         it.
48861         * doc/functions/memmem.texi: New file.
48862         * doc/gnulib.texi (Function Substitutes): Add memmem.
48863         Reported by Bruno Haible.
48864
48865 2008-01-04  Bruno Haible  <bruno@clisp.org>
48866
48867         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48868         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48869         gl_HEADER_STRING_H_DEFAULTS.
48870
48871 2008-01-04  Eric Blake  <ebb9@byu.net>
48872
48873         Shorten duration of memmem test.
48874         * tests/test-memmem.c (main): Use alarm to declare failure if test
48875         is taking too long.
48876         Reported by Ralf Wildenhues.
48877
48878 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48879
48880         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48881         string, needed by strerror.
48882
48883 2008-01-03  Colin Watson  <cjwatson@debian.org>
48884             Bruno Haible  <bruno@clisp.org>
48885
48886         * doc/gnulib-tool.texi (Localization): New section.
48887
48888 2008-01-02  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48891         variables to 'unsigned char *' type.
48892         Reported by Paul Eggert.
48893
48894 2008-01-02  Jim Meyering  <jim@meyering.net>
48895
48896         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48897
48898 2007-12-31  Jim Meyering  <jim@meyering.net>
48899
48900         Avoid use of private FTS type name.
48901         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48902
48903 2007-12-30  Karl Berry  <karl@gnu.org>
48904
48905         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48906         work around defect in Texinfo and/or the standalone Info browser.
48907
48908 2007-12-30  Bruno Haible  <bruno@clisp.org>
48909
48910         Unify 5 copies of the KMP code.
48911         * lib/str-kmp.h: New file.
48912         * lib/c-strcasestr.c: Include str-kmp.h.
48913         (knuth_morris_pratt): Remove function.
48914         (c_strcasestr): Update.
48915         * lib/c-strstr.c: Include str-kmp.h.
48916         (knuth_morris_pratt): Remove function.
48917         (c_strcasestr): Update.
48918         * lib/mbscasestr.c: Include str-kmp.h.
48919         (knuth_morris_pratt_unibyte): Remove function.
48920         * lib/mbsstr.c: Include str-kmp.h.
48921         (knuth_morris_pratt_unibyte): Remove function.
48922         * lib/strcasestr.c: Include str-kmp.h.
48923         (knuth_morris_pratt): Remove function.
48924         (strcasestr): Update.
48925         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48926         * modules/c-strstr (Files): Likewise.
48927         * modules/mbscasestr (Files): Likewise.
48928         * modules/mbsstr (Files): Likewise.
48929         * modules/strcasestr (Files): Likewise.
48930         Suggested by Paul Eggert.
48931
48932 2007-12-30  Bruno Haible  <bruno@clisp.org>
48933
48934         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48935         defined.
48936
48937 2007-12-30  Bruno Haible  <bruno@clisp.org>
48938
48939         * lib/xmalloca.h: Include xalloc.h.
48940         (xnmalloca): New macro.
48941
48942 2007-12-30  Bruno Haible  <bruno@clisp.org>
48943
48944         * lib/malloca.h (nmalloca): New macro.
48945         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48946         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48947         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48948         knuth_morris_pratt_multibyte): Likewise.
48949         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48950         knuth_morris_pratt_multibyte): Likewise.
48951         * lib/memmem.c (knuth_morris_pratt): Likewise.
48952         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48953
48954 2007-12-25  Bruno Haible  <bruno@clisp.org>
48955
48956         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48957         * lib/glob.c: Don't include openat.h.
48958         (link_exists2_p): Add back the code that deals with the
48959         !GLOB_ALTDIRFUNC case.
48960         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48961         let it do the filename concatenation.
48962         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48963         * modules/glob (Depends-on): Remove openat.
48964
48965 2007-12-31  Bruno Haible  <bruno@clisp.org>
48966
48967         * modules/dirfd (License): Change to LGPLv2+.
48968         Approved by Jim Meyering.
48969
48970 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48973         when multiplying M by sizeof (size_t).
48974
48975 2007-12-10  Martin Lambers  <marlam@marlam.de>
48976
48977         Override getpagesize on mingw.
48978         * lib/getpagesize.c: New file.
48979         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48980         * modules/getpagesize (Files): Add lib/getpagesize.c.
48981         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48983         REPLACE_GETPAGESIZE.
48984         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48985
48986 2007-12-25  Bruno Haible  <bruno@clisp.org>
48987
48988         * modules/localcharset (Notice): New field.
48989         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48990         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48991
48992 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48993             Bruno Haible  <bruno@clisp.org>
48994
48995         Avoid using the syntax symbol() in formatted documentation.
48996         * MODULES.html.sh (func_module): When replacing symbol() with a
48997         hyperlink, remove the parentheses. Show an error if some remain.
48998         Recognize and render the '...' syntax.
48999         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49000         Rework. Add paragraph about GCC's inlining.
49001         * doc/alloca.texi: Likewise.
49002         * doc/error.texi: Remove parentheses from symbol reference.
49003         * doc/gnulib-intro.texi: Likewise.
49004         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49005         * modules/fnmatch (Description): Reword to say "the ... function".
49006         * modules/full-read (Description): Likewise.
49007         * modules/full-write (Description): Likewise.
49008         * modules/safe-read (Description): Likewise.
49009         * modules/safe-write (Description): Likewise.
49010         * modules/strchrnul (Description): Likewise.
49011         * modules/trim (Description): Likewise.
49012         * modules/error (Description): Remove parentheses from symbol
49013         references.
49014         * modules/verror (Description): Likewise.
49015         Reported by Karl Berry.
49016
49017 2007-12-25  Bruno Haible  <bruno@clisp.org>
49018
49019         Fixup after 2007-10-16 commit.
49020         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49021
49022 2007-12-24  Bruno Haible  <bruno@clisp.org>
49023
49024         Make --enable-relocatable work with DESTDIR.
49025         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49026         to compute installdir from destprog.
49027         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49028         also set the RELOC_DESTDIR variable.
49029         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49030
49031 2007-12-24  Bruno Haible  <bruno@clisp.org>
49032
49033         Fix link error due to xalloc_die().
49034         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49035         of xreadlink.
49036         * lib/relocwrapper.c: Update comments.
49037         * build-aux/install-reloc: Remove xreadlink.c from file list.
49038         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49039         xreadlink.c.
49040         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49041
49042 2007-12-24  Bruno Haible  <bruno@clisp.org>
49043
49044         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49045         * lib/setenv.h: Remove file.
49046         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49047         lib/setenv.h.
49048         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49049         (Depends-on): Add stdlib.
49050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49051         gl_FUNC_UNSETENV.
49052         (Include): Replace setenv.h with <stdlib.h>.
49053         * modules/unsetenv: New file.
49054         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49055         * lib/unsetenv.c: Include <stdlib.h> first.
49056         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49057         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49058         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49059         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49060         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49061         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49063         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49064         * doc/functions/unsetenv.texi: Update.
49065         * modules/xsetenv (Depends-on): Add unsetenv.
49066         * modules/getdate (Depends-on): Likewise.
49067         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49068         * lib/xsetenv.c: Don't include setenv.h.
49069         * lib/getdate.y: Likewise.
49070         * lib/relocwrapper.c: Likewise.
49071         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49072         (Depends-on): Add stdlib.
49073         * NEWS: Mention the changes.
49074         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49075
49076 2007-12-23  Bruno Haible  <bruno@clisp.org>
49077
49078         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49079         indentation.
49080
49081 2007-12-23  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/c-strcasestr.c: Add more comments.
49084         * lib/c-strstr.c: Likewise.
49085         * lib/mbscasestr.c: Likewise.
49086         * lib/mbsstr.c: Likewise.
49087         * lib/strcasestr.c: Likewise.
49088         * lib/memmem.c: Likewise.
49089
49090 2007-12-23  Bruno Haible  <bruno@clisp.org>
49091
49092         * tests/test-memmem.c: Include <string.h> first.
49093
49094 2007-12-22  Bruno Haible  <bruno@clisp.org>
49095
49096         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49097         the contents of $testsbase.
49098         Reported by Ralf Wildenhues.
49099
49100 2007-12-22  Bruno Haible  <bruno@clisp.org>
49101
49102         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49103         two variables local_ldadd_before, local_ldadd_last.
49104
49105 2007-12-20  Eric Blake  <ebb9@byu.net>
49106
49107         Work around circular library issue when cross-compiling.
49108         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49109         that progname.o does not need to pull in rpl_memcmp.
49110
49111 2007-12-19  Eric Blake  <ebb9@byu.net>
49112
49113         Fix memmem to avoid O(n^2) worst-case complexity.
49114         * lib/memmem.c (knuth_morris_pratt): New function.
49115         (memmem): Use it if first few naive iterations fail.
49116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49117         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49118         * modules/memchr (License): Likewise.
49119         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49120         malloca.
49121         * tests/test-memmem.c: Rewrite, borrowing ideas from
49122         test-mbsstr1.c; the old version wouldn't even compile!
49123         * modules/memmem-tests: New file.
49124         * lib/string.in.h (rpl_memmem): Add declaration.
49125         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49127         REPLACE_MEMMEM.
49128
49129 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49132         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49133         before any system include files, and undef after them all.  This
49134         should fix a problem on VMS reported by John E. Malmberg in
49135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49136
49137 2007-12-17  Eric Blake  <ebb9@byu.net>
49138
49139         Revert addition of verify, for BSD/OS.
49140         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49141         can't handle large files, for the sake of obsolete platforms.
49142         * modules/fseeko (Depends-on): Remove verify.
49143         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49144         * doc/functions/ftello.texi (ftello): Likewise.
49145         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49146         Reported by Larry Jones.
49147
49148 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49149
49150         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49151         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49152
49153 2007-12-17  Jim Meyering  <meyering@redhat.com>
49154
49155         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49156         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49157         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49158         * modules/getcwd (Depends-on): Add openat.
49159         Reported by Petr Salinger.
49160
49161 2007-12-17  Bruno Haible  <bruno@clisp.org>
49162
49163         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49164         avoid a segmentation fault of the configure test on x86_64 systems.
49165
49166 2007-12-15  Jim Meyering  <meyering@redhat.com>
49167
49168         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49169
49170 2007-12-13  Eric Blake  <ebb9@byu.net>
49171
49172         Another fseek test.
49173         * tests/test-fseek.c (main): Also test ungetc handling.
49174         * tests/test-fseeko.c (main): Likewise.
49175         * modules/fseeko (Depends-on): Add verify.
49176         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49177         large.
49178         Reported by Larry Jones.
49179
49180         Fix fseeko on mingw.
49181         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49182         seek.
49183
49184         Beef up fseek tests.
49185         * tests/test-fseek.c (main): Also test eof handling.
49186         * tests/test-fseeko.c (main): Likewise.
49187         Reported by Larry Jones.
49188
49189 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49190
49191         Fix fseeko on BSD-based platforms.
49192         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49193         successful seek.
49194
49195 2007-12-12  Eric Blake  <ebb9@byu.net>
49196
49197         Allow circular dependency of separate libtests.a
49198         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49199         when use_libtests.
49200
49201 2007-12-11  Eric Blake  <ebb9@byu.net>
49202
49203         Fix bug with -0.0L in previous patch.
49204         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49205         * tests/test-isnan.c (main): Also test on zeroes.
49206         * tests/test-isnanf.c (main): Likewise.
49207         * tests/test-isnanl.h (main): Likewise.
49208
49209         Detect pseudo-denormals on x86 even when cross-compiling.
49210         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49211         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49212         invalid bit patterns that happen to satisfy ==.
49213
49214         Avoid link failures with separate libtests.a.
49215         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49216         last, to satisfy circular dependencies.
49217
49218 2007-12-11  Eric Blake  <ebb9@byu.net>
49219         and Bruno Haible  <bruno@clisp.org>
49220
49221         Fix OpenBSD 4.0 <float.h> handling of long double.
49222         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49223         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49224         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49225
49226 2007-12-11  Jim Meyering  <meyering@redhat.com>
49227
49228         * users.txt: Add libvirt.
49229
49230         Support versions of autoconf prior to 2.59c.
49231         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49232         if it is not already defined.
49233
49234 2007-12-09  Bruno Haible  <bruno@clisp.org>
49235
49236         Let 'gnulib-tool --import' collect sources needed for the tests in
49237         tests/ rather than in lib/.
49238         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49239         argument. If true, add rules to generate libtests.a, and put libtests.a
49240         into $(LDADD). Consider source files in subdirectories and set
49241         uses_subdirs.
49242         (func_emit_initmacro_start, func_emit_initmacro_end,
49243         func_emit_initmacro_done): Pass all arguments explicitly.
49244         (func_import): Determine two module lists main_modules,
49245         testsrelated_modules. Determine use_libtests. Determine two variables
49246         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49247         instead of just sed_transform_lib_file. Determine two variables
49248         main_files and testsrelated_files. Compute 'files' as the union of
49249         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49250         func_add_or_update. In the generated gnulib-comp.m4, collect the
49251         object files for tests/ in different variables than those for lib/.
49252         Substitute LIBTESTS_LIBDEPS.
49253         (func_create_testdir): Combine the uses_subdirs results from
49254         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49255
49256 2007-12-09  Bruno Haible  <bruno@clisp.org>
49257
49258         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49259         the build-aux directory.
49260
49261 2007-12-09  Bruno Haible  <bruno@clisp.org>
49262
49263         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49264         introduced on 2006-09-09.
49265
49266 2007-12-07  Jim Meyering  <meyering@redhat.com>
49267
49268         Let these macros work also with autoconf-2.59.
49269         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49270         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49271         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49272
49273 2007-12-06  Jim Meyering  <meyering@redhat.com>
49274
49275         Avoid a configure-time syntax error in gl_FUNC_ACL.
49276         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49277         function in each branch, before testing the cache variable.
49278
49279 2007-12-04  Eric Blake  <ebb9@byu.net>
49280
49281         Make scripts executable.
49282         * build-aux/config.guess: Add execute permissions.
49283         * build-aux/config.sub: Likewise.
49284         * build-aux/gendocs.sh: Likewise.
49285
49286         Fix frexp on mingw.
49287         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49288         cross-compiling.
49289         * doc/functions/frexp.texi (frexp): Document the bug.
49290
49291         Make cygwin fseeko check more reliable.
49292         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49293         version numbers, rather than unrelated feature check.
49294         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49295         * doc/functions/ftello.texi (ftello): Likewise.
49296         Reported by Bruno Haible.
49297
49298         * m4/strerror.m4: Bump version number.
49299
49300 2007-12-03  Bruno Haible  <bruno@clisp.org>
49301
49302         * doc/functions/mprotect.texi: Mention the mingw problem.
49303
49304 2007-12-03  Eric Blake  <ebb9@byu.net>
49305
49306         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49307         REPLACE_STRERROR is initialized before this macro.
49308
49309 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49312         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49313         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49314         put -lsec in even for programs other than 'ls'.  This fixes a problem
49315         for gettext reported by Bruno Haible in
49316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49317         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49318         Add support for Solaris 10.  This isn't efficient, but should get the
49319         job done for now.
49320
49321 2007-12-03  James Youngman  <jay@gnu.org>
49322
49323         * doc/regexprops-generic.texi: change "an close-group" to "a
49324         close-group" and "illegal" to "not allowed".
49325
49326 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49327
49328         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49329         pr_byname.h. Needed for the rare case when the maintainer has done
49330         "make maintainer-clean" in the source directory and then attempts a
49331         build outside the source directory.
49332         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49333         scripts_byname.h.
49334
49335 2007-12-02  Martin Lambers <marlam@marlam.de>
49336             Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/getpagesize.h: Remove file.
49339         * lib/unistd.in.h: Include declaration of getpagesize here.
49340         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49341         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49342         HAVE_SYS_PARAM_H.
49343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49344         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49345         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49346         (Depends-on): Add unistd.
49347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49348         (Include): Use <unistd.h> instead of getpagesize.h.
49349         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49350         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49351         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49352         gl_GETPAGESIZE invocation, already handled by module dependency.
49353         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49354
49355 2007-12-02  Bruno Haible  <bruno@clisp.org>
49356
49357         * modules/strings-tests: New file.
49358         * tests/test-strings.c: New file.
49359
49360         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49361         * lib/strings.in.h: New file.
49362         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49363         * m4/strings_h.m4: New file.
49364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49365         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49366         * modules/strings: New file.
49367         * modules/string (Makefile.am): Update.
49368         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49369         Reported by Karl Berry.
49370
49371 2007-12-01  Eric Blake  <ebb9@byu.net>
49372
49373         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49374         accomodate fix in cygwin 1.5.25.
49375
49376 2007-12-01  Jim Meyering  <meyering@redhat.com>
49377
49378         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49379         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49380         that would inhibit utf8-optimization of a regexp containing line-
49381         or buffer-anchors, e.g., `^', `$'.
49382
49383 2007-11-30  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49386         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49387         glthread_recursive_lock_init.
49388         * lib/lock.c (glthread_recursive_lock_init)
49389         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49390         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49391
49392 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49393
49394         New function qset_acl, like set_acl but with syscall semantics.
49395         * lib/acl.h (qset_acl): New decl.
49396         * lib/acl.c (qset_acl): New function.
49397         (set_acl): Use new function.  Use more-consistent diagnostics.
49398
49399 2007-11-28  Jim Meyering  <meyering@redhat.com>
49400
49401         * modules/physmem (License): Change from GPL to LGPLv2+.
49402
49403 2007-11-26  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49406         'long double' type has excess precision.
49407         Reported by Jim Meyering in
49408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49409
49410 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49411
49412         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49413         Sync from <http://gnu.org/licenses>.
49414         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49415         with license text from same location.
49416         * doc/maintain.texi, doc/standards.texi:  Sync from
49417         <http://savannah.gnu.org/projects/gnustandards>.
49418
49419 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49420         and Jim Meyering  <meyering@redhat.com>
49421
49422         Adjust getdate' grammar to accept a slightly more regular language.
49423         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49424         Before, the former was rejected.
49425         * lib/getdate.y (digits_to_date_time): New function, factored
49426         out of ...
49427         (number): ...here.  Just call digits_to_date_time.
49428         (hybrid): New non-terminal to handle an <unsigned number,
49429         signed relative offset> sequence consistently.
49430
49431 2007-11-18  Jim Meyering  <meyering@redhat.com>
49432
49433         Pull my changes from coreutils:
49434         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49435         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49436         use of $gnulib_tool_option_extras, so that it's separated from the
49437         preceding argument.
49438
49439         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49440         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49441         parent destination directories before copying a file into place.
49442
49443 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49444
49445         bootstrap: work also with 4-argument variant of AC_INIT
49446         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49447
49448 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49449
49450         Port test-getaddrinfo to Solaris.
49451         Problem reported by Bruno Haible in
49452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49453         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49454         explanation of setting 'hints'.
49455         Don't reject an implementation merely because it returns EAI_SERVICE.
49456         (EAI_SERVICE): Define to 0 if not defined.
49457
49458 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49459
49460         The license of gnu-make and posix-shell is now "GPLed build tool".
49461         * modules/gnu-make (License): Likewise.
49462         * modules/posix-shell (License): Likewise.
49463
49464         New module posix-shell, for determining a POSIX shell
49465         or perhaps something that is close enough to a POSIX shell.
49466         * m4/posix-shell.m4: New file.
49467         * modules/posix-shell: New file.
49468
49469         * MODULES.html.sh: Mention new module.
49470
49471         New module gnu-make, for determining whether we're using GNU Make.
49472         * m4/gnu-make.m4: New file.
49473         * modules/gnu-make: New file.
49474         * MODULES.html.sh: Mention new module.
49475
49476 2007-11-14  Jim Meyering  <meyering@redhat.com>
49477
49478         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49479         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49480         use this macro to create a function _definition_.
49481         Remove useless "#undef ARGMATCH_DIE".
49482
49483 2007-11-14  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/config.charset: Update for OpenBSD 4.1.
49486         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49487
49488 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49489
49490         Document 64-bit #if problems in stdint.texi.
49491         * doc/headers/stdint.texi (stdint.h): Mention problems with
49492         64-bit-#if, and how to work around them.
49493
49494         Don't insist on 'long long int' support in the preprocessor.  It
49495         breaks too many things.  For example, PRIdMAX still uses a 'long
49496         long int' format with the latest Sun compiler, even though
49497         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49498         preprocessor problem.  This causes the latest coreutils to dump
49499         core on Solaris 10 sparc with the Sun C compiler.
49500         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49501         the troublesome expressions at configure-time, not at #if-time.
49502         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49503         preprocessor.
49504         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49505         compile-time C checks, done at 'configure'-time.
49506         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49507         * modules/inttypes (Makefile): Substitute the new symbols that
49508         gl_INTTYPES_H now generates.
49509         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49510
49511 2007-11-12  Bruno Haible  <bruno@clisp.org>
49512
49513         Tests for Unicode character classification functions.
49514
49515         * modules/unictype/bidicategory-byname-tests: New file.
49516         * modules/unictype/bidicategory-name-tests: New file.
49517         * modules/unictype/bidicategory-of-tests: New file.
49518         * modules/unictype/bidicategory-test-tests: New file.
49519         * modules/unictype/block-list-tests: New file.
49520         * modules/unictype/block-of-tests: New file.
49521         * modules/unictype/block-test-tests: New file.
49522         * modules/unictype/category-C-tests: New file.
49523         * modules/unictype/category-Cc-tests: New file.
49524         * modules/unictype/category-Cf-tests: New file.
49525         * modules/unictype/category-Cn-tests: New file.
49526         * modules/unictype/category-Co-tests: New file.
49527         * modules/unictype/category-Cs-tests: New file.
49528         * modules/unictype/category-L-tests: New file.
49529         * modules/unictype/category-Ll-tests: New file.
49530         * modules/unictype/category-Lm-tests: New file.
49531         * modules/unictype/category-Lo-tests: New file.
49532         * modules/unictype/category-Lt-tests: New file.
49533         * modules/unictype/category-Lu-tests: New file.
49534         * modules/unictype/category-M-tests: New file.
49535         * modules/unictype/category-Mc-tests: New file.
49536         * modules/unictype/category-Me-tests: New file.
49537         * modules/unictype/category-Mn-tests: New file.
49538         * modules/unictype/category-N-tests: New file.
49539         * modules/unictype/category-Nd-tests: New file.
49540         * modules/unictype/category-Nl-tests: New file.
49541         * modules/unictype/category-No-tests: New file.
49542         * modules/unictype/category-P-tests: New file.
49543         * modules/unictype/category-Pc-tests: New file.
49544         * modules/unictype/category-Pd-tests: New file.
49545         * modules/unictype/category-Pe-tests: New file.
49546         * modules/unictype/category-Pf-tests: New file.
49547         * modules/unictype/category-Pi-tests: New file.
49548         * modules/unictype/category-Po-tests: New file.
49549         * modules/unictype/category-Ps-tests: New file.
49550         * modules/unictype/category-S-tests: New file.
49551         * modules/unictype/category-Sc-tests: New file.
49552         * modules/unictype/category-Sk-tests: New file.
49553         * modules/unictype/category-Sm-tests: New file.
49554         * modules/unictype/category-So-tests: New file.
49555         * modules/unictype/category-Z-tests: New file.
49556         * modules/unictype/category-Zl-tests: New file.
49557         * modules/unictype/category-Zp-tests: New file.
49558         * modules/unictype/category-Zs-tests: New file.
49559         * modules/unictype/category-and-not-tests: New file.
49560         * modules/unictype/category-and-tests: New file.
49561         * modules/unictype/category-byname-tests: New file.
49562         * modules/unictype/category-name-tests: New file.
49563         * modules/unictype/category-none-tests: New file.
49564         * modules/unictype/category-of-tests: New file.
49565         * modules/unictype/category-or-tests: New file.
49566         * modules/unictype/category-test-withtable-tests: New file.
49567         * modules/unictype/combining-class-tests: New file.
49568         * modules/unictype/ctype-alnum-tests: New file.
49569         * modules/unictype/ctype-alpha-tests: New file.
49570         * modules/unictype/ctype-blank-tests: New file.
49571         * modules/unictype/ctype-cntrl-tests: New file.
49572         * modules/unictype/ctype-digit-tests: New file.
49573         * modules/unictype/ctype-graph-tests: New file.
49574         * modules/unictype/ctype-lower-tests: New file.
49575         * modules/unictype/ctype-print-tests: New file.
49576         * modules/unictype/ctype-punct-tests: New file.
49577         * modules/unictype/ctype-space-tests: New file.
49578         * modules/unictype/ctype-upper-tests: New file.
49579         * modules/unictype/ctype-xdigit-tests: New file.
49580         * modules/unictype/decimal-digit-tests: New file.
49581         * modules/unictype/digit-tests: New file.
49582         * modules/unictype/mirror-tests: New file.
49583         * modules/unictype/numeric-tests: New file.
49584         * modules/unictype/property-alphabetic-tests: New file.
49585         * modules/unictype/property-ascii-hex-digit-tests: New file.
49586         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49587         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49588         * modules/unictype/property-bidi-block-separator-tests: New file.
49589         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49590         * modules/unictype/property-bidi-common-separator-tests: New file.
49591         * modules/unictype/property-bidi-control-tests: New file.
49592         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49593         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49594         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49595         * modules/unictype/property-bidi-european-digit-tests: New file.
49596         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49597         * modules/unictype/property-bidi-left-to-right-tests: New file.
49598         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49599         * modules/unictype/property-bidi-other-neutral-tests: New file.
49600         * modules/unictype/property-bidi-pdf-tests: New file.
49601         * modules/unictype/property-bidi-segment-separator-tests: New file.
49602         * modules/unictype/property-bidi-whitespace-tests: New file.
49603         * modules/unictype/property-byname-tests: New file.
49604         * modules/unictype/property-combining-tests: New file.
49605         * modules/unictype/property-composite-tests: New file.
49606         * modules/unictype/property-currency-symbol-tests: New file.
49607         * modules/unictype/property-dash-tests: New file.
49608         * modules/unictype/property-decimal-digit-tests: New file.
49609         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49610         * modules/unictype/property-deprecated-tests: New file.
49611         * modules/unictype/property-diacritic-tests: New file.
49612         * modules/unictype/property-extender-tests: New file.
49613         * modules/unictype/property-format-control-tests: New file.
49614         * modules/unictype/property-grapheme-base-tests: New file.
49615         * modules/unictype/property-grapheme-extend-tests: New file.
49616         * modules/unictype/property-grapheme-link-tests: New file.
49617         * modules/unictype/property-hex-digit-tests: New file.
49618         * modules/unictype/property-hyphen-tests: New file.
49619         * modules/unictype/property-id-continue-tests: New file.
49620         * modules/unictype/property-id-start-tests: New file.
49621         * modules/unictype/property-ideographic-tests: New file.
49622         * modules/unictype/property-ids-binary-operator-tests: New file.
49623         * modules/unictype/property-ids-trinary-operator-tests: New file.
49624         * modules/unictype/property-ignorable-control-tests: New file.
49625         * modules/unictype/property-iso-control-tests: New file.
49626         * modules/unictype/property-join-control-tests: New file.
49627         * modules/unictype/property-left-of-pair-tests: New file.
49628         * modules/unictype/property-line-separator-tests: New file.
49629         * modules/unictype/property-logical-order-exception-tests: New file.
49630         * modules/unictype/property-lowercase-tests: New file.
49631         * modules/unictype/property-math-tests: New file.
49632         * modules/unictype/property-non-break-tests: New file.
49633         * modules/unictype/property-not-a-character-tests: New file.
49634         * modules/unictype/property-numeric-tests: New file.
49635         * modules/unictype/property-other-alphabetic-tests: New file.
49636         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49637         * modules/unictype/property-other-grapheme-extend-tests: New file.
49638         * modules/unictype/property-other-id-continue-tests: New file.
49639         * modules/unictype/property-other-id-start-tests: New file.
49640         * modules/unictype/property-other-lowercase-tests: New file.
49641         * modules/unictype/property-other-math-tests: New file.
49642         * modules/unictype/property-other-uppercase-tests: New file.
49643         * modules/unictype/property-paired-punctuation-tests: New file.
49644         * modules/unictype/property-paragraph-separator-tests: New file.
49645         * modules/unictype/property-pattern-syntax-tests: New file.
49646         * modules/unictype/property-pattern-white-space-tests: New file.
49647         * modules/unictype/property-private-use-tests: New file.
49648         * modules/unictype/property-punctuation-tests: New file.
49649         * modules/unictype/property-quotation-mark-tests: New file.
49650         * modules/unictype/property-radical-tests: New file.
49651         * modules/unictype/property-sentence-terminal-tests: New file.
49652         * modules/unictype/property-soft-dotted-tests: New file.
49653         * modules/unictype/property-space-tests: New file.
49654         * modules/unictype/property-terminal-punctuation-tests: New file.
49655         * modules/unictype/property-test-tests: New file.
49656         * modules/unictype/property-titlecase-tests: New file.
49657         * modules/unictype/property-unassigned-code-value-tests: New file.
49658         * modules/unictype/property-unified-ideograph-tests: New file.
49659         * modules/unictype/property-uppercase-tests: New file.
49660         * modules/unictype/property-variation-selector-tests: New file.
49661         * modules/unictype/property-white-space-tests: New file.
49662         * modules/unictype/property-xid-continue-tests: New file.
49663         * modules/unictype/property-xid-start-tests: New file.
49664         * modules/unictype/property-zero-width-tests: New file.
49665         * modules/unictype/scripts-tests: New file.
49666         * modules/unictype/syntax-c-ident-tests: New file.
49667         * modules/unictype/syntax-c-whitespace-tests: New file.
49668         * modules/unictype/syntax-java-ident-tests: New file.
49669         * modules/unictype/syntax-java-whitespace-tests: New file.
49670         * tests/unictype/test-bidi_byname.c: New file.
49671         * tests/unictype/test-bidi_name.c: New file.
49672         * tests/unictype/test-bidi_of.c: New file.
49673         * tests/unictype/test-bidi_test.c: New file.
49674         * tests/unictype/test-block_list.c: New file.
49675         * tests/unictype/test-block_of.c: New file.
49676         * tests/unictype/test-block_test.c: New file.
49677         * tests/unictype/test-categ_and.c: New file.
49678         * tests/unictype/test-categ_and_not.c: New file.
49679         * tests/unictype/test-categ_byname.c: New file.
49680         * tests/unictype/test-categ_name.c: New file.
49681         * tests/unictype/test-categ_none.c: New file.
49682         * tests/unictype/test-categ_of.c: New file.
49683         * tests/unictype/test-categ_or.c: New file.
49684         * tests/unictype/test-categ_test_withtable.c: New file.
49685         * tests/unictype/test-combining.c: New file.
49686         * tests/unictype/test-decdigit.c: New file.
49687         * tests/unictype/test-digit.c: New file.
49688         * tests/unictype/test-mirror.c: New file.
49689         * tests/unictype/test-numeric.c: New file.
49690         * tests/unictype/test-pr_byname.c: New file.
49691         * tests/unictype/test-pr_test.c: New file.
49692         * tests/unictype/test-predicate-part1.h: New file.
49693         * tests/unictype/test-predicate-part2.h: New file.
49694         * tests/unictype/test-scripts.c: New file.
49695         * tests/unictype/test-sy_c_ident.c: New file.
49696         * tests/unictype/test-sy_java_ident.c: New file.
49697
49698         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49699         for Unicode 5.0.0.
49700         * tests/unictype/test-categ_Cc.c: Likewise.
49701         * tests/unictype/test-categ_Cf.c: Likewise.
49702         * tests/unictype/test-categ_Cn.c: Likewise.
49703         * tests/unictype/test-categ_Co.c: Likewise.
49704         * tests/unictype/test-categ_Cs.c: Likewise.
49705         * tests/unictype/test-categ_L.c: Likewise.
49706         * tests/unictype/test-categ_Ll.c: Likewise.
49707         * tests/unictype/test-categ_Lm.c: Likewise.
49708         * tests/unictype/test-categ_Lo.c: Likewise.
49709         * tests/unictype/test-categ_Lt.c: Likewise.
49710         * tests/unictype/test-categ_Lu.c: Likewise.
49711         * tests/unictype/test-categ_M.c: Likewise.
49712         * tests/unictype/test-categ_Mc.c: Likewise.
49713         * tests/unictype/test-categ_Me.c: Likewise.
49714         * tests/unictype/test-categ_Mn.c: Likewise.
49715         * tests/unictype/test-categ_N.c: Likewise.
49716         * tests/unictype/test-categ_Nd.c: Likewise.
49717         * tests/unictype/test-categ_Nl.c: Likewise.
49718         * tests/unictype/test-categ_No.c: Likewise.
49719         * tests/unictype/test-categ_P.c: Likewise.
49720         * tests/unictype/test-categ_Pc.c: Likewise.
49721         * tests/unictype/test-categ_Pd.c: Likewise.
49722         * tests/unictype/test-categ_Pe.c: Likewise.
49723         * tests/unictype/test-categ_Pf.c: Likewise.
49724         * tests/unictype/test-categ_Pi.c: Likewise.
49725         * tests/unictype/test-categ_Po.c: Likewise.
49726         * tests/unictype/test-categ_Ps.c: Likewise.
49727         * tests/unictype/test-categ_S.c: Likewise.
49728         * tests/unictype/test-categ_Sc.c: Likewise.
49729         * tests/unictype/test-categ_Sk.c: Likewise.
49730         * tests/unictype/test-categ_Sm.c: Likewise.
49731         * tests/unictype/test-categ_So.c: Likewise.
49732         * tests/unictype/test-categ_Z.c: Likewise.
49733         * tests/unictype/test-categ_Zl.c: Likewise.
49734         * tests/unictype/test-categ_Zp.c: Likewise.
49735         * tests/unictype/test-categ_Zs.c: Likewise.
49736         * tests/unictype/test-ctype_alnum.c: Likewise.
49737         * tests/unictype/test-ctype_alpha.c: Likewise.
49738         * tests/unictype/test-ctype_blank.c: Likewise.
49739         * tests/unictype/test-ctype_cntrl.c: Likewise.
49740         * tests/unictype/test-ctype_digit.c: Likewise.
49741         * tests/unictype/test-ctype_graph.c: Likewise.
49742         * tests/unictype/test-ctype_lower.c: Likewise.
49743         * tests/unictype/test-ctype_print.c: Likewise.
49744         * tests/unictype/test-ctype_punct.c: Likewise.
49745         * tests/unictype/test-ctype_space.c: Likewise.
49746         * tests/unictype/test-ctype_upper.c: Likewise.
49747         * tests/unictype/test-ctype_xdigit.c: Likewise.
49748         * tests/unictype/test-decdigit.h: Likewise.
49749         * tests/unictype/test-digit.h: Likewise.
49750         * tests/unictype/test-numeric.h: Likewise.
49751         * tests/unictype/test-pr_alphabetic.c: Likewise.
49752         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49753         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49754         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49755         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49756         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49757         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49758         * tests/unictype/test-pr_bidi_control.c: Likewise.
49759         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49760         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49761         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49762         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49763         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49764         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49765         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49766         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49767         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49768         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49769         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49770         * tests/unictype/test-pr_combining.c: Likewise.
49771         * tests/unictype/test-pr_composite.c: Likewise.
49772         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49773         * tests/unictype/test-pr_dash.c: Likewise.
49774         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49775         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49776         * tests/unictype/test-pr_deprecated.c: Likewise.
49777         * tests/unictype/test-pr_diacritic.c: Likewise.
49778         * tests/unictype/test-pr_extender.c: Likewise.
49779         * tests/unictype/test-pr_format_control.c: Likewise.
49780         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49781         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49782         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49783         * tests/unictype/test-pr_hex_digit.c: Likewise.
49784         * tests/unictype/test-pr_hyphen.c: Likewise.
49785         * tests/unictype/test-pr_id_continue.c: Likewise.
49786         * tests/unictype/test-pr_id_start.c: Likewise.
49787         * tests/unictype/test-pr_ideographic.c: Likewise.
49788         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49789         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49790         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49791         * tests/unictype/test-pr_iso_control.c: Likewise.
49792         * tests/unictype/test-pr_join_control.c: Likewise.
49793         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49794         * tests/unictype/test-pr_line_separator.c: Likewise.
49795         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49796         * tests/unictype/test-pr_lowercase.c: Likewise.
49797         * tests/unictype/test-pr_math.c: Likewise.
49798         * tests/unictype/test-pr_non_break.c: Likewise.
49799         * tests/unictype/test-pr_not_a_character.c: Likewise.
49800         * tests/unictype/test-pr_numeric.c: Likewise.
49801         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49802         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49803         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49804         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49805         * tests/unictype/test-pr_other_id_start.c: Likewise.
49806         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49807         * tests/unictype/test-pr_other_math.c: Likewise.
49808         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49809         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49810         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49811         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49812         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49813         * tests/unictype/test-pr_private_use.c: Likewise.
49814         * tests/unictype/test-pr_punctuation.c: Likewise.
49815         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49816         * tests/unictype/test-pr_radical.c: Likewise.
49817         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49818         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49819         * tests/unictype/test-pr_space.c: Likewise.
49820         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49821         * tests/unictype/test-pr_titlecase.c: Likewise.
49822         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49823         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49824         * tests/unictype/test-pr_uppercase.c: Likewise.
49825         * tests/unictype/test-pr_variation_selector.c: Likewise.
49826         * tests/unictype/test-pr_white_space.c: Likewise.
49827         * tests/unictype/test-pr_xid_continue.c: Likewise.
49828         * tests/unictype/test-pr_xid_start.c: Likewise.
49829         * tests/unictype/test-pr_zero_width.c: Likewise.
49830         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49831         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49832
49833 2007-11-12  Bruno Haible  <bruno@clisp.org>
49834
49835         Unicode character classification functions.
49836         * lib/unictype.h: New file.
49837         * modules/unictype/base: New file.
49838         * modules/unictype/category-L: New file.
49839         * modules/unictype/category-Lu: New file.
49840         * modules/unictype/category-Ll: New file.
49841         * modules/unictype/category-Lt: New file.
49842         * modules/unictype/category-Lm: New file.
49843         * modules/unictype/category-Lo: New file.
49844         * modules/unictype/category-M: New file.
49845         * modules/unictype/category-Mn: New file.
49846         * modules/unictype/category-Mc: New file.
49847         * modules/unictype/category-Me: New file.
49848         * modules/unictype/category-N: New file.
49849         * modules/unictype/category-Nd: New file.
49850         * modules/unictype/category-Nl: New file.
49851         * modules/unictype/category-No: New file.
49852         * modules/unictype/category-P: New file.
49853         * modules/unictype/category-Pc: New file.
49854         * modules/unictype/category-Pd: New file.
49855         * modules/unictype/category-Ps: New file.
49856         * modules/unictype/category-Pe: New file.
49857         * modules/unictype/category-Pi: New file.
49858         * modules/unictype/category-Pf: New file.
49859         * modules/unictype/category-Po: New file.
49860         * modules/unictype/category-S: New file.
49861         * modules/unictype/category-Sm: New file.
49862         * modules/unictype/category-Sc: New file.
49863         * modules/unictype/category-Sk: New file.
49864         * modules/unictype/category-So: New file.
49865         * modules/unictype/category-Z: New file.
49866         * modules/unictype/category-Zs: New file.
49867         * modules/unictype/category-Zl: New file.
49868         * modules/unictype/category-Zp: New file.
49869         * modules/unictype/category-C: New file.
49870         * modules/unictype/category-Cc: New file.
49871         * modules/unictype/category-Cf: New file.
49872         * modules/unictype/category-Cs: New file.
49873         * modules/unictype/category-Co: New file.
49874         * modules/unictype/category-Cn: New file.
49875         * modules/unictype/category-or: New file.
49876         * modules/unictype/category-of: New file.
49877         * modules/unictype/category-test: New file.
49878         * modules/unictype/category-test-withtable: New file.
49879         * modules/unictype/category-byname: New file.
49880         * modules/unictype/category-none: New file.
49881         * modules/unictype/category-and: New file.
49882         * modules/unictype/category-and-not: New file.
49883         * modules/unictype/category-name: New file.
49884         * modules/unictype/combining-class: New file.
49885         * modules/unictype/category-all: New file.
49886         * modules/unictype/bidicategory-all: New file.
49887         * modules/unictype/bidicategory-byname: New file.
49888         * modules/unictype/bidicategory-name: New file.
49889         * modules/unictype/bidicategory-of: New file.
49890         * modules/unictype/bidicategory-test: New file.
49891         * modules/unictype/decimal-digit: New file.
49892         * modules/unictype/digit: New file.
49893         * modules/unictype/numeric: New file.
49894         * modules/unictype/mirror: New file.
49895         * modules/unictype/property-white-space: New file.
49896         * modules/unictype/property-alphabetic: New file.
49897         * modules/unictype/property-other-alphabetic: New file.
49898         * modules/unictype/property-not-a-character: New file.
49899         * modules/unictype/property-default-ignorable-code-point: New file.
49900         * modules/unictype/property-other-default-ignorable-code-point: New
49901         file.
49902         * modules/unictype/property-deprecated: New file.
49903         * modules/unictype/property-logical-order-exception: New file.
49904         * modules/unictype/property-variation-selector: New file.
49905         * modules/unictype/property-private-use: New file.
49906         * modules/unictype/property-unassigned-code-value: New file.
49907         * modules/unictype/property-uppercase: New file.
49908         * modules/unictype/property-other-uppercase: New file.
49909         * modules/unictype/property-lowercase: New file.
49910         * modules/unictype/property-other-lowercase: New file.
49911         * modules/unictype/property-titlecase: New file.
49912         * modules/unictype/property-soft-dotted: New file.
49913         * modules/unictype/property-id-start: New file.
49914         * modules/unictype/property-other-id-start: New file.
49915         * modules/unictype/property-id-continue: New file.
49916         * modules/unictype/property-other-id-continue: New file.
49917         * modules/unictype/property-xid-start: New file.
49918         * modules/unictype/property-xid-continue: New file.
49919         * modules/unictype/property-pattern-white-space: New file.
49920         * modules/unictype/property-pattern-syntax: New file.
49921         * modules/unictype/property-join-control: New file.
49922         * modules/unictype/property-grapheme-base: New file.
49923         * modules/unictype/property-grapheme-extend: New file.
49924         * modules/unictype/property-other-grapheme-extend: New file.
49925         * modules/unictype/property-grapheme-link: New file.
49926         * modules/unictype/property-bidi-control: New file.
49927         * modules/unictype/property-bidi-left-to-right: New file.
49928         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49929         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49930         * modules/unictype/property-bidi-european-digit: New file.
49931         * modules/unictype/property-bidi-eur-num-separator: New file.
49932         * modules/unictype/property-bidi-eur-num-terminator: New file.
49933         * modules/unictype/property-bidi-arabic-digit: New file.
49934         * modules/unictype/property-bidi-common-separator: New file.
49935         * modules/unictype/property-bidi-block-separator: New file.
49936         * modules/unictype/property-bidi-segment-separator: New file.
49937         * modules/unictype/property-bidi-whitespace: New file.
49938         * modules/unictype/property-bidi-non-spacing-mark: New file.
49939         * modules/unictype/property-bidi-boundary-neutral: New file.
49940         * modules/unictype/property-bidi-pdf: New file.
49941         * modules/unictype/property-bidi-embedding-or-override: New file.
49942         * modules/unictype/property-bidi-other-neutral: New file.
49943         * modules/unictype/property-hex-digit: New file.
49944         * modules/unictype/property-ascii-hex-digit: New file.
49945         * modules/unictype/property-ideographic: New file.
49946         * modules/unictype/property-unified-ideograph: New file.
49947         * modules/unictype/property-radical: New file.
49948         * modules/unictype/property-ids-binary-operator: New file.
49949         * modules/unictype/property-ids-trinary-operator: New file.
49950         * modules/unictype/property-zero-width: New file.
49951         * modules/unictype/property-space: New file.
49952         * modules/unictype/property-non-break: New file.
49953         * modules/unictype/property-iso-control: New file.
49954         * modules/unictype/property-format-control: New file.
49955         * modules/unictype/property-dash: New file.
49956         * modules/unictype/property-hyphen: New file.
49957         * modules/unictype/property-punctuation: New file.
49958         * modules/unictype/property-line-separator: New file.
49959         * modules/unictype/property-paragraph-separator: New file.
49960         * modules/unictype/property-quotation-mark: New file.
49961         * modules/unictype/property-sentence-terminal: New file.
49962         * modules/unictype/property-terminal-punctuation: New file.
49963         * modules/unictype/property-currency-symbol: New file.
49964         * modules/unictype/property-math: New file.
49965         * modules/unictype/property-other-math: New file.
49966         * modules/unictype/property-paired-punctuation: New file.
49967         * modules/unictype/property-left-of-pair: New file.
49968         * modules/unictype/property-combining: New file.
49969         * modules/unictype/property-composite: New file.
49970         * modules/unictype/property-decimal-digit: New file.
49971         * modules/unictype/property-numeric: New file.
49972         * modules/unictype/property-diacritic: New file.
49973         * modules/unictype/property-extender: New file.
49974         * modules/unictype/property-ignorable-control: New file.
49975         * modules/unictype/property-test: New file.
49976         * modules/unictype/property-byname: New file.
49977         * modules/unictype/property-all: New file.
49978         * modules/unictype/scripts: New file.
49979         * modules/unictype/scripts-all: New file.
49980         * modules/unictype/block-of: New file.
49981         * modules/unictype/block-test: New file.
49982         * modules/unictype/block-list: New file.
49983         * modules/unictype/block-all: New file.
49984         * modules/unictype/syntax-c-whitespace: New file.
49985         * modules/unictype/syntax-java-whitespace: New file.
49986         * modules/unictype/syntax-c-ident: New file.
49987         * modules/unictype/syntax-java-ident: New file.
49988         * modules/unictype/ctype-alnum: New file.
49989         * modules/unictype/ctype-alpha: New file.
49990         * modules/unictype/ctype-cntrl: New file.
49991         * modules/unictype/ctype-digit: New file.
49992         * modules/unictype/ctype-graph: New file.
49993         * modules/unictype/ctype-lower: New file.
49994         * modules/unictype/ctype-print: New file.
49995         * modules/unictype/ctype-punct: New file.
49996         * modules/unictype/ctype-space: New file.
49997         * modules/unictype/ctype-upper: New file.
49998         * modules/unictype/ctype-xdigit: New file.
49999         * modules/unictype/ctype-blank: New file.
50000         * lib/unictype/bidi_byname.c: New file.
50001         * lib/unictype/bidi_name.c: New file.
50002         * lib/unictype/bidi_of.c: New file.
50003         * lib/unictype/bidi_test.c: New file.
50004         * lib/unictype/bitmap.h: New file.
50005         * lib/unictype/block_test.c: New file.
50006         * lib/unictype/blocks.c: New file.
50007         * lib/unictype/categ_C.c: New file.
50008         * lib/unictype/categ_Cc.c: New file.
50009         * lib/unictype/categ_Cf.c: New file.
50010         * lib/unictype/categ_Cn.c: New file.
50011         * lib/unictype/categ_Co.c: New file.
50012         * lib/unictype/categ_Cs.c: New file.
50013         * lib/unictype/categ_L.c: New file.
50014         * lib/unictype/categ_Ll.c: New file.
50015         * lib/unictype/categ_Lm.c: New file.
50016         * lib/unictype/categ_Lo.c: New file.
50017         * lib/unictype/categ_Lt.c: New file.
50018         * lib/unictype/categ_Lu.c: New file.
50019         * lib/unictype/categ_M.c: New file.
50020         * lib/unictype/categ_Mc.c: New file.
50021         * lib/unictype/categ_Me.c: New file.
50022         * lib/unictype/categ_Mn.c: New file.
50023         * lib/unictype/categ_N.c: New file.
50024         * lib/unictype/categ_Nd.c: New file.
50025         * lib/unictype/categ_Nl.c: New file.
50026         * lib/unictype/categ_No.c: New file.
50027         * lib/unictype/categ_P.c: New file.
50028         * lib/unictype/categ_Pc.c: New file.
50029         * lib/unictype/categ_Pd.c: New file.
50030         * lib/unictype/categ_Pe.c: New file.
50031         * lib/unictype/categ_Pf.c: New file.
50032         * lib/unictype/categ_Pi.c: New file.
50033         * lib/unictype/categ_Po.c: New file.
50034         * lib/unictype/categ_Ps.c: New file.
50035         * lib/unictype/categ_S.c: New file.
50036         * lib/unictype/categ_Sc.c: New file.
50037         * lib/unictype/categ_Sk.c: New file.
50038         * lib/unictype/categ_Sm.c: New file.
50039         * lib/unictype/categ_So.c: New file.
50040         * lib/unictype/categ_Z.c: New file.
50041         * lib/unictype/categ_Zl.c: New file.
50042         * lib/unictype/categ_Zp.c: New file.
50043         * lib/unictype/categ_Zs.c: New file.
50044         * lib/unictype/categ_and.c: New file.
50045         * lib/unictype/categ_and_not.c: New file.
50046         * lib/unictype/categ_byname.c: New file.
50047         * lib/unictype/categ_name.c: New file.
50048         * lib/unictype/categ_none.c: New file.
50049         * lib/unictype/categ_of.c: New file.
50050         * lib/unictype/categ_or.c: New file.
50051         * lib/unictype/categ_test.c: New file.
50052         * lib/unictype/combining.c: New file.
50053         * lib/unictype/ctype_alnum.c: New file.
50054         * lib/unictype/ctype_alpha.c: New file.
50055         * lib/unictype/ctype_blank.c: New file.
50056         * lib/unictype/ctype_cntrl.c: New file.
50057         * lib/unictype/ctype_digit.c: New file.
50058         * lib/unictype/ctype_graph.c: New file.
50059         * lib/unictype/ctype_lower.c: New file.
50060         * lib/unictype/ctype_print.c: New file.
50061         * lib/unictype/ctype_punct.c: New file.
50062         * lib/unictype/ctype_space.c: New file.
50063         * lib/unictype/ctype_upper.c: New file.
50064         * lib/unictype/ctype_xdigit.c: New file.
50065         * lib/unictype/decdigit.c: New file.
50066         * lib/unictype/digit.c: New file.
50067         * lib/unictype/identsyntaxmap.h: New file.
50068         * lib/unictype/mirror.c: New file.
50069         * lib/unictype/numeric.c: New file.
50070         * lib/unictype/pr_alphabetic.c: New file.
50071         * lib/unictype/pr_ascii_hex_digit.c: New file.
50072         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50073         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50074         * lib/unictype/pr_bidi_block_separator.c: New file.
50075         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50076         * lib/unictype/pr_bidi_common_separator.c: New file.
50077         * lib/unictype/pr_bidi_control.c: New file.
50078         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50079         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50080         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50081         * lib/unictype/pr_bidi_european_digit.c: New file.
50082         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50083         * lib/unictype/pr_bidi_left_to_right.c: New file.
50084         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50085         * lib/unictype/pr_bidi_other_neutral.c: New file.
50086         * lib/unictype/pr_bidi_pdf.c: New file.
50087         * lib/unictype/pr_bidi_segment_separator.c: New file.
50088         * lib/unictype/pr_bidi_whitespace.c: New file.
50089         * lib/unictype/pr_byname.c: New file.
50090         * lib/unictype/pr_byname.gperf: New file.
50091         * lib/unictype/pr_combining.c: New file.
50092         * lib/unictype/pr_composite.c: New file.
50093         * lib/unictype/pr_currency_symbol.c: New file.
50094         * lib/unictype/pr_dash.c: New file.
50095         * lib/unictype/pr_decimal_digit.c: New file.
50096         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50097         * lib/unictype/pr_deprecated.c: New file.
50098         * lib/unictype/pr_diacritic.c: New file.
50099         * lib/unictype/pr_extender.c: New file.
50100         * lib/unictype/pr_format_control.c: New file.
50101         * lib/unictype/pr_grapheme_base.c: New file.
50102         * lib/unictype/pr_grapheme_extend.c: New file.
50103         * lib/unictype/pr_grapheme_link.c: New file.
50104         * lib/unictype/pr_hex_digit.c: New file.
50105         * lib/unictype/pr_hyphen.c: New file.
50106         * lib/unictype/pr_id_continue.c: New file.
50107         * lib/unictype/pr_id_start.c: New file.
50108         * lib/unictype/pr_ideographic.c: New file.
50109         * lib/unictype/pr_ids_binary_operator.c: New file.
50110         * lib/unictype/pr_ids_trinary_operator.c: New file.
50111         * lib/unictype/pr_ignorable_control.c: New file.
50112         * lib/unictype/pr_iso_control.c: New file.
50113         * lib/unictype/pr_join_control.c: New file.
50114         * lib/unictype/pr_left_of_pair.c: New file.
50115         * lib/unictype/pr_line_separator.c: New file.
50116         * lib/unictype/pr_logical_order_exception.c: New file.
50117         * lib/unictype/pr_lowercase.c: New file.
50118         * lib/unictype/pr_math.c: New file.
50119         * lib/unictype/pr_non_break.c: New file.
50120         * lib/unictype/pr_not_a_character.c: New file.
50121         * lib/unictype/pr_numeric.c: New file.
50122         * lib/unictype/pr_other_alphabetic.c: New file.
50123         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50124         * lib/unictype/pr_other_grapheme_extend.c: New file.
50125         * lib/unictype/pr_other_id_continue.c: New file.
50126         * lib/unictype/pr_other_id_start.c: New file.
50127         * lib/unictype/pr_other_lowercase.c: New file.
50128         * lib/unictype/pr_other_math.c: New file.
50129         * lib/unictype/pr_other_uppercase.c: New file.
50130         * lib/unictype/pr_paired_punctuation.c: New file.
50131         * lib/unictype/pr_paragraph_separator.c: New file.
50132         * lib/unictype/pr_pattern_syntax.c: New file.
50133         * lib/unictype/pr_pattern_white_space.c: New file.
50134         * lib/unictype/pr_private_use.c: New file.
50135         * lib/unictype/pr_punctuation.c: New file.
50136         * lib/unictype/pr_quotation_mark.c: New file.
50137         * lib/unictype/pr_radical.c: New file.
50138         * lib/unictype/pr_sentence_terminal.c: New file.
50139         * lib/unictype/pr_soft_dotted.c: New file.
50140         * lib/unictype/pr_space.c: New file.
50141         * lib/unictype/pr_terminal_punctuation.c: New file.
50142         * lib/unictype/pr_test.c: New file.
50143         * lib/unictype/pr_titlecase.c: New file.
50144         * lib/unictype/pr_unassigned_code_value.c: New file.
50145         * lib/unictype/pr_unified_ideograph.c: New file.
50146         * lib/unictype/pr_uppercase.c: New file.
50147         * lib/unictype/pr_variation_selector.c: New file.
50148         * lib/unictype/pr_white_space.c: New file.
50149         * lib/unictype/pr_xid_continue.c: New file.
50150         * lib/unictype/pr_xid_start.c: New file.
50151         * lib/unictype/pr_zero_width.c: New file.
50152         * lib/unictype/scripts.c: New file.
50153         * lib/unictype/sy_c_ident.c: New file.
50154         * lib/unictype/sy_c_whitespace.c: New file.
50155         * lib/unictype/sy_java_ident.c: New file.
50156         * lib/unictype/sy_java_whitespace.c: New file.
50157
50158         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50159         Unicode 5.0.0.
50160         * lib/unictype/blocks.h: Likewise.
50161         * lib/unictype/categ_C.h: Likewise.
50162         * lib/unictype/categ_Cc.h: Likewise.
50163         * lib/unictype/categ_Cf.h: Likewise.
50164         * lib/unictype/categ_Cn.h: Likewise.
50165         * lib/unictype/categ_Co.h: Likewise.
50166         * lib/unictype/categ_Cs.h: Likewise.
50167         * lib/unictype/categ_L.h: Likewise.
50168         * lib/unictype/categ_Ll.h: Likewise.
50169         * lib/unictype/categ_Lm.h: Likewise.
50170         * lib/unictype/categ_Lo.h: Likewise.
50171         * lib/unictype/categ_Lt.h: Likewise.
50172         * lib/unictype/categ_Lu.h: Likewise.
50173         * lib/unictype/categ_M.h: Likewise.
50174         * lib/unictype/categ_Mc.h: Likewise.
50175         * lib/unictype/categ_Me.h: Likewise.
50176         * lib/unictype/categ_Mn.h: Likewise.
50177         * lib/unictype/categ_N.h: Likewise.
50178         * lib/unictype/categ_Nd.h: Likewise.
50179         * lib/unictype/categ_Nl.h: Likewise.
50180         * lib/unictype/categ_No.h: Likewise.
50181         * lib/unictype/categ_P.h: Likewise.
50182         * lib/unictype/categ_Pc.h: Likewise.
50183         * lib/unictype/categ_Pd.h: Likewise.
50184         * lib/unictype/categ_Pe.h: Likewise.
50185         * lib/unictype/categ_Pf.h: Likewise.
50186         * lib/unictype/categ_Pi.h: Likewise.
50187         * lib/unictype/categ_Po.h: Likewise.
50188         * lib/unictype/categ_Ps.h: Likewise.
50189         * lib/unictype/categ_S.h: Likewise.
50190         * lib/unictype/categ_Sc.h: Likewise.
50191         * lib/unictype/categ_Sk.h: Likewise.
50192         * lib/unictype/categ_Sm.h: Likewise.
50193         * lib/unictype/categ_So.h: Likewise.
50194         * lib/unictype/categ_Z.h: Likewise.
50195         * lib/unictype/categ_Zl.h: Likewise.
50196         * lib/unictype/categ_Zp.h: Likewise.
50197         * lib/unictype/categ_Zs.h: Likewise.
50198         * lib/unictype/categ_of.h: Likewise.
50199         * lib/unictype/combining.h: Likewise.
50200         * lib/unictype/ctype_alnum.h: Likewise.
50201         * lib/unictype/ctype_alpha.h: Likewise.
50202         * lib/unictype/ctype_blank.h: Likewise.
50203         * lib/unictype/ctype_cntrl.h: Likewise.
50204         * lib/unictype/ctype_digit.h: Likewise.
50205         * lib/unictype/ctype_graph.h: Likewise.
50206         * lib/unictype/ctype_lower.h: Likewise.
50207         * lib/unictype/ctype_print.h: Likewise.
50208         * lib/unictype/ctype_punct.h: Likewise.
50209         * lib/unictype/ctype_space.h: Likewise.
50210         * lib/unictype/ctype_upper.h: Likewise.
50211         * lib/unictype/ctype_xdigit.h: Likewise.
50212         * lib/unictype/decdigit.h: Likewise.
50213         * lib/unictype/digit.h: Likewise.
50214         * lib/unictype/mirror.h: Likewise.
50215         * lib/unictype/numeric.h: Likewise.
50216         * lib/unictype/pr_alphabetic.h: Likewise.
50217         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50218         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50219         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50220         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50221         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50222         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50223         * lib/unictype/pr_bidi_control.h: Likewise.
50224         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50225         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50226         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50227         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50228         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50229         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50230         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50231         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50232         * lib/unictype/pr_bidi_pdf.h: Likewise.
50233         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50234         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50235         * lib/unictype/pr_combining.h: Likewise.
50236         * lib/unictype/pr_composite.h: Likewise.
50237         * lib/unictype/pr_currency_symbol.h: Likewise.
50238         * lib/unictype/pr_dash.h: Likewise.
50239         * lib/unictype/pr_decimal_digit.h: Likewise.
50240         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50241         * lib/unictype/pr_deprecated.h: Likewise.
50242         * lib/unictype/pr_diacritic.h: Likewise.
50243         * lib/unictype/pr_extender.h: Likewise.
50244         * lib/unictype/pr_format_control.h: Likewise.
50245         * lib/unictype/pr_grapheme_base.h: Likewise.
50246         * lib/unictype/pr_grapheme_extend.h: Likewise.
50247         * lib/unictype/pr_grapheme_link.h: Likewise.
50248         * lib/unictype/pr_hex_digit.h: Likewise.
50249         * lib/unictype/pr_hyphen.h: Likewise.
50250         * lib/unictype/pr_id_continue.h: Likewise.
50251         * lib/unictype/pr_id_start.h: Likewise.
50252         * lib/unictype/pr_ideographic.h: Likewise.
50253         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50254         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50255         * lib/unictype/pr_ignorable_control.h: Likewise.
50256         * lib/unictype/pr_iso_control.h: Likewise.
50257         * lib/unictype/pr_join_control.h: Likewise.
50258         * lib/unictype/pr_left_of_pair.h: Likewise.
50259         * lib/unictype/pr_line_separator.h: Likewise.
50260         * lib/unictype/pr_logical_order_exception.h: Likewise.
50261         * lib/unictype/pr_lowercase.h: Likewise.
50262         * lib/unictype/pr_math.h: Likewise.
50263         * lib/unictype/pr_non_break.h: Likewise.
50264         * lib/unictype/pr_not_a_character.h: Likewise.
50265         * lib/unictype/pr_numeric.h: Likewise.
50266         * lib/unictype/pr_other_alphabetic.h: Likewise.
50267         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50268         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50269         * lib/unictype/pr_other_id_continue.h: Likewise.
50270         * lib/unictype/pr_other_id_start.h: Likewise.
50271         * lib/unictype/pr_other_lowercase.h: Likewise.
50272         * lib/unictype/pr_other_math.h: Likewise.
50273         * lib/unictype/pr_other_uppercase.h: Likewise.
50274         * lib/unictype/pr_paired_punctuation.h: Likewise.
50275         * lib/unictype/pr_paragraph_separator.h: Likewise.
50276         * lib/unictype/pr_pattern_syntax.h: Likewise.
50277         * lib/unictype/pr_pattern_white_space.h: Likewise.
50278         * lib/unictype/pr_private_use.h: Likewise.
50279         * lib/unictype/pr_punctuation.h: Likewise.
50280         * lib/unictype/pr_quotation_mark.h: Likewise.
50281         * lib/unictype/pr_radical.h: Likewise.
50282         * lib/unictype/pr_sentence_terminal.h: Likewise.
50283         * lib/unictype/pr_soft_dotted.h: Likewise.
50284         * lib/unictype/pr_space.h: Likewise.
50285         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50286         * lib/unictype/pr_titlecase.h: Likewise.
50287         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50288         * lib/unictype/pr_unified_ideograph.h: Likewise.
50289         * lib/unictype/pr_uppercase.h: Likewise.
50290         * lib/unictype/pr_variation_selector.h: Likewise.
50291         * lib/unictype/pr_white_space.h: Likewise.
50292         * lib/unictype/pr_xid_continue.h: Likewise.
50293         * lib/unictype/pr_xid_start.h: Likewise.
50294         * lib/unictype/pr_zero_width.h: Likewise.
50295         * lib/unictype/scripts.h: Likewise.
50296         * lib/unictype/scripts_byname.gperf: Likewise.
50297         * lib/unictype/sy_c_ident.h: Likewise.
50298         * lib/unictype/sy_c_whitespace.h: Likewise.
50299         * lib/unictype/sy_java_ident.h: Likewise.
50300         * lib/unictype/sy_java_whitespace.h: Likewise.
50301
50302         * lib/unictype/Makefile: New file.
50303         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50304         glibc.
50305         * lib/unictype/3level.h: New file, copied from glibc.
50306         * lib/unictype/3levelbit.h: New file.
50307
50308 2007-11-11  Bruno Haible  <bruno@clisp.org>
50309
50310         * modules/gperf: New file.
50311         * modules/iconv_open (Depends-on): Add it.
50312         (Makefile.am): Remove the GPERF definition.
50313
50314 2007-11-11  Bruno Haible  <bruno@clisp.org>
50315
50316         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50317         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50318
50319 2007-11-11  Bruno Haible  <bruno@clisp.org>
50320
50321         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50322         (usage): Remove function.
50323
50324 2007-11-11  Bruno Haible  <bruno@clisp.org>
50325
50326         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50327         gl_FUNC_CEILF_LIBS.
50328         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50329         gl_FUNC_CEIL_LIBS.
50330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50331         gl_FUNC_CEILL_LIBS.
50332         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50333         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50334         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50335
50336 2007-11-11  Bruno Haible  <bruno@clisp.org>
50337
50338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50339         roundf were declared but do not exist on functions.
50340         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50341         roundl were declared but do not exist on functions.
50342         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50343         HAVE_FLOORL_AND_CEILL, respectively.
50344         Needed for Sun C on Solaris 10.
50345
50346 2007-11-11  Bruno Haible  <bruno@clisp.org>
50347
50348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50349         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50350         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50351         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50352         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50353         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50354         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50355         HAVE_DECL_ROUNDF.
50356         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50357         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50359         of HAVE_DECL_ROUND*.
50360         * modules/math (Makefile.am): Update.
50361
50362 2007-11-10  Bruno Haible  <bruno@clisp.org>
50363
50364         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50365         ptrdiff_t as m4/intl.m4.
50366
50367 2007-11-10  Jim Meyering  <meyering@redhat.com>
50368
50369         Avoid link failure for the argmatch test.
50370         * tests/test-argmatch.c (usage): Define function to avoid a link
50371         failure: argmatch_die requires a usage function.
50372
50373 2007-11-09  Bruno Haible  <bruno@clisp.org>
50374
50375         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50376         * doc/functions/vsnprintf.texi: Likewise.
50377         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50378         with a size argument < 2.
50379
50380 2007-11-09  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50383         buffer. Fixes an inefficiency introduced on 2007-11-03.
50384
50385 2007-11-09  Bruno Haible  <bruno@clisp.org>
50386
50387         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50388         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50389
50390 2007-11-08  Jim Meyering  <meyering@redhat.com>
50391
50392         Change cache variable name prefix "jm_" to "gl_" everywhere.
50393         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50394         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50395         * m4/uptime.m4: s/gl_/jm_/
50396
50397 2007-11-07  Bruno Haible  <bruno@clisp.org>
50398
50399         Update to GNU gettext 0.17.
50400         * m4/intl.m4: Update to GNU gettext 0.17.
50401         * m4/po.m4: Likewise.
50402         * modules/gettext (Files): Remove m4/ulonglong.m4.
50403         (configure.ac): Require gettext infrastructure from version 0.17.
50404
50405 2007-11-06  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50408         symbolic values are not defined in a public header.
50409         * lib/freadable.c (freadable) [QNX]: Likewise.
50410         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50411         * lib/freading.c (freading) [QNX]: Likewise.
50412         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50413         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50414         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50415         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50416         Reported by Alain Magloire.
50417
50418         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50419
50420 2007-11-05  Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50423         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50424         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50425         Reported by Eric Blake.
50426
50427 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50428             Bruno Haible  <bruno@clisp.org>
50429
50430         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50431         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50432         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50433         (malloc): Undefine also before including <stdlib.h>.
50434         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50435         Needed on OSF/1 4.0.
50436
50437 2007-11-05  Jim Meyering  <meyering@redhat.com>
50438
50439         git-version-gen: sync from coreutils.
50440         * build-aux/git-version-gen: Add comments.
50441         Change the first '-' to '.' in the snapshot version string,
50442         e.g., 6.9-377-08144 -> 6.9.377-08144
50443         Remove first parameter.
50444         Don't declare a version "-dirty" merely because a time
50445         stamp has changed.
50446
50447 2007-11-04  Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/lock.h: Protect all macro definitions containing an 'if'
50450         statement through a "do { ... } while (0)".
50451         * lib/tls.h: Likewise.
50452
50453 2007-11-04  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50456
50457 2007-11-04  Bruno Haible  <bruno@clisp.org>
50458
50459         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50460         * modules/fprintf-posix (Depends-on): Add nocrash.
50461         * modules/snprintf-posix (Depends-on): Likewise.
50462         * modules/sprintf-posix (Depends-on): Likewise.
50463         * modules/vasnprintf-posix (Depends-on): Likewise.
50464         * modules/vasprintf-posix (Depends-on): Likewise.
50465         * modules/vfprintf-posix (Depends-on): Likewise.
50466         * modules/vsnprintf-posix (Depends-on): Likewise.
50467         * modules/vsprintf-posix (Depends-on): Likewise.
50468         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50469         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50470         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50471         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50472         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50473         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50474         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50475
50476 2007-11-04  Bruno Haible  <bruno@clisp.org>
50477
50478         * modules/nocrash: New file.
50479         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50480         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50481
50482 2007-11-04  Bruno Haible  <bruno@clisp.org>
50483
50484         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50485         precision handling.
50486         * tests/test-vasprintf-posix.c (test_function): Likewise.
50487         * tests/test-snprintf-posix.h (test_function): Likewise.
50488         * tests/test-sprintf-posix.h (test_function): Likewise.
50489
50490         Fix *printf behaviour for large precisions on mingw and BeOS.
50491         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50492         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50494         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50496         gl_PRINTF_PRECISION and test its result. Invoke
50497         gl_PREREQ_VASNPRINTF_PRECISION.
50498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50500         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50505         * doc/functions/fprintf.texi: Update.
50506         * doc/functions/printf.texi: Update.
50507         * doc/functions/snprintf.texi: Update.
50508         * doc/functions/sprintf.texi: Update.
50509         * doc/functions/vfprintf.texi: Update.
50510         * doc/functions/vprintf.texi: Update.
50511         * doc/functions/vsnprintf.texi: Update.
50512         * doc/functions/vsprintf.texi: Update.
50513
50514 2007-11-04  Bruno Haible  <bruno@clisp.org>
50515
50516         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50517
50518 2007-11-04  Bruno Haible  <bruno@clisp.org>
50519
50520         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50521         Reported by Sylvain Beucler <beuc@gnu.org>.
50522
50523 2007-11-03  Bruno Haible  <bruno@clisp.org>
50524
50525         * tests/test-fprintf-posix2.sh: New file.
50526         * tests/test-fprintf-posix2.c: New file.
50527         * modules/fprintf-posix-tests (Files): Add them.
50528         (TESTS): Add test-fprintf-posix2.sh.
50529         (configure.ac): Check for getrlimit and setrlimit.
50530         (check_PROGRAMS): Add test-fprintf-posix2.
50531
50532         * tests/test-printf-posix2.sh: New file.
50533         * tests/test-printf-posix2.c: New file.
50534         * modules/printf-posix-tests (Files): Add them.
50535         (TESTS): Add test-printf-posix2.sh.
50536         (configure.ac): Check for getrlimit and setrlimit.
50537         (check_PROGRAMS): Add test-printf-posix2.
50538
50539         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50540         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50541         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50542         (decode_double): New function, copied from decode_long_double.
50543         (scale10_round_decimal_decoded): New function, extracted from
50544         scale10_round_decimal_long_double.
50545         (scale10_round_decimal_long_double): Use it.
50546         (scale10_round_decimal_double): New function.
50547         (floorlog10): New function.
50548         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50550         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50552         gl_PRINTF_ENOMEM and test its result. Invoke
50553         gl_PREREQ_VASNPRINTF_ENOMEM.
50554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50561         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50562         * modules/snprintf-posix (Depends-on): Likewise.
50563         * modules/sprintf-posix (Depends-on): Likewise.
50564         * modules/vasnprintf-posix (Depends-on): Likewise.
50565         * modules/vasprintf-posix (Depends-on): Likewise.
50566         * modules/vfprintf-posix (Depends-on): Likewise.
50567         * modules/vsnprintf-posix (Depends-on): Likewise.
50568         * modules/vsprintf-posix (Depends-on): Likewise.
50569         * doc/functions/fprintf.texi: Update.
50570         * doc/functions/printf.texi: Update.
50571         * doc/functions/snprintf.texi: Update.
50572         * doc/functions/sprintf.texi: Update.
50573         * doc/functions/vfprintf.texi: Update.
50574         * doc/functions/vprintf.texi: Update.
50575         * doc/functions/vsnprintf.texi: Update.
50576         * doc/functions/vsprintf.texi: Update.
50577
50578 2007-11-03  Bruno Haible  <bruno@clisp.org>
50579
50580         * modules/frexp-nolibm-tests: New file.
50581
50582         * modules/frexp-nolibm: New file.
50583         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50584
50585 2007-11-03  Bruno Haible  <bruno@clisp.org>
50586
50587         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50588         value is C99 compliant.
50589         Needed for OSF/1 5.1.
50590
50591 2007-11-03  Bruno Haible  <bruno@clisp.org>
50592
50593         Fix out-of-memory handling of vasnprintf.
50594         * lib/printf-parse.c: Include <errno.h>.
50595         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50596         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50597         is already set.
50598
50599 2007-11-02  Eric Blake  <ebb9@byu.net>
50600
50601         Fix tests on cygwin.
50602         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50603
50604 2007-11-01  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50607         warning.
50608         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50609         needed for POSIX compatibility.
50610
50611 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50612
50613         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50614         for compatibility with GNU.
50615
50616 2007-11-01  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50619         (putenv): Renamed from rpl_putenv. Change argument type from
50620         'const char *' to 'char *'.
50621         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50622         of defining putenv in config.h, just set REPLACE_PUTENV.
50623         * modules/putenv (Depends-on): Add stdlib.
50624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50625         (Include): Use <stdlib.h>.
50626         * lib/stdlib.in.h (putenv): New declaration.
50627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50628         REPLACE_PUTENV.
50629         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50630         REPLACE_PUTENV.
50631         Needed for MacOS X 10.5.0.
50632         Reported by Peter O'Gorman <peter@pogma.com>.
50633
50634 2007-11-01  Jim Meyering  <meyering@redhat.com>
50635
50636         Treat an empty date string exactly like "0".
50637         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50638         if the remaining date string (to be parsed) is empty, use "0".
50639         Reported by Mischa Molhoek and discussed in this thread:
50640         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50641
50642 2007-10-31  Bruno Haible  <bruno@clisp.org>
50643
50644         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50645         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50646         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50647         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50648         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50649         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50650
50651 2007-10-31  Bruno Haible  <bruno@clisp.org>
50652
50653         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50654         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50655         (AC_TYPE_LONG_LONG_INT): Use it.
50656         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50657         it as well.
50658         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50659         to m4/longlong.m4.
50660         * modules/stdint (Files): Remove m4/ulonglong.m4.
50661         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50662         m4/ulonglong.m4.
50663         * modules/strtoumax (Files): Likewise.
50664
50665 2007-10-30  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/xvasprintf-posix: New file.
50668         Suggested by Eric Blake.
50669
50670 2007-10-30  Bruno Haible  <bruno@clisp.org>
50671
50672         * modules/xprintf-posix-tests: New file.
50673         * tests/test-xprintf-posix.sh: New file.
50674         * tests/test-xprintf-posix.c: New file.
50675         * tests/test-xfprintf-posix.c: New file.
50676
50677         * modules/xprintf-posix: New file.
50678
50679 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50680
50681         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50682         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50683         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50684
50685 2007-10-29  Bruno Haible  <bruno@clisp.org>
50686
50687         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50688         contain the special marker '_cv_'.
50689         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50690         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50691         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50692         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50693         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50694         Reported by Ralf Wildenhues.
50695
50696 2007-10-29  Bruno Haible  <bruno@clisp.org>
50697
50698         * gnulib-tool (func_import): When --lgpl is not specified, set
50699         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50700         GPLv3.
50701         Reported by Simon Josefsson.
50702
50703 2007-10-28  Bruno Haible  <bruno@clisp.org>
50704
50705         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50706         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50707         HAVE_DECL_ISFINITE.
50708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50709         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50710         HAVE_DECL_ISFINITE.
50711
50712 2007-10-28  Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50715         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50716
50717 2007-10-28  Bruno Haible  <bruno@clisp.org>
50718
50719         Fix link errors with Sun C 5.0 on Solaris 10.
50720         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50721         function is declared but not present in the compiler's libm.
50722         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50723         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50724         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50725         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50726         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50727         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50728         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50730         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50731         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50732         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50733         HAVE_DECL_FLOORL.
50734
50735 2007-10-28  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50738         gl_FUNC_FLOORL. Cache the result.
50739         (gl_FUNC_FLOORL): Use it.
50740         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50741         gl_FUNC_CEILL. Cache the result.
50742         (gl_FUNC_CEILL): Use it.
50743
50744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50745         gl_FUNC_FLOOR. Cache the result.
50746         (gl_FUNC_FLOOR): Use it.
50747         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50748         gl_FUNC_CEIL. Cache the result.
50749         (gl_FUNC_CEIL): Use it.
50750
50751         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50752         gl_FUNC_FLOORF. Cache the result.
50753         (gl_FUNC_FLOORF): Use it.
50754         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50755         gl_FUNC_CEILF. Cache the result.
50756         (gl_FUNC_CEILF): Use it.
50757
50758 2007-10-28  Bruno Haible  <bruno@clisp.org>
50759
50760         * gnulib-tool: Allow specifying the LGPL version number through
50761         --lgpl=2 or --lgpl=3.
50762         (func_usage): Document --lgpl with argument.
50763         Handle --lgpl=... arguments.
50764         (func_import): Recognize also gl_LGPL calls with an argument. When
50765         --lgpl=2 is used and the module's license is just LGPL, report an
50766         error. Set sed_transform_lib_file according to the lgpl variable. In
50767         the generated files, use --lgpl or gl_LGPL invocations with argument,
50768         if necessary.
50769         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50770         an LGPv2+ license.
50771         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50772         gl_LGPL macro.
50773
50774 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50775             Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50778         (u16_uctomb_aux): Likewise.
50779         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50780         !HAVE_INLINE.
50781         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50782
50783 2007-10-28  Bruno Haible  <bruno@clisp.org>
50784
50785         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50786         Invoke AM_GETTEXT_OPTION if it exists.
50787         * modules/vasprintf: Likewise.
50788         * modules/verror: Likewise.
50789         * modules/xprintf: Likewise.
50790         * modules/xvasprintf: Likewise.
50791
50792 2007-10-27  Ben Pfaff  <blp@gnu.org>
50793
50794         * lib/math.in.h: Define isfinite macro and prototypes for
50795         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50796         implementations.
50797         * m4/math_h.m4: New substitutions for isfinite module.
50798         * lib/isfinite.c: New file.
50799         * m4/isfinite.m4: New file.
50800         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50801         * modules/isfinite: New file.
50802         * modules/isfinite-tests: New file.
50803         * tests/tests-isfinite.c: New file.
50804         * doc/functions/isfinite.texi: Mention isfinite module.
50805         * MODULES.html.sh: Mention new module.
50806
50807 2007-10-27  Ben Pfaff  <blp@gnu.org>
50808
50809         Ralf Wildenhues reported that Tru64 4.0D declares the round
50810         functions but does not have definitions.
50811         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50812         cannot be found in any library, set the output variable to
50813         "missing" instead of "".
50814         * m4/round.m4: Also use our substitute if we cannot find round in
50815         any library, even if it is declared.
50816         * m4/roundf.m4: Likewise for roundf.
50817         * m4/roundl.m4: Likewise for roundl.
50818         * lib/math.in.h: Undefine roundf, round, roundl before defining
50819         their replacements, to allow for hypothetical systems where these
50820         may be defined as macros but not available in libraries.
50821
50822 2007-10-27  Bruno Haible  <bruno@clisp.org>
50823
50824         * doc/gnulib.texi: Invoke @firstparagraphindent.
50825         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50826         changes in gnulib.
50827         (Source changes): New section.
50828
50829 2007-10-26  Bruno Haible  <bruno@clisp.org>
50830
50831         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50832         borrowed from autoconf.
50833
50834 2007-10-26  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50837         strerror returned the empty string. Needed on HP-UX 11.00.
50838
50839 2007-10-24  Micah Cowan  <micah@cowan.name>
50840
50841         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50842         * build-aux/bootstrap: Remove support for now-unnecessary option,
50843         --cvs-user, and envvars CVS_USER, CVS_RSH.
50844
50845 2007-10-24  Jim Meyering  <meyering@redhat.com>
50846
50847         Avoid diagnostics from sha1sum when there is no cached checksum.
50848         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50849         if the po.s1 file hasn't been created yet.
50850
50851         * build-aux/bootstrap: Sync from coreutils:
50852         2007-10-24  Jim Meyering  <meyering@redhat.com>
50853         Get gnulib from the git repository, not from an obsolete cvs one.
50854         * build-aux/bootstrap: Suggestion from Micah Cowan.
50855         2007-10-04  Jim Meyering  <jim@meyering.net>
50856         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50857         (update_po_files): Work also when there are no .po files in po/.
50858
50859 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50860
50861         * README: Append ".git" to git and cg examples.
50862         Problem reported by Benoit Sigoure.
50863
50864 2007-10-23  Micah Cowan  <micah@cowan.name>
50865
50866         * users.txt: Add wget.
50867
50868 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50869
50870         Fix linking of some unistdio tests on FreeBSD.
50871         * modules/unistdio/u16-vsnprintf-tests
50872         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50873         * modules/unistdio/u16-vsprintf-tests
50874         (test_u16_vsnprintf1_LDADD): Likewise.
50875         * modules/unistdio/u32-vsnprintf-tests
50876         (test_u32_vsnprintf1_LDADD): Likewise.
50877         * modules/unistdio/u32-vsprintf-tests
50878         (test_u32_vsprintf1_LDADD): Likewise.
50879         * modules/unistdio/u8-vsnprintf-tests
50880         (test_u8_vsnprintf1_LDADD): Likewise.
50881         * modules/unistdio/u8-vsprintf-tests
50882         (test_u8_vsprintf1_LDADD): Likewise.
50883         * modules/unistdio/ulc-vsnprintf-tests
50884         (test_ulc_vsnprintf1_LDADD): Likewise.
50885         * modules/unistdio/ulc-vsprintf-tests
50886         (test_ulc_vsprintf1_LDADD): Likewise.
50887
50888         Fix linking of some uniconv tests on FreeBSD.
50889         * modules/uniconv/u16-conv-from-enc-tests
50890         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50891         * modules/uniconv/u16-conv-to-enc-tests
50892         (test_u16_conv_to_enc_LDADD): Likewise.
50893         * modules/uniconv/u16-strconv-from-enc-tests
50894         (test_u16_strconv_from_enc_LDADD): Likewise.
50895         * modules/uniconv/u16-strconv-to-enc-tests
50896         (test_u16_strconv_to_enc_LDADD): Likewise.
50897         * modules/uniconv/u32-conv-from-enc-tests
50898         (test_u32_conv_from_enc_LDADD): Likewise.
50899         * modules/uniconv/u32-conv-to-enc-tests
50900         (test_u32_conv_to_enc_LDADD): Likewise.
50901         * modules/uniconv/u32-strconv-from-enc-tests
50902         (test_u32_strconv_from_enc_LDADD): Likewise.
50903         * modules/uniconv/u32-strconv-to-enc-tests
50904         (test_u32_strconv_to_enc_LDADD): Likewise.
50905         * modules/uniconv/u8-conv-from-enc-tests
50906         (test_u8_conv_from_enc_LDADD): Likewise.
50907         * modules/uniconv/u8-conv-to-enc-tests
50908         (test_u8_conv_to_enc_LDADD): Likewise.
50909         * modules/uniconv/u8-strconv-from-enc-tests
50910         (test_u8_strconv_from_enc_LDADD): Likewise.
50911         * modules/uniconv/u8-strconv-to-enc-tests
50912         (test_u8_strconv_to_enc_LDADD): Likewise.
50913
50914 2007-10-22  Bruno Haible  <bruno@clisp.org>
50915
50916         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50917         size.
50918
50919 2007-10-22  Eric Blake  <ebb9@byu.net>
50920
50921         Tweak x*printf documentation.
50922         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50923         variable name and comments.
50924         Suggested by Bruno Haible.
50925
50926 2007-10-22  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/acl.c (copy_acl): Fix file name in comment.
50929
50930 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50931
50932         Fix Tru64 problem with stdbool.h.
50933         * lib/stdbool.in.h (false, true):
50934         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50935         Don't declare as an enum in this situation; it runs afoul of Tru64.
50936         Problem reported by Steven M. Schweda in
50937         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50938
50939 2007-10-22  Eric Blake  <ebb9@byu.net>
50940
50941         Also wrap vf?printf.
50942         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50943         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50944         (xvprintf, xvfprintf): New functions.
50945
50946 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50947
50948         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50949         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50950
50951         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50952         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50953
50954 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50957         by Bruno Haible.
50958
50959 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50960
50961         * lib/getloadavg.c
50962         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50963         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50964
50965         * tests/test-i-ring.c: Work for C89.
50966
50967 2007-10-22  Bruno Haible  <bruno@clisp.org>
50968
50969         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50970         -1u, in preprocessor expression, so that we don't test for the bug
50971         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50972         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50973
50974 2007-10-22  Eric Blake  <ebb9@byu.net>
50975
50976         * tests/test-yesno.sh: Silence stderr during test.
50977
50978 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50979
50980         * modules/crypto/gc-camellia: New file.
50981
50982         * m4/gc-camellia.m4: New file.
50983
50984         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50985
50986         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50987
50988 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50989
50990         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50991         --help to stdout.  Reported by sms@antinode.org (Steven
50992         M. Schweda).
50993
50994 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50995
50996         * users.txt: Fix link to libksba.
50997
50998 2007-10-21  Ben Pfaff  <blp@gnu.org>
50999
51000         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51001         round.c roundf implementation that depends on floorf and ceilf to
51002         be tested unconditionally.
51003
51004 2007-10-21  Ben Pfaff  <blp@gnu.org>
51005
51006         * m4/check-libm-func.m4: Removed.
51007         * m4/check-math-lib.m4: New file.
51008         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51009         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51010         definition and lack of AC_LIBOBJ([roundf]).
51011         * m4/roundl.m4: Ditto, and similarly for roundl.
51012         * modules/round: Reference new m4 file.
51013         * modules/roundf: Ditto.
51014         * modules/roundl: Ditto.
51015         * tests/test-round2.c (main): Use ROUND instead of round.
51016         Bug report from Bruno Haible.
51017
51018 2007-10-21  Bruno Haible  <bruno@clisp.org>
51019
51020         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51021         context.
51022
51023 2007-10-21  Bruno Haible  <bruno@clisp.org>
51024
51025         * tests/test-wcwidth.c (main): Allow negative result for some control
51026         characters.
51027
51028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51029         Needed on OSF/1 5.1.
51030
51031 2007-10-21  Bruno Haible  <bruno@clisp.org>
51032
51033         * tests/test-floorf1.c: Include isnanf.h.
51034         (main): Use isnanf() instead of isnan().
51035         * tests/test-ceilf1.c: Include isnanf.h.
51036         (main): Use isnanf() instead of isnan().
51037         * tests/test-truncf1.c: Include isnanf.h.
51038         (main): Use isnanf() instead of isnan().
51039         * tests/test-roundf1.c: Include isnanf.h.
51040         (main): Use isnanf() instead of isnan().
51041
51042 2007-10-21  Eric Blake  <ebb9@byu.net>
51043
51044         * users.txt: Update URL for m4.
51045
51046 2007-10-21  Bruno Haible  <bruno@clisp.org>
51047
51048         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51049
51050 2007-10-21  Bruno Haible  <bruno@clisp.org>
51051
51052         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51053         Git's management files if the CVS files are not present.
51054
51055 2007-10-20  Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51058         gcc-3.4.x.
51059
51060 2007-10-20  Ben Pfaff  <blp@gnu.org>
51061
51062         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51063         implementations.
51064         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51065         * lib/round.c: New file.
51066         * lib/roundf.c: New file.
51067         * lib/roundl.c: New file.
51068         * m4/round.m4: New file.
51069         * m4/roundf.m4: New file.
51070         * m4/roundl.m4: New file.
51071         * m4/check-libm-func-m4: New file.
51072         * modules/math: Replace round, roundf, roundl related @VARS@ in
51073         math.in.h.
51074         * modules/round: New file.
51075         * modules/round-tests: New file.
51076         * modules/roundf: New file.
51077         * modules/roundf-tests: New file.
51078         * modules/roundl: New file.
51079         * modules/roundl-tests: New file.
51080         * tests/test-round1.c: New file.
51081         * tests/test-round2.c: New file.
51082         * tests/test-roundf1.c: New file.
51083         * tests/test-roundf2.c: New file.
51084         * tests/test-roundl.c: New file.
51085         * doc/functions/round.texi: Mention round module.
51086         * doc/functions/roundf.texi: Mention roundf module.
51087         * doc/functions/roundl.texi: Mention roundl module.
51088         * MODULES.html.sh: Mention new modules.
51089         Thanks to Bruno Haible for suggestions.
51090
51091 2007-10-20  Jim Meyering  <meyering@redhat.com>
51092
51093         * lib/xprintf.c: Include <config.h> unconditionally.
51094
51095         Change xprintf's license to GPL.
51096         * modules/xprintf (License): s/LGPL/GPL/, since this module
51097         depends on modules (exit and exitfail) which are GPL.
51098         Suggestion from Bruno Haible.
51099
51100         xprintf fixes.
51101         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51102         Use a clearer diagnostic.
51103         Patch from Bruno Haible.
51104
51105 2007-10-20  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51108         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51110
51111 2007-10-20  Bruno Haible  <bruno@clisp.org>
51112
51113         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51114         precision in the comparison result > x - 1 or similar.
51115         * tests/test-ceilf2.c (correct_result_p): Likewise.
51116         * tests/test-truncf2.c (correct_result_p): Likewise.
51117         * tests/test-trunc2.c (correct_result_p): Likewise.
51118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51119
51120 2007-10-20  Bruno Haible  <bruno@clisp.org>
51121
51122         * modules/ceil: New file.
51123         * m4/ceil.m4: New file.
51124         * doc/functions/ceil.texi: Mention the 'ceil' module.
51125
51126 2007-10-20  Bruno Haible  <bruno@clisp.org>
51127
51128         * modules/floor: New file.
51129         * m4/floor.m4: New file.
51130         * doc/functions/floor.texi: Mention the 'floor' module.
51131
51132 2007-10-20  Bruno Haible  <bruno@clisp.org>
51133
51134         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51135         of %a.
51136         * modules/floorf-tests (Depends-on): Likewise.
51137         * modules/truncf-tests (Depends-on): Likewise.
51138         * modules/trunc-tests (Depends-on): Likewise.
51139         Reported by Ben Pfaff.
51140
51141 2007-10-19  Jim Meyering  <meyering@redhat.com>
51142
51143         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51144         Don't bother testing specific errno values.  Just test ferror.
51145
51146         New module: xprintf
51147         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51148
51149 2007-10-19  Bruno Haible  <bruno@clisp.org>
51150
51151         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51152         syntax.
51153         * modules/javaexec (Makefile.am): Likewise.
51154         * modules/relocatable-prog (Makefile.am): Likewise.
51155         Suggested by Jim Meyering.
51156
51157 2007-10-18  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51160         Reported by Jim Meyering.
51161
51162 2007-10-18  Eric Blake  <ebb9@byu.net>
51163
51164         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51165
51166 2007-10-18  Bruno Haible  <bruno@clisp.org>
51167
51168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51169         the format string into writable memory. Needed in Fortify conditions.
51170
51171 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51172             Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51175         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51176         * modules/trim (Depends-on): Add mbchar.
51177         (configure.ac): Add gl_FUNC_MBRTOWC.
51178         (Makefile.am): Augment lib_SOURCES.
51179
51180 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         Modify glob.c to use fstatat and dirfd, to simplify it.
51183         Suggested by Eric Blake.
51184         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51185         Don't include <stdbool.h>; not used.
51186         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51187         (link_exists_p): Simplify implementation, since we can now assume
51188         dirfd and fstatat.
51189         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51190
51191 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51192
51193         * gnulib-tool (func_get_dependencies): Fix sed script to
51194         match only tests.
51195
51196 2007-10-17  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51199         allow locale names without encoding suffix.
51200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51201         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51202
51203 2007-10-16  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51206         * lib/getgroups.c (getgroups): Likewise.
51207         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51208
51209 2007-10-16  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51212         * modules/malloc-posix (License): Likewise.
51213         * modules/realloc-posix (License): Likewise.
51214         * modules/calloc-posix (License): Likewise.
51215         * modules/intprops (License): Change from GPL to LGPL, with
51216         Paul Eggert's approval.
51217
51218 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         Merge glibc changes into lib/glob.c.
51221
51222         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51223         2007-10-15 04:59:03 UTC.  Here are the changes:
51224
51225         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51226
51227         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51228
51229         * lib/glob.c: Add some branch prediction throughout.
51230
51231         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51232
51233         [BZ #5103]
51234         * lib/glob.c (glob): Recognize patterns starting \/.
51235
51236         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51237
51238         [BZ #3996]
51239         * lib/glob.c (attribute_hidden): Define if not defined.
51240         (glob): Unescape dirname, filename or username when needed and not
51241         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51242         is NULL.  Handle unescaped [ in pattern without closing ].
51243         Don't pass GLOB_CHECK down to recursive glob for directories.
51244         (__glob_pattern_type): New function.
51245         (__glob_pattern_p): Implement using __glob_pattern_type.
51246         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51247         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51248         Remove unreachable code.
51249
51250         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51251
51252         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51253         explain why there are no leaks.
51254
51255         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51256
51257         [BZ #3253]
51258         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51259         time, rather allocate increasingly bigger arrays of pointers, if
51260         possible with alloca, if too large with malloc.
51261
51262 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51263
51264         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51265         Problem reported by H.Merijn Brand in
51266         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51267         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51268         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51269
51270 2007-10-15  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51273         with explicit rpl_ prefix.
51274         * lib/fopen.c (fopen): Likewise.
51275         * lib/freopen.c (freopen): Likewise.
51276         * lib/iconv.c (iconv): Likewise.
51277         * lib/iconv_close.c (iconv_close): Likewise.
51278
51279 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51280
51281         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51282
51283 2007-10-15  Bruno Haible  <bruno@clisp.org>
51284
51285         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51286         <stddef.h> instead of <stdlib.h> since we only need NULL.
51287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51288
51289 2007-10-15  Bruno Haible  <bruno@clisp.org>
51290
51291         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51292         Replace paragraph talking about LIBOBJS.
51293         Reported by Colin Watson <cjwatson@debian.org>.
51294
51295 2007-10-15  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51298         <stdlib.h> before using NULL.
51299
51300 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51301
51302         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51303         Reported by Albert Chin <china@thewrittenword.com>.
51304
51305 2007-10-14  Bruno Haible  <bruno@clisp.org>
51306
51307         * modules/iconv_open-utf-tests: New file.
51308         * tests/test-iconv-utf.c: New file.
51309
51310         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51311         * modules/iconv_open-utf: New file.
51312         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51313         (iconv, iconv_close): New declarations.
51314         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51315         be defined.
51316         (iconv_open): Add special handling of conversion between UTF-8 and
51317         UTF-{16,32}{BE,LE}.
51318         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51319         * lib/iconv_close.c: New file.
51320         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51321         gl_FUNC_ICONV_OPEN.
51322         (gl_FUNC_ICONV_OPEN): Use it.
51323         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51324         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51325         and REPLACE_ICONV_UTF.
51326         * modules/iconv_open (Depends-on): Add c-strcase.
51327         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51328         ICONV_CONST.
51329         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51330
51331 2007-10-13  Albert Chin  <china@thewrittenword.com>
51332             Bruno Haible  <bruno@clisp.org>
51333
51334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51335         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51336
51337 2007-10-13  Bruno Haible  <bruno@clisp.org>
51338
51339         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51340         defined, use the ISO C99 inline semantics.
51341         * lib/argp.h (ARGP_EI): Likewise.
51342
51343 2007-10-13  Bruno Haible  <bruno@clisp.org>
51344
51345         Handle 'inline' change in gcc 4.3.0.
51346         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51347         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51348         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51349         argp_fmtstream_point): Disable 'extern' declaration if the function
51350         definition is going to be provided inline.
51351         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51352         semantics, not the ISO C99 inline semantics.
51353         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51354         'extern' declaration if the function definition is going to be provided
51355         inline.
51356         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51357         the GNU C inline semantics, not the ISO C99 inline semantics. With
51358         GCC 4.2, avoid a warning.
51359
51360 2007-10-13  Bruno Haible  <bruno@clisp.org>
51361
51362         * lib/freading.h (freading): Enable the use of __freading for
51363         glibc >= 2.7.
51364         * lib/freading.c (freading): Likewise.
51365
51366 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51367
51368         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51369         "warning: C99 inline functions are not supported; using GNU89".
51370
51371 2007-10-12  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51374         of 2.
51375         * tests/test-ceilf2.c: New file.
51376         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51377
51378         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51379         * modules/ceilf-tests: Update.
51380
51381 2007-10-12  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51384         of 2.
51385         * tests/test-floorf2.c: New file.
51386         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51387
51388         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51389         * modules/floorf-tests: Update.
51390
51391 2007-10-12  Bruno Haible  <bruno@clisp.org>
51392
51393         * tests/test-trunc2.c: New file.
51394         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51395
51396         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51397         * modules/trunc-tests: Update.
51398
51399 2007-10-12  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51402         of 2.
51403         * tests/test-truncf2.c: New file.
51404         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51405
51406         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51407         * modules/truncf-tests: Update.
51408
51409 2007-10-11  Eric Blake  <ebb9@byu.net>
51410
51411         Don't claim strerror is broken on Interix.
51412         * doc/functions/strerror.texi (strerror): Known broken systems are
51413         now Solaris 8, and not Interix.
51414         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51415         Interix on cross-compile.
51416         Reported by Martin Koeppe in
51417         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51418
51419 2007-10-11  Bruno Haible  <bruno@clisp.org>
51420
51421         * modules/i-ring-tests: New file.
51422         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51423         instead of assert.
51424
51425 2007-10-11  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/filenamecat-tests: New file.
51428         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51429         * lib/filenamecat.c: Remove test code.
51430
51431 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51432
51433         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51434
51435         * lib/strerror.c: Include <string.h> always, to test interface,
51436         and to remove the need for the dummy.
51437         Include intprops.h to compute width instead of doing it ourselves
51438         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51439         (strerror): Define it to return NULL if there's no system strerror.
51440         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51441         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51442         ancient pre-strerror Unix systems well any more.  Saying "unknown
51443         system error" is enough.
51444         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51445         simpler strerror.c implementation.
51446         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51447         Simplify the tests to reflect the simpler strerror implementation.
51448         * modules/strerror (Depends-on): Add intprops.
51449
51450 2007-10-09  Eric Blake  <ebb9@byu.net>
51451
51452         Silence test-fpending.
51453         * modules/fpending-tests (Files): Add wrapper script.
51454         * tests/test-fpending.sh: New file.
51455
51456 2007-10-09  Bruno Haible  <bruno@clisp.org>
51457
51458         * MODULES.html.sh (func_module): Don't create a hyperlink for
51459         function names like 'printf_frexp'.
51460         (Misc): Add crc, memxor.
51461         (Characteristics of floating types): New section.
51462         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51463         isnanf-nolibm, signbit, trunc, truncf, truncl.
51464         (Enhancements for ISO C 99 functions): New subsection Input/output.
51465         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51466         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51467         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51468         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51469         (Enhancements for POSIX:2001 functions): Add chdir-long.
51470         (File system functions): Add areadlink, chdir-safer, read-file.
51471         Remove cycle-check.
51472         (File system as inode set): New section.
51473         (Date and time): Add gethrxtime.
51474         (Multithreading): Add openmp.
51475         (Internationalization functions): Add localename.
51476         (Unicode string functions): Add unistr/u*-mbsnlen.
51477         (Support for maintaining and releasing projects): Add git-version-gen.
51478         (Lone files): Remove directories.
51479
51480 2007-10-08  Ben Pfaff  <blp@gnu.org>
51481
51482         * lib/xmalloca.h: Fix typo in comment.
51483
51484 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51485
51486         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51487         when avoiding problems with integer overflow.  Use a portable test
51488         instead.
51489
51490 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51491
51492         * modules/dummy (License): Change to LGPLv2+.
51493         * modules/float (License): Likewise
51494         * modules/realloc (License): Likewise
51495         * modules/stdlib (License): Likewise
51496
51497 2007-10-07  Bruno Haible  <bruno@clisp.org>
51498
51499         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51500         * floor.c (TWO_MANT_DIG): Likewise.
51501         * ceil.c (TWO_MANT_DIG): Likewise.
51502         Reported by Ben Pfaff.
51503
51504 2007-10-07  Bruno Haible  <bruno@clisp.org>
51505
51506         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51507         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51508         * lib/frexp.c (FUNC): Likewise.
51509         * lib/printf-frexp.h (printf_frexp): Likewise.
51510         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51511         * lib/printf-frexp.c (FUNC): Likewise.
51512         Suggested by Jim Meyering.
51513
51514 2007-10-07  Jim Meyering  <meyering@redhat.com>
51515
51516         Make xnanosleep's integer overflow test more robust.
51517         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51518         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51519
51520 2007-10-07  Bruno Haible  <bruno@clisp.org>
51521
51522         * NEWS: Mention the license change.
51523
51524         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51525         abbreviations in the modules files.
51526
51527         Change copyright notice from GPLv2+ to GPLv3+.
51528         * README: Change copyright notice.
51529         * MODULES.html.sh: Likewise.
51530         * build-aux/bootstrap.conf: Likewise.
51531         * build-aux/config.libpath: Likewise.
51532         * build-aux/csharpcomp.sh.in: Likewise.
51533         * build-aux/csharpexec.sh.in: Likewise.
51534         * build-aux/install-reloc: Likewise.
51535         * build-aux/javacomp.sh.in: Likewise.
51536         * build-aux/javaexec.sh.in: Likewise.
51537         * build-aux/ldd.sh.in: Likewise.
51538         * build-aux/reloc-ldflags: Likewise.
51539         * build-aux/relocatable.sh.in: Likewise.
51540         * build-aux/x-to-1.in: Likewise.
51541         * check-module: Likewise.
51542         * config/srclistvars.sh: Likewise.
51543         * gnulib-tool: Likewise.
51544         * lib/acl-internal.h: Likewise.
51545         * lib/acl.c: Likewise.
51546         * lib/acl.h: Likewise.
51547         * lib/acl_entries.c: Likewise.
51548         * lib/areadlink-with-size.c: Likewise.
51549         * lib/areadlink.c: Likewise.
51550         * lib/areadlink.h: Likewise.
51551         * lib/argmatch.c: Likewise.
51552         * lib/argmatch.h: Likewise.
51553         * lib/argp-ba.c: Likewise.
51554         * lib/argp-eexst.c: Likewise.
51555         * lib/argp-fmtstream.c: Likewise.
51556         * lib/argp-fmtstream.h: Likewise.
51557         * lib/argp-fs-xinl.c: Likewise.
51558         * lib/argp-help.c: Likewise.
51559         * lib/argp-namefrob.h: Likewise.
51560         * lib/argp-parse.c: Likewise.
51561         * lib/argp-pin.c: Likewise.
51562         * lib/argp-pv.c: Likewise.
51563         * lib/argp-pvh.c: Likewise.
51564         * lib/argp-xinl.c: Likewise.
51565         * lib/argp.h: Likewise.
51566         * lib/at-func.c: Likewise.
51567         * lib/atanl.c: Likewise.
51568         * lib/backupfile.c: Likewise.
51569         * lib/backupfile.h: Likewise.
51570         * lib/basename.c: Likewise.
51571         * lib/binary-io.h: Likewise.
51572         * lib/byteswap.in.h: Likewise.
51573         * lib/c-stack.c: Likewise.
51574         * lib/c-stack.h: Likewise.
51575         * lib/c-strcasestr.c: Likewise.
51576         * lib/c-strcasestr.h: Likewise.
51577         * lib/c-strstr.c: Likewise.
51578         * lib/c-strstr.h: Likewise.
51579         * lib/c-strtod.c: Likewise.
51580         * lib/calloc.c: Likewise.
51581         * lib/canon-host.c: Likewise.
51582         * lib/canon-host.h: Likewise.
51583         * lib/canonicalize-lgpl.c: Likewise.
51584         * lib/canonicalize.c: Likewise.
51585         * lib/canonicalize.h: Likewise.
51586         * lib/ceil.c: Likewise.
51587         * lib/ceilf.c: Likewise.
51588         * lib/ceill.c: Likewise.
51589         * lib/chdir-long.c: Likewise.
51590         * lib/chdir-long.h: Likewise.
51591         * lib/chdir-safer.c: Likewise.
51592         * lib/chdir-safer.h: Likewise.
51593         * lib/chown.c: Likewise.
51594         * lib/classpath.c: Likewise.
51595         * lib/classpath.h: Likewise.
51596         * lib/clean-temp.c: Likewise.
51597         * lib/clean-temp.h: Likewise.
51598         * lib/cloexec.c: Likewise.
51599         * lib/close-stream.c: Likewise.
51600         * lib/closein.c: Likewise.
51601         * lib/closein.h: Likewise.
51602         * lib/closeout.c: Likewise.
51603         * lib/closeout.h: Likewise.
51604         * lib/concat-filename.c: Likewise.
51605         * lib/copy-file.c: Likewise.
51606         * lib/copy-file.h: Likewise.
51607         * lib/count-one-bits.h: Likewise.
51608         * lib/crc.c: Likewise.
51609         * lib/crc.h: Likewise.
51610         * lib/creat-safer.c: Likewise.
51611         * lib/csharpcomp.c: Likewise.
51612         * lib/csharpcomp.h: Likewise.
51613         * lib/csharpexec.c: Likewise.
51614         * lib/csharpexec.h: Likewise.
51615         * lib/cycle-check.c: Likewise.
51616         * lib/cycle-check.h: Likewise.
51617         * lib/diacrit.c: Likewise.
51618         * lib/diacrit.h: Likewise.
51619         * lib/diffseq.h: Likewise.
51620         * lib/dirchownmod.c: Likewise.
51621         * lib/dirent.in.h: Likewise.
51622         * lib/dirfd.c: Likewise.
51623         * lib/dirfd.h: Likewise.
51624         * lib/dirname.c: Likewise.
51625         * lib/dirname.h: Likewise.
51626         * lib/dummy.c: Likewise.
51627         * lib/dup-safer.c: Likewise.
51628         * lib/dup2.c: Likewise.
51629         * lib/eealloc.h: Likewise.
51630         * lib/error.c: Likewise.
51631         * lib/error.h: Likewise.
51632         * lib/euidaccess.c: Likewise.
51633         * lib/exclude.c: Likewise.
51634         * lib/exclude.h: Likewise.
51635         * lib/execute.c: Likewise.
51636         * lib/execute.h: Likewise.
51637         * lib/exitfail.c: Likewise.
51638         * lib/exitfail.h: Likewise.
51639         * lib/expl.c: Likewise.
51640         * lib/fatal-signal.c: Likewise.
51641         * lib/fatal-signal.h: Likewise.
51642         * lib/fbufmode.c: Likewise.
51643         * lib/fbufmode.h: Likewise.
51644         * lib/fchdir.c: Likewise.
51645         * lib/fchmodat.c: Likewise.
51646         * lib/fchownat.c: Likewise.
51647         * lib/fcntl--.h: Likewise.
51648         * lib/fcntl-safer.h: Likewise.
51649         * lib/fcntl.in.h: Likewise.
51650         * lib/fd-safer.c: Likewise.
51651         * lib/fflush.c: Likewise.
51652         * lib/file-has-acl.c: Likewise.
51653         * lib/file-set.c: Likewise.
51654         * lib/file-type.c: Likewise.
51655         * lib/file-type.h: Likewise.
51656         * lib/fileblocks.c: Likewise.
51657         * lib/filemode.c: Likewise.
51658         * lib/filemode.h: Likewise.
51659         * lib/filename.h: Likewise.
51660         * lib/filenamecat.c: Likewise.
51661         * lib/filenamecat.h: Likewise.
51662         * lib/findprog.c: Likewise.
51663         * lib/findprog.h: Likewise.
51664         * lib/float.in.h: Likewise.
51665         * lib/floor.c: Likewise.
51666         * lib/floorf.c: Likewise.
51667         * lib/floorl.c: Likewise.
51668         * lib/fopen-safer.c: Likewise.
51669         * lib/fopen.c: Likewise.
51670         * lib/fpending.c: Likewise.
51671         * lib/fpending.h: Likewise.
51672         * lib/fprintf.c: Likewise.
51673         * lib/fprintftime.h: Likewise.
51674         * lib/fpucw.h: Likewise.
51675         * lib/fpurge.c: Likewise.
51676         * lib/fpurge.h: Likewise.
51677         * lib/freadable.c: Likewise.
51678         * lib/freadable.h: Likewise.
51679         * lib/freadahead.c: Likewise.
51680         * lib/freadahead.h: Likewise.
51681         * lib/freading.c: Likewise.
51682         * lib/freading.h: Likewise.
51683         * lib/free.c: Likewise.
51684         * lib/freopen.c: Likewise.
51685         * lib/frexp.c: Likewise.
51686         * lib/frexpl.c: Likewise.
51687         * lib/fseek.c: Likewise.
51688         * lib/fseterr.c: Likewise.
51689         * lib/fseterr.h: Likewise.
51690         * lib/fstatat.c: Likewise.
51691         * lib/fstrcmp.c: Likewise.
51692         * lib/fstrcmp.h: Likewise.
51693         * lib/fsusage.c: Likewise.
51694         * lib/fsusage.h: Likewise.
51695         * lib/ftell.c: Likewise.
51696         * lib/ftello.c: Likewise.
51697         * lib/fts-cycle.c: Likewise.
51698         * lib/fts.c: Likewise.
51699         * lib/fts_.h: Likewise.
51700         * lib/full-read.c: Likewise.
51701         * lib/full-read.h: Likewise.
51702         * lib/full-write.c: Likewise.
51703         * lib/full-write.h: Likewise.
51704         * lib/fwritable.c: Likewise.
51705         * lib/fwritable.h: Likewise.
51706         * lib/fwriteerror.c: Likewise.
51707         * lib/fwriteerror.h: Likewise.
51708         * lib/fwriting.c: Likewise.
51709         * lib/fwriting.h: Likewise.
51710         * lib/gcd.c: Likewise.
51711         * lib/gcd.h: Likewise.
51712         * lib/getcwd.c: Likewise.
51713         * lib/getdate.h: Likewise.
51714         * lib/getdate.y: Likewise.
51715         * lib/getdomainname.c: Likewise.
51716         * lib/getdomainname.h: Likewise.
51717         * lib/getgroups.c: Likewise.
51718         * lib/gethostname.c: Likewise.
51719         * lib/gethrxtime.c: Likewise.
51720         * lib/gethrxtime.h: Likewise.
51721         * lib/getloadavg.c: Likewise.
51722         * lib/getndelim2.c: Likewise.
51723         * lib/getndelim2.h: Likewise.
51724         * lib/getnline.c: Likewise.
51725         * lib/getnline.h: Likewise.
51726         * lib/getopt.c: Likewise.
51727         * lib/getopt.in.h: Likewise.
51728         * lib/getopt1.c: Likewise.
51729         * lib/getopt_int.h: Likewise.
51730         * lib/getpagesize.h: Likewise.
51731         * lib/getsubopt.c: Likewise.
51732         * lib/gettime.c: Likewise.
51733         * lib/getugroups.c: Likewise.
51734         * lib/getugroups.h: Likewise.
51735         * lib/getusershell.c: Likewise.
51736         * lib/gl_anyavltree_list1.h: Likewise.
51737         * lib/gl_anyavltree_list2.h: Likewise.
51738         * lib/gl_anyhash_list1.h: Likewise.
51739         * lib/gl_anyhash_list2.h: Likewise.
51740         * lib/gl_anylinked_list1.h: Likewise.
51741         * lib/gl_anylinked_list2.h: Likewise.
51742         * lib/gl_anyrbtree_list1.h: Likewise.
51743         * lib/gl_anyrbtree_list2.h: Likewise.
51744         * lib/gl_anytree_list1.h: Likewise.
51745         * lib/gl_anytree_list2.h: Likewise.
51746         * lib/gl_anytree_oset.h: Likewise.
51747         * lib/gl_anytreehash_list1.h: Likewise.
51748         * lib/gl_anytreehash_list2.h: Likewise.
51749         * lib/gl_array_list.c: Likewise.
51750         * lib/gl_array_list.h: Likewise.
51751         * lib/gl_array_oset.c: Likewise.
51752         * lib/gl_array_oset.h: Likewise.
51753         * lib/gl_avltree_list.c: Likewise.
51754         * lib/gl_avltree_list.h: Likewise.
51755         * lib/gl_avltree_oset.c: Likewise.
51756         * lib/gl_avltree_oset.h: Likewise.
51757         * lib/gl_avltreehash_list.c: Likewise.
51758         * lib/gl_avltreehash_list.h: Likewise.
51759         * lib/gl_carray_list.c: Likewise.
51760         * lib/gl_carray_list.h: Likewise.
51761         * lib/gl_linked_list.c: Likewise.
51762         * lib/gl_linked_list.h: Likewise.
51763         * lib/gl_linkedhash_list.c: Likewise.
51764         * lib/gl_linkedhash_list.h: Likewise.
51765         * lib/gl_list.c: Likewise.
51766         * lib/gl_list.h: Likewise.
51767         * lib/gl_oset.c: Likewise.
51768         * lib/gl_oset.h: Likewise.
51769         * lib/gl_rbtree_list.c: Likewise.
51770         * lib/gl_rbtree_list.h: Likewise.
51771         * lib/gl_rbtree_oset.c: Likewise.
51772         * lib/gl_rbtree_oset.h: Likewise.
51773         * lib/gl_rbtreehash_list.c: Likewise.
51774         * lib/gl_rbtreehash_list.h: Likewise.
51775         * lib/gl_sublist.c: Likewise.
51776         * lib/gl_sublist.h: Likewise.
51777         * lib/group-member.c: Likewise.
51778         * lib/group-member.h: Likewise.
51779         * lib/hard-locale.c: Likewise.
51780         * lib/hard-locale.h: Likewise.
51781         * lib/hash-pjw.c: Likewise.
51782         * lib/hash-pjw.h: Likewise.
51783         * lib/hash-triple.c: Likewise.
51784         * lib/hash.c: Likewise.
51785         * lib/hash.h: Likewise.
51786         * lib/human.c: Likewise.
51787         * lib/human.h: Likewise.
51788         * lib/i-ring.c: Likewise.
51789         * lib/i-ring.h: Likewise.
51790         * lib/idcache.c: Likewise.
51791         * lib/imaxabs.c: Likewise.
51792         * lib/imaxdiv.c: Likewise.
51793         * lib/inet_pton.c: Likewise.
51794         * lib/inet_pton.h: Likewise.
51795         * lib/intprops.h: Likewise.
51796         * lib/inttostr.c: Likewise.
51797         * lib/inttostr.h: Likewise.
51798         * lib/inttypes.in.h: Likewise.
51799         * lib/isapipe.c: Likewise.
51800         * lib/isdir.c: Likewise.
51801         * lib/isnan.c: Likewise.
51802         * lib/isnan.h: Likewise.
51803         * lib/isnanf.c: Likewise.
51804         * lib/isnanf.h: Likewise.
51805         * lib/isnanl-nolibm.h: Likewise.
51806         * lib/isnanl.c: Likewise.
51807         * lib/isnanl.h: Likewise.
51808         * lib/javacomp.c: Likewise.
51809         * lib/javacomp.h: Likewise.
51810         * lib/javaexec.c: Likewise.
51811         * lib/javaexec.h: Likewise.
51812         * lib/javaversion.c: Likewise.
51813         * lib/javaversion.h: Likewise.
51814         * lib/javaversion.java: Likewise.
51815         * lib/lbrkprop.h: Likewise.
51816         * lib/lchmod.h: Likewise.
51817         * lib/lchown.c: Likewise.
51818         * lib/ldexpl.c: Likewise.
51819         * lib/linebreak.c: Likewise.
51820         * lib/linebreak.h: Likewise.
51821         * lib/linebuffer.c: Likewise.
51822         * lib/linebuffer.h: Likewise.
51823         * lib/locale.in.h: Likewise.
51824         * lib/logl.c: Likewise.
51825         * lib/long-options.c: Likewise.
51826         * lib/long-options.h: Likewise.
51827         * lib/lstat.c: Likewise.
51828         * lib/lstat.h: Likewise.
51829         * lib/math.in.h: Likewise.
51830         * lib/mbchar.c: Likewise.
51831         * lib/mbchar.h: Likewise.
51832         * lib/mbfile.h: Likewise.
51833         * lib/mbiter.h: Likewise.
51834         * lib/mbscasecmp.c: Likewise.
51835         * lib/mbscasestr.c: Likewise.
51836         * lib/mbschr.c: Likewise.
51837         * lib/mbscspn.c: Likewise.
51838         * lib/mbslen.c: Likewise.
51839         * lib/mbsncasecmp.c: Likewise.
51840         * lib/mbsnlen.c: Likewise.
51841         * lib/mbspbrk.c: Likewise.
51842         * lib/mbspcasecmp.c: Likewise.
51843         * lib/mbsrchr.c: Likewise.
51844         * lib/mbssep.c: Likewise.
51845         * lib/mbsspn.c: Likewise.
51846         * lib/mbsstr.c: Likewise.
51847         * lib/mbstok_r.c: Likewise.
51848         * lib/mbswidth.c: Likewise.
51849         * lib/mbswidth.h: Likewise.
51850         * lib/mbuiter.h: Likewise.
51851         * lib/memcasecmp.c: Likewise.
51852         * lib/memcasecmp.h: Likewise.
51853         * lib/memchr.c: Likewise.
51854         * lib/memcmp.c: Likewise.
51855         * lib/memcoll.c: Likewise.
51856         * lib/memcoll.h: Likewise.
51857         * lib/memcpy.c: Likewise.
51858         * lib/memrchr.c: Likewise.
51859         * lib/mkancesdirs.c: Likewise.
51860         * lib/mkdir-p.c: Likewise.
51861         * lib/mkdir-p.h: Likewise.
51862         * lib/mkdir.c: Likewise.
51863         * lib/mkdirat.c: Likewise.
51864         * lib/mkdtemp.c: Likewise.
51865         * lib/mkstemp-safer.c: Likewise.
51866         * lib/mkstemp.c: Likewise.
51867         * lib/modechange.c: Likewise.
51868         * lib/modechange.h: Likewise.
51869         * lib/mountlist.c: Likewise.
51870         * lib/mountlist.h: Likewise.
51871         * lib/mpsort.c: Likewise.
51872         * lib/nanosleep.c: Likewise.
51873         * lib/obstack.c: Likewise.
51874         * lib/obstack.h: Likewise.
51875         * lib/open-safer.c: Likewise.
51876         * lib/open.c: Likewise.
51877         * lib/openat-die.c: Likewise.
51878         * lib/openat-priv.h: Likewise.
51879         * lib/openat-proc.c: Likewise.
51880         * lib/openat.c: Likewise.
51881         * lib/openat.h: Likewise.
51882         * lib/pagealign_alloc.c: Likewise.
51883         * lib/pagealign_alloc.h: Likewise.
51884         * lib/physmem.c: Likewise.
51885         * lib/physmem.h: Likewise.
51886         * lib/pipe-safer.c: Likewise.
51887         * lib/pipe.c: Likewise.
51888         * lib/pipe.h: Likewise.
51889         * lib/posixtm.c: Likewise.
51890         * lib/posixtm.h: Likewise.
51891         * lib/posixver.c: Likewise.
51892         * lib/printf-frexp.c: Likewise.
51893         * lib/printf-frexp.h: Likewise.
51894         * lib/printf-frexpl.c: Likewise.
51895         * lib/printf-frexpl.h: Likewise.
51896         * lib/printf.c: Likewise.
51897         * lib/progname.c: Likewise.
51898         * lib/progname.h: Likewise.
51899         * lib/progreloc.c: Likewise.
51900         * lib/putenv.c: Likewise.
51901         * lib/quote.c: Likewise.
51902         * lib/quote.h: Likewise.
51903         * lib/quotearg.c: Likewise.
51904         * lib/quotearg.h: Likewise.
51905         * lib/raise.c: Likewise.
51906         * lib/readline.c: Likewise.
51907         * lib/readline.h: Likewise.
51908         * lib/readlink.c: Likewise.
51909         * lib/readtokens.c: Likewise.
51910         * lib/readtokens.h: Likewise.
51911         * lib/readtokens0.c: Likewise.
51912         * lib/readtokens0.h: Likewise.
51913         * lib/readutmp.c: Likewise.
51914         * lib/readutmp.h: Likewise.
51915         * lib/realloc.c: Likewise.
51916         * lib/relocwrapper.c: Likewise.
51917         * lib/rename-dest-slash.c: Likewise.
51918         * lib/rename.c: Likewise.
51919         * lib/rmdir.c: Likewise.
51920         * lib/rpmatch.c: Likewise.
51921         * lib/safe-read.c: Likewise.
51922         * lib/safe-read.h: Likewise.
51923         * lib/safe-write.c: Likewise.
51924         * lib/safe-write.h: Likewise.
51925         * lib/same-inode.h: Likewise.
51926         * lib/same.c: Likewise.
51927         * lib/same.h: Likewise.
51928         * lib/save-cwd.c: Likewise.
51929         * lib/save-cwd.h: Likewise.
51930         * lib/savedir.c: Likewise.
51931         * lib/savedir.h: Likewise.
51932         * lib/savewd.c: Likewise.
51933         * lib/savewd.h: Likewise.
51934         * lib/search.in.h: Likewise.
51935         * lib/setenv.c: Likewise.
51936         * lib/setenv.h: Likewise.
51937         * lib/settime.c: Likewise.
51938         * lib/sh-quote.c: Likewise.
51939         * lib/sh-quote.h: Likewise.
51940         * lib/sig2str.c: Likewise.
51941         * lib/sig2str.h: Likewise.
51942         * lib/signal.in.h: Likewise.
51943         * lib/signbitd.c: Likewise.
51944         * lib/signbitf.c: Likewise.
51945         * lib/signbitl.c: Likewise.
51946         * lib/sigprocmask.c: Likewise.
51947         * lib/sincosl.c: Likewise.
51948         * lib/sleep.c: Likewise.
51949         * lib/sprintf.c: Likewise.
51950         * lib/sqrtl.c: Likewise.
51951         * lib/stat-time.h: Likewise.
51952         * lib/stdio--.h: Likewise.
51953         * lib/stdio-safer.h: Likewise.
51954         * lib/stdlib--.h: Likewise.
51955         * lib/stdlib-safer.h: Likewise.
51956         * lib/stdlib.in.h: Likewise.
51957         * lib/stpcpy.c: Likewise.
51958         * lib/stpncpy.c: Likewise.
51959         * lib/strchrnul.c: Likewise.
51960         * lib/strcspn.c: Likewise.
51961         * lib/strerror.c: Likewise.
51962         * lib/strftime.c: Likewise.
51963         * lib/strftime.h: Likewise.
51964         * lib/striconveh.c: Likewise.
51965         * lib/striconveh.h: Likewise.
51966         * lib/striconveha.c: Likewise.
51967         * lib/striconveha.h: Likewise.
51968         * lib/stripslash.c: Likewise.
51969         * lib/strnlen1.c: Likewise.
51970         * lib/strnlen1.h: Likewise.
51971         * lib/strtod.c: Likewise.
51972         * lib/strtoimax.c: Likewise.
51973         * lib/strtok_r.c: Likewise.
51974         * lib/strtol.c: Likewise.
51975         * lib/strtoll.c: Likewise.
51976         * lib/strtoul.c: Likewise.
51977         * lib/strtoull.c: Likewise.
51978         * lib/sysexits.in.h: Likewise.
51979         * lib/tempname.c: Likewise.
51980         * lib/tempname.h: Likewise.
51981         * lib/timespec.h: Likewise.
51982         * lib/tls.c: Likewise.
51983         * lib/tls.h: Likewise.
51984         * lib/tmpdir.c: Likewise.
51985         * lib/tmpdir.h: Likewise.
51986         * lib/tmpfile-safer.c: Likewise.
51987         * lib/tmpfile.c: Likewise.
51988         * lib/trigl.c: Likewise.
51989         * lib/trigl.h: Likewise.
51990         * lib/trim.c: Likewise.
51991         * lib/trim.h: Likewise.
51992         * lib/trunc.c: Likewise.
51993         * lib/truncf.c: Likewise.
51994         * lib/truncl.c: Likewise.
51995         * lib/tsearch.c: Likewise.
51996         * lib/unicodeio.c: Likewise.
51997         * lib/unicodeio.h: Likewise.
51998         * lib/unistd--.h: Likewise.
51999         * lib/unistd-safer.h: Likewise.
52000         * lib/unistdio/ulc-fprintf.c: Likewise.
52001         * lib/unistdio/ulc-vfprintf.c: Likewise.
52002         * lib/unlinkdir.c: Likewise.
52003         * lib/unlinkdir.h: Likewise.
52004         * lib/unlocked-io.h: Likewise.
52005         * lib/unsetenv.c: Likewise.
52006         * lib/userspec.c: Likewise.
52007         * lib/utime.c: Likewise.
52008         * lib/utimecmp.c: Likewise.
52009         * lib/utimecmp.h: Likewise.
52010         * lib/utimens.c: Likewise.
52011         * lib/verify.h: Likewise.
52012         * lib/verror.c: Likewise.
52013         * lib/verror.h: Likewise.
52014         * lib/version-etc-fsf.c: Likewise.
52015         * lib/version-etc.c: Likewise.
52016         * lib/version-etc.h: Likewise.
52017         * lib/vfprintf.c: Likewise.
52018         * lib/vprintf.c: Likewise.
52019         * lib/vsprintf.c: Likewise.
52020         * lib/w32spawn.h: Likewise.
52021         * lib/wait-process.c: Likewise.
52022         * lib/wait-process.h: Likewise.
52023         * lib/wcwidth.c: Likewise.
52024         * lib/write-any-file.c: Likewise.
52025         * lib/xalloc-die.c: Likewise.
52026         * lib/xalloc.h: Likewise.
52027         * lib/xasprintf.c: Likewise.
52028         * lib/xgetcwd.c: Likewise.
52029         * lib/xgetcwd.h: Likewise.
52030         * lib/xgetdomainname.c: Likewise.
52031         * lib/xgetdomainname.h: Likewise.
52032         * lib/xgethostname.c: Likewise.
52033         * lib/xmalloc.c: Likewise.
52034         * lib/xmalloca.c: Likewise.
52035         * lib/xmalloca.h: Likewise.
52036         * lib/xmemcoll.c: Likewise.
52037         * lib/xnanosleep.c: Likewise.
52038         * lib/xreadlink.c: Likewise.
52039         * lib/xreadlink.h: Likewise.
52040         * lib/xsetenv.c: Likewise.
52041         * lib/xsetenv.h: Likewise.
52042         * lib/xstriconv.c: Likewise.
52043         * lib/xstriconv.h: Likewise.
52044         * lib/xstrndup.c: Likewise.
52045         * lib/xstrndup.h: Likewise.
52046         * lib/xstrtod.c: Likewise.
52047         * lib/xstrtod.h: Likewise.
52048         * lib/xstrtol-error.c: Likewise.
52049         * lib/xstrtol.c: Likewise.
52050         * lib/xstrtol.h: Likewise.
52051         * lib/xtime.h: Likewise.
52052         * lib/xvasprintf.c: Likewise.
52053         * lib/xvasprintf.h: Likewise.
52054         * lib/yesno.c: Likewise.
52055         * lib/yesno.h: Likewise.
52056         * posix-modules: Likewise.
52057         * tests/test-alloca-opt.c: Likewise.
52058         * tests/test-arcfour.c: Likewise.
52059         * tests/test-arctwo.c: Likewise.
52060         * tests/test-argmatch.c: Likewise.
52061         * tests/test-argp-2.sh: Likewise.
52062         * tests/test-argp.c: Likewise.
52063         * tests/test-arpa_inet.c: Likewise.
52064         * tests/test-array_list.c: Likewise.
52065         * tests/test-array_oset.c: Likewise.
52066         * tests/test-atexit.c: Likewise.
52067         * tests/test-avltree_list.c: Likewise.
52068         * tests/test-avltree_oset.c: Likewise.
52069         * tests/test-avltreehash_list.c: Likewise.
52070         * tests/test-base64.c: Likewise.
52071         * tests/test-binary-io.c: Likewise.
52072         * tests/test-byteswap.c: Likewise.
52073         * tests/test-c-ctype.c: Likewise.
52074         * tests/test-c-strcasecmp.c: Likewise.
52075         * tests/test-c-strcasestr.c: Likewise.
52076         * tests/test-c-strncasecmp.c: Likewise.
52077         * tests/test-c-strstr.c: Likewise.
52078         * tests/test-canonicalize-lgpl.c: Likewise.
52079         * tests/test-canonicalize.c: Likewise.
52080         * tests/test-carray_list.c: Likewise.
52081         * tests/test-ceilf.c: Likewise.
52082         * tests/test-ceill.c: Likewise.
52083         * tests/test-count-one-bits.c: Likewise.
52084         * tests/test-crc.c: Likewise.
52085         * tests/test-dirname.c: Likewise.
52086         * tests/test-fbufmode.c: Likewise.
52087         * tests/test-fcntl.c: Likewise.
52088         * tests/test-fflush.c: Likewise.
52089         * tests/test-floorf.c: Likewise.
52090         * tests/test-floorl.c: Likewise.
52091         * tests/test-fopen.c: Likewise.
52092         * tests/test-fprintf-posix.c: Likewise.
52093         * tests/test-fprintf-posix.h: Likewise.
52094         * tests/test-fpurge.c: Likewise.
52095         * tests/test-freadable.c: Likewise.
52096         * tests/test-freadahead.c: Likewise.
52097         * tests/test-freading.c: Likewise.
52098         * tests/test-freopen.c: Likewise.
52099         * tests/test-frexp.c: Likewise.
52100         * tests/test-frexpl.c: Likewise.
52101         * tests/test-fseek.c: Likewise.
52102         * tests/test-fseeko.c: Likewise.
52103         * tests/test-fseterr.c: Likewise.
52104         * tests/test-fstrcmp.c: Likewise.
52105         * tests/test-ftell.c: Likewise.
52106         * tests/test-ftello.c: Likewise.
52107         * tests/test-fwritable.c: Likewise.
52108         * tests/test-fwriting.c: Likewise.
52109         * tests/test-getaddrinfo.c: Likewise.
52110         * tests/test-getpass.c: Likewise.
52111         * tests/test-gettimeofday.c: Likewise.
52112         * tests/test-hmac-md5.c: Likewise.
52113         * tests/test-hmac-sha1.c: Likewise.
52114         * tests/test-iconv.c: Likewise.
52115         * tests/test-iconvme.c: Likewise.
52116         * tests/test-inttypes.c: Likewise.
52117         * tests/test-isnan.c: Likewise.
52118         * tests/test-isnanf.c: Likewise.
52119         * tests/test-isnanl-nolibm.c: Likewise.
52120         * tests/test-isnanl.c: Likewise.
52121         * tests/test-isnanl.h: Likewise.
52122         * tests/test-ldexpl.c: Likewise.
52123         * tests/test-linked_list.c: Likewise.
52124         * tests/test-linkedhash_list.c: Likewise.
52125         * tests/test-locale.c: Likewise.
52126         * tests/test-localename.c: Likewise.
52127         * tests/test-lock.c: Likewise.
52128         * tests/test-lseek.c: Likewise.
52129         * tests/test-malloca.c: Likewise.
52130         * tests/test-math.c: Likewise.
52131         * tests/test-mbscasecmp.c: Likewise.
52132         * tests/test-mbscasestr1.c: Likewise.
52133         * tests/test-mbscasestr2.c: Likewise.
52134         * tests/test-mbscasestr3.c: Likewise.
52135         * tests/test-mbscasestr4.c: Likewise.
52136         * tests/test-mbschr.c: Likewise.
52137         * tests/test-mbscspn.c: Likewise.
52138         * tests/test-mbsncasecmp.c: Likewise.
52139         * tests/test-mbspbrk.c: Likewise.
52140         * tests/test-mbspcasecmp.c: Likewise.
52141         * tests/test-mbsrchr.c: Likewise.
52142         * tests/test-mbsspn.c: Likewise.
52143         * tests/test-mbsstr1.c: Likewise.
52144         * tests/test-mbsstr2.c: Likewise.
52145         * tests/test-mbsstr3.c: Likewise.
52146         * tests/test-md5.c: Likewise.
52147         * tests/test-memmem.c: Likewise.
52148         * tests/test-netinet_in.c: Likewise.
52149         * tests/test-open.c: Likewise.
52150         * tests/test-printf-frexp.c: Likewise.
52151         * tests/test-printf-frexpl.c: Likewise.
52152         * tests/test-printf-posix.c: Likewise.
52153         * tests/test-printf-posix.h: Likewise.
52154         * tests/test-rbtree_list.c: Likewise.
52155         * tests/test-rbtree_oset.c: Likewise.
52156         * tests/test-rbtreehash_list.c: Likewise.
52157         * tests/test-read-file.c: Likewise.
52158         * tests/test-rijndael.c: Likewise.
52159         * tests/test-search.c: Likewise.
52160         * tests/test-signbit.c: Likewise.
52161         * tests/test-sleep.c: Likewise.
52162         * tests/test-snprintf-posix.c: Likewise.
52163         * tests/test-snprintf-posix.h: Likewise.
52164         * tests/test-snprintf.c: Likewise.
52165         * tests/test-sprintf-posix.c: Likewise.
52166         * tests/test-sprintf-posix.h: Likewise.
52167         * tests/test-stat-time.c: Likewise.
52168         * tests/test-stdbool.c: Likewise.
52169         * tests/test-stdint.c: Likewise.
52170         * tests/test-stdio.c: Likewise.
52171         * tests/test-stdlib.c: Likewise.
52172         * tests/test-stpncpy.c: Likewise.
52173         * tests/test-strcasestr.c: Likewise.
52174         * tests/test-striconv.c: Likewise.
52175         * tests/test-striconveh.c: Likewise.
52176         * tests/test-striconveha.c: Likewise.
52177         * tests/test-string.c: Likewise.
52178         * tests/test-sys_select.c: Likewise.
52179         * tests/test-sys_socket.c: Likewise.
52180         * tests/test-sys_stat.c: Likewise.
52181         * tests/test-sys_time.c: Likewise.
52182         * tests/test-sysexits.c: Likewise.
52183         * tests/test-time.c: Likewise.
52184         * tests/test-tls.c: Likewise.
52185         * tests/test-trunc.c: Likewise.
52186         * tests/test-truncf.c: Likewise.
52187         * tests/test-truncl.c: Likewise.
52188         * tests/test-unistd.c: Likewise.
52189         * tests/test-vasnprintf-posix.c: Likewise.
52190         * tests/test-vasnprintf-posix2.c: Likewise.
52191         * tests/test-vasnprintf.c: Likewise.
52192         * tests/test-vasprintf-posix.c: Likewise.
52193         * tests/test-vasprintf.c: Likewise.
52194         * tests/test-verify.c: Likewise.
52195         * tests/test-vfprintf-posix.c: Likewise.
52196         * tests/test-vprintf-posix.c: Likewise.
52197         * tests/test-vsnprintf-posix.c: Likewise.
52198         * tests/test-vsnprintf.c: Likewise.
52199         * tests/test-vsprintf-posix.c: Likewise.
52200         * tests/test-wchar.c: Likewise.
52201         * tests/test-wctype.c: Likewise.
52202         * tests/test-wcwidth.c: Likewise.
52203         * tests/test-xstrtol.c: Likewise.
52204         * tests/test-xvasprintf.c: Likewise.
52205         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52206         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52207         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52208         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52209         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52210         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52211         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52212         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52213         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52214         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52215         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52216         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52217         * tests/uniname/test-uninames.c: Likewise.
52218         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52219         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52220         * tests/unistdio/test-u16-printf1.h: Likewise.
52221         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52222         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52223         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52224         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52225         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52226         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52227         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52228         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52229         * tests/unistdio/test-u32-printf1.h: Likewise.
52230         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52231         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52232         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52233         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52234         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52235         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52236         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52237         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52238         * tests/unistdio/test-u8-printf1.h: Likewise.
52239         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52240         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52241         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52242         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52243         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52244         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52245         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52246         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52247         * tests/unistdio/test-ulc-printf1.h: Likewise.
52248         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52249         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52250         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52251         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52252         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52253         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52254         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52255         * tests/uniwidth/test-u16-width.c: Likewise.
52256         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52257         * tests/uniwidth/test-u32-width.c: Likewise.
52258         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52259         * tests/uniwidth/test-u8-width.c: Likewise.
52260         * tests/uniwidth/test-uc_width.c: Likewise.
52261         * config/srclist-update: Likewise.
52262         (fixlicense): Update to GPLv3+.
52263
52264         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52265         * tests/test-tsearch.c: Change copyright notice.
52266
52267         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52268         * lib/c-strcaseeq.h: Change copyright notice.
52269         * lib/streq.h: Likewise.
52270         * lib/uniconv.h: Likewise.
52271         * lib/uniconv/u-conv-from-enc.h: Likewise.
52272         * lib/uniconv/u-conv-to-enc.h: Likewise.
52273         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52274         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52275         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52276         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52277         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52278         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52279         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52280         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52281         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52282         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52283         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52284         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52285         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52286         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52287         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52288         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52289         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52290         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52291         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52292         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52293         * lib/uniname.h: Likewise.
52294         * lib/uniname/uniname.c: Likewise.
52295         * lib/unistdio.h: Likewise.
52296         * lib/unistdio/u-asnprintf.h: Likewise.
52297         * lib/unistdio/u-asprintf.h: Likewise.
52298         * lib/unistdio/u-printf-args.c: Likewise.
52299         * lib/unistdio/u-printf-args.h: Likewise.
52300         * lib/unistdio/u-printf-parse.h: Likewise.
52301         * lib/unistdio/u-snprintf.h: Likewise.
52302         * lib/unistdio/u-sprintf.h: Likewise.
52303         * lib/unistdio/u-vasprintf.h: Likewise.
52304         * lib/unistdio/u-vsnprintf.h: Likewise.
52305         * lib/unistdio/u-vsprintf.h: Likewise.
52306         * lib/unistdio/u16-asnprintf.c: Likewise.
52307         * lib/unistdio/u16-asprintf.c: Likewise.
52308         * lib/unistdio/u16-printf-parse.c: Likewise.
52309         * lib/unistdio/u16-snprintf.c: Likewise.
52310         * lib/unistdio/u16-sprintf.c: Likewise.
52311         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52312         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52313         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52314         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52315         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52316         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52317         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52318         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52319         * lib/unistdio/u16-vasnprintf.c: Likewise.
52320         * lib/unistdio/u16-vasprintf.c: Likewise.
52321         * lib/unistdio/u16-vsnprintf.c: Likewise.
52322         * lib/unistdio/u16-vsprintf.c: Likewise.
52323         * lib/unistdio/u32-asnprintf.c: Likewise.
52324         * lib/unistdio/u32-asprintf.c: Likewise.
52325         * lib/unistdio/u32-printf-parse.c: Likewise.
52326         * lib/unistdio/u32-snprintf.c: Likewise.
52327         * lib/unistdio/u32-sprintf.c: Likewise.
52328         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52329         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52330         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52331         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52332         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52333         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52334         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52335         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52336         * lib/unistdio/u32-vasnprintf.c: Likewise.
52337         * lib/unistdio/u32-vasprintf.c: Likewise.
52338         * lib/unistdio/u32-vsnprintf.c: Likewise.
52339         * lib/unistdio/u32-vsprintf.c: Likewise.
52340         * lib/unistdio/u8-asnprintf.c: Likewise.
52341         * lib/unistdio/u8-asprintf.c: Likewise.
52342         * lib/unistdio/u8-printf-parse.c: Likewise.
52343         * lib/unistdio/u8-snprintf.c: Likewise.
52344         * lib/unistdio/u8-sprintf.c: Likewise.
52345         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52346         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52347         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52348         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52349         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52350         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52351         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52352         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52353         * lib/unistdio/u8-vasnprintf.c: Likewise.
52354         * lib/unistdio/u8-vasprintf.c: Likewise.
52355         * lib/unistdio/u8-vsnprintf.c: Likewise.
52356         * lib/unistdio/u8-vsprintf.c: Likewise.
52357         * lib/unistdio/ulc-asnprintf.c: Likewise.
52358         * lib/unistdio/ulc-asprintf.c: Likewise.
52359         * lib/unistdio/ulc-printf-parse.c: Likewise.
52360         * lib/unistdio/ulc-snprintf.c: Likewise.
52361         * lib/unistdio/ulc-sprintf.c: Likewise.
52362         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52363         * lib/unistdio/ulc-vasprintf.c: Likewise.
52364         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52365         * lib/unistdio/ulc-vsprintf.c: Likewise.
52366         * lib/unistr.h: Likewise.
52367         * lib/unistr/u-cpy-alloc.h: Likewise.
52368         * lib/unistr/u-cpy.h: Likewise.
52369         * lib/unistr/u-endswith.h: Likewise.
52370         * lib/unistr/u-move.h: Likewise.
52371         * lib/unistr/u-set.h: Likewise.
52372         * lib/unistr/u-startswith.h: Likewise.
52373         * lib/unistr/u-stpcpy.h: Likewise.
52374         * lib/unistr/u-stpncpy.h: Likewise.
52375         * lib/unistr/u-strcat.h: Likewise.
52376         * lib/unistr/u-strcpy.h: Likewise.
52377         * lib/unistr/u-strcspn.h: Likewise.
52378         * lib/unistr/u-strdup.h: Likewise.
52379         * lib/unistr/u-strlen.h: Likewise.
52380         * lib/unistr/u-strncat.h: Likewise.
52381         * lib/unistr/u-strncpy.h: Likewise.
52382         * lib/unistr/u-strnlen.h: Likewise.
52383         * lib/unistr/u-strpbrk.h: Likewise.
52384         * lib/unistr/u-strspn.h: Likewise.
52385         * lib/unistr/u-strstr.h: Likewise.
52386         * lib/unistr/u-strtok.h: Likewise.
52387         * lib/unistr/u16-check.c: Likewise.
52388         * lib/unistr/u16-chr.c: Likewise.
52389         * lib/unistr/u16-cmp.c: Likewise.
52390         * lib/unistr/u16-cpy-alloc.c: Likewise.
52391         * lib/unistr/u16-cpy.c: Likewise.
52392         * lib/unistr/u16-endswith.c: Likewise.
52393         * lib/unistr/u16-mblen.c: Likewise.
52394         * lib/unistr/u16-mbsnlen.c: Likewise.
52395         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52396         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52397         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52398         * lib/unistr/u16-mbtouc.c: Likewise.
52399         * lib/unistr/u16-mbtoucr.c: Likewise.
52400         * lib/unistr/u16-move.c: Likewise.
52401         * lib/unistr/u16-next.c: Likewise.
52402         * lib/unistr/u16-prev.c: Likewise.
52403         * lib/unistr/u16-set.c: Likewise.
52404         * lib/unistr/u16-startswith.c: Likewise.
52405         * lib/unistr/u16-stpcpy.c: Likewise.
52406         * lib/unistr/u16-stpncpy.c: Likewise.
52407         * lib/unistr/u16-strcat.c: Likewise.
52408         * lib/unistr/u16-strchr.c: Likewise.
52409         * lib/unistr/u16-strcmp.c: Likewise.
52410         * lib/unistr/u16-strcpy.c: Likewise.
52411         * lib/unistr/u16-strcspn.c: Likewise.
52412         * lib/unistr/u16-strdup.c: Likewise.
52413         * lib/unistr/u16-strlen.c: Likewise.
52414         * lib/unistr/u16-strmblen.c: Likewise.
52415         * lib/unistr/u16-strmbtouc.c: Likewise.
52416         * lib/unistr/u16-strncat.c: Likewise.
52417         * lib/unistr/u16-strncmp.c: Likewise.
52418         * lib/unistr/u16-strncpy.c: Likewise.
52419         * lib/unistr/u16-strnlen.c: Likewise.
52420         * lib/unistr/u16-strpbrk.c: Likewise.
52421         * lib/unistr/u16-strrchr.c: Likewise.
52422         * lib/unistr/u16-strspn.c: Likewise.
52423         * lib/unistr/u16-strstr.c: Likewise.
52424         * lib/unistr/u16-strtok.c: Likewise.
52425         * lib/unistr/u16-to-u32.c: Likewise.
52426         * lib/unistr/u16-to-u8.c: Likewise.
52427         * lib/unistr/u16-uctomb-aux.c: Likewise.
52428         * lib/unistr/u16-uctomb.c: Likewise.
52429         * lib/unistr/u32-check.c: Likewise.
52430         * lib/unistr/u32-chr.c: Likewise.
52431         * lib/unistr/u32-cmp.c: Likewise.
52432         * lib/unistr/u32-cpy-alloc.c: Likewise.
52433         * lib/unistr/u32-cpy.c: Likewise.
52434         * lib/unistr/u32-endswith.c: Likewise.
52435         * lib/unistr/u32-mblen.c: Likewise.
52436         * lib/unistr/u32-mbsnlen.c: Likewise.
52437         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52438         * lib/unistr/u32-mbtouc.c: Likewise.
52439         * lib/unistr/u32-mbtoucr.c: Likewise.
52440         * lib/unistr/u32-move.c: Likewise.
52441         * lib/unistr/u32-next.c: Likewise.
52442         * lib/unistr/u32-prev.c: Likewise.
52443         * lib/unistr/u32-set.c: Likewise.
52444         * lib/unistr/u32-startswith.c: Likewise.
52445         * lib/unistr/u32-stpcpy.c: Likewise.
52446         * lib/unistr/u32-stpncpy.c: Likewise.
52447         * lib/unistr/u32-strcat.c: Likewise.
52448         * lib/unistr/u32-strchr.c: Likewise.
52449         * lib/unistr/u32-strcmp.c: Likewise.
52450         * lib/unistr/u32-strcpy.c: Likewise.
52451         * lib/unistr/u32-strcspn.c: Likewise.
52452         * lib/unistr/u32-strdup.c: Likewise.
52453         * lib/unistr/u32-strlen.c: Likewise.
52454         * lib/unistr/u32-strmblen.c: Likewise.
52455         * lib/unistr/u32-strmbtouc.c: Likewise.
52456         * lib/unistr/u32-strncat.c: Likewise.
52457         * lib/unistr/u32-strncmp.c: Likewise.
52458         * lib/unistr/u32-strncpy.c: Likewise.
52459         * lib/unistr/u32-strnlen.c: Likewise.
52460         * lib/unistr/u32-strpbrk.c: Likewise.
52461         * lib/unistr/u32-strrchr.c: Likewise.
52462         * lib/unistr/u32-strspn.c: Likewise.
52463         * lib/unistr/u32-strstr.c: Likewise.
52464         * lib/unistr/u32-strtok.c: Likewise.
52465         * lib/unistr/u32-to-u16.c: Likewise.
52466         * lib/unistr/u32-to-u8.c: Likewise.
52467         * lib/unistr/u32-uctomb.c: Likewise.
52468         * lib/unistr/u8-check.c: Likewise.
52469         * lib/unistr/u8-chr.c: Likewise.
52470         * lib/unistr/u8-cmp.c: Likewise.
52471         * lib/unistr/u8-cpy-alloc.c: Likewise.
52472         * lib/unistr/u8-cpy.c: Likewise.
52473         * lib/unistr/u8-endswith.c: Likewise.
52474         * lib/unistr/u8-mblen.c: Likewise.
52475         * lib/unistr/u8-mbsnlen.c: Likewise.
52476         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52477         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52478         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52479         * lib/unistr/u8-mbtouc.c: Likewise.
52480         * lib/unistr/u8-mbtoucr.c: Likewise.
52481         * lib/unistr/u8-move.c: Likewise.
52482         * lib/unistr/u8-next.c: Likewise.
52483         * lib/unistr/u8-prev.c: Likewise.
52484         * lib/unistr/u8-set.c: Likewise.
52485         * lib/unistr/u8-startswith.c: Likewise.
52486         * lib/unistr/u8-stpcpy.c: Likewise.
52487         * lib/unistr/u8-stpncpy.c: Likewise.
52488         * lib/unistr/u8-strcat.c: Likewise.
52489         * lib/unistr/u8-strchr.c: Likewise.
52490         * lib/unistr/u8-strcmp.c: Likewise.
52491         * lib/unistr/u8-strcpy.c: Likewise.
52492         * lib/unistr/u8-strcspn.c: Likewise.
52493         * lib/unistr/u8-strdup.c: Likewise.
52494         * lib/unistr/u8-strlen.c: Likewise.
52495         * lib/unistr/u8-strmblen.c: Likewise.
52496         * lib/unistr/u8-strmbtouc.c: Likewise.
52497         * lib/unistr/u8-strncat.c: Likewise.
52498         * lib/unistr/u8-strncmp.c: Likewise.
52499         * lib/unistr/u8-strncpy.c: Likewise.
52500         * lib/unistr/u8-strnlen.c: Likewise.
52501         * lib/unistr/u8-strpbrk.c: Likewise.
52502         * lib/unistr/u8-strrchr.c: Likewise.
52503         * lib/unistr/u8-strspn.c: Likewise.
52504         * lib/unistr/u8-strstr.c: Likewise.
52505         * lib/unistr/u8-strtok.c: Likewise.
52506         * lib/unistr/u8-to-u16.c: Likewise.
52507         * lib/unistr/u8-to-u32.c: Likewise.
52508         * lib/unistr/u8-uctomb-aux.c: Likewise.
52509         * lib/unistr/u8-uctomb.c: Likewise.
52510         * lib/unitypes.h: Likewise.
52511         * lib/uniwidth.h: Likewise.
52512         * lib/uniwidth/cjk.h: Likewise.
52513         * lib/uniwidth/u16-strwidth.c: Likewise.
52514         * lib/uniwidth/u16-width.c: Likewise.
52515         * lib/uniwidth/u32-strwidth.c: Likewise.
52516         * lib/uniwidth/u32-width.c: Likewise.
52517         * lib/uniwidth/u8-strwidth.c: Likewise.
52518         * lib/uniwidth/u8-width.c: Likewise.
52519         * lib/uniwidth/width.c: Likewise.
52520
52521 2007-10-07  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52524         The file is still under LGPL (see modules/inttypes).
52525
52526 2007-10-06  Bruno Haible  <bruno@clisp.org>
52527
52528         * modules/trunc (Dependencies): Add 'extensions'.
52529         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52530         Reported by Ben Pfaff <blp@gnu.org>.
52531
52532 2007-10-06  Bruno Haible  <bruno@clisp.org>
52533
52534         * modules/freopen-tests: New file.
52535         * tests/test-freopen.c: New file.
52536
52537         * modules/fopen-tests: New file.
52538         * tests/test-fopen.c: New file.
52539
52540         * modules/fopen: New file.
52541         * lib/fopen.c: New file.
52542         * m4/fopen.m4: New file.
52543         * modules/freopen: New file.
52544         * lib/freopen.c: New file.
52545         * m4/freopen.m4: New file.
52546         * lib/stdio.in.h (fopen, freopen): New declarations.
52547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52548         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52549         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52550         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52551         * doc/functions/fopen.texi: Mention the 'fopen' module.
52552         * doc/functions/freopen.texi: Mention the 'freopen' module.
52553
52554 2007-10-06  Bruno Haible  <bruno@clisp.org>
52555
52556         * modules/open-tests: New file.
52557         * tests/test-open.c: New file.
52558
52559         * modules/open: New file.
52560         * lib/open.c: New file.
52561         * m4/open.m4: New file.
52562         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52563         lib/open.c does.
52564         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52565         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52566         macros.
52567         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52568         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52569         REPLACE_OPEN.
52570         * doc/functions/open.texi: Mention the 'open' module.
52571
52572 2007-10-04  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/ceill-tests: New file.
52575         * tests/test-ceill.c: New file.
52576
52577         * modules/ceill: New file.
52578         * lib/ceill.c: Replace entire file.
52579         * m4/ceill.m4: New file.
52580         * lib/math.in.h (ceill): Replace declaration.
52581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52582         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52583         * doc/functions/ceill.texi: Mention the 'ceill' module.
52584         * modules/mathl (Files): Remove lib/ceill.c.
52585         (Depends-on): Add ceill.
52586
52587 2007-10-04  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/ceilf-tests: New file.
52590         * tests/test-ceilf.c: New file.
52591
52592         * modules/ceilf: New file.
52593         * lib/ceil.c: New file.
52594         * lib/ceilf.c: New file.
52595         * m4/ceilf.m4: New file.
52596         * lib/math.in.h (ceilf): New declaration.
52597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52598         HAVE_DECL_CEILF.
52599         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52600         HAVE_DECL_CEILF.
52601         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52602
52603 2007-10-04  Bruno Haible  <bruno@clisp.org>
52604
52605         * modules/floorl-tests: New file.
52606         * tests/test-floorl.c: New file.
52607
52608         * modules/floorl: New file.
52609         * lib/floorl.c: Replace entire file.
52610         * m4/floorl.m4: New file.
52611         * lib/math.in.h (floorl): Replace declaration.
52612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52613         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52614         * doc/functions/floorl.texi: Mention the 'floorl' module.
52615         * modules/mathl (Files): Remove lib/floorl.c.
52616         (Depends-on): Add floorl.
52617
52618 2007-10-04  Bruno Haible  <bruno@clisp.org>
52619
52620         * modules/floorf-tests: New file.
52621         * tests/test-floorf.c: New file.
52622
52623         * modules/floorf: New file.
52624         * lib/floor.c: New file.
52625         * lib/floorf.c: New file.
52626         * m4/floorf.m4: New file.
52627         * lib/math.in.h (floorf): New declaration.
52628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52629         HAVE_DECL_FLOORF.
52630         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52631         HAVE_DECL_FLOORF.
52632         * doc/functions/floorf.texi: Mention the 'floorf' module.
52633
52634 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52635             Bruno Haible  <bruno@clisp.org>
52636
52637         Advertise for the Git server instead of the CVS server.
52638         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52639         repository instead of the CVS one.
52640         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52641         about all VCS systems generically.
52642         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52643
52644 2007-10-04  Bruno Haible  <bruno@clisp.org>
52645
52646         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52647         means.
52648         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52649
52650 2007-10-04  Bruno Haible  <bruno@clisp.org>
52651
52652         * modules/truncl-tests: New file.
52653         * tests/test-truncl.c: New file.
52654
52655         * modules/truncl: New file.
52656         * lib/truncl.c: New file.
52657         * m4/truncl.m4: New file.
52658         * lib/math.in.h (truncl): New declaration.
52659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52660         HAVE_DECL_TRUNCL.
52661         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52662         HAVE_DECL_TRUNCL.
52663         * doc/functions/truncl.texi: Mention the 'truncl' module.
52664
52665 2007-10-04  Bruno Haible  <bruno@clisp.org>
52666
52667         * modules/truncf-tests: New file.
52668         * tests/test-truncf.c: New file.
52669
52670         * modules/truncf: New file.
52671         * lib/trunc.c: Make paramerizable through USE_* macros.
52672         * lib/truncf.c: New file.
52673         * m4/truncf.m4: New file.
52674         * lib/math.in.h (truncf): New declaration.
52675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52676         HAVE_DECL_TRUNCF.
52677         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52678         HAVE_DECL_TRUNCF.
52679         * doc/functions/truncf.texi: Mention the 'truncf' module.
52680
52681 2007-10-03  Bruno Haible  <bruno@clisp.org>
52682
52683         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52684         augmentation also for tests modules.
52685         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52686         * modules/atexit-tests (Makefile.am): Likewise.
52687         * modules/binary-io-tests (Makefile.am): Likewise.
52688         * modules/c-strcase-tests (Makefile.am): Likewise.
52689         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52690         * modules/canonicalize-tests (Makefile.am): Likewise.
52691         * modules/closein-tests (Makefile.am): Likewise.
52692         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52693         * modules/freadahead-tests (Makefile.am): Likewise.
52694         * modules/fseek-tests (Makefile.am): Likewise.
52695         * modules/fseeko-tests (Makefile.am): Likewise.
52696         * modules/ftell-tests (Makefile.am): Likewise.
52697         * modules/ftello-tests (Makefile.am): Likewise.
52698         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52699         * modules/isnanl-tests (Makefile.am): Likewise.
52700         * modules/lseek-tests (Makefile.am): Likewise.
52701         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52702         * modules/mbscasestr-tests (Makefile.am): Likewise.
52703         * modules/mbschr-tests (Makefile.am): Likewise.
52704         * modules/mbscspn-tests (Makefile.am): Likewise.
52705         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52706         * modules/mbspbrk-tests (Makefile.am): Likewise.
52707         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52708         * modules/mbsrchr-tests (Makefile.am): Likewise.
52709         * modules/mbsspn-tests (Makefile.am): Likewise.
52710         * modules/mbsstr-tests (Makefile.am): Likewise.
52711         * modules/printf-posix-tests (Makefile.am): Likewise.
52712         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52713         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52714         * modules/tsearch-tests (Makefile.am): Likewise.
52715         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52716         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52717         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52718         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52719         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52720         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52721         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52722         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52723         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52724         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52725         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52726         * modules/xstrtol-tests (Makefile.am): Likewise.
52727         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52728         * modules/yesno-tests (Makefile.am): Likewise.
52729
52730 2007-10-03  Bruno Haible  <bruno@clisp.org>
52731
52732         * modules/trunc-tests: New file.
52733         * tests/test-trunc.c: New file.
52734
52735         * modules/trunc: New file.
52736         * lib/trunc.c: New file.
52737         * m4/trunc.m4: New file.
52738         * lib/math.in.h (trunc): New declaration.
52739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52740         HAVE_DECL_TRUNC.
52741         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52742         HAVE_DECL_TRUNC.
52743         * doc/functions/trunc.texi: Mention the 'trunc' module.
52744
52745 2007-10-03  Bruno Haible  <bruno@clisp.org>
52746
52747         * tests/test-fpending.c: New file, mostly copied
52748         from coreutils/lib/t-fpending.c.
52749         * modules/fpending-tests: New file.
52750
52751 2007-10-03  Bruno Haible  <bruno@clisp.org>
52752
52753         Port the stdio extensions to QNX (untested).
52754         * lib/fseterr.c (fseterr): Add support for QNX.
52755         * lib/fbufmode.c (fbufmode): Likewise.
52756         * lib/freadable.c (freadable): Likewise.
52757         * lib/fwritable.c (fwritable): Likewise.
52758         * lib/freading.c (freading): Likewise.
52759         * lib/fwriting.c (fwriting): Likewise.
52760         * lib/freadahead.c (freadahed): Likewise.
52761         * lib/fpurge.c (fpurge): Likewise.
52762         * lib/fseeko.c (rpl_fseeko): Likewise.
52763
52764 2007-10-03  Bruno Haible  <bruno@clisp.org>
52765             Jim Meyering  <jim@meyering.net>
52766             Eric Blake  <ebb9@byu.net>
52767
52768         * doc/relocatable.texi: Use @command instead of @program.
52769
52770 2007-10-02  Jim Meyering  <jim@meyering.net>
52771
52772         Perform one more "_.h" -> ".in.h" substitution.
52773         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52774         instead of unistd_.h here, too.
52775
52776 2007-10-01  Bruno Haible  <bruno@clisp.org>
52777
52778         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52779         Needed for the alloca-opt module.
52780
52781 2007-09-30  Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52784         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52785         alloca_.h.
52786         * lib/argz.in.h: Renamed from lib/argz_.h.
52787         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52788         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52789         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52790         byteswap_.h.
52791         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52792         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52793         dirent_.h.
52794         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52795         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52796         fcntl_.h.
52797         * lib/float.in.h: Renamed from lib/float_.h.
52798         * modules/float (Files, Makefile.am): Use float.in.h instead of
52799         float_.h.
52800         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52801         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52802         fnmatch_.h.
52803         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52804         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52805         getopt_.h.
52806         * lib/glob.in.h: Renamed from lib/glob_.h.
52807         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52808         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52809         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52810         iconv_.h.
52811         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52812         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52813         inttypes_.h.
52814         * lib/locale.in.h: Renamed from lib/locale_.h.
52815         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52816         locale_.h.
52817         * lib/math.in.h: Renamed from lib/math_.h.
52818         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52819         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52820         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52821         of netinet_in_.h. Add dependency.
52822         * lib/poll.in.h: Renamed from lib/poll_.h.
52823         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52824         * lib/search.in.h: Renamed from lib/search_.h.
52825         * modules/search (Files, Makefile.am): Use search.in.h instead of
52826         search_.h.
52827         * lib/signal.in.h: Renamed from lib/signal_.h.
52828         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52829         _signal.h.
52830         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52831         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52832         stdbool_.h.
52833         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52834         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52835         stdint_.h.
52836         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52837         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52838         stdio_.h.
52839         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52840         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52841         stdlib_.h.
52842         * lib/string.in.h: Renamed from lib/string_.h.
52843         * modules/string (Files, Makefile.am): Use string.in.h instead of
52844         string_.h.
52845         * doc/gnulib-tool.texi (Initial import): Update.
52846         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52847         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52848         of sys_select_.h. Add dependency.
52849         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52850         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52851         of sys_socket_.h.
52852         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52853         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52854         sys_stat_.h.
52855         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52856         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52857         sys_time_.h.
52858         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52859         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52860         sysexits_.h.
52861         * lib/time.in.h: Renamed from lib/time_.h.
52862         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52863         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52864         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52865         unistd_.h.
52866         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52867         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52868         wchar_.h.
52869         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52870         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52871         wctype_.h.
52872         * build-aux/bootstrap (slurp): Update.
52873         * lib/.cppi-disable: Update.
52874
52875 2007-09-30  Bruno Haible  <bruno@clisp.org>
52876
52877         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52878         Needed on BeOS.
52879
52880 2007-09-30  Bruno Haible  <bruno@clisp.org>
52881
52882         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52883
52884 2007-09-29  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52887
52888 2007-09-29  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52891         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52892         * build-aux/install-reloc: Compile also areadlink.c.
52893         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52894
52895 2007-09-29  Bruno Haible  <bruno@clisp.org>
52896
52897         * gnulib-tool (func_emit_initmacro_done): Indentation.
52898
52899 2007-09-29  Bruno Haible  <bruno@clisp.org>
52900
52901         * README: Add CVS checkout update instructions.
52902         Info from Bob Proulx <bob@proulx.com>.
52903
52904 2007-09-28  Eric Blake  <ebb9@byu.net>
52905
52906         Provide move-if-change.
52907         * build-aux/move-if-change: New file, based on best practice
52908         rather than any canonical upstream location.
52909
52910 2007-09-28  Jim Meyering  <jim@meyering.net>
52911
52912         Fix canonicalize loop-detection corner case.
52913         Do not attempt to stat the symlink values stored via seen_triple.
52914         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52915         on linux-2.6.18, (but not 2.6.22).
52916         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52917         triple_compare.  The former compares dev,ino,filename, while the latter
52918         would actually stat dirname(filename) when dev and ino were equal.
52919         * lib/hash-triple.c: Install <string.h>.
52920         (STREQ): Define.
52921         (triple_compare_ino_str): New function.
52922         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52923
52924 2007-09-28  Eric Blake  <ebb9@byu.net>
52925
52926         Enforce that AC_REPLACE_FUNCS files exist.
52927         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52928         override check for typos.
52929
52930         Fix test-closein on Solaris 10.
52931         * tests/test-closein.c (main): Don't assume stdin can be inherited
52932         closed on all systems.
52933         * tests/test-closein.sh: Likewise.
52934         Reported by Piotr Tarnowski.
52935
52936 2007-09-28  Jim Meyering  <jim@meyering.net>
52937
52938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52939
52940 2007-09-27  Jim Meyering  <jim@meyering.net>
52941
52942         canonicalize: Avoid a false-positive cycle failure.
52943         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52944         Sort.  Remove cycle-check.
52945         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52946         not cycle-check.h.
52947         (seen_triple): New function.
52948         (canonicalize_filename_mode): Use it instead of cycle-check.
52949         * tests/test-canonicalize.c: Add a test for this bug.
52950         * tests/test-canonicalize.sh: Set up and run the test.
52951
52952         New module, file-set, from coreutils.
52953         * modules/file-set: Define it.
52954         * lib/file-set.c, lib/file-set.h: Implement.
52955
52956         New module, hash-triple, from coreutils.
52957         * modules/hash-triple: Define it.
52958         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52959
52960 2007-09-25  Eric Blake  <ebb9@byu.net>
52961
52962         Fix strerror on Interix.
52963         * lib/string_.h (strerror): Declare replacement.
52964         * doc/functions/strerror.texi (strerror): Document the Interix
52965         shortcoming.
52966         * modules/string (Makefile.am): Support new hooks.
52967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52968         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52969         gl_FUNC_STRERROR_SEPARATE.
52970         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52971         * lib/strerror.c (rpl_strerror): Provide replacement.
52972         * modules/strerror (Depends-on): Add string.
52973         (configure.ac): Detect use of module.
52974         * tests/test-strerror.c: New file.
52975         * modules/strerror-tests: New test module.
52976         * modules/argp (Depends-on): Add strerror.
52977         * modules/error (Depends-on): Likewise.
52978         Reported by Martin Koeppe.
52979
52980 2007-09-24  Bruno Haible  <bruno@clisp.org>
52981
52982         * README: Update git instructions.
52983
52984 2007-09-24  Eric Blake  <ebb9@byu.net>
52985
52986         Revert fpending breakage from 2007-09-08.
52987         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52988         __fpending.c.
52989
52990 2007-09-24  Jim Meyering  <jim@meyering.net>
52991
52992         filenamecat.c: Add a test.
52993         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52994         showing how the function works when DIR is the empty string.
52995
52996 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52997
52998         * tests/test-canonicalize.sh: Turn on executable bit.
52999
53000 2007-09-19  Eric Blake  <ebb9@byu.net>
53001
53002         * README: Update CVS instructions.
53003
53004 2007-09-18  Bruno Haible  <bruno@clisp.org>
53005
53006         * modules/areadlink: New file.
53007         * lib/areadlink.h (areadlink): New declaration.
53008         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53009
53010 2007-09-17  Jim Meyering  <jim@meyering.net>
53011
53012         * lib/savewd.c (ESTALE) [!defined]: Define.
53013         Reported to be required on Interix by Martin Koeppe.
53014
53015 2007-09-17  Bruno Haible  <bruno@clisp.org>
53016
53017         * gnulib-tool (func_version): Use $version.
53018
53019 2007-09-16  Bruno Haible  <bruno@clisp.org>
53020
53021         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53022         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53023         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53024         Reported by Greg Schafer <gschafer@zip.com.au>.
53025
53026 2007-09-15  Bruno Haible  <bruno@clisp.org>
53027
53028         * gnulib-tool (sed): Try a little harder to make bash understand the
53029         alias.
53030         Reported by Bruce Korb <bruce.korb@gmail.com>.
53031
53032 2007-09-13  Eric Blake  <ebb9@byu.net>
53033
53034         * ChangeLog: Remove conflict markers.
53035
53036 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53037
53038         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53039         Reported by Bruno Haible <bruno@clisp.org>.
53040
53041 2007-09-12  Bruno Haible  <bruno@clisp.org>
53042
53043         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53044         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53045         is not defined.
53046
53047 2007-09-12  Eric Blake  <ebb9@byu.net>
53048
53049         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53050         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53051         Autoconf definition.
53052         * modules/euidaccess (Depends-on): Add extensions, for
53053         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53054         * modules/fnmatch (Depends-on): Likewise.
53055         * modules/getaddrinfo (Depends-on): Likewise.
53056         * modules/getdelim (Depends-on): Likewise.
53057         * modules/getline (Depends-on): Likewise.
53058         * modules/getsubopt (Depends-on): Likewise.
53059         * modules/gettext (Depends-on): Likewise.
53060         * modules/group-member (Depends-on): Likewise.
53061         * modules/mbchar (Depends-on): Likewise.
53062         * modules/memmem (Depends-on): Likewise.
53063         * modules/mempcpy (Depends-on): Likewise.
53064         * modules/memrchr (Depends-on): Likewise.
53065         * modules/pagealign_alloc (Depends-on): Likewise.
53066         * modules/readutmp (Depends-on): Likewise.
53067         * modules/stpcpy (Depends-on): Likewise.
53068         * modules/stpncpy (Depends-on): Likewise.
53069         * modules/strchrnul (Depends-on): Likewise.
53070         * modules/strndup (Depends-on): Likewise.
53071         * modules/strsep (Depends-on): Likewise.
53072         * modules/strverscmp (Depends-on): Likewise.
53073         * modules/vasprintf (Depends-on): Likewise.
53074         * modules/wcwidth (Depends-on): Likewise.
53075         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53076         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53077         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53080         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53081         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53082         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53083         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53084         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53088         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53089         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53090         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53091         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53092         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53094         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53095         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53097         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53098         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53099         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53101         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53102         so that lock.m4 can be used in gettext without extensions module.
53103
53104 2007-09-11  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/isc-posix.m4: Remove file.
53107         Suggested by Eric Blake.
53108
53109 2007-09-11  Eric Blake  <ebb9@byu.net>
53110
53111         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53112
53113 2007-09-10  Bruno Haible  <bruno@clisp.org>
53114
53115         * posix-modules: Fix typo in error message.
53116         Reported by Matt <mkraai@beckman.com>.
53117
53118 2007-09-09  Bruno Haible  <bruno@clisp.org>
53119
53120         * doc/functions/getdelim.texi: Update list of platforms lacking the
53121         function.
53122         * doc/functions/getline.texi: Likewise.
53123
53124 2007-09-09  Jim Meyering  <jim@meyering.net>
53125
53126         * lib/hash.c (hash_initialize): Detect calloc failure.
53127         Reported by Bruno Haible.
53128
53129 2007-09-09  Bruno Haible  <bruno@clisp.org>
53130
53131         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53132         malloc or realloc fails.
53133
53134 2007-09-09  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/getcwd (Depends-on): Add malloc-posix.
53137         * modules/glob (Depends-on): Likewise.
53138         * modules/putenv (Depends-on): Likewise.
53139         * modules/strdup (Depends-on): Likewise.
53140         * modules/getdelim (Depends-on): Add realloc-posix.
53141         * modules/read-file (Depends-on): Likewise.
53142
53143 2007-09-09  Bruno Haible  <bruno@clisp.org>
53144
53145         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53146         (gl_FUNC_MALLOC_POSIX): Require it.
53147         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53148         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53149         * modules/realloc (Files): Add m4/malloc.m4.
53150         * modules/calloc (Files): Likewise.
53151
53152 2007-09-09  Bruno Haible  <bruno@clisp.org>
53153
53154         * modules/malloc-posix: New file.
53155         * modules/malloc (Depends-on): Add malloc-posix.
53156         * lib/malloc.c: Include errno.h.
53157         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53158         and a POSIX-compatible malloc into a single function. Set ENOMEM
53159         when returning NULL.
53160         * m4/malloc.m4: New file.
53161         * doc/functions/malloc.texi: Mention the malloc-posix module.
53162         * lib/stdlib_.h (malloc): New declaration.
53163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53164         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53165         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53166         and HAVE_MALLOC_POSIX.
53167
53168 2007-09-09  Bruno Haible  <bruno@clisp.org>
53169
53170         * modules/realloc-posix: New file.
53171         * modules/realloc (Depends-on): Add realloc-posix.
53172         * lib/realloc.c: Include errno.h.
53173         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53174         and a POSIX-compatible realloc into a single function. Set ENOMEM
53175         when returning NULL.
53176         * m4/realloc.m4: New file.
53177         * doc/functions/realloc.texi: Mention the realloc-posix module.
53178         * lib/stdlib_.h (realloc): New declaration.
53179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53180         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53181         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53182         and HAVE_REALLOC_POSIX.
53183
53184 2007-09-09  Bruno Haible  <bruno@clisp.org>
53185
53186         * modules/calloc-posix: New file.
53187         * modules/calloc (Depends-on): Add calloc-posix.
53188         * lib/calloc.c: Include errno.h.
53189         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53190         and a POSIX-compatible calloc into a single function. Set ENOMEM
53191         when returning NULL.
53192         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53193         * doc/functions/calloc.texi: Mention the calloc-posix module.
53194         * lib/stdlib_.h (calloc): New declaration.
53195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53196         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53197         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53198         and HAVE_CALLOC_POSIX.
53199
53200 2007-09-09  Bruno Haible  <bruno@clisp.org>
53201
53202         Allow for modules to show an arbitrary notice.
53203         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53204         * gnulib-tool: New option --extract-notice.
53205         (func_usage): Document it.
53206         (sed_extract_prog): Update.
53207         (func_get_notice): New function.
53208         (func_modules_notice): New function.
53209         (func_import, func_create_testdir): Invoke it.
53210         Suggested by Jim Meyering.
53211
53212 2007-09-09  Bruno Haible  <bruno@clisp.org>
53213
53214         * gnulib-tool: New options --verbose, --quiet.
53215         (func_usage): Document them.
53216         (verbose): New variable.
53217         (func_execute_command): New function.
53218         (func_import): Don't show the module list and the file list if
53219         $verbose < 0.
53220         (func_create_testdir): Likewise. Use func_execute_command.
53221         (func_create_megatestdir): Use func_execute_command.
53222
53223 2007-09-08  Bruno Haible  <bruno@clisp.org>
53224
53225         * gnulib-tool (func_import): Prefer rsync over wget when available,
53226         for fetching the PO files.
53227
53228 2007-09-08  Bruno Haible  <bruno@clisp.org>
53229
53230         * posix-modules: New file. Portions copied from gnulib-tool.
53231         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53232
53233 2007-09-08  Jim Meyering  <jim@meyering.net>
53234
53235         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53236         * lib/fpending.h: Rename from __fpending.h.
53237         * lib/fpending.c: Rename from __fpending.c.
53238         Include "fpending.h", not "__fpending.h".
53239         * lib/__fpending.h, lib/__fpending.c: Remove files.
53240         * modules/fpending (Files): Reflect new file names.
53241         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53242
53243 2007-09-08  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/inttypes-h.m4: Remove stub file.
53246
53247 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53248
53249         * doc/headers/stdint.texi: Discuss #include_next issue.
53250
53251 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53254
53255 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53256
53257         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53258         in variable name.
53259
53260 2007-09-03  Jim Meyering  <jim@meyering.net>
53261
53262         New module: git-version-gen.
53263         * modules/git-version-gen: New file.
53264
53265         Import changes from coreutils for bootstrap script.
53266
53267         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53268
53269         bootstrap: uses rsync to download the .po files
53270         * build-aux/bootstrap (po_download_command_format): New global.
53271         (download_po_files): Use rsync.
53272         (update_po_files): Don't remove .po files after download,
53273         so future rsync runs can take advantage of the copies.
53274
53275         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53276
53277         Solve the unnecessary-.po-file-regeneration problem once and for all.
53278         * build-aux/bootstrap (download_po_files): New function, renamed from
53279         get_translations.  Now, downloads, but doesn't update LINGUAS.
53280         (update_po_files): New function.
53281
53282         bootstrap: Ignore more.
53283         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53284         uniwidth to e.g., lib/.gitignore.
53285         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53286
53287         * build-aux/bootstrap: New setting: vc_ignore.
53288         (insert_sorted_if_absent): Create $file if absent.
53289         Adapt to new, possibly empty, list: $vc_ignore.
53290
53291         bootstrap: generate more ignorable names
53292         * build-aux/bootstrap (slurp): When generating ignorable names,
53293         also map .sin to .sed, .gperf to .c, and .y to .c.
53294
53295 2007-09-03  Jim Meyering  <jim@meyering.net>
53296
53297         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53298         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53299
53300 2007-09-02  Bruno Haible  <bruno@clisp.org>
53301
53302         Fix mis-recognition of 'mcs' on QNX 6.
53303         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53304         output contains the string "Mono".
53305         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53306         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53307
53308 2007-09-01  Bruno Haible  <bruno@clisp.org>
53309
53310         Fix collision between uniwidth/* and linebreak modules.
53311         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53312         u32_width): Remove declarations.
53313         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53314         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53315         streq3, streq2, streq1, streq0): Remove functions.
53316         (STREQ): Remove macro.
53317         (is_cjk_encoding): Remove function.
53318         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53319         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53320         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53321         * NEWS: Document the change.
53322
53323 2007-09-01  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/streq.h: Add double-inclusion guard.
53326
53327 2007-09-01  Karl Berry  <karl@gnu.org>
53328
53329         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53330
53331 2007-08-28  Jim Meyering  <jim@meyering.net>
53332
53333         Rename mreadlink_with_size to areadlink_with_size.
53334         * NEWS: Document the change.
53335         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53336         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53337         * lib/mreadlink.h: Rename this to...
53338         * lib/areadlink.h: ...this.
53339         * modules/mreadlink-with-size: Rename this to...
53340         * modules/areadlink-with-size: ...this.
53341         * lib/canonicalize.c: Reflect the renaming.
53342         * modules/canonicalize: Likewise.
53343
53344 2007-08-26  Bruno Haible  <bruno@clisp.org>
53345
53346         * gnulib-tool (func_import): When deciding which files to remove,
53347         consider also dangling symbolic links.
53348         Reported by Eric Blake.
53349
53350 2007-08-26  Bruno Haible  <bruno@clisp.org>
53351
53352         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53353
53354 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53355
53356         * lib/readline.c: Don't include getline.h, the prototype is now
53357         found in stdio.h.
53358
53359 2007-08-23  Jim Meyering  <jim@meyering.net>
53360
53361         Getdelim touchup.
53362         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53363         around the funlockfile call, since funlockfile never sets errno.
53364         Don't set errno upon failed realloc.
53365
53366 2007-08-22  Eric Blake  <ebb9@byu.net>
53367
53368         Getline touchups.
53369         * lib/getdelim.c (getdelim): Revert regression that required *n to
53370         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53371         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53372         getdelim, rather than whether implementation is missing.
53373         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53374         * lib/stdio_.h (getline): Also declare if replacement is
53375         required.
53376         * doc/functions/getdelim.texi: New file.
53377         * doc/functions/getline.texi: Likewise.
53378         * doc/gnulib.texi (Function Substitutes): Add new files.
53379         Reported by Bruno Haible.
53380
53381 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53382
53383         * users.txt: Add Guile.
53384
53385 2007-08-22  Eric Blake  <ebb9@byu.net>
53386
53387         * tests/test-getdelim.c (main): Use remove, not unlink.
53388         * tests/test-getline.c (main): Likewise.
53389
53390         Move getline and getdelim into stdio.h, per POSIX 200x.
53391         * modules/getline (Files): Remove getline.h.
53392         (Depends-on): Add stdio.
53393         (configure.ac): Add module indicator.
53394         * modules/getdelim (Files): Remove getdelim.h.
53395         (Depends-on): Add stdio.
53396         (configure.ac): Add module indicator.
53397         * modules/stdio (Makefile.am): Work with new indicators.
53398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53400         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53401         * lib/getdelim.h: Delete.
53402         * lib/getline.h: Delete.
53403         * lib/stdio_.h (getdelim, getline): Declare.
53404         * modules/getdelim-tests: New module.
53405         * modules/getline-tests: Likewise.
53406         * tests/test-getdelim.c: New file.
53407         * tests/test-getline.c: Likewise.
53408         * NEWS: Document the change.
53409         * lib/getline.c: Update choice of header.
53410         * lib/csharpcomp.c: Likewise.
53411         * lib/getpass.c: Likewise.
53412         * lib/javacomp.c: Likewise.
53413         * lib/javaversion.c: Likewise.
53414         * lib/yesno.c: Likewise.
53415         * lib/getdelim.c: Likewise.
53416         (getdelim): Set errno on failure, and avoid memory leak.
53417
53418 2007-08-19  Bruno Haible  <bruno@clisp.org>
53419
53420         * modules/closein (Depends-on): Add freadahead.
53421         * lib/closein.c: Include freadahead.h.
53422         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53423         is zero.
53424
53425 2007-08-19  Bruno Haible  <bruno@clisp.org>
53426
53427         * modules/freadahead-tests: New file.
53428         * tests/test-freadahead.sh: New file.
53429         * tests/test-freadahead.c: New file.
53430
53431         * modules/freadahead: New file.
53432         * lib/freadahead.h: New file.
53433         * lib/freadahead.c: New file.
53434         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53435         fbufmode, fpurge, freadable, fwritable.
53436
53437 2007-08-19  Eric Blake  <ebb9@byu.net>
53438
53439         Test yesno in combination with closein.
53440         * lib/yesno.c (yesno): Document use of stdin.
53441         * modules/yesno-tests (Files): New module.
53442         * tests/test-yesno.c (main): New file.
53443         * tests/test-yesno.sh: Likewise.
53444
53445 2007-08-19  Bruno Haible  <bruno@clisp.org>
53446
53447         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53448         * lib/fseeko.c (rpl_fseeko): Likewise.
53449         * lib/fseterr.c (fseterr): Likewise.
53450
53451 2007-08-19  Bruno Haible  <bruno@clisp.org>
53452
53453         * tests/test-lseek.c (main): Disable a test for BeOS.
53454         * doc/functions/lseek.texi: Document the BeOS bug.
53455
53456 2007-08-19  Bruno Haible  <bruno@clisp.org>
53457             Eric Blake  <ebb9@byu.net>
53458
53459         * lib/lseek.c: Include <sys/stat.h>.
53460         (rpl_lseek): Add workaround code also for Unix platforms.
53461         Needed for BeOS.
53462         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53463         * doc/functions/lseek.texi: Document BeOS definiency.
53464
53465 2007-08-18  Bruno Haible  <bruno@clisp.org>
53466
53467         * modules/fstrcmp-tests: New file.
53468         * tests/test-fstrcmp.c: New file.
53469
53470 2007-08-18  Bruno Haible  <bruno@clisp.org>
53471
53472         * modules/fstrcmp: New file, from GNU gettext with modifications.
53473         * lib/fstrcmp.h: New file, from GNU gettext.
53474         * lib/fstrcmp.c: New file, from GNU gettext.
53475         * MODULES.html.sh (String handling): Add fstrcmp.
53476
53477 2007-08-18  Bruno Haible  <bruno@clisp.org>
53478
53479         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53480         'bool'.
53481         (diag, compareseq): Remove const from the ctxt argument.
53482         (USE_HEURISTIC): Undefine at the end.
53483
53484 2007-08-18  Jim Meyering  <jim@meyering.net>
53485
53486         New file: lib/idcache.h
53487         * NEWS: Mention the addition.
53488         * modules/idcache (Files): Add lib/idcache.h
53489         * lib/idcache.c: Include "idcache.h".
53490         Don't include <sys/types.h>.
53491         Add a FIXME comment.
53492         Move file-scoped "static" declarations to the top.
53493         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53494
53495 2007-08-17  Bruno Haible  <bruno@clisp.org>
53496         and Paul Eggert  <eggert@cs.ucla.edu>
53497
53498         * MODULES.html.sh: Add diffseq.
53499         * modules/diffseq: New file.
53500         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53501         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53502
53503 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53504
53505         Import changes from coreutils for bootstrap script.
53506
53507         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * build-aux/bootstrap (slurp): Work even in environments where
53510         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53511         current code does not slurp files whose names start with ".", and
53512         this looks like it might be a troublesome area.
53513
53514         2007-07-11  Jim Meyering  <jim@meyering.net>
53515
53516         If there's a GPL vN copyright comment, require that N == 3.
53517
53518         2007-07-08  Jim Meyering  <jim@meyering.net>
53519
53520         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53521         * build-aux/bootstrap (mam_template): Move definition out of loop.
53522
53523         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53524
53525         * build-aux/bootstrap (symlink_to_dir): Rename function from
53526         symlink_to_gnulib.  Add a directory parameter.  Update all
53527         callers.
53528         (cp_mark_as_generated): Also check for -- and link to -- files in
53529         gl/.
53530
53531         2007-07-08  Jim Meyering  <jim@meyering.net>
53532
53533         Adapt to deeper hierarchy in gnulib.
53534         * build-aux/bootstrap (symlink_to_dir): If the destination
53535         directory doesn't exist, create it. This is required at least for
53536         "lib/uniwidth/cjk.h".
53537
53538         2007-05-15  Jim Meyering  <jim@meyering.net>
53539
53540         * build-aux/bootstrap: Now that generated Makefile.am files
53541         are no longer under version control, they must be created at
53542         bootstrap time.
53543
53544 2007-08-14  Ben Pfaff  <blp@gnu.org>
53545
53546         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53547
53548 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53551         given the changes below.
53552         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53553         even on hosts that have padding bits beyond the supported 64.
53554
53555 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53558         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53559         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53560         depends on it.
53561         (xstrtol_error): Remove.
53562         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53563         but with a different signature.
53564         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53565         * lib/xstrtol-error.c: Include exitfail.h.
53566         (xstrtol_fatal): New function, with a different signature from the
53567         old xstrtol_error, so that the caller need not worry about passing
53568         in an exit status, or about storage management of the option argument.
53569         (xstrtol_error): Now a static function.  Redo signature to
53570         implement xstrtol_fatal.  Output the correct number of hyphens in
53571         front of the option so that the caller need not worry about
53572         storage management.
53573         (N_): New macro.
53574         (_): Remove; not used now.
53575         * modules/xstrtol: Depend on getopt.
53576         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53577         of old STRTOL_FATAL_ERROR macro.
53578         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53579         of test program.
53580         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53581         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53582
53583 2007-08-08  Eric Blake  <ebb9@byu.net>
53584
53585         * lib/xstrtol-error.c: Add missing include.
53586
53587         Move xstrtol messages into gnulib domain, when --pobase is used.
53588         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53589         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53590         * modules/xstrtol (Files): Distribute new file.
53591         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53592         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53593         * tests/test-xstrtol.c: ...into new file.
53594         * tests/test-xstrtoul.c: Also test xstrtoul.
53595         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53596         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53597         * tests/test-xstrtol.sh: Drive the tests.
53598         * tests/test-xstrtoimax.sh: Likewise.
53599         * tests/test-xstrtoumax.sh: Likewise.
53600         * modules/xstrtol-tests: New module.
53601         * modules/xstrtoimax-tests: Likewise.
53602         * modules/xstrtoumax-tests: Likewise.
53603
53604 2007-08-08  Jim Meyering  <jim@meyering.net>
53605
53606         New function: mfile_name_concat.
53607         * lib/filenamecat.c (mfile_name_concat): New function, just like
53608         file_name_concat, but return NULL upon failure rather than exiting
53609         with a diagnostic.
53610         * lib/filenamecat.h: Declare it.
53611
53612 2007-08-07  Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53615         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53616         warning from gcc.
53617         Reported by Eric Blake.
53618
53619 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53620
53621         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53622         * modules/crypto/arcfour (License): Likewise.
53623         * modules/crypto/des-tests (License): Likewise.
53624         * modules/crypto/gc-arctwo-tests (License): Likewise.
53625         * modules/crypto/gc-des-tests (License): Likewise.
53626         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53627         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53628         * modules/crypto/gc-md2-tests (License): Likewise.
53629         * modules/crypto/gc-md4-tests (License): Likewise.
53630         * modules/crypto/gc-md5-tests (License): Likewise.
53631         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53632         * modules/crypto/gc-rijndael-tests (License): Likewise.
53633         * modules/crypto/gc-sha1-tests (License): Likewise.
53634         * modules/crypto/gc-tests (License): Likewise.
53635         * modules/crypto/hmac-md5 (License): Likewise.
53636         * modules/crypto/hmac-sha1 (License): Likewise.
53637         * modules/crypto/md2-tests (License): Likewise.
53638         * modules/crypto/md4-tests (License): Likewise.
53639         * modules/crypto/md5 (License): Likewise.
53640         * modules/crypto/rijndael (License): Likewise.
53641         * modules/crypto/sha1 (License): Likewise.
53642         * modules/memxor (License): Likewise.
53643
53644 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53645         and Bruno Haible  <bruno@clisp.org>
53646
53647         * NEWS: Describe interface changes to human, xstrtol.
53648         * lib/human.h: Include <xstrtol.h>.
53649         (human_options): Return enum strtol_error, not int.  Remove
53650         bool arg; take int * instead.
53651         * lib/human.c: Don't include "gettext.h".
53652         (_): Remove; no longer used.
53653         Don't include <xstrtol.h>, since human.h does it.
53654         (human_options): Adjust to abovementioned interface changes.
53655         Do not report error to stderr; that's now the caller's
53656         responsibility.
53657         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53658         interface change.
53659         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53660         Str, Argument_type_string.  All uses changed.  Put " argument"
53661         in diagnostics to make them clearer.  Change wording of suffix
53662         message for clarity.
53663         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53664         Argument_type_string.
53665         (STRTOL_FATAL_WARN): Remove; no longer used.
53666         * modules/human (Depends-on): Remove gettext-h.
53667
53668 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53669
53670         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53671
53672 2007-07-31  Bruno Haible  <bruno@clisp.org>
53673
53674         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53675         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53676         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53677
53678 2007-07-31  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53681         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53682
53683 2007-07-30  Bruno Haible  <bruno@clisp.org>
53684
53685         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53686         * modules/c-ctype (License): Likewise.
53687         * modules/c-strcase (License): Likewise.
53688         * modules/check-version (License): Likewise.
53689         * modules/iconv (License): Likewise.
53690         * modules/iconv_open (License): Likewise.
53691         * modules/read-file (License): Likewise.
53692         * modules/striconv (License): Likewise.
53693         * modules/strverscmp (License): Likewise.
53694         * modules/vasprintf (License): Likewise.
53695         * modules/crypto/des (License): Likewise.
53696         * modules/crypto/gc (License): Likewise.
53697         * modules/crypto/gc-arcfour (License): Likewise.
53698         * modules/crypto/gc-arctwo (License): Likewise.
53699         * modules/crypto/gc-des (License): Likewise.
53700         * modules/crypto/gc-hmac-md5 (License): Likewise.
53701         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53702         * modules/crypto/gc-md2 (License): Likewise.
53703         * modules/crypto/gc-md4 (License): Likewise.
53704         * modules/crypto/gc-md5 (License): Likewise.
53705         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53706         * modules/crypto/gc-random (License): Likewise.
53707         * modules/crypto/gc-rijndael (License): Likewise.
53708         * modules/crypto/gc-sha1 (License): Likewise.
53709         * modules/crypto/md2 (License): Likewise.
53710         * modules/crypto/md4 (License): Likewise.
53711
53712 2007-07-30  Jim Meyering  <jim@meyering.net>
53713
53714         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53715         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53716         it has valid stat data.  This bug would cause du not to count the
53717         sizes of inaccessible directories.
53718         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53719         in <http://bugzilla.redhat.com/250077>.
53720
53721 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53722             Bruno Haible  <bruno@clisp.org>
53723
53724         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53725         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53726         #include_next, gives a diagnostic about it, but reports no error in
53727         the exit code.
53728         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53729
53730 2007-07-24  Ben Pfaff  <blp@gnu.org>
53731
53732         Improve name: "count-one-bits" is better than "popcount".
53733         * MODULES.html.sh: Update name.
53734         * lib/popcount.h: Renamed lib/count-one-bits.h.
53735         (popcount): Renamed count_one_bits.
53736         (popcountl): Renamed count_one_bits_l.
53737         (popcountll): Renamed count_one_bits_ll.
53738         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53739         * modules/popcount: Renamed module/count-one-bits.
53740         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53741         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53742
53743 2007-07-23  Ben Pfaff  <blp@gnu.org>
53744
53745         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53746         better code generation, and add U to large constants to avoid
53747         warnings, in non-GCC case.
53748         Suggested by Bruno Haible.
53749
53750 2007-07-23  Ben Pfaff  <blp@gnu.org>
53751
53752         * lib/popcount.h: Use verify_true instead of if...abort.
53753         * modules/popcount: Depend on verify module.
53754         Suggested by Jim Meyering.
53755
53756 2007-07-23  Bruno Haible  <bruno@clisp.org>
53757
53758         * gnulib-tool (func_import): Create a .cvsignore file also when the
53759         directory is not yet in CVS but the toplevel directory is. When
53760         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53761         Reported by Karl Berry.
53762
53763 2007-07-22  Ben Pfaff  <blp@gnu.org>
53764
53765         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53766         case.
53767         Suggested by Eric Blake.
53768
53769 2007-07-22  Ben Pfaff  <blp@gnu.org>
53770
53771         New module: popcount.
53772         * MODULES.html.sh: Add popcount.
53773         * modules/popcount: New file.
53774         * modules/popcount-tests: New file.
53775         * tests/test-popcount.c: New file.
53776         * lib/popcount.h: New file.
53777         * m4/popcount.m4: New file.
53778
53779 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53780
53781         * build-aux/announce-gen: Update to GPLv3.
53782
53783         * build-aux/config.guess: Update from config.
53784
53785 2007-07-21  Bruno Haible  <bruno@clisp.org>
53786
53787         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53788         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53789
53790 2007-07-20  Jim Meyering  <jim@meyering.net>
53791
53792         * check-module: Diagnose a self-dependency.
53793
53794 2007-07-19  Bruno Haible  <bruno@clisp.org>
53795
53796         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53797         empty.
53798         Reported by Eric Blake.
53799
53800 2007-07-18  Bruno Haible  <bruno@clisp.org>
53801
53802         * gnulib-tool: New options --po-base, --po-domain.
53803         (func_usage): Document them.
53804         (pobase, po_domain): New variables.
53805         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53806         DEFAULT_TEXT_DOMAIN.
53807         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53808         (func_import): Consider pobase and po_domain. Create a po/ directory.
53809         (func_create_testdir): Set pobase and po_domain to empty.
53810         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53811         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53812
53813 2007-07-18  Bruno Haible  <bruno@clisp.org>
53814
53815         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53816         EXTRA_DIST augmentation for files in build-aux/.
53817
53818 2007-07-16  Bruno Haible  <bruno@clisp.org>
53819
53820         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53821         * modules/getdelim (License): Likewise.
53822
53823 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53824
53825         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53826         * modules/d-type (License): Likewise.
53827         * modules/extensions (License): Likewise.
53828         * modules/fnmatch (License): Likewise.
53829         * modules/fseeko (License): Likewise.
53830         * modules/getaddrinfo (License): Likewise.
53831         * modules/getline (License): Likewise.
53832         * modules/getlogin_r (License): Likewise.
53833         * modules/getpass (License): Likewise.
53834         * modules/gettimeofday (License): Likewise.
53835         * modules/glob (License): Likewise.
53836         * modules/inet_ntop (License): Likewise.
53837         * modules/malloc (License): Likewise.
53838         * modules/malloca (License): Likewise.
53839         * modules/memmem (License): Likewise.
53840         * modules/mempcpy (License): Likewise.
53841         * modules/memset (License): Likewise.
53842         * modules/minmax (License): Likewise.
53843         * modules/mktime (License): Likewise.
53844         * modules/netinet_in (License): Likewise.
53845         * modules/pathmax (License): Likewise.
53846         * modules/poll (License): Likewise.
53847         * modules/regex (License): Likewise.
53848         * modules/snprintf (License): Likewise.
53849         * modules/stdbool (License): Likewise.
53850         * modules/stdint (License): Likewise.
53851         * modules/stdio (License): Likewise.
53852         * modules/strcase (License): Likewise.
53853         * modules/strcasestr (License): Likewise.
53854         * modules/strdup (License): Likewise.
53855         * modules/string (License): Likewise.
53856         * modules/strndup (License): Likewise.
53857         * modules/strnlen (License): Likewise.
53858         * modules/strpbrk (License): Likewise.
53859         * modules/strptime (License): Likewise.
53860         * modules/strsep (License): Likewise.
53861         * modules/sys_select (License): Likewise.
53862         * modules/sys_socket (License): Likewise.
53863         * modules/sys_stat (License): Likewise.
53864         * modules/sys_time (License): Likewise.
53865         * modules/time (License): Likewise.
53866         * modules/time_r (License): Likewise.
53867         * modules/timegm (License): Likewise.
53868         * modules/unistd (License): Likewise.
53869         * modules/vsnprintf (License): Likewise.
53870         * modules/wctype (License): Likewise.
53871
53872 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53873
53874         * modules/argz (License): LGPLv2+.
53875
53876 2007-07-15  Karl Berry  <karl@gnu.org>
53877
53878         * doc/gnulib.texi: revise node structure per new fdl.texi.
53879
53880 2007-07-14  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53883         the output file.
53884         * lib/uniname/uninames.h: Regenerated.
53885
53886 2007-07-14  Karl Berry  <karl@gnu.org>
53887
53888         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53889         omitting sectioning and index commands.
53890
53891 2007-07-13  Bruno Haible  <bruno@clisp.org>
53892
53893         New gnulib-tool option --more-symlinks.
53894         * gnulib-tool (func_usage): Document --more-symlinks.
53895         (do_copyrights): New variable.
53896         Recognize option --more-symlinks.
53897         (func_import): Don't add a copyright notice transform to
53898         sed_transform_lib_file if do_copyrights is empty.
53899
53900 2007-07-13  Bruno Haible  <bruno@clisp.org>
53901
53902         * lib/vasnprintf.c (decimal_point_char): Define also if
53903         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53904         && !NEED_PRINTF_DIRECTIVE_A.
53905         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53906         Gary V. Vaughan <gary@gnu.org>.
53907
53908 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53909
53910         * lib/inttypes_.h: Undo previous change, since it was fixed
53911         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53912
53913 2007-07-13  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53916         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53917
53918 2007-07-13  Jim Meyering  <jim@meyering.net>
53919
53920         df: Don't fail for Tru64's "file-on-file mount".
53921         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53922         so we fall through and use statfs instead.  Details here:
53923         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53924         Reported by Albert Chin.
53925
53926 2007-07-13  Bruno Haible  <bruno@clisp.org>
53927
53928         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53929         * modules/configmake (License): Likewise.
53930         * modules/gettext (License): Likewise.
53931         * modules/gettext-h (License): Likewise.
53932         * modules/include_next (License): Likewise.
53933         * modules/link-warning (License): Likewise.
53934         * modules/localcharset (License): Likewise.
53935         * modules/localename (License): Likewise.
53936         * modules/lock (License): Likewise.
53937         * modules/relocatable-lib-lgpl (License): Likewise.
53938         * modules/size_max (License): Likewise.
53939         * modules/vasnprintf (License): Likewise.
53940         * modules/wchar (License): Likewise.
53941         * modules/xsize (License): Likewise.
53942
53943 2007-07-13  Bruno Haible  <bruno@clisp.org>
53944
53945         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53946         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53947
53948 2007-07-12  Bruno Haible  <bruno@clisp.org>
53949
53950         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53951         in the modules files.
53952
53953 2007-07-11  Karl Berry  <karl@gnu.org>
53954
53955         * MODULES.html.sh (func_module): use
53956          sed -e '\|^'"${includefile}"'$|d'
53957          instead of /.../d, to avoid errors on $includefile's containing /.
53958
53959 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53960
53961         * gnulib-tool (func_import): Avoid duplication of --avoid
53962         statements
53963         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53964         names to `_' in variable names.
53965
53966 2007-07-10  Eric Blake  <ebb9@byu.net>
53967
53968         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53969         * NEWS: Document this change.
53970
53971 2007-07-08  Bruno Haible  <bruno@clisp.org>
53972
53973         Update to Unicode 5.0.
53974         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53975         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53976         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53977         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53978         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53979         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53980         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53981         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53982         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53983         U+10A3F, U+1D242..U+1D244.
53984         (nonspacing_table_ind): Update.
53985         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53986         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53987
53988 2007-07-08  Bruno Haible  <bruno@clisp.org>
53989
53990         Update to Unicode 5.0.
53991         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53992         code transform. Extend the name index field of unicode_name_to_code and
53993         unicode_code_to_name from 16 to 24 bits.
53994         * lib/uniname/uniname.c (unicode_character_name,
53995         unicode_name_character): Add the range 0x12xxx to the code transform.
53996         * lib/uniname/uninames.h: Regenerated.
53997         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53998
53999 2007-07-07  Bruno Haible  <bruno@clisp.org>
54000
54001         * modules/wcwidth-tests: New file.
54002         * tests/test-wcwidth.c: New file.
54003
54004         Work around MacOS X wcwidth() bug.
54005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54006         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54007         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54008         original wcwidth in non-UTF-8 locales.
54009         * modules/wcwidth (Depends-on): Add localcharset, streq,
54010         uniwidth/width.
54011         * doc/functions/wcwidth.texi: Update.
54012
54013 2007-07-07  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54016         (wcwidth): New declaration.
54017         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54018         macros.
54019         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54020         here. Prepare for creating <wchar.h> unconditionally.
54021         * modules/wchar (Depends-on): Add link-warning.
54022         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54023         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54024         * lib/wcwidth.h: Remove file.
54025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54026         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54027         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54028         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54029         (Include): Replace wcwidth.h with <wchar.h>.
54030         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54031         * lib/mbchar.h: Don't include wcwidth.h.
54032         * lib/mbswidth.c: Likewise.
54033         * NEWS: Mention the change.
54034
54035 2007-07-07  Bruno Haible  <bruno@clisp.org>
54036
54037         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54038         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54039         definition with an external declaration.
54040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54041         defined as a function. Remove AC_C_INLINE requirement.
54042         * modules/wcwidth (Files): Add lib/wcwidth.c.
54043         (Makefile.am): Remove redundant statement.
54044
54045 2007-07-07  Bruno Haible  <bruno@clisp.org>
54046
54047         * MODULES.html.sh (Unicode string functions): Add the new modules.
54048
54049         * tests/uniwidth/test-u32-strwidth.c: New file.
54050         * modules/uniwidth/u32-strwidth-tests: New file.
54051
54052         * lib/uniwidth/u32-strwidth.c: New file.
54053         * modules/uniwidth/u32-strwidth: New file.
54054
54055         * tests/uniwidth/test-u16-strwidth.c: New file.
54056         * modules/uniwidth/u16-strwidth-tests: New file.
54057
54058         * lib/uniwidth/u16-strwidth.c: New file.
54059         * modules/uniwidth/u16-strwidth: New file.
54060
54061         * tests/uniwidth/test-u8-strwidth.c: New file.
54062         * modules/uniwidth/u8-strwidth-tests: New file.
54063
54064         * lib/uniwidth/u8-strwidth.c: New file.
54065         * modules/uniwidth/u8-strwidth: New file.
54066
54067         * tests/uniwidth/test-u32-width.c: New file.
54068         * modules/uniwidth/u32-width-tests: New file.
54069
54070         * lib/uniwidth/u32-width.c: New file.
54071         * modules/uniwidth/u32-width: New file.
54072
54073         * tests/uniwidth/test-u16-width.c: New file.
54074         * modules/uniwidth/u16-width-tests: New file.
54075
54076         * lib/uniwidth/u16-width.c: New file.
54077         * modules/uniwidth/u16-width: New file.
54078
54079         * tests/uniwidth/test-u8-width.c: New file.
54080         * modules/uniwidth/u8-width-tests: New file.
54081
54082         * lib/uniwidth/u8-width.c: New file.
54083         * modules/uniwidth/u8-width: New file.
54084
54085         * tests/uniwidth/test-uc_width.c: New file.
54086         * modules/uniwidth/width-tests: New file.
54087
54088         * lib/uniwidth/width.c: New file, from GNU libiconv.
54089         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54090         * modules/uniwidth/width: New file.
54091
54092         * lib/uniwidth.h: New file, from GNU libiconv.
54093         * modules/uniwidth/base: New file.
54094
54095 2007-07-07  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/uniname.h: New file, from GNU gettext.
54098         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54099         * lib/uniname/uninames.h: New file, from GNU gettext.
54100         * lib/uniname/uniname.c: New file, from GNU gettext.
54101         * tests/uniname/test-uninames.sh: New file.
54102         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54103         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54104         * modules/uniname/base: New file.
54105         * modules/uniname/uniname: New file.
54106         * modules/uniname/uniname-tests: New file.
54107         * MODULES.html.sh (Unicode string functions): Add the new modules.
54108
54109 2007-07-06  Bruno Haible  <bruno@clisp.org>
54110
54111         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54112
54113 2007-07-06  Bruno Haible  <bruno@clisp.org>
54114
54115         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54116         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54117         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54118         include <sys/time.h>.
54119         Reported by Eric Blake.
54120
54121 2007-07-06  Eric Blake  <ebb9@byu.net>
54122
54123         Fix testing canonicalize on cygwin.
54124         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54125         Revert patch from 2007-06-19.
54126         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54127         canonicalize module is also in use.
54128         * tests/test-canonicalize.c: New file.
54129         * tests/test-canonicalize.sh: Likewise.
54130         * modules/canonicalize-tests: Likewise.
54131
54132 2007-07-06  Jim Meyering  <jim@meyering.net>
54133
54134         * lib/getugroups.c (getugroups): Detect getgrent failure.
54135         Adjust comment to reflect reality: this function may return -1.
54136
54137 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54138
54139         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54140         the new TP address.
54141         (usage): Fix typo
54142         (gnulib_mk): New variable.
54143
54144 2007-07-05  Jim Meyering  <jim@meyering.net>
54145
54146         Don't let endgrent clobber errno, no matter how improbable.
54147         * lib/getugroups.c (getugroups): Save and restore errno around
54148         endgrent call.
54149
54150         Close the group DB even when failing with 2^31 or more members.
54151         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54152
54153 2007-07-04  Jim Meyering  <jim@meyering.net>
54154
54155         * lib/getugroups.h: New file.
54156         * lib/getugroups.c: Include "getugroups.h".
54157         Remove uses of "register" keyword.
54158         Move local variable, "cp", down into scope where used.
54159         Give "username" parameter the "const" attribute.
54160         * modules/getugroups (Files): Add lib/getugroups.h
54161
54162 2007-07-04  Karl Berry  <karl@gnu.org>
54163
54164         * MODULES.html.sh (func_all_modules): Complete rename of
54165         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54166
54167 2007-07-02  Bruno Haible  <bruno@clisp.org>
54168
54169         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54170         mode, when inttypes.h comes from gnulib.
54171         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54172
54173 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54174
54175         * NEWS: Mention lgpl module name change.
54176
54177         * modules/lgpl-2.1: Renamed from lgpl.
54178
54179         * NEWS: Mention gpl module name change.
54180
54181         * modules/gpl-3.0: New file, based on gpl-2.0.
54182
54183         * modules/gpl-2.0: Renamed from gpl.
54184
54185         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54186         doc/gpl-2.0.texi.
54187
54188 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54191         #define __STDC_LIMIT_MACROS temporarily while including
54192         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54193         Problem reported by Joel E. Denny in
54194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54195
54196 2007-07-01  Bruno Haible  <bruno@clisp.org>
54197
54198         * lib/unistdio.h: New file.
54199         * lib/unistdio/u-asnprintf.h: New file.
54200         * lib/unistdio/u-asprintf.h: New file.
54201         * lib/unistdio/u-printf-args.c: New file.
54202         * lib/unistdio/u-printf-args.h: New file.
54203         * lib/unistdio/u-printf-parse.h: New file.
54204         * lib/unistdio/u-snprintf.h: New file.
54205         * lib/unistdio/u-sprintf.h: New file.
54206         * lib/unistdio/u-vasprintf.h: New file.
54207         * lib/unistdio/u-vsnprintf.h: New file.
54208         * lib/unistdio/u-vsprintf.h: New file.
54209         * lib/unistdio/ulc-asnprintf.c: New file.
54210         * lib/unistdio/ulc-asprintf.c: New file.
54211         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54212         * lib/unistdio/ulc-printf-parse.c: New file.
54213         * lib/unistdio/ulc-snprintf.c: New file.
54214         * lib/unistdio/ulc-sprintf.c: New file.
54215         * lib/unistdio/ulc-vasnprintf.c: New file.
54216         * lib/unistdio/ulc-vasprintf.c: New file.
54217         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54218         * lib/unistdio/ulc-vsnprintf.c: New file.
54219         * lib/unistdio/ulc-vsprintf.c: New file.
54220         * lib/unistdio/u8-asnprintf.c: New file.
54221         * lib/unistdio/u8-asprintf.c: New file.
54222         * lib/unistdio/u8-printf-parse.c: New file.
54223         * lib/unistdio/u8-snprintf.c: New file.
54224         * lib/unistdio/u8-sprintf.c: New file.
54225         * lib/unistdio/u8-vasnprintf.c: New file.
54226         * lib/unistdio/u8-vasprintf.c: New file.
54227         * lib/unistdio/u8-vsnprintf.c: New file.
54228         * lib/unistdio/u8-vsprintf.c: New file.
54229         * lib/unistdio/u8-u8-asnprintf.c: New file.
54230         * lib/unistdio/u8-u8-asprintf.c: New file.
54231         * lib/unistdio/u8-u8-snprintf.c: New file.
54232         * lib/unistdio/u8-u8-sprintf.c: New file.
54233         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54234         * lib/unistdio/u8-u8-vasprintf.c: New file.
54235         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54236         * lib/unistdio/u8-u8-vsprintf.c: New file.
54237         * lib/unistdio/u16-asnprintf.c: New file.
54238         * lib/unistdio/u16-asprintf.c: New file.
54239         * lib/unistdio/u16-printf-parse.c: New file.
54240         * lib/unistdio/u16-snprintf.c: New file.
54241         * lib/unistdio/u16-sprintf.c: New file.
54242         * lib/unistdio/u16-vasnprintf.c: New file.
54243         * lib/unistdio/u16-vasprintf.c: New file.
54244         * lib/unistdio/u16-vsnprintf.c: New file.
54245         * lib/unistdio/u16-vsprintf.c: New file.
54246         * lib/unistdio/u16-u16-asnprintf.c: New file.
54247         * lib/unistdio/u16-u16-asprintf.c: New file.
54248         * lib/unistdio/u16-u16-snprintf.c: New file.
54249         * lib/unistdio/u16-u16-sprintf.c: New file.
54250         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54251         * lib/unistdio/u16-u16-vasprintf.c: New file.
54252         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54253         * lib/unistdio/u16-u16-vsprintf.c: New file.
54254         * lib/unistdio/u32-asnprintf.c: New file.
54255         * lib/unistdio/u32-asprintf.c: New file.
54256         * lib/unistdio/u32-printf-parse.c: New file.
54257         * lib/unistdio/u32-snprintf.c: New file.
54258         * lib/unistdio/u32-sprintf.c: New file.
54259         * lib/unistdio/u32-vasnprintf.c: New file.
54260         * lib/unistdio/u32-vasprintf.c: New file.
54261         * lib/unistdio/u32-vsnprintf.c: New file.
54262         * lib/unistdio/u32-vsprintf.c: New file.
54263         * lib/unistdio/u32-u32-asnprintf.c: New file.
54264         * lib/unistdio/u32-u32-asprintf.c: New file.
54265         * lib/unistdio/u32-u32-snprintf.c: New file.
54266         * lib/unistdio/u32-u32-sprintf.c: New file.
54267         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54268         * lib/unistdio/u32-u32-vasprintf.c: New file.
54269         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54270         * lib/unistdio/u32-u32-vsprintf.c: New file.
54271         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54272         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54273         * tests/unistdio/test-ulc-printf1.h: New file.
54274         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54275         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54276         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54277         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54278         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54279         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54280         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54281         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54282         * tests/unistdio/test-u8-asnprintf1.c: New file.
54283         * tests/unistdio/test-u8-asnprintf1.h: New file.
54284         * tests/unistdio/test-u8-printf1.h: New file.
54285         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54286         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54287         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54288         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54289         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54290         * tests/unistdio/test-u8-vasprintf1.c: New file.
54291         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54292         * tests/unistdio/test-u8-vsprintf1.c: New file.
54293         * tests/unistdio/test-u16-asnprintf1.c: New file.
54294         * tests/unistdio/test-u16-asnprintf1.h: New file.
54295         * tests/unistdio/test-u16-printf1.h: New file.
54296         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54297         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54298         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54299         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54300         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54301         * tests/unistdio/test-u16-vasprintf1.c: New file.
54302         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54303         * tests/unistdio/test-u16-vsprintf1.c: New file.
54304         * tests/unistdio/test-u32-asnprintf1.c: New file.
54305         * tests/unistdio/test-u32-asnprintf1.h: New file.
54306         * tests/unistdio/test-u32-printf1.h: New file.
54307         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54308         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54309         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54310         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54311         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54312         * tests/unistdio/test-u32-vasprintf1.c: New file.
54313         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54314         * tests/unistdio/test-u32-vsprintf1.c: New file.
54315         * modules/unistdio/base: New file.
54316         * modules/unistdio/u-printf-args: New file.
54317         * modules/unistdio/ulc-asnprintf: New file.
54318         * modules/unistdio/ulc-asprintf: New file.
54319         * modules/unistdio/ulc-fprintf: New file.
54320         * modules/unistdio/ulc-printf-parse: New file.
54321         * modules/unistdio/ulc-snprintf: New file.
54322         * modules/unistdio/ulc-sprintf: New file.
54323         * modules/unistdio/ulc-vasnprintf: New file.
54324         * modules/unistdio/ulc-vasprintf: New file.
54325         * modules/unistdio/ulc-vfprintf: New file.
54326         * modules/unistdio/ulc-vsnprintf: New file.
54327         * modules/unistdio/ulc-vsprintf: New file.
54328         * modules/unistdio/u8-asnprintf: New file.
54329         * modules/unistdio/u8-asprintf: New file.
54330         * modules/unistdio/u8-printf-parse: New file.
54331         * modules/unistdio/u8-snprintf: New file.
54332         * modules/unistdio/u8-sprintf: New file.
54333         * modules/unistdio/u8-vasnprintf: New file.
54334         * modules/unistdio/u8-vasprintf: New file.
54335         * modules/unistdio/u8-vsnprintf: New file.
54336         * modules/unistdio/u8-vsprintf: New file.
54337         * modules/unistdio/u8-u8-asnprintf: New file.
54338         * modules/unistdio/u8-u8-asprintf: New file.
54339         * modules/unistdio/u8-u8-snprintf: New file.
54340         * modules/unistdio/u8-u8-sprintf: New file.
54341         * modules/unistdio/u8-u8-vasnprintf: New file.
54342         * modules/unistdio/u8-u8-vasprintf: New file.
54343         * modules/unistdio/u8-u8-vsnprintf: New file.
54344         * modules/unistdio/u8-u8-vsprintf: New file.
54345         * modules/unistdio/u16-asnprintf: New file.
54346         * modules/unistdio/u16-asprintf: New file.
54347         * modules/unistdio/u16-printf-parse: New file.
54348         * modules/unistdio/u16-snprintf: New file.
54349         * modules/unistdio/u16-sprintf: New file.
54350         * modules/unistdio/u16-vasnprintf: New file.
54351         * modules/unistdio/u16-vasprintf: New file.
54352         * modules/unistdio/u16-vsnprintf: New file.
54353         * modules/unistdio/u16-vsprintf: New file.
54354         * modules/unistdio/u16-u16-asnprintf: New file.
54355         * modules/unistdio/u16-u16-asprintf: New file.
54356         * modules/unistdio/u16-u16-snprintf: New file.
54357         * modules/unistdio/u16-u16-sprintf: New file.
54358         * modules/unistdio/u16-u16-vasnprintf: New file.
54359         * modules/unistdio/u16-u16-vasprintf: New file.
54360         * modules/unistdio/u16-u16-vsnprintf: New file.
54361         * modules/unistdio/u16-u16-vsprintf: New file.
54362         * modules/unistdio/u32-asnprintf: New file.
54363         * modules/unistdio/u32-asprintf: New file.
54364         * modules/unistdio/u32-printf-parse: New file.
54365         * modules/unistdio/u32-snprintf: New file.
54366         * modules/unistdio/u32-sprintf: New file.
54367         * modules/unistdio/u32-vasnprintf: New file.
54368         * modules/unistdio/u32-vasprintf: New file.
54369         * modules/unistdio/u32-vsnprintf: New file.
54370         * modules/unistdio/u32-vsprintf: New file.
54371         * modules/unistdio/u32-u32-asnprintf: New file.
54372         * modules/unistdio/u32-u32-asprintf: New file.
54373         * modules/unistdio/u32-u32-snprintf: New file.
54374         * modules/unistdio/u32-u32-sprintf: New file.
54375         * modules/unistdio/u32-u32-vasnprintf: New file.
54376         * modules/unistdio/u32-u32-vasprintf: New file.
54377         * modules/unistdio/u32-u32-vsnprintf: New file.
54378         * modules/unistdio/u32-u32-vsprintf: New file.
54379         * modules/unistdio/ulc-asnprintf-tests: New file.
54380         * modules/unistdio/ulc-vasnprintf-tests: New file.
54381         * modules/unistdio/ulc-vasprintf-tests: New file.
54382         * modules/unistdio/ulc-vsnprintf-tests: New file.
54383         * modules/unistdio/ulc-vsprintf-tests: New file.
54384         * modules/unistdio/u8-asnprintf-tests: New file.
54385         * modules/unistdio/u8-vasnprintf-tests: New file.
54386         * modules/unistdio/u8-vasprintf-tests: New file.
54387         * modules/unistdio/u8-vsnprintf-tests: New file.
54388         * modules/unistdio/u8-vsprintf-tests: New file.
54389         * modules/unistdio/u16-asnprintf-tests: New file.
54390         * modules/unistdio/u16-vasnprintf-tests: New file.
54391         * modules/unistdio/u16-vasprintf-tests: New file.
54392         * modules/unistdio/u16-vsnprintf-tests: New file.
54393         * modules/unistdio/u16-vsprintf-tests: New file.
54394         * modules/unistdio/u32-asnprintf-tests: New file.
54395         * modules/unistdio/u32-vasnprintf-tests: New file.
54396         * modules/unistdio/u32-vasprintf-tests: New file.
54397         * modules/unistdio/u32-vsnprintf-tests: New file.
54398         * modules/unistdio/u32-vsprintf-tests: New file.
54399         * MODULES.html.sh (Unicode string functions): Add the new modules.
54400
54401 2007-07-01  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/sprintf.c (sprintf): Limit the available length estimation,
54404         to avoid address wraparound.
54405         * lib/vsprintf.c (vsprintf): Likewise.
54406         * modules/sprintf-posix (Dependencies): Add stdint.
54407         * modules/vsprintf-posix (Dependencies): Likewise.
54408
54409 2007-07-01  Bruno Haible  <bruno@clisp.org>
54410
54411         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54412         Windows PATH as well. Conservative double-quoting. Comments.
54413
54414 2007-07-01  Bruno Haible  <bruno@clisp.org>
54415             Eric Blake  <ebb9@byu.net>
54416             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54417
54418         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54419         empty components in $PATH, denoting '.'.
54420
54421 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54422
54423         * gnulib-tool: Fix indentation.
54424         (func_create_megatestdir): Likewise.
54425         Report by Bruno Haible.
54426
54427 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54428
54429         Sync from Automake.
54430         * build-aux/gnupload: Fix shell portability issues with for loops.
54431         Report by Karl Berry.
54432
54433 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54434
54435         * build-aux/maint.mk (POURL): Use translationproject.org.
54436
54437 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54438             Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54441         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54442         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54443         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54444         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54445
54446 2007-06-27  Bruno Haible  <bruno@clisp.org>
54447
54448         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54449         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54450
54451 2007-06-26  Karl Berry  <karl@gnu.org>
54452
54453         * MODULES.html.sh: remove xreadlink-with-size.
54454
54455 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54456
54457         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54458         method that I hope also handles the double-include problem noted
54459         by Bruno Haible in
54460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54461
54462 2007-06-23  Bruno Haible  <bruno@clisp.org>
54463
54464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54465         Don't let the 'mostlyclean' target fail if the last subdirectory could
54466         not be removed.
54467         Reported by Karl Berry.
54468
54469 2007-06-23  Bruno Haible  <bruno@clisp.org>
54470
54471         * gnulib-tool (echo): Add a speedier workaround for ksh.
54472         * tests/test-echo.sh: Likewise.
54473
54474 2007-06-23  Bruno Haible  <bruno@clisp.org>
54475
54476         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54477         * tests/test-echo.sh: Likewise.
54478
54479 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54480
54481         * gnulib-tool (IFS): Initialize early, so we don't set it to
54482         empty later.
54483         (self_abspathname): Rewrite algorithm to set it, reindent.
54484         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54485         (func_create_megatestdir): Merge some sed scripts.
54486
54487 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54488
54489         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54490         exposed by Sun Studio 11 cc on Solaris 8.
54491
54492 2007-06-22  Bruno Haible  <bruno@clisp.org>
54493
54494         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54495         backslashes.
54496         * tests/test-echo.sh: New file.
54497
54498 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54499
54500         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54501         simplify `sed_replace_build_aux' scripts, they are portable but
54502         echoing them with `echo' is not.
54503         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54504
54505 2007-06-21  Karl Berry  <karl@gnu.org>
54506
54507         * config/srclist.txt: guess we can't handle the licenses via
54508         srclist at the moment.
54509
54510 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54511
54512         * MODULES.html.sh: Add include_next.
54513         * modules/include_next: New file.
54514
54515 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54516
54517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54518         INCLUDE_NEXT.
54519         (gl_CHECK_NEXT_HEADERS): New macro.
54520         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54521         the obsolescent gl_ABSOLUTE_HEADER.
54522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54523         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54524         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54525         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54526         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54527         * m4/math_h.m4 (gl_MATH_H): Likewise.
54528         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54529         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54530         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54531         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54532         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54533         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54534         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54538         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54539         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54540         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54541         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54542         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54543         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54544         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54545         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54546         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54547         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54548         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54549         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54550         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54551         * lib/float_.h: Likewise.
54552         * lib/inttypes_.h: Likewise.
54553         * lib/math_.h: Likewise.
54554         * lib/search_.h: Likewise.
54555         * lib/signal_.h: Likewise.
54556         * lib/stdint_.h: Likewise.
54557         * lib/stdio_.h: Likewise.
54558         * lib/stdlib_.h: Likewise.
54559         * lib/string_.h: Likewise.
54560         * lib/sys_stat_.h: Likewise.
54561         * lib/sys_time_.h: Likewise.
54562         * lib/time_.h: Likewise.
54563         * lib/unistd_.h: Likewise.
54564         * lib/wchar_.h: Likewise.
54565         * lib/wctype_.h: Likewise.
54566         * lib/dirent_.h: Likewise.
54567         * lib/iconv_.h: Likewise.
54568         * lib/locale_.h: Likewise.
54569         * lib/netinet_in_.h: Likewise.
54570         * lib/sys_select_.h: Likewise.
54571         * lib/sys_socket_.h: Likewise.
54572         * lib/sysexits_.h: Likewise.
54573         * modules/fcntl (Depends-on): Depend on include_next, not
54574         absolute_header.
54575         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54576         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54577         * modules/fchdir: Likewise.
54578         * modules/float: Likewise.
54579         * modules/iconv_open: Likewise.
54580         * modules/inttypes: Likewise.
54581         * modules/locale: Likewise.
54582         * modules/math: Likewise.
54583         * modules/netinet_in: Likewise.
54584         * modules/search: Likewise.
54585         * modules/signal: Likewise.
54586         * modules/stdint: Likewise.
54587         * modules/stdio: Likewise.
54588         * modules/stdlib: Likewise.
54589         * modules/string: Likewise.
54590         * modules/sys_select: Likewise.
54591         * modules/sys_socket: Likewise.
54592         * modules/sys_stat: Likewise.
54593         * modules/sys_time: Likewise.
54594         * modules/sysexits: Likewise.
54595         * modules/time: Likewise.
54596         * modules/unistd: Likewise.
54597         * modules/wchar: Likewise.
54598         * modules/wctype: Likewise.
54599         * modules/sys_stat: Change maintainer to "all".
54600         * modules/unistd: Likewise.
54601
54602 2007-06-20  Karl Berry  <karl@gnu.org>
54603
54604         * config/srclist.txt: track www changes in license files.
54605
54606 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54607
54608         * build-aux/bootstrap: Remove stray dot.
54609         Make sure build_aux settings are honored when linking
54610         gnulib_extra_files.
54611
54612 2007-06-19  Eric Blake  <ebb9@byu.net>
54613
54614         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54615         Allow compilation on cygwin.
54616
54617 2007-06-19  Jim Meyering  <jim@meyering.net>
54618
54619         xreadlink-with-size: Remove module.  No longer used.
54620         Ex-callers now use xreadlink or mreadlink-with-size.
54621         * modules/xreadlink-with-size: Remove module.
54622         * lib/xreadlink-with-size.c: Remove file.
54623         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54624         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54625         just before the function definition *is* accurate.
54626
54627         Eliminate one way canonicalize_filename_mode could exit.
54628         * lib/canonicalize.c (canonicalize_filename_mode):
54629         Use mreadlink_with_size, not xreadlink_with_size.
54630
54631 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54632
54633         Detect porting problems to FreeBSD/arm, which has time_t wider than
54634         long int.  Original problem reported for GNU diff by Xin Li in
54635         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54636         * modules/getdate (Depends-on): Add intprops, verify.
54637         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54638         is an integer type no wider than long int.
54639
54640 2007-06-18  Jim Meyering  <jim@meyering.net>
54641
54642         New module: mreadlink-with-size.
54643         * MODULES.html.sh: Add mreadlink-with-size.
54644         * modules/mreadlink-with-size: New module
54645         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54646         not xreadlink-with-size.
54647         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54648
54649 2007-06-16  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54652         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54653         Reported by Gary V. Vaughan <gary@gnu.org>.
54654
54655 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54656
54657         Revamp lchown so that it lives in unistd.h where it belongs.
54658         * lib/lchown.h: Remove.
54659         * lib/dirchownmod.c: Don't include lib/lchown.h.
54660         * lib/fchownat.c: Likewise.
54661         * lib/openat.c: Likewise.
54662         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54663         does not follow symlinks.
54664         (EOPNOTSUPP): Define if not defined.
54665         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54666         is defined to 0.
54667         (lchown): New decl.
54668         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54669         Do not check for lchown decl.
54670         Set REPLACE_LCHOWN.
54671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54672         REPLACE_LCHOWN.
54673         * modules/chown: Make it clear it follows symlinks.
54674         * modules/lchown: Make it clear it doesn't follow symlinks.
54675         (Files): Remove lib/lchown.h
54676         (Depends-on): Add unistd.
54677         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54678         (Include): Include <unistd.h>, not "lchown.h".
54679         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54680         REPLACE_LCHOWN.
54681
54682 2007-06-15  Jim Meyering  <jim@meyering.net>
54683
54684         Change license (GPL to LGPL) of fsusage and dependents.
54685         * modules/fsusage (License): Change to LGPL.
54686         * modules/full-read (License): Likewise.
54687         * modules/full-write (License): Likewise.
54688         * modules/safe-read (License): Likewise.
54689         * modules/safe-write (License): Likewise.
54690
54691 2007-06-14  Ben Pfaff  <blp@gnu.org>
54692
54693         Missing part of allocsa -> malloca transition.
54694         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54695         gl_MALLOCA.
54696
54697 2007-06-12  Bruno Haible  <bruno@clisp.org>
54698
54699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54700         to ia64, x86_64, i386.
54701         Reported by Eric Blake.
54702
54703 2007-06-12  Bruno Haible  <bruno@clisp.org>
54704
54705         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54706         cross-compiling to x86_64.
54707
54708 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54711         glitch reported by Ralf Wildenhues in
54712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54713
54714         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54715         Vin Shelton.
54716
54717 2007-06-11  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54720         replacement string.
54721         Reported by Eric Blake.
54722
54723 2007-06-10  Bruno Haible  <bruno@clisp.org>
54724
54725         Prepare vasnprintf code for use with Unicode strings.
54726         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54727         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54728         TYPE_U32_STRING.
54729         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54730         a_u32_string variants.
54731         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54732         * lib/printf-args.c: Don't include config.h and the specification
54733         header if PRINTF_FETCHARGS is already defined.
54734         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54735         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54736         TYPE_U16_STRING, TYPE_U32_STRING.
54737         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54738         u16_directive, u16_directives, u32_directive, u32_directives): New
54739         types.
54740         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54741         New declarations.
54742         * lib/printf-parse.c: Don't include config.h and the specification
54743         header if PRINTF_PARSE is already defined. Eliminate the set of
54744         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54745         them now. Include c-ctype.h.
54746         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54747         directive and CHAR_T_ONLY_ASCII.
54748         * lib/vasnprintf.c: Don't include config.h and the specification header
54749         if VASNPRINTF is already defined.
54750         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54751         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54752         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54753         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54754         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54755         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54756         code accordingly.
54757         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54758         pad_ourselves also in this case, with the 'c' and 's' directives, and
54759         with a different notion of "width".
54760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54761
54762 2007-06-10  Bruno Haible  <bruno@clisp.org>
54763
54764         * modules/unistr/u32-mbsnlen: New file.
54765         * lib/unistr/u32-mbsnlen.c: New file.
54766
54767         * modules/unistr/u16-mbsnlen: New file.
54768         * lib/unistr/u16-mbsnlen.c: New file.
54769
54770         * modules/unistr/u8-mbsnlen: New file.
54771         * lib/unistr/u8-mbsnlen.c: New file.
54772
54773         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54774         declarations.
54775
54776 2007-06-10  Bruno Haible  <bruno@clisp.org>
54777
54778         * lib/string_.h (mbsnlen): New declaration.
54779         * lib/mbsnlen.c: New file.
54780         * m4/mbsnlen.m4: New file.
54781         * modules/mbsnlen: New file.
54782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54783         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54784         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54785
54786 2007-06-10  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54789
54790 2007-06-10  Bruno Haible  <bruno@clisp.org>
54791
54792         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54793         * lib/mbuiter.h: Likewise.
54794
54795 2007-06-10  Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54798         declaration.
54799
54800 2007-06-10  Karl Berry  <karl@gnu.org>
54801
54802         * config/srclist.txt: remove gettext entries, Bruno prefers
54803         to update individually.
54804
54805 2007-06-10  Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54808         'maxlen'. Ensure only length + width bytes are allocated, not
54809         length + 1 + width.
54810
54811 2007-06-09  Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54814         (CHAR_T): Remove macro.
54815         (VASNPRINTF): Update.
54816
54817 2007-06-09  Bruno Haible  <bruno@clisp.org>
54818
54819         * MODULES.html.sh (Unicode string functions): Add the new modules.
54820
54821         * modules/uniconv/u32-conv-to-enc: New file.
54822         * lib/uniconv/u32-conv-to-enc.c: New file.
54823         * modules/uniconv/u32-conv-to-enc-tests: New file.
54824         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54825
54826         * modules/uniconv/u16-conv-to-enc: New file.
54827         * lib/uniconv/u16-conv-to-enc.c: New file.
54828         * lib/uniconv/u-conv-to-enc.h: New file.
54829         * modules/uniconv/u16-conv-to-enc-tests: New file.
54830         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54831
54832         * modules/uniconv/u8-conv-to-enc: New file.
54833         * lib/uniconv/u8-conv-to-enc.c: New file.
54834         * modules/uniconv/u8-conv-to-enc-tests: New file.
54835         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54836
54837         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54838         u32_conv_to_encoding): New declarations.
54839
54840 2007-06-09  Bruno Haible  <bruno@clisp.org>
54841
54842         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54843
54844 2007-06-09  Bruno Haible  <bruno@clisp.org>
54845
54846         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54847         * modules/malloca: Renamed from modules/allocsa, updated.
54848         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54849         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54850         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54851         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54852         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54853         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54854         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54855         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54856         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54857         * modules/c-strcasestr (Depends-on): Update.
54858         * lib/c-strcasestr.c: Update.
54859         * modules/c-strstr (Depends-on): Update.
54860         * lib/c-strstr.c: Update.
54861         * modules/canonicalize-lgpl (Depends-on): Update.
54862         * lib/canonicalize-lgpl.c: Update.
54863         * modules/clean-temp (Depends-on): Update.
54864         * lib/clean-temp.c: Update.
54865         * modules/csharpcomp (Depends-on): Update.
54866         * lib/csharpcomp.c: Update.
54867         * modules/csharpexec (Depends-on): Update.
54868         * lib/csharpexec.c: Update.
54869         * modules/javacomp (Depends-on): Update.
54870         * lib/javacomp.c: Update.
54871         * modules/javaexec (Depends-on): Update.
54872         * lib/javaexec.c: Update.
54873         * modules/mbscasestr (Depends-on): Update.
54874         * lib/mbscasestr.c: Update.
54875         * modules/mbsstr (Depends-on): Update.
54876         * lib/mbsstr.c: Update.
54877         * modules/setenv (Depends-on): Update.
54878         * lib/setenv.c: Update.
54879         * modules/strcasestr (Depends-on): Update.
54880         * lib/strcasestr.c: Update.
54881         * modules/striconveha (Depends-on): Update.
54882         * lib/striconveha.c: Update.
54883         * modules/relocatable-prog-wrapper (Files): Update.
54884         * lib/relocwrapper.c: Update.
54885         * build-aux/install-reloc: Update.
54886         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54887
54888 2007-06-08  Bruno Haible  <bruno@clisp.org>
54889
54890         Port to uClibc.
54891         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54892         * lib/fpurge.c (fpurge): Likewise.
54893         * lib/freading.c (freading): Likewise.
54894         * lib/fseeko.c (rpl_fseeko): Likewise.
54895         * lib/fseterr.c (fseterr): Likewise.
54896         * lib/fwriting.c (fwriting): Likewise.
54897         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54898
54899 2007-06-08  Bruno Haible  <bruno@clisp.org>
54900
54901         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54902         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54903         * modules/gettext (Files): Add m4/intlmacosx.m4.
54904
54905 2007-06-07  Bruno Haible  <bruno@clisp.org>
54906
54907         * modules/localename-tests: New file.
54908         * tests/test-localename.c: New file.
54909
54910         New module 'localename'.
54911         * lib/localename.h: New file.
54912         * lib/localename.c: New file, from GNU gettext.
54913         * m4/localename.m4: New file.
54914         * modules/localename: New file.
54915
54916 2007-06-07  Bruno Haible  <bruno@clisp.org>
54917
54918         Work around the lack of <wchar.h> on some builds of uClibc.
54919         * doc/headers/wchar.texi: Update.
54920         * lib/wchar_.h: Include <wchar.h> only if it exists.
54921         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54922         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54923         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54924         doesn't exist.
54925         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54926         * modules/mbfile (Depends-on): Add wchar.
54927         * modules/mbiter (Depends-on): Likewise.
54928         * modules/mbuiter (Depends-on): Likewise.
54929         Reported by Simon Josefsson.
54930
54931 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54932
54933         Work around problem reported by Steven M. Schweda in
54934         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54935         Tru64 5.1B with the Compaq compiler environment installed declares
54936         an 'isblank' function but does not define it in the C library.
54937         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54938         * lib/regex_internal.h (isblank): Likewise.
54939         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54940         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54941
54942 2007-06-05  Bruno Haible  <bruno@clisp.org>
54943
54944         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54945         ia64.
54946         * modules/printf-safe: New file.
54947         * modules/fprintf-posix (Depends-on): Add printf-safe.
54948         * modules/printf-posix (Depends-on): Likewise.
54949         * modules/snprintf-posix (Depends-on): Likewise.
54950         * modules/sprintf-posix (Depends-on): Likewise.
54951         * modules/vasnprintf-posix (Depends-on): Likewise.
54952         * modules/vasprintf-posix (Depends-on): Likewise.
54953         * modules/vfprintf-posix (Depends-on): Likewise.
54954         * modules/vprintf-posix (Depends-on): Likewise.
54955         * modules/vsnprintf-posix (Depends-on): Likewise.
54956         * modules/vsprintf-posix (Depends-on): Likewise.
54957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54958         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54959         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54960         "no" on i386, x86_64, ia64.
54961         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54962         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54963         on i386, x86_64, ia64.
54964         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54965         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54966         on i386, x86_64, ia64.
54967         * tests/test-vasnprintf-posix.c: Include float.h.
54968         (LDBL80_WORDS): New macro.
54969         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54970         on i386, x86_64, ia64.
54971         * tests/test-vasprintf-posix.c: Include float.h.
54972         (LDBL80_WORDS): New macro.
54973         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54974         on i386, x86_64, ia64.
54975         * tests/test-snprintf-posix.c: Include float.h.
54976         * tests/test-sprintf-posix.c: Likewise.
54977         * tests/test-vsnprintf-posix.c: Likewise.
54978         * tests/test-vsprintf-posix.c: Likewise.
54979
54980 2007-06-05  Bruno Haible  <bruno@clisp.org>
54981
54982         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54983         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54984         non-IEEE numbers on i386, x86_64, ia64.
54985         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54986         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54987         * tests/test-isnanl.h: Include float.h.
54988         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54989
54990 2007-06-05  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54993         also the %a / %A. Handle the %a / %A code before this extra handling.
54994
54995 2007-06-05  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54998         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54999
55000 2007-06-05  Bruno Haible  <bruno@clisp.org>
55001
55002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55003         typo in variable name.
55004
55005 2007-06-05  Eric Blake  <ebb9@byu.net>
55006
55007         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55008         Reported by Simon Josefsson.
55009
55010 2007-06-04  Bruno Haible  <bruno@clisp.org>
55011
55012         Avoid test failures on some PowerPC platforms.
55013         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55014         Define differently for PowerPC.
55015         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55016         Reported by Gary V. Vaughan <gary@gnu.org>.
55017
55018 2007-06-02  Bruno Haible  <bruno@clisp.org>
55019
55020         Fix test-stdint failure on FreeBSD/ia64.
55021         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55022         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55023         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55024         * doc/headers/stdint.texi: Update.
55025
55026 2007-06-01  Bruno Haible  <bruno@clisp.org>
55027
55028         * tests/test-binary-io.c (main): Pass a third argument to open().
55029         Reported by Gary V. Vaughan <gary@gnu.org>.
55030
55031 2007-06-01  Bruno Haible  <bruno@clisp.org>
55032
55033         * doc/functions/frexpl.texi: Update for mingw.
55034
55035 2007-06-01  Bruno Haible  <bruno@clisp.org>
55036
55037         * tests/test-lseek.c (main): Disable test of errno for invalid third
55038         argument.
55039         * doc/functions/lseek.texi: Update.
55040         Reported by Gary V. Vaughan <gary@gnu.org>.
55041
55042 2007-05-28  Bruno Haible  <bruno@clisp.org>
55043
55044         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55045
55046 2007-05-31  Eric Blake  <ebb9@byu.net>
55047
55048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55049         cross compiling.
55050
55051 2007-05-30  Eric Blake  <ebb9@byu.net>
55052         and Bruno Haible  <bruno@clisp.org>
55053
55054         Work around mingw test failures exposed by m4-1.4.9b.
55055         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55056         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55057         moment.
55058
55059 2007-05-30  Bruno Haible  <bruno@clisp.org>
55060
55061         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55062         assuming that they are closed. Needed on HP-UX 11.
55063
55064 2007-05-29  Bruno Haible  <bruno@clisp.org>
55065
55066         Fix a problem with #include_next.
55067         * lib/dirent_.h: Split the double-inclusion guard.
55068         * lib/fcntl_.h: Likewise.
55069         * lib/float_.h: Likewise.
55070         * lib/iconv_.h: Likewise.
55071         * lib/inttypes_.h: Likewise.
55072         * lib/locale_.h: Likewise.
55073         * lib/math_.h: Likewise.
55074         * lib/netinet_in_.h: Likewise.
55075         * lib/search_.h: Likewise.
55076         * lib/signal_.h: Likewise.
55077         * lib/stdint_.h: Likewise.
55078         * lib/stdio_.h: Likewise.
55079         * lib/stdlib_.h: Likewise.
55080         * lib/string_.h: Likewise.
55081         * lib/sys_select_.h: Likewise.
55082         * lib/sys_socket_.h: Likewise.
55083         * lib/sys_stat_.h: Likewise.
55084         * lib/sys_time_.h: Likewise.
55085         * lib/sysexits_.h: Likewise.
55086         * lib/time_.h: Likewise.
55087         * lib/unistd_.h: Likewise.
55088         * lib/wchar_.h: Likewise.
55089         * lib/wctype_.h: Likewise.
55090
55091 2007-05-29  Bruno Haible  <bruno@clisp.org>
55092
55093         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55094         for the moment.
55095
55096 2007-05-29  Bruno Haible  <bruno@clisp.org>
55097
55098         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55099         invocation.
55100         Reported by Eric Blake.
55101
55102 2007-05-29  Bruno Haible  <bruno@clisp.org>
55103
55104         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55105         compiling case.
55106
55107 2007-05-29  Eric Blake  <ebb9@byu.net>
55108             Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55111         cross compiles.
55112
55113 2007-05-28  Eric Blake  <ebb9@byu.net>
55114
55115         * modules/closein-tests (test_closein_LDADD): Support test on
55116         cygwin with libtool.
55117
55118 2007-05-28  Bruno Haible  <bruno@clisp.org>
55119
55120         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55121         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55122         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55123         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55124         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55125         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55126         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55127         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55128         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55129
55130 2007-05-28  Eric Blake  <ebb9@byu.net>
55131
55132         Unconditionally include <config.h> in unit tests.
55133         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55134         * tests/test-allocsa.c, tests/test-arcfour.c,
55135         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55136         tests/test-array_list.c, tests/test-array_oset.c,
55137         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55138         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55139         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55140         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55141         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55142         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55143         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55144         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55145         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55146         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55147         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55148         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55149         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55150         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55151         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55152         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55153         test-md5.c, test-memmem.c, test-printf-posix.c,
55154         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55155         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55156         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55157         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55158         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55159         test-vasnprintf-posix2.c, test-vasnprintf.c,
55160         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55161         test-vfprintf-posix.c, test-vprintf-posix.c,
55162         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55163         test-xvasprintf.c: Likewise.
55164
55165 2007-05-28  Bruno Haible  <bruno@clisp.org>
55166
55167         * gnulib-tool (func_import): Remember the --with-tests command-line
55168         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55169         Reported by Eric Blake.
55170
55171 2007-05-28  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/ftell-tests: New file.
55174         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55175         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55176
55177         * lib/ftell.c: New file.
55178         * modules/ftell: New file.
55179         * m4/ftell.m4: New file.
55180         * doc/functions/ftell.texi: Update.
55181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55182         REPLACE_FTELL.
55183         * lib/stdio_.h (rpl_ftell): New declaration.
55184         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55185         REPLACE_FTELL.
55186
55187 2007-05-28  Eric Blake  <ebb9@byu.net>
55188
55189         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55190
55191 2007-05-28  Bruno Haible  <bruno@clisp.org>
55192
55193         * modules/fseek-tests: New file.
55194         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55195         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55196
55197         * lib/fseek.c: New file.
55198         * modules/fseek: New file.
55199         * m4/fseek.m4: New file.
55200         * doc/functions/fseek.texi: Update.
55201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55202         REPLACE_FSEEK.
55203         * lib/stdio_.h (rpl_fseek): New declaration.
55204         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55205         REPLACE_FSEEK.
55206
55207 2007-05-28  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/stdio_.h (fflush): More comments.
55210
55211 2007-05-28  Bruno Haible  <bruno@clisp.org>
55212
55213         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55214         runtime test.
55215
55216 2007-05-28  Eric Blake  <ebb9@byu.net>
55217
55218         Improve lseek module.
55219         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55220         * lib/unistd_.h (lseek): Scale back link warning message.
55221         * tests/test-lseek.c: Beef up test.
55222         * tests/test-lseek.sh: Exercise more facets of lseek.
55223         Reported by Bruno Haible.
55224
55225 2007-05-28  Bruno Haible  <bruno@clisp.org>
55226
55227         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55228         to define.
55229
55230 2007-05-27  Bruno Haible  <bruno@clisp.org>
55231
55232         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55233
55234 2007-05-27  Bruno Haible  <bruno@clisp.org>
55235
55236         * modules/openmp: New file.
55237         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55238         Noah Misch.
55239
55240 2007-05-26  Bruno Haible  <bruno@clisp.org>
55241
55242         * modules/chdir-long (Depends-on): Add fchdir.
55243         * modules/chdir-safer (Depends-on): Likewise.
55244         * modules/fts (Depends-on): Likewise.
55245         * modules/fts-lgpl (Depends-on): Likewise.
55246         * modules/openat (Depends-on): Likewise.
55247         * modules/savewd (Depends-on): Likewise.
55248
55249 2007-05-24  Eric Blake  <ebb9@byu.net>
55250
55251         Fix lseek on mingw.
55252         * modules/lseek: New module.
55253         * m4/lseek.m4: New file.
55254         * lib/lseek.c: New file.
55255         * modules/lseek-tests: New file.
55256         * tests/test-lseek.c: New file.
55257         * tests/test-lseek.sh: New file.
55258         * MODULES.html.sh: Document lseek module.
55259         * modules/fflush (Depends-on): Add lseek, fseeko.
55260         * modules/fseeko (Depends-on): Likewise.
55261         * modules/ftello (Depends-on): Likewise.
55262         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55263         broken.
55264         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55265         broken.
55266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55267         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55268         * lib/ftello.c (rpl_ftello): Likewise.
55269         * tests/test-fseeko.c (main): Test this.
55270         * tests/test-fseeko.sh: Likewise.
55271         * tests/test-ftello.c (main): Likewise.
55272         * tests/test-ftello.sh: Likewise.
55273         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55274         implies replacing fseek.
55275         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55276         HAVE_FTELLO.
55277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55278         * modules/unistd (Makefile.am): Likewise.
55279         * lib/unistd_.h (lseek): Declare a replacement.
55280         * doc/functions/lseek.texi (lseek): Document this fix.
55281         * doc/functions/fseek.texi (fseek): Likewise.
55282         * doc/functions/ftell.texi (ftell): Likewise.
55283
55284 2007-05-24  Bruno Haible  <bruno@clisp.org>
55285
55286         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55287         in the printed representation of a NaN.
55288         * tests/test-vasprintf-posix.c (test_function): Likewise.
55289         * tests/test-snprintf-posix.h (test_function): Likewise.
55290         * tests/test-sprintf-posix.h (test_function): Likewise.
55291         Reported by Eric Blake.
55292
55293 2007-05-23  Eric Blake  <ebb9@byu.net>
55294
55295         Fix fseeko/ftello on cygwin 1.5.24.
55296         * doc/functions/fseeko.texi (fseeko): Document the fix.
55297         * doc/functions/ftello.texi (ftello): Document the fix.
55298         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55299         * doc/functions/stdout.text (stdout): New file.
55300         * doc/functions/stderr.text (stderr): New file.
55301         * doc/gnulib.texi (Function Substitutes): Use new files.
55302         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55303         prior to 1.7.0.
55304         * tests/test-ftello.c (main): Likewise for ftello.
55305         * tests/test-fseeko.sh: New file.
55306         * tests/test-ftello.sh: New file.
55307         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55308         with seekable stdin.
55309         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55310         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55311         (gl_REPLACE_FSEEKO): New macro.
55312         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55313         * modules/fseeko (Files): Distribute fseeko.c.
55314         * modules/ftello (Files): Distribute ftello.c.
55315         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55316         mode.
55317         * lib/ftello.c (rpl_ftello): New file.
55318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55319         fseeko, ftello.
55320         (gl_STDIN_LARGE_OFFSET): New macro.
55321         * modules/stdio (Makefile.am): Perform the replacement.
55322         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55323
55324 2007-05-23  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55327         GNULIB_POSIXCHECK is defined.
55328
55329 2007-05-21  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55332         Check also the output for NaN arguments. When cross-compiling, guess
55333         no on IRIX.
55334         * lib/vasnprintf.c: Update comments.
55335         * tests/test-vasnprintf-posix.c (strisnan): New function.
55336         (test_function): Use it.
55337         * tests/test-vasprintf-posix.c (strisnan): New function.
55338         (test_function): Use it.
55339         * tests/test-snprintf-posix.h (strisnan): New function.
55340         (test_function): Use it.
55341         * tests/test-sprintf-posix.h (strisnan): New function.
55342         (test_function): Use it.
55343         Reported by Eric Blake.
55344
55345 2007-05-20  Bruno Haible  <bruno@clisp.org>
55346
55347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55348         numbers that fails on BeOS.
55349         * doc/functions/frexpl.texi: Update.
55350
55351 2007-05-20  Jim Meyering  <jim@meyering.net>
55352
55353         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55354         forced upon us by glibc-2.6.
55355
55356 2007-05-20  Bruno Haible  <bruno@clisp.org>
55357
55358         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55359         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55360         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55361         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55362         NEED_PRINTF_INFINITE.
55363         (is_infinitel): New function.
55364         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55366         gl_PREREQ_VASNPRINTF_INFINITE.
55367         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55369         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55370         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55371         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55372         gl_PREREQ_VASNPRINTF_INFINITE.
55373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55374         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55377         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55380         * doc/functions/fprintf.texi: Update.
55381         * doc/functions/printf.texi: Update.
55382         * doc/functions/snprintf.texi: Update.
55383         * doc/functions/sprintf.texi: Update.
55384         * doc/functions/vfprintf.texi: Update.
55385         * doc/functions/vprintf.texi: Update.
55386         * doc/functions/vsnprintf.texi: Update.
55387         * doc/functions/vsprintf.texi: Update.
55388
55389 2007-05-20  Bruno Haible  <bruno@clisp.org>
55390
55391         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55392         was not found in libc.
55393         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55394
55395 2007-05-20  Bruno Haible  <bruno@clisp.org>
55396
55397         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55398         printed as "-nan" instead of "nan".
55399         * tests/test-vasprintf-posix.c (test_function): Likewise.
55400         * tests/test-snprintf-posix.h (test_function): Likewise.
55401         * tests/test-sprintf-posix.h (test_function): Likewise.
55402         Needed for HP-UX 11.
55403
55404 2007-05-20  Jim Meyering  <jim@meyering.net>
55405
55406         Fix buggy test for the fchownat-deref bug.
55407         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55408         symlink required for the run-test.  Without it, this test would
55409         always declare that fchownat doesn't work, and client code would
55410         unnecessarily use the replacement function with fixed libc.
55411         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55412         Reported by Greg Schafer.
55413
55414 2007-05-19  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55417         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55418         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55419         Needed for IRIX 6.5 and Solaris 2.5.1.
55420
55421 2007-05-19  Bruno Haible  <bruno@clisp.org>
55422
55423         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55424         (test_function): Skip tests involving -0.0 on platforms where
55425         -0.0 = 0.0.
55426         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55427         (test_function): Skip tests involving -0.0 on platforms where
55428         -0.0 = 0.0.
55429         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55430         (test_function): Skip tests involving -0.0 on platforms where
55431         -0.0 = 0.0.
55432         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55433         (test_function): Skip tests involving -0.0 on platforms where
55434         -0.0 = 0.0.
55435         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55436         tests.
55437         * tests/test-printf-posix.h (test_function): Likewise.
55438         * tests/test-printf-posix.output: Remove all -0.0 related results.
55439         Needed for IRIX 6.5.
55440
55441 2007-05-19  Bruno Haible  <bruno@clisp.org>
55442
55443         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55444         printed as "nan0x7fffffff" instead of "nan".
55445         * tests/test-vasprintf-posix.c (test_function): Likewise.
55446         * tests/test-snprintf-posix.h (test_function): Likewise.
55447         * tests/test-sprintf-posix.h (test_function): Likewise.
55448         * tests/test-fprintf-posix.h (NaN): Remove macro.
55449         (test_function): Remove all NaN related tests.
55450         * tests/test-printf-posix.h (NaN): Remove macro.
55451         (test_function): Remove all NaN related tests.
55452         * tests/test-printf-posix.output: Remove all NaN related results.
55453         Needed for IRIX 6.5.
55454
55455 2007-05-19  Bruno Haible  <bruno@clisp.org>
55456
55457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55458         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55459
55460 2007-05-19  Bruno Haible  <bruno@clisp.org>
55461
55462         * lib/float_.h: New file.
55463         * m4/float_h.m4: New file.
55464         * modules/float: New file.
55465         * modules/isnanl (Dependencies): Add float.
55466         * modules/isnanl-nolibm (Dependencies): Likewise.
55467         * modules/mathl (Dependencies): Likewise.
55468         * modules/printf-frexpl (Dependencies): Likewise.
55469         * modules/signbit (Dependencies): Likewise.
55470         * modules/vasnprintf (Dependencies): Likewise.
55471         * doc/headers/float.texi: Update.
55472
55473 2007-05-19  Jim Meyering  <jim@meyering.net>
55474
55475         * lib/utimens.c (gl_futimens): Rename from futimens,
55476         now that glibc-2.6 declares futimens.
55477         * lib/utimens.h: Likewise.
55478
55479 2007-05-19  Bruno Haible  <bruno@clisp.org>
55480
55481         Avoid test failures on mingw.
55482         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55483         * tests/test-printf-posix.sh: Likewise.
55484         * tests/test-vfprintf-posix.sh: Likewise.
55485         * tests/test-vprintf-posix.sh: Likewise.
55486
55487 2007-05-19  Bruno Haible  <bruno@clisp.org>
55488
55489         Fix *printf result for NaN, Inf, -0.0 on mingw.
55490         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55491         * lib/vasnprintf.c: Include math.h and isnan.h.
55492         (is_infinite_or_zero): New function.
55493         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55494         values in the %f, %F, %e, %E, %g, %G directives.
55495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55497         gl_PRINTF_INFINITE and test its result. Invoke
55498         gl_PREREQ_VASNPRINTF_INFINITE.
55499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55506         * doc/functions/fprintf.texi: Update.
55507         * doc/functions/printf.texi: Update.
55508         * doc/functions/snprintf.texi: Update.
55509         * doc/functions/sprintf.texi: Update.
55510         * doc/functions/vfprintf.texi: Update.
55511         * doc/functions/vprintf.texi: Update.
55512         * doc/functions/vsnprintf.texi: Update.
55513         * doc/functions/vsprintf.texi: Update.
55514
55515 2007-05-19  Bruno Haible  <bruno@clisp.org>
55516
55517         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55518         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55519         Instead of multiplying with 10^k, set extra_zeroes to k.
55520         (scale10_round_long_double): Remove function.
55521
55522 2007-05-18  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55525         introduced on 2007-05-06.
55526
55527 2007-05-18  Bruno Haible  <bruno@clisp.org>
55528
55529         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55530         %g directives.
55531         * tests/test-vasprintf-posix.c (test_function): Likewise.
55532         * tests/test-snprintf-posix.h (test_function): Likewise.
55533         * tests/test-sprintf-posix.h (test_function): Likewise.
55534
55535 2007-05-18  Bruno Haible  <bruno@clisp.org>
55536
55537         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55538         (strmatch): New function.
55539         (test_function): Test the %f directive on numbers of various exponents.
55540         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55541         (strmatch): New function.
55542         (test_function): Test the %f directive on numbers of various exponents.
55543         * tests/test-snprintf-posix.h (strmatch): New function.
55544         (test_function): Test the %f directive on numbers of various exponents.
55545         * tests/test-sprintf-posix.h (strmatch): New function.
55546         (test_function): Test the %f directive on numbers of various exponents.
55547         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55548         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55549         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55550         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55551
55552 2007-05-18  Bruno Haible  <bruno@clisp.org>
55553
55554         Add support for 'long double' number output.
55555         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55556         * lib/vasnprintf.c: Include math.h and float+.h.
55557         (mp_limb_t): New type.
55558         (GMP_LIMB_BITS): New macro.
55559         (mp_twolimb_t): New type.
55560         (GMP_TWOLIMB_BITS): New macro.
55561         (mpn_t): New type.
55562         (multiply, divide, convert_to_decimal, decode_long_double,
55563         scale10_round_long_double, scale10_round_decimal_long_double,
55564         floorlog10l): New functions.
55565         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55566         for the %f, %F, %e, %E, %g, %G directives.
55567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55569         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55570         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55578         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55579         * modules/snprintf-posix (Depends-on): Likewise.
55580         * modules/sprintf-posix (Depends-on): Likewise.
55581         * modules/vasnprintf-posix (Depends-on): Likewise.
55582         * modules/vasprintf-posix (Depends-on): Likewise.
55583         * modules/vfprintf-posix (Depends-on): Likewise.
55584         * modules/vsnprintf-posix (Depends-on): Likewise.
55585         * modules/vsprintf-posix (Depends-on): Likewise.
55586         * modules/vasnprintf (Files): Add lib/float+.h.
55587         * doc/functions/fprintf.texi: Update.
55588         * doc/functions/printf.texi: Update.
55589         * doc/functions/snprintf.texi: Update.
55590         * doc/functions/sprintf.texi: Update.
55591         * doc/functions/vfprintf.texi: Update.
55592         * doc/functions/vprintf.texi: Update.
55593         * doc/functions/vsnprintf.texi: Update.
55594         * doc/functions/vsprintf.texi: Update.
55595
55596 2007-05-18  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55599
55600 2007-05-18  Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55603         for printing 64-bit integers. Needed for mingw.
55604
55605 2007-05-18  Bruno Haible  <bruno@clisp.org>
55606
55607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55608         gl_FUNC_FREXPL_WORKS.
55609         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55610
55611 2007-05-18  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/frexpl-nolibm-tests: New file.
55614
55615         * modules/frexpl-nolibm: New file.
55616         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55617
55618 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55619
55620         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55621         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55622         GCC 4.2, which otherwise issues a lot of warnings.
55623         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55624         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55625         Likewise.
55626         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55627         * modules/iconv_open (iconv.h): Likewise.
55628         * modules/locale (locale.h): Likewise.
55629         * modules/netinet_in (netinet/in.h): Likewise.
55630         * modules/sys_select (sys_select.h): Likewise.
55631         * modules/sys_socket (sys/socket.h): Likewise.
55632         * modules/sys_stat (sys/stat.h): Likewise.
55633         * modules/sysexits (sysexits.h): Likewise.
55634         * modules/unistd (unistd.h): Likewise.
55635
55636 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55637
55638         * modules/closein-tests (Makefile.am): Distribute
55639         `test-closein.sh'.
55640
55641 2007-05-17  Bruno Haible  <bruno@clisp.org>
55642
55643         * tests/test-printf-posix.output: Renamed from
55644         tests/test-fprintf-posix.out.
55645         * modules/fprintf-posix-tests: Update.
55646         * modules/printf-posix-tests: Update.
55647         * modules/vfprintf-posix-tests: Update.
55648         * modules/vprintf-posix-tests: Update.
55649         * tests/test-fprintf-posix.sh: Update.
55650         * tests/test-printf-posix.sh: Update.
55651         * tests/test-vfprintf-posix.sh: Update.
55652         * tests/test-vprintf-posix.sh: Update.
55653         Reported by Ralf Wildenhues.
55654
55655 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55658         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55659         GCC 4.2, which otherwise issues a lot of warnings.
55660         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55661         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55662         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55663         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55664         it should no longer be needed.
55665         * lib/string_.h: Likewise.
55666         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55667         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55668         * modules/inttypes (inttypes.h): Likewise.
55669         * modules/math (math.h): Likewise.
55670         * modules/search (search.h): Likewise.
55671         * modules/signal (signal.h): Likewise.
55672         * modules/stdint (stdint.h): Likewise.
55673         * modules/stdio (stdio.h): Likewise.
55674         * modules/stdlib (stdlib.h): Likewise.
55675         * modules/string (string.h): Likewise.
55676         * modules/sys_time (sys/time.h): Likewise.
55677         * modules/time (time.h): Likewise.
55678         * modules/wchar (wchar.h): Likewise.
55679         * modules/wctype (wtype.h): Likewise.
55680
55681 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55682
55683         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55684
55685 2007-05-13  Bruno Haible  <bruno@clisp.org>
55686
55687         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55688         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55689         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55690         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55691         (gl_PREREQ_STRTOK_R): Don't require it here.
55692
55693 2007-05-13  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55696         when used in C++ mode.
55697
55698 2007-05-12  Bruno Haible  <bruno@clisp.org>
55699
55700         * lib/linebuffer.h: Tweak doc.
55701         * lib/linebuffer.c: Likewise.
55702
55703 2007-05-12  James Youngman  <jay@gnu.org>
55704
55705         * lib/linebuffer.c (readlinebuffer_delim): New function,
55706         like readlinebuffer, but use a caller-specified delimiter.
55707         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55708         as the delimiter.
55709         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55710
55711 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55712
55713         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55714         * modules/openat (Files): Remove openat-die.c.
55715         (Depends-on): Add openat-die.
55716         * modules/openat-die: New module.
55717
55718 2007-05-06  Bruno Haible  <bruno@clisp.org>
55719
55720         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55721         Update with info about Cygwin.
55722         * doc/functions/fprintf.texi: Update.
55723         * doc/functions/printf.texi: Update.
55724         * doc/functions/snprintf.texi: Update.
55725         * doc/functions/sprintf.texi: Update.
55726         * doc/functions/vfprintf.texi: Update.
55727         * doc/functions/vprintf.texi: Update.
55728         * doc/functions/vsnprintf.texi: Update.
55729         * doc/functions/vsprintf.texi: Update.
55730         Reported by Eric Blake.
55731
55732 2007-05-06  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55735         padding ourselves for the floating-point directives.
55736         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55739         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55740         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55748         * tests/test-snprintf-posix.h (test_function): Also check the width
55749         and some flags in the %f directive.
55750         * tests/test-sprintf-posix.h (test_function): Likewise.
55751         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55752         * tests/test-vasprintf-posix.c (test_function): Likewise.
55753         * doc/functions/fprintf.texi: Update.
55754         * doc/functions/printf.texi: Update.
55755         * doc/functions/snprintf.texi: Update.
55756         * doc/functions/sprintf.texi: Update.
55757         * doc/functions/vfprintf.texi: Update.
55758         * doc/functions/vprintf.texi: Update.
55759         * doc/functions/vsnprintf.texi: Update.
55760         * doc/functions/vsprintf.texi: Update.
55761
55762 2007-05-06  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55765         pass the ' flag character to sprintf or snprintf.
55766         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55769         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55770         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55778         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55779         flag.
55780         * tests/test-sprintf-posix.h (test_function): Likewise.
55781         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55782         * tests/test-vasprintf-posix.c (test_function): Likewise.
55783         * doc/functions/fprintf.texi: Update.
55784         * doc/functions/printf.texi: Update.
55785         * doc/functions/snprintf.texi: Update.
55786         * doc/functions/sprintf.texi: Update.
55787         * doc/functions/vfprintf.texi: Update.
55788         * doc/functions/vprintf.texi: Update.
55789         * doc/functions/vsnprintf.texi: Update.
55790         * doc/functions/vsprintf.texi: Update.
55791
55792 2007-05-01  Bruno Haible  <bruno@clisp.org>
55793
55794         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55795
55796 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55797
55798         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55799         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55800
55801 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55802
55803         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55804         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55805         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55806
55807 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55808
55809         * lib/argp-help.c (struct hol_entry): New member `ord'.
55810         (HOL_ENTRY_PTRCMP): Use ord for comparison
55811         (hol_sort): Initialize ord.
55812
55813 2007-05-01  Bruno Haible  <bruno@clisp.org>
55814
55815         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55816         Reported by Eric Blake.
55817         * doc/gnulib.texi (Function Substitutes): Update.
55818
55819 2007-05-01  Bruno Haible  <bruno@clisp.org>
55820
55821         * doc/functions.texi: Remove file, now redundant through
55822         doc/functions/*.texi.
55823
55824 2007-05-01  Bruno Haible  <bruno@clisp.org>
55825
55826         * modules/argp (Depends-on): Add sleep.
55827
55828 2007-05-01  Bruno Haible  <bruno@clisp.org>
55829
55830         * modules/sleep-tests: New file.
55831         * tests/test-sleep.c: New file.
55832
55833         * modules/sleep: New file.
55834         * lib/sleep.c: New file.
55835         * m4/sleep.m4: New file.
55836         * lib/unistd_.h (sleep): New declaration.
55837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55838         HAVE_SLEEP.
55839         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55840         * doc/functions/sleep.texi: Document the sleep module.
55841
55842 2007-05-01  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/sigprocmask.h: Remove file.
55845         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55846         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55847         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55848         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55849         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55850         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55851         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55852         HAVE_SIGSET_T as a shell variable.
55853         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55854         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55855         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55856         (Depends-on): Add signal. Remove verify.
55857         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55858         (Include): Mention <signal.h> instead of sigprocmask.h.
55859         * NEWS: Mention the change.
55860         * lib/fatal-signal.c: Don't include sigprocmask.h.
55861
55862 2007-05-01  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/signal: New file.
55865         * lib/signal_.h: New file.
55866         * m4/signal_h.m4: New file.
55867
55868 2007-05-01  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55871         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55872         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55873         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55874
55875 2007-05-01  Bruno Haible  <bruno@clisp.org>
55876
55877         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55878         configure time.
55879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55880         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55881         * modules/sys_stat (Makefile.am): Substitute their values into
55882         sys/stat.h.
55883
55884 2007-05-01  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55887         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55888         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55889
55890 2007-05-01  Bruno Haible  <bruno@clisp.org>
55891
55892         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55893         'assert' module here.
55894
55895 2007-05-01  Bruno Haible  <bruno@clisp.org>
55896
55897         * doc/functions/*.texi: New files.
55898         * doc/functions/google-ranking.txt: New file.
55899         * doc/gnulib.texi (Function Substitutes): New chapter.
55900         (ctime, inet_ntoa): Remove sections.
55901         * doc/ctime.texi: Remove file.
55902         * doc/inet_ntoa.texi: Remove file.
55903         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55904         dependencies.
55905         (%.info): New rule, specifying a --reference-limit.
55906
55907 2007-05-01  Bruno Haible  <bruno@clisp.org>
55908
55909         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55910
55911 2007-05-01  Bruno Haible  <bruno@clisp.org>
55912
55913         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55914         the portability of 'mkdir' to mingw systems.
55915
55916 2007-05-01  Bruno Haible  <bruno@clisp.org>
55917
55918         * doc/headers/google-ranking.txt: New file.
55919
55920 2007-04-30  Eric Blake  <ebb9@byu.net>
55921
55922         Prefer fseeko to fseek.
55923         * modules/getpass (Depends-on): Add fseeko.
55924         * lib/getpass.c (getpass): Use fseeko, not fseek.
55925
55926 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55927
55928         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55929         assumes the sorting is stable, while most qsort implementations
55930         are not.  Use argument addresses to ensure they never compare as
55931         equal.
55932
55933         * tests/test-argp-2.sh (usage-indent test): Fix output
55934         (func_compare): Restore diff options
55935         * tests/test-argp.c: Restore #include "progname.h"
55936
55937 2007-04-29  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55941         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55943         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55944         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55945         (TESTS, check_PROGRAMS): Add test-snprintf.
55946         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55947         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55948         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55949         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55950         assertions that fail on HP-UX, OSF/1, or IRIX.
55951         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55952
55953 2007-04-29  Bruno Haible  <bruno@clisp.org>
55954
55955         * MODULES.html.sh (posix_functions): Remove 'contents'.
55956
55957 2007-04-29  Karl Berry  <karl@gnu.org>
55958
55959         * config/srclist.txt (gendocs_template_min): new entry.
55960
55961 2007-04-29  Bruno Haible  <bruno@clisp.org>
55962
55963         Work around fpurge bug on BSD systems.
55964         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55965         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55966         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55967         fpurge to rpl_fpurge if the system already has this function.
55968         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55969         the case where the system already has this function. Correct invariants
55970         on BSD systems.
55971         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55972         BSD systems.
55973
55974 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55975
55976         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55977         proposed by Sven Verdoolaege.
55978
55979         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55980         options.
55981         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55982         (usage and help tests): Update
55983
55984 2007-04-29  Bruno Haible  <bruno@clisp.org>
55985
55986         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55987         Print more information in case of failure. Disable a test on BeOS.
55988
55989 2007-04-29  Bruno Haible  <bruno@clisp.org>
55990
55991         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55992         This helps debugging on systems on which no gdb is available.
55993
55994 2007-04-29  Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/freading.h: Improve comments.
55997         * lib/fwriting.h: Likewise.
55998         * tests/test-freading.c (main): Don't check freading immediately after
55999         repositioning. Needed for glibc.
56000
56001 2007-04-29  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/freading.c (freading): Trivial simplification.
56004
56005 2007-04-28  Bruno Haible  <bruno@clisp.org>
56006
56007         * tests/test-fwriting.c (main): Also test the interaction between
56008         fflush and fwriting.
56009         * modules/fwriting-tests (Depends-on): Add fflush.
56010
56011         * tests/test-freading.c (main): Also test the interaction between
56012         fflush and freading.
56013         * modules/freading-tests (Depends-on): Add fflush.
56014
56015 2007-04-28  Bruno Haible  <bruno@clisp.org>
56016
56017         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56018         fseeko and ftello.
56019         Suggested by Eric Blake.
56020
56021 2007-04-28  Jim Meyering  <jim@meyering.net>
56022
56023         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56024         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56025         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56026
56027 2007-04-27  Eric Blake  <ebb9@byu.net>
56028
56029         * doc/headers/assert.texi (assert.h): Document assert module use.
56030
56031 2007-04-27  Bruno Haible  <bruno@clisp.org>
56032
56033         * doc/headers/*.texi: New files.
56034         * doc/gnulib.texi (Header File Substitutes): New chapter.
56035         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56036         dependencies.
56037         (standards.info ,standards.html, standards.dvi): Update dependencies.
56038         (mostlyclean, clean): New targets.
56039
56040 2007-04-27  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56043         * modules/sysexits (Files, Makefile.am): Update.
56044
56045         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56046         * modules/sys_socket (Files, Makefile.am): Update.
56047
56048         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56049         * modules/sys_stat (Files, Makefile.am): Update.
56050
56051 2007-04-27  Eric Blake  <ebb9@byu.net>
56052
56053         * lib/freading.h: Improve comments.
56054         * lib/fwriting.h: Likewise.
56055         * lib/fflush.c: Likewise.
56056
56057         Fix closein for mingw.
56058         * modules/closein-tests: Add tests for closein.
56059         * tests/test-closein.c: New file.
56060         * tests/test-closein.sh: Likewise.
56061         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56062         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56063
56064 2007-04-27  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56067         version is < 6.
56068         * lib/math_.h [__DECC]: Likewise.
56069         * lib/stdio_.h [__DECC]: Likewise.
56070         * lib/stdlib_.h [__DECC]: Likewise.
56071         * lib/string_.h [__DECC]: Likewise.
56072         * lib/time_.h [__DECC]: Likewise.
56073         * lib/wchar_.h [__DECC]: Likewise.
56074         * lib/wctype_.h [__DECC]: Likewise.
56075
56076 2007-04-27  Bruno Haible  <bruno@clisp.org>
56077
56078         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56079
56080 2007-04-27  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/fflush.c: Add comments.
56083         * modules/fpurge-tests (Depends-on): Add fflush.
56084         * modules/freadable-tests (Depends-on): Likewise.
56085         * modules/fwritable-tests (Depends-on): Likewise.
56086
56087 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56088
56089         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56090         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56091         Report by Bruno Haible <bruno@clisp.org>.
56092
56093 2007-04-26  Eric Blake  <ebb9@byu.net>
56094
56095         Fix fflush on mingw.
56096         * modules/fflush (Depends-on): Add freading.
56097         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56098         but unread data.
56099
56100 2007-04-26  Eric Blake  <ebb9@byu.net>
56101         and Bruno Haible  <bruno@clisp.org>
56102
56103         Implement freading and fwriting.
56104         * lib/freading.c: New file.
56105         * lib/freading.h: Likewise.
56106         * m4/freading.m4: Likewise.
56107         * modules/freading: Likewise.
56108         * modules/freading-tests: Likewise.
56109         * tests/test-freading.c: Likewise.
56110         * lib/fwriting.c: New file.
56111         * lib/fwriting.h: Likewise.
56112         * m4/fwriting.m4: Likewise.
56113         * modules/fwriting: Likewise.
56114         * modules/fwriting-tests: Likewise.
56115         * tests/test-fwriting.c: Likewise.
56116         * MODULES.html.sh (File stream based Input/Output): Mention them.
56117
56118 2007-04-26  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56121         'long' when we assume it.
56122         Suggested by Eric Blake.
56123
56124 2007-04-26  Bruno Haible  <bruno@clisp.org>
56125
56126         Ensure fseeko, ftello are declared on glibc systems.
56127         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56128         * modules/fseeko (configure.ac-early): Likewise.
56129         * modules/ftello (configure.ac-early): Likewise.
56130         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56131         AC_FUNC_FSEEKO for this.
56132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56133         (gl_CHECK_FSEEKO): Remove macro.
56134
56135 2007-04-26  Bruno Haible  <bruno@clisp.org>
56136
56137         * tests/test-fflush.c (main): Also check the ftell result after
56138         fflush and fseek/fseeko.
56139         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56140         file descriptor position cache in the stream.
56141         * lib/fseeko.c (rpl_fseeko): Likewise.
56142
56143 2007-04-26  Bruno Haible  <bruno@clisp.org>
56144
56145         * modules/fflush-tests (Depends-on): Add fseeko.
56146
56147 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56148             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56149
56150         * lib/argz_.h: ensure error_t definition is obtained in same
56151         mechanism system argz.h would have.
56152         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56153         argz facilities are known bad.  Err on the side of caution if
56154         cross-compiling.
56155
56156 2007-04-25  Eric Blake  <ebb9@byu.net>
56157
56158         * lib/fpurge.c (includes): Use stdlib.h for free.
56159         * tests/test-fflush.c (main): Also test fflush-fseeko.
56160
56161 2007-04-25  Bruno Haible  <bruno@clisp.org>
56162
56163         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56164         * lib/fseeko.c: New file.
56165         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56166         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56167         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56168         gl_FUNC_FSEEKO.
56169         (gl_FUNC_FSEEKO): Invoke it.
56170         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56171         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56172         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56173
56174 2007-04-25  Bruno Haible  <bruno@clisp.org>
56175
56176         * modules/fflush (Depends-on): Add ftello.
56177
56178 2007-04-25  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/ftello-tests: New file.
56181         * tests/test-ftello.c: New file.
56182
56183         * modules/ftello: New file.
56184         * m4/ftello.m4: New file.
56185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56186         HAVE_FTELLO.
56187         * lib/stdio_.h (ftello): New declaration.
56188         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56189         HAVE_FTELLO.
56190
56191 2007-04-25  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/fseeko-tests: New file.
56194         * tests/test-fseeko.c: New file.
56195
56196         * modules/fseeko: New file.
56197         * m4/fseeko.m4: New file.
56198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56199         HAVE_FSEEKO.
56200         * lib/stdio_.h (fseeko): New declaration.
56201         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56202         HAVE_FSEEKO.
56203
56204 2007-04-25  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56207
56208 2007-04-25  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56211         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56212         * tests/test-unistd.c: Likewise.
56213         * tests/test-fcntl.c: Likewise.
56214
56215 2007-04-23  Eric Blake  <ebb9@byu.net>
56216
56217         * lib/fflush.c: Fix missing include.
56218         Reported by Bruno Haible.
56219
56220 2007-04-23  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56223         Reported by Eric Blake.
56224
56225 2007-04-23  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56228
56229 2007-04-23  Bruno Haible  <bruno@clisp.org>
56230
56231         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56232
56233 2007-04-23  Bruno Haible  <bruno@clisp.org>
56234
56235         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56236         Needed on HP-UX 11.
56237
56238 2007-04-16  Eric Blake  <ebb9@byu.net>
56239
56240         Make fflush rely on fpurge.
56241         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56242         open coding all variants.
56243         * modules/fflush (Depends-on): Add fpurge and unistd.
56244         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56246
56247         Fix --with-tests compilation on cygwin.
56248         * modules/argmatch-tests (Makefile.am): List gnulib library first
56249         in LDADD.
56250         * modules/argp-tests (Makefile.am): Likewise.
56251         * modules/array-list-tests (Makefile.am): Likewise.
56252         * modules/array-oset-tests (Makefile.am): Likewise.
56253         * modules/avltree-list-tests (Makefile.am): Likewise.
56254         * modules/avltree-oset-tests (Makefile.am): Likewise.
56255         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56256         * modules/carray-list-tests (Makefile.am): Likewise.
56257         * modules/dirname-tests (Makefile.am): Likewise.
56258         * modules/frexp-tests (Makefile.am): Likewise.
56259         * modules/isnanl-tests (Makefile.am): Likewise.
56260         * modules/linked-list-tests (Makefile.am): Likewise.
56261         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56262         * modules/lock-tests (Makefile.am): Likewise.
56263         * modules/rbtree-list-tests (Makefile.am): Likewise.
56264         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56265         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56266         * modules/tls-tests (Makefile.am): Likewise.
56267         * modules/tsearch-tests (Makefile.am): Likewise.
56268         * modules/xvasprintf-tests (Makefile.am): Likewise.
56269
56270         Fix fpurge for cygwin.
56271         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56272         value.
56273         * modules/fpurge-tests (Depends-on): Clean up trash.
56274
56275 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56276
56277         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56278
56279         * m4/autobuild.m4: Re-indent.
56280
56281 2007-04-13  Bruno Haible  <bruno@clisp.org>
56282
56283         * modules/fpurge-tests: New file.
56284         * tests/test-fpurge.c: New file.
56285
56286         * modules/fpurge: New file.
56287         * lib/fpurge.h: New file.
56288         * lib/fpurge.c: New file.
56289         * m4/fpurge.m4: New file.
56290
56291 2007-04-13  Bruno Haible  <bruno@clisp.org>
56292
56293         * modules/fbufmode-tests: New file.
56294         * tests/test-fbufmode.c: New file.
56295
56296         * modules/fbufmode: New file.
56297         * lib/fbufmode.h: New file.
56298         * lib/fbufmode.c: New file.
56299         * m4/fbufmode.m4: New file.
56300
56301 2007-04-13  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/fwritable-tests: New file.
56304         * tests/test-fwritable.c: New file.
56305
56306         * modules/fwritable: New file.
56307         * lib/fwritable.h: New file.
56308         * lib/fwritable.c: New file.
56309         * m4/fwritable.m4: New file.
56310
56311 2007-04-13  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/freadable-tests: New file.
56314         * tests/test-freadable.c: New file.
56315
56316         * modules/freadable: New file.
56317         * lib/freadable.h: New file.
56318         * lib/freadable.c: New file.
56319         * m4/freadable.m4: New file.
56320
56321 2007-04-13  Bruno Haible  <bruno@clisp.org>
56322
56323         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56324         MOSTLYCLEANFILES.
56325
56326 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56327
56328         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56329         gzip bootstrap.conf to avoid dragging in i18n machinery.
56330         (gnulib_tool_option): Use it.
56331
56332 2007-04-13  Bruno Haible  <bruno@clisp.org>
56333
56334         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56335         %F directives.
56336         * tests/test-vasprintf-posix.c (test_function): Likewise.
56337         * tests/test-snprintf-posix.h (test_function): Likewise.
56338         * tests/test-sprintf-posix.h (test_function): Likewise.
56339         * tests/test-fprintf-posix.h (test_function): Likewise.
56340         * tests/test-printf-posix.h (test_function): Likewise.
56341         * tests/test-fprintf-posix.out: Likewise.
56342
56343 2007-04-13  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56346         * modules/tls-tests (configure.ac): Likewise.
56347         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56348
56349 2007-04-13  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/tls.c (glthread_tls_get): Fix return type.
56352         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56353
56354 2007-04-12  Eric Blake  <ebb9@byu.net>
56355
56356         * modules/gettime (Depends-on): Remove gettime.
56357         Reported by Dmitry V. Levin.
56358
56359 2007-04-12  Bruno Haible  <bruno@clisp.org>
56360
56361         * modules/fflush (Include): Mention <stdio.h>.
56362         * modules/strtoimax (Include): Mention <inttypes.h>.
56363         * modules/strtoumax (Include): Likewise.
56364
56365 2007-04-12  Eric Blake  <ebb9@byu.net>
56366
56367         * .cvsignore: New file.
56368         * .gitignore: Likewise.
56369
56370 2007-04-12  Bruno Haible  <bruno@clisp.org>
56371
56372         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56373         not before, since $(LDADD) often contains libgnu.a.
56374         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56375         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56376         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56377         Needed on Cygwin.
56378
56379 2007-04-12  Eric Blake  <ebb9@byu.net>
56380
56381         Work around glibc's failure to flush stdin on fclose.
56382         * lib/closein.c (close_stdin): Flush stdin before closing.
56383
56384         Work around glibc's failure to reset seekable stdin on exit.
56385         * modules/closein: New module.
56386         * lib/closein.c: New file.
56387         * lib/closein.h: Likewise.
56388         * m4/closein.m4: Likewise.
56389         * MODULES.html.sh (File stream based Input/Output): Document it.
56390
56391 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56392
56393         * gnulib-tool: Rename generated 'autobuild' script to
56394         'do-autobuild' in --create-megatestdir output.
56395
56396         * doc/gnulib.texi (Build robot for gnulib): Fix.
56397
56398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56399
56400         * modules/sysexits (Depends-on): Add absolute-header.
56401
56402 2007-04-12  Eric Blake  <ebb9@byu.net>
56403
56404         No need to preserve errno on success.
56405         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56406         Reported by Bruno Haible.
56407
56408 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56409
56410         * MODULES.html.sh (Support for maintaining and releasing
56411         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56412
56413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56414
56415         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56416
56417 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56418
56419         * modules/autobuild: New module.
56420
56421         * m4/autobuild.m4: New file.
56422
56423 2007-04-11  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56426         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56427         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56435         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56442         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56443         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56445         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56446         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56448         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56449         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56451         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56452         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56453         Reported by Eric Blake.
56454
56455 2007-04-11  Bruno Haible  <bruno@clisp.org>
56456
56457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56458
56459 2007-04-10  Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56462         for NaN and Infinity. Needed on FreeBSD 6.1.
56463         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56464         regarding results for "%010a" of Infinity and NaN.
56465         * tests/test-vasprintf-posix.c (test_function): Likewise.
56466         * tests/test-snprintf-posix.h (test_function): Likewise.
56467         * tests/test-sprintf-posix.h (test_function): Likewise.
56468         * tests/test-fprintf-posix.h (test_function): Likewise.
56469         * tests/test-printf-posix.h (test_function): Likewise.
56470         * tests/test-fprintf-posix.out: Likewise.
56471
56472 2007-04-10  Bruno Haible  <bruno@clisp.org>
56473
56474         * modules/locale-tests: New file.
56475         * tests/test-locale.c: New file.
56476
56477         * modules/locale: New file.
56478         * lib/locale_.h: New file.
56479         * m4/locale_h.m4: New file.
56480
56481 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56482             Bruno Haible  <bruno@clisp.org>
56483
56484         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56485         be determined, test for availability of the copysignf, copysign,
56486         copysignl functions.
56487         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56488         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56489         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56490
56491 2007-04-09  Eric Blake  <ebb9@byu.net>
56492
56493         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56494         * modules/stdio (Makefile.am): Support fflush.
56495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56496         * modules/fflush: New file.
56497         * lib/fflush.c: Likewise.
56498         * m4/fflush.m4: Likewise.
56499         * modules/fflush-tests: New test.
56500         * tests/test-fflush.c: Likewise.
56501         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56502
56503 2007-04-06  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56506         (VASNPRINTF): Use signbit for faster determination whether to print a
56507         minus sign.
56508         * modules/vasnprintf (Files): Remove lib/float+.h.
56509         * modules/fprintf-posix (Depends-on): Add signbit.
56510         * modules/snprintf-posix (Depends-on): Likewise.
56511         * modules/sprintf-posix (Depends-on): Likewise.
56512         * modules/vasnprintf-posix (Depends-on): Likewise.
56513         * modules/vasprintf-posix (Depends-on): Likewise.
56514         * modules/vfprintf-posix (Depends-on): Likewise.
56515         * modules/vsnprintf-posix (Depends-on): Likewise.
56516         * modules/vsprintf-posix (Depends-on): Likewise.
56517
56518 2007-04-06  Bruno Haible  <bruno@clisp.org>
56519
56520         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56521         * tests/test-frexpl.c (main): Likewise.
56522         * tests/test-ldexpl.c (main): Likewise.
56523         * modules/frexp-tests (Depends-on): Add signbit.
56524         * modules/frexpl-tests (Depdends-on): Likewise.
56525         * modules/ldexpl-tests (Depdends-on): Likewise.
56526
56527 2007-04-06  Bruno Haible  <bruno@clisp.org>
56528
56529         * modules/signbit-tests: New file.
56530         * tests/test-signbit.c: New file.
56531
56532         * modules/signbit: New file.
56533         * lib/signbitf.c: New file.
56534         * lib/signbitd.c: New file.
56535         * lib/signbitl.c: New file.
56536         * m4/signbit.m4: New file.
56537         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56538         (signbit): New macro.
56539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56540         REPLACE_SIGNBIT.
56541         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56542         REPLACE_FREXPL into math.h.
56543
56544 2007-04-06  Bruno Haible  <bruno@clisp.org>
56545
56546         * modules/isnanf-nolibm-tests: New file.
56547         * tests/test-isnanf.c: New file.
56548
56549         * modules/isnanf-nolibm: New file.
56550         * lib/isnanf.h: New file.
56551         * lib/isnanf.c: New file.
56552         * lib/isnan.c: Consider the USE_FLOAT macro.
56553         * m4/isnanf.m4: New file.
56554
56555 2007-04-06  Bruno Haible  <bruno@clisp.org>
56556
56557         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56558         (Link): New section.
56559
56560         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56561
56562 2007-04-06  Bruno Haible  <bruno@clisp.org>
56563
56564         Assume the 'long double' type.
56565         * m4/longdouble.m4: Remove file.
56566         * config/srclist.txt: Don't mention longdouble.m4.
56567         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56568         * lib/float+.h: Likewise.
56569         * lib/frexp.c: Likewise.
56570         * lib/printf-args.h: Likewise.
56571         * lib/printf-args.c: Likewise.
56572         * lib/printf-frexp.c: Likewise.
56573         * lib/printf-parse.c: Likewise.
56574         * lib/vasnprintf.c: Likewise.
56575         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56576         * m4/intl.m4: Likewise.
56577         * m4/isnanl.m4: Likewise.
56578         * m4/printf.m4: Likewise.
56579         * m4/printf-frexpl.m4: Likewise.
56580         * m4/vasnprintf.m4: Likewise.
56581         * modules/allocsa (Files): Remove m4/longdouble.m4.
56582         * modules/gettext (Files): Likewise.
56583         * modules/relocatable-prog-wrapper (Files): Likewise.
56584         * modules/vasnprintf (Files): Likewise.
56585         * modules/isnanl (Files): Likewise.
56586         (Include): Simplify.
56587         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56588         (Include): Simplify.
56589         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56590         (Include): Simplify.
56591         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56593         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56594         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56595         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56596         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56597         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56598         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56599         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56600         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56601         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56602         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56603         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56604         * tests/test-isnanl.c: Likewise.
56605         * tests/test-snprintf-posix.h: Likewise.
56606         * tests/test-sprintf-posix.h: Likewise.
56607         * tests/test-vasnprintf-posix.c: Likewise.
56608         * tests/test-vasnprintf-posix2.c: Likewise.
56609         * tests/test-vasprintf-posix.c: Likewise.
56610
56611 2007-04-06  Bruno Haible  <bruno@clisp.org>
56612
56613         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56614         * lib/math_.h [__DECC]: Include the overridden include file through
56615         #include_next, outside the double-inclusion guard.
56616         * lib/stdio_.h [__DECC]: Likewise.
56617         * lib/stdlib_.h [__DECC]: Likewise.
56618         * lib/string_.h [__DECC]: Likewise.
56619         * lib/time_.h [__DECC]: Likewise.
56620         * lib/wchar_.h [__DECC]: Likewise.
56621         * lib/wctype_.h [__DECC]: Likewise.
56622         * lib/inttypes_.h [__DECC]: Likewise.
56623         Reported by Albert Chin <china@thewrittenword.com> in
56624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56625
56626 2007-04-04  Eric Blake  <ebb9@byu.net>
56627
56628         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56629         1.5.x.
56630
56631 2007-04-04  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56634         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56635
56636 2007-04-04  Bruno Haible  <bruno@clisp.org>
56637
56638         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56639         results for "%010a" of Infinity and NaN.
56640         * tests/test-vasprintf-posix.c (test_function): Likewise.
56641         * tests/test-snprintf-posix.h (test_function): Likewise.
56642         * tests/test-sprintf-posix.h (test_function): Likewise.
56643         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56644         * tests/test-printf-posix.h (test_function): Likewise.
56645         * tests/test-fprintf-posix.out: Update.
56646         Needed for FreeBSD 6.1.
56647
56648 2007-04-04  Bruno Haible  <bruno@clisp.org>
56649
56650         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56651         directly used by the gnulib modules nor by gnulib-tool.
56652
56653 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56654
56655         * DEPENDENCIES: Give overall description of version dependency
56656         desirability.  Use more-typical names for apps.
56657         Add shell, coreutils, diffutils, grep, tar, gzip.
56658
56659 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56660
56661         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56662
56663 2007-04-04  Karl Berry  <karl@gnu.org>
56664
56665         * MODULES.html.sh (func_module): missing '.
56666
56667 2007-04-03  Bruno Haible  <bruno@clisp.org>
56668
56669         * modules/argmatch-tests (Makefile.am): New variable
56670         test_argmatch_LDADD.
56671         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56672         * modules/array-list-tests (Makefile.am): New variable
56673         test_array_list_LDADD.
56674         * modules/array-oset-tests (Makefile.am): New variable
56675         test_array_oset_LDADD.
56676         * modules/avltree-list-tests (Makefile.am): New variable
56677         test_avltree_list_LDADD.
56678         * modules/avltree-oset-tests (Makefile.am): New variable
56679         test_avltree_oset_LDADD.
56680         * modules/avltreehash-list-tests (Makefile.am): New variable
56681         test_avltreehash_list_LDADD.
56682         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56683         test_canonicalize_lgpl_LDADD.
56684         * modules/carray-list-tests (Makefile.am): New variable
56685         test_carray_list_LDADD.
56686         * modules/dirname-tests (Makefile.am): New variable
56687         test_dirname_LDADD.
56688         * modules/linked-list-tests (Makefile.am): New variable
56689         test_linked_list_LDADD.
56690         * modules/linkedhash-list-tests (Makefile.am): New variable
56691         test_linkedhash_list_LDADD.
56692         * modules/rbtree-list-tests (Makefile.am): New variable
56693         test_rbtree_list_LDADD.
56694         * modules/rbtree-oset-tests (Makefile.am): New variable
56695         test_rbtree_oset_LDADD.
56696         * modules/rbtreehash-list-tests (Makefile.am): New variable
56697         test_rbtreehash_list_LDADD.
56698         * modules/xvasprintf-tests (Makefile.am): New variable
56699         test_xvasprintf_LDADD.
56700         Reported by Eric Blake.
56701
56702 2007-04-03  Eric Blake  <ebb9@byu.net>
56703
56704         * DEPENDENCIES: Weaken m4 requirements.
56705
56706 2007-04-03  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56709         * modules/isnanl-tests (configure.ac): Likewise.
56710
56711 2007-04-03  Ben Pfaff  <blp@gnu.org>
56712
56713         * modules/iconv_open: Add $(srcdir)/ to source directory
56714         references in Makefile fragments that call gperf, to fix VPATH
56715         builds.
56716
56717 2007-04-03  Bruno Haible  <bruno@clisp.org>
56718
56719         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56720         * lib/ldexpl.c: Undo last change.
56721
56722 2007-04-03  Bruno Haible  <bruno@clisp.org>
56723
56724         * modules/printf-frexpl (Depends-on): Undo last change.
56725         (Files): Add m4/ldexpl.m4.
56726
56727 2007-04-03  Bruno Haible  <bruno@clisp.org>
56728
56729         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56730         * modules/isnanl (Link): New section.
56731
56732         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56733         * modules/frexp (Link): New section.
56734
56735         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56736         * modules/frexpl (Link): New section.
56737
56738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56739         * modules/ldexpl (Link): New section.
56740
56741 2007-04-03  Bruno Haible  <bruno@clisp.org>
56742
56743         * modules/TEMPLATE-EXTENDED: New file.
56744         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56745
56746 2007-04-03  Bruno Haible  <bruno@clisp.org>
56747
56748         * DEPENDENCIES: New file.
56749         Suggested by Simon Josefsson.
56750
56751 2007-04-03  Bruno Haible  <bruno@clisp.org>
56752
56753         * doc/gnulib.texi: Escape @.
56754
56755 2007-04-03  James Youngman  <jay@gnu.org>
56756         and Paul Eggert  <eggert@cs.ucla.edu>
56757
56758         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56759         birthtime on all systems that have birthtime, not just those which
56760         use st_birthtimensec rather than st_birthtim.  Putting zero in
56761         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56762         that the birth time is not available for files on an NFS mount.
56763
56764 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56765
56766         * modules/memxor: Move back from crypto/, suggested by Bruno.
56767         * modules/crypto/hmac-sha1: Fix memxor dependency.
56768
56769         * modules/crypto/gc: Moved from ../.
56770
56771 2007-04-02  Eric Blake  <ebb9@byu.net>
56772
56773         * lib/ldexpl.c (includes): Avoid libm.
56774
56775         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56776
56777 2007-04-02  Bruno Haible  <bruno@clisp.org>
56778
56779         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56780         on IRIX.
56781
56782 2007-04-02  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56785         x86 or x86_64 platforms running MacOS X.
56786         Reported by Ryan Schmidt <@ryandesign.com>.
56787
56788 2007-04-02  Bruno Haible  <bruno@clisp.org>
56789
56790         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56791         i386.
56792
56793 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56794
56795         * modules/crypto/arcfour: Moved from ../.
56796         * modules/crypto/arcfour-tests: Moved from ../.
56797         * modules/crypto/arctwo: Moved from ../.
56798         * modules/crypto/arctwo-tests: Moved from ../.
56799         * modules/crypto/des: Moved from ../.
56800         * modules/crypto/des-tests: Moved from ../.
56801         * modules/crypto/gc-arcfour: Moved from ../.
56802         * modules/crypto/gc-arcfour-tests: Moved from ../.
56803         * modules/crypto/gc-arctwo: Moved from ../.
56804         * modules/crypto/gc-arctwo-tests: Moved from ../.
56805         * modules/crypto/gc-des: Moved from ../.
56806         * modules/crypto/gc-des-tests: Moved from ../.
56807         * modules/crypto/gc-hmac-md5: Moved from ../.
56808         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56809         * modules/crypto/gc-hmac-sha1: Moved from ../.
56810         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56811         * modules/crypto/gc-md2: Moved from ../.
56812         * modules/crypto/gc-md2-tests: Moved from ../.
56813         * modules/crypto/gc-md4: Moved from ../.
56814         * modules/crypto/gc-md4-tests: Moved from ../.
56815         * modules/crypto/gc-md5: Moved from ../.
56816         * modules/crypto/gc-md5-tests: Moved from ../.
56817         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56818         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56819         * modules/crypto/gc-random: Moved from ../.
56820         * modules/crypto/gc-rijndael: Moved from ../.
56821         * modules/crypto/gc-rijndael-tests: Moved from ../.
56822         * modules/crypto/gc-sha1: Moved from ../.
56823         * modules/crypto/gc-sha1-tests: Moved from ../.
56824         * modules/crypto/gc-tests: Moved from ../.
56825         * modules/crypto/hmac-md5: Moved from ../.
56826         * modules/crypto/hmac-md5-tests: Moved from ../.
56827         * modules/crypto/hmac-sha1: Moved from ../.
56828         * modules/crypto/hmac-sha1-tests: Moved from ../.
56829         * modules/crypto/md2: Moved from ../.
56830         * modules/crypto/md2-tests: Moved from ../.
56831         * modules/crypto/md4: Moved from ../.
56832         * modules/crypto/md4-tests: Moved from ../.
56833         * modules/crypto/md5: Moved from ../.
56834         * modules/crypto/md5-tests: Moved from ../.
56835         * modules/crypto/memxor: Moved from ../.
56836         * modules/crypto/rijndael: Moved from ../.
56837         * modules/crypto/rijndael-tests: Moved from ../.
56838         * modules/crypto/sha1: Moved from ../.
56839
56840 2007-03-30  James Youngman  <jay@gnu.org>
56841
56842         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56843         rename() to change the ctime of a file (because ctime is unaffected
56844         by rename on jfs2 on AIX 5.1).
56845         (main): Start by doing cleanup, in case a previous run failed leaving
56846         test files behind.
56847
56848 2007-03-31  Bruno Haible  <bruno@clisp.org>
56849
56850         Support old proprietary implementations of iconv.
56851         * modules/iconv_open: New file.
56852         * lib/iconv_.h: New file.
56853         * m4/iconv_h.m4: New file.
56854         * lib/iconv_open.c: New file.
56855         * lib/iconv_open-aix.gperf: New file.
56856         * lib/iconv_open-hpux.gperf: New file.
56857         * lib/iconv_open-irix.gperf: New file.
56858         * lib/iconv_open-osf.gperf: New file.
56859         * m4/iconv_open.m4: New file.
56860         * modules/linebreak (Depends-on): Add iconv_open.
56861         * modules/striconv (Depends-on): Likewise.
56862         * modules/striconveh (Depends-on): Likewise.
56863         * modules/unicodeio (Depends-on): Likewise.
56864         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56865         (iconv_t)(-1).
56866         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56867         conversion if cd is (iconv_t)(-1).
56868         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56869         is not possible.
56870
56871 2007-03-31  Bruno Haible  <bruno@clisp.org>
56872
56873         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56874         work on Solaris either. Protect also second use of "autodetect_jp".
56875
56876 2007-03-31  Bruno Haible  <bruno@clisp.org>
56877
56878         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56879         the function is not present.
56880
56881 2007-03-31  Bruno Haible  <bruno@clisp.org>
56882
56883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56884         the function is not present.
56885
56886 2007-03-31  Bruno Haible  <bruno@clisp.org>
56887
56888         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56889         a bug in HP-UX iconv_open().
56890
56891 2007-03-31  Bruno Haible  <bruno@clisp.org>
56892
56893         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56894         (Mathematics <math.h>): New section, add fpieee.
56895         (Input/output <stdio.h>): Add fseterr.
56896         (Mathematics <math.h>): New section, add printf-frexp.
56897         (Container data structures): Add sublist.
56898         (Core language properties): Add fpucw, inline.
56899         (Functions for greatest-width integer types <inttypes.h>): Add
56900         imaxabs, imaxdiv, inttypes.
56901         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56902         isnanl-nolibm, ldexp.
56903         (Mathematics <math.h>): New section, add printf-frexpl.
56904         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56905         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56906         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56907         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56908         (Unicode string functions): Add unistr/u*-mbtoucr.
56909         (Java): Add javacomp-script, javaexec-script.
56910         (C#): Add csharpcomp-script, csharpexec-script.
56911         (Support for building libraries and executables): Add havelib,
56912         relocatable-*.
56913         (Support for maintaining and releasing projects): Renamed from
56914         'Support for maintaining and release projects'. Add announce-gen.
56915
56916 2007-03-31  Bruno Haible  <bruno@clisp.org>
56917
56918         * README: Talk primarily about git.
56919         (git and CVS): Renamed from CVS.
56920         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56921         gnulib is available through git.
56922         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56923
56924 2007-03-30  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56927         * lib/poll_.h: Likewise.
56928         * lib/stat_.h: Likewise.
56929         * lib/sys_time_.h: Likewise.
56930         * lib/sysexit_.h: Likewise.
56931         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56932         * lib/stdbool_.h: Likewise.
56933         * lib/byteswap_.h: Add double-inclusion guard.
56934
56935 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56936
56937         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56938
56939 2007-03-30  Karl Berry  <karl@gnu.org>
56940
56941         * config/srclist-update: double space after USA in the license
56942         substitution, since that's how it's usually (?) written.
56943
56944 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56945
56946         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56947         reported by Bruno Haible.
56948
56949 2007-03-29  Bruno Haible  <bruno@clisp.org>
56950
56951         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56952         a bug in AIX iconv().
56953
56954 2007-03-29  Bruno Haible  <bruno@clisp.org>
56955
56956         * modules/ldexpl-tests: New file.
56957         * tests/test-ldexpl.c: New file.
56958
56959 2007-03-29  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/ldexpl.c: Include fpucw.h.
56962         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56963         multiplication.
56964         * modules/ldexpl (Depends-on): Add fpucw.
56965
56966 2007-03-29  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/ldexpl: New file.
56969         * m4/ldexpl.m4: New file.
56970         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56971         set.
56972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56973         REPLACE_LDEXPL.
56974         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56975         REPLACE_LDEXPL.
56976         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56977         gl_FUNC_LDEXPL_WORKS.
56978         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56979         * modules/mathl (Files): Remove lib/ldexpl.c.
56980         (Depends-on): Add ldexpl.
56981
56982 2007-03-29  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56985
56986 2007-03-29  Bruno Haible  <bruno@clisp.org>
56987
56988         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56989         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56990         and possibly also HP-UX.
56991         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56992         work on AIX, IRIX, HP-UX, OSF/1.
56993         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56994         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56995         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56996         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56997         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56998         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56999
57000 2007-03-29  Bruno Haible  <bruno@clisp.org>
57001
57002         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57003
57004 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57005
57006         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57007         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57008
57009 2007-03-29  Eric Blake  <ebb9@byu.net>
57010
57011         * lib/acl-internal.h: Remove redundant include.
57012         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57013         Cygwin when a file is locked.
57014
57015 2007-03-29  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57018         file.
57019         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57020
57021 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57022
57023         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57024         try to remove a parent directory if the child couldn't be removed
57025         (except for the first rmdir, which could fail because the child
57026         doesn't exist).  Problem reported by Jeff Blaine in
57027         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57028
57029 2007-03-28  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/striconveh.c (utf8conv_carefully): New function.
57032         (mem_cd_iconveh_internal): Invoke it.
57033
57034 2007-03-28  Bruno Haible  <bruno@clisp.org>
57035
57036         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57037         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57038         input.
57039         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57040         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57041         unistr/u8-uctomb.
57042
57043 2007-03-28  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/unistr/u8-mbtoucr: New file.
57046         * lib/unistr/u8-mbtoucr.c: New file.
57047         * modules/unistr/u16-mbtoucr: New file.
57048         * lib/unistr/u16-mbtoucr.c: New file.
57049         * modules/unistr/u16-mbtoucr: New file.
57050         * lib/unistr/u16-mbtoucr.c: New file.
57051         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57052
57053 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57054             Bruno Haible  <bruno@clisp.org>
57055
57056         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57057         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57058         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57059
57060         * m4/stdio_h.m4: Add stubs for vasprintf too.
57061
57062         * modules/stdio: Support vasprintf in sed command.
57063
57064         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57065         vasprintf.h.  Add stdio module indicator.
57066
57067         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57068         vasprintf.h.
57069
57070         * lib/vasprintf.h: File removed.
57071
57072         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57073         * lib/vasprintf.c: Ditto.
57074         * lib/xvasprintf.c: Ditto.
57075         * tests/test-vasprintf-posix.c: Ditto.
57076         * tests/test-vasprintf.c: Ditto.
57077
57078 2007-03-27  Bruno Haible  <bruno@clisp.org>
57079
57080         Make vasnprintf multithread-safe.
57081         * lib/vasnprintf.c (decimal_point_char): New function.
57082         (VASNPRINTF): Use it.
57083         Suggested by Simon Josefsson.
57084
57085 2007-03-27  Eric Blake  <ebb9@byu.net>
57086
57087         Support sub-second birthtime on cygwin.
57088         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57089         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57090         (get_stat_birthtime): Also work with st_birthtim.
57091
57092 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57093
57094         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57095         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57096         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57097         (get_stat_birthtime_ns): Simplify compile-time tests.
57098         (get_stat_birthtime): Change the API to look like
57099         get_stat_mtime etc., except return a negative tv_nsec on error.
57100         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57101         Don't check for "spare" fields.
57102         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57103         or for struct stat.st_birthtime, as these tests aren't used.
57104         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57105
57106 2007-03-27  Bruno Haible  <bruno@clisp.org>
57107
57108         * lib/stat-time.h: Include <sys/stat.h>.
57109
57110 2007-03-27  James Youngman  <jay@gnu.org>
57111
57112         * lib/stat-time.h (get_stat_birthtime): New function for
57113           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57114         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57115           and its variants.
57116         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57117         * modules/stat-time-test: New file.
57118         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57119
57120 2007-03-26  Bruno Haible  <bruno@clisp.org>
57121
57122         Better support of signalling NaNs.
57123         * lib/atanl.c: Include isnanl.h.
57124         (atanl): Perform test for NaN at the beginning of the function and
57125         through a call to isnanl.
57126         * lib/cosl.c: Include isnanl.h.
57127         (cosl): Perform test for NaN at the beginning of the function and
57128         through a call to isnanl.
57129         * lib/ldexpl.c: Include isnanl.h.
57130         (ldexpl): Perform test for NaN through a call to isnanl.
57131         * lib/logl.c: Include isnanl.h.
57132         (logl): Perform test for NaN at the beginning of the function and
57133         through a call to isnanl.
57134         * lib/sinl.c: Include isnanl.h.
57135         (sinl): Perform test for NaN at the beginning of the function and
57136         through a call to isnanl.
57137         * lib/sqrtl.c: Include isnanl.h.
57138         (sqrtl): Perform test for NaN at the beginning of the function and
57139         through a call to isnanl.
57140         * lib/tanl.c: Include isnanl.h.
57141         (tanl): Perform test for NaN at the beginning of the function and
57142         through a call to isnanl.
57143         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57144         * modules/mathl (Depends-on): Add isnanl.
57145
57146 2007-03-26  Eric Blake  <ebb9@byu.net>
57147
57148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57149         regression in logic sense of previous patch.
57150
57151 2007-03-26  Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57154         unportable shell command "if ! ...".
57155         Reported by Ralf Wildenhues.
57156
57157 2007-03-25  Bruno Haible  <bruno@clisp.org>
57158
57159         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57160         <sysexits.h> file, and only add EX_CONFIG.
57161         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57162         absolute file name and whether it is sufficient. Substitute also
57163         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57164         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57165         ABSOLUTE_SYSEXITS_H into sysexits.h.
57166
57167 2007-03-25  Bruno Haible  <bruno@clisp.org>
57168
57169         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57170         hints is NULL.
57171
57172 2007-03-25  Bruno Haible  <bruno@clisp.org>
57173
57174         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57175         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57176
57177 2007-03-25  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/vasnprintf.c: Include langinfo.h.
57180         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57181         multithread-safe.
57182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57191         Reported by Simon Josefsson.
57192
57193 2007-03-25  Bruno Haible  <bruno@clisp.org>
57194
57195         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57196         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57197         * modules/vasnprintf (Depends-on): Add stdint.
57198
57199 2007-03-25  Bruno Haible  <bruno@clisp.org>
57200
57201         * modules/fpieee: New file.
57202         * m4/fpieee.m4: New file.
57203         * modules/isnan-nolibm (Depends-on): Add fpieee.
57204         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57205         * modules/isnanl (Depends-on): Add fpieee.
57206
57207 2007-03-25  Bruno Haible  <bruno@clisp.org>
57208
57209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57210
57211 2007-03-25  Bruno Haible  <bruno@clisp.org>
57212
57213         Avoid test failures on IRIX 6.5.
57214         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57215         (main): Use it.
57216         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57217         macros.
57218         (main): Use them.
57219
57220 2007-03-25  Bruno Haible  <bruno@clisp.org>
57221
57222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57223         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57224         exists but doesn't work.
57225         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57226         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57228         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57229         math.h.
57230
57231 2007-03-25  Bruno Haible  <bruno@clisp.org>
57232
57233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57234         returns inf. Needed on IRIX 6.5.
57235
57236 2007-03-25  Bruno Haible  <bruno@clisp.org>
57237
57238         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57239         (main): Use isnanl instead of x != x idiom.
57240         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57241
57242         * tests/test-frexp.c: Include isnan.h.
57243         (main): Use isnan instead of x != x idiom.
57244         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57245
57246 2007-03-25  Bruno Haible  <bruno@clisp.org>
57247
57248         * tests/test-frexp.c (NaN): New function/macro.
57249         (main): Use it instead of 0.0 / 0.0.
57250         * tests/test-isnan.c (NaN): New function/macro.
57251         (main): Use it instead of 0.0 / 0.0.
57252         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57253         (test_function): Use it instead of 0.0 / 0.0.
57254         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57255         (test_function): Use it instead of 0.0 / 0.0.
57256         * tests/test-snprintf-posix.h (NaN): New function/macro.
57257         (test_function): Use it instead of 0.0 / 0.0.
57258         * tests/test-sprintf-posix.h (NaN): New function/macro.
57259         (test_function): Use it instead of 0.0 / 0.0.
57260         * tests/test-fprintf-posix.h (NaN): New function/macro.
57261         (test_function): Use it instead of 0.0 / 0.0.
57262         * tests/test-printf-posix.h (NaN): New function/macro.
57263         (test_function): Use it instead of 0.0 / 0.0.
57264
57265         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57266
57267 2007-03-25  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57270
57271 2007-03-25  Bruno Haible  <bruno@clisp.org>
57272
57273         * lib/regexec.c (merge_state_with_log): Make static.
57274
57275 2007-03-25  Bruno Haible  <bruno@clisp.org>
57276
57277         * lib/trigl.c (kernel_rem_pio2): Make static.
57278
57279 2007-03-25  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/sincosl.c (sincosl_table): Make static.
57282
57283 2007-03-25  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57286         if the compiler does not support C99.
57287
57288 2007-03-25  Bruno Haible  <bruno@clisp.org>
57289
57290         * modules/time (Makefile.am): Ensure all rule action lines start with a
57291         tab.
57292
57293 2007-03-24  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/tsearch-tests: New file.
57296         * tests/test-tsearch.sh: New file.
57297         * tests/test-tsearch.c: New file, mostly copied from glibc.
57298
57299         * modules/search-tests: New file.
57300         * tests/test-search.c: New file.
57301
57302         * modules/search: New file.
57303         * lib/search_.h: New file, incorporating lib/tsearch.h.
57304         * m4/search_h.m4: New file.
57305         * lib/tsearch.h: Remove file.
57306         * lib/tsearch.c: Include search.h instead of tsearch.h.
57307         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57308         HAVE_TSEARCH.
57309         * modules/tsearch (Files): Remove lib/tsearch.h.
57310         (Depends-on): Add search.
57311         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57312         (Include): Change tsearch.h into search.h.
57313
57314 2007-03-24  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/fpucw: New file.
57317         * lib/fpucw.h: New file.
57318         * lib/frexp.c: Include fpucw.h.
57319         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57320         (FUNC): Use them.
57321         * lib/printf-frexp.c: Include fpucw.h.
57322         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57323         (FUNC): Use them.
57324         * lib/vasnprintf.c: Include fpucw.h.
57325         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57326         'long double' calculations.
57327         * tests/test-frexpl.c: Include fpucw.h.
57328         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57329         * tests/test-printf-frexpl.c: Include fpucw.h.
57330         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57331         * modules/frexpl (Depends-on): Add fpucw.
57332         * modules/printf-frexpl (Depends-on): Likewise.
57333         * modules/fprintf-posix (Depends-on): Likewise.
57334         * modules/snprintf-posix (Depends-on): Likewise.
57335         * modules/sprintf-posix (Depends-on): Likewise.
57336         * modules/vasnprintf-posix (Depends-on): Likewise.
57337         * modules/vasprintf-posix (Depends-on): Likewise.
57338         * modules/vfprintf-posix (Depends-on): Likewise.
57339         * modules/vsnprintf-posix (Depends-on): Likewise.
57340         * modules/vsprintf-posix (Depends-on): Likewise.
57341         * modules/frexpl-tests (Depends-on): Likewise.
57342         * modules/printf-frexpl-tests (Depends-on): Likewise.
57343
57344 2007-03-24  Bruno Haible  <bruno@clisp.org>
57345
57346         * lib/float+.h: New file.
57347         * lib/isnan.c: Include float+.h.
57348         (SIZE): New macro.
57349         (FUNC): Compare only SIZE bytes of the value.
57350         * lib/vasnprintf.c: Include float+.h.
57351         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57352         SIZEOF_LDBL or SIZEOF_DBL bytes.
57353         * modules/isnan-nolibm (Files): Add lib/float+.h.
57354         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57355         * modules/isnanl (Files): Add lib/float+.h.
57356         * modules/vasnprintf (Files): Add lib/float+.h.
57357
57358 2007-03-24  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57361         include isnanl-nolibm.h.
57362
57363 2007-03-24  Bruno Haible  <bruno@clisp.org>
57364
57365         * tests/test-read-file.c (main): Don't produce spurious output for
57366         expected situations. Make the test fail if it encountered unexpected
57367         results.
57368
57369 2007-03-24  Bruno Haible  <bruno@clisp.org>
57370
57371         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57372         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57373
57374 2007-03-24  Bruno Haible  <bruno@clisp.org>
57375
57376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57377
57378 2007-03-24  Bruno Haible  <bruno@clisp.org>
57379
57380         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57381         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57382
57383         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57384         * modules/utf8-ucs4: Turn into a symbolic link to module
57385         unistr/u8-mbtouc.
57386
57387         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57388         utf8-ucs4-unsafe.
57389         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57390         unistr/u8-mbtouc-unsafe.
57391
57392         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57393         * modules/utf16-ucs4: Turn into a symbolic link to module
57394         unistr/u16-mbtouc.
57395
57396         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57397         utf16-ucs4-unsafe.
57398         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57399         unistr/u16-mbtouc-unsafe.
57400
57401         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57402         * modules/ucs4-utf8: Turn into a symbolic link to module
57403         unistr/u8-ubtomb.
57404
57405         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57406         * modules/ucs4-utf16: Turn into a symbolic link to module
57407         unistr/u16-ubtomb.
57408
57409 2007-03-24  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57412         Enable the function only if HAVE_INLINE.
57413         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57414         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57415         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57416         Enable the function only if HAVE_INLINE.
57417         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57418         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57419         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57420         Enable the function only if HAVE_INLINE.
57421         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57422         Enable the function only if HAVE_INLINE.
57423         * modules/utf8-ucs4: Update.
57424         * modules/utf8-ucs4-unsafe: Update.
57425         * modules/utf16-ucs4: Update.
57426         * modules/utf16-ucs4-unsafe: Update.
57427         * modules/ucs4-utf8: Update.
57428         * modules/ucs4-utf16: Update.
57429
57430 2007-03-24  Bruno Haible  <bruno@clisp.org>
57431
57432         * lib/utf8-ucs4.h: Remove file.
57433         * lib/utf8-ucs4-unsafe.h: Remove file.
57434         * lib/utf16-ucs4.h: Remove file.
57435         * lib/utf16-ucs4-unsafe.h: Remove file.
57436         * lib/ucs4-utf8.h: Remove file.
57437         * lib/ucs4-utf16.h: Remove file.
57438         * lib/unistr.h: Include their previous contents.
57439         * m4/utf-ucs4.m4: Remove file.
57440         * m4/ucs4-utf.m4: Remove file.
57441         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57442         (Depends-on): Add unistr/base.
57443         (configure.ac): Remove gl_UTF_UCS4.
57444         (Makefile.am): Update.
57445         (Include): Change to unistr.h.
57446         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57447         (Depends-on): Add unistr/base.
57448         (configure.ac): Remove gl_UTF_UCS4.
57449         (Makefile.am): Update.
57450         (Include): Change to unistr.h.
57451         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57452         (Depends-on): Add unistr/base.
57453         (configure.ac): Remove gl_UTF_UCS4.
57454         (Makefile.am): Update.
57455         (Include): Change to unistr.h.
57456         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57457         (Depends-on): Add unistr/base.
57458         (configure.ac): Remove gl_UTF_UCS4.
57459         (Makefile.am): Update.
57460         (Include): Change to unistr.h.
57461         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57462         (Depends-on): Add unistr/base.
57463         (configure.ac): Remove gl_UCS4_UTF.
57464         (Makefile.am): Update.
57465         (Include): Change to unistr.h.
57466         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57467         (Depends-on): Add unistr/base.
57468         (configure.ac): Remove gl_UCS4_UTF.
57469         (Makefile.am): Update.
57470         (Include): Change to unistr.h.
57471         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57472         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57473         utf8-ucs4-unsafe.h.
57474         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57475         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57476         utf16-ucs4-unsafe.h.
57477         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57478         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57479         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57480         * lib/unistr/u8-strchr.c: Likewise.
57481         * lib/unistr/u8-strrchr.c: Likewise.
57482         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57483         * lib/unistr/u16-strchr.c: Likewise.
57484         * lib/unistr/u16-strrchr.c: Likewise.
57485         * lib/striconveh.c: Update.
57486         * lib/linebreak.c: Update.
57487
57488 2007-03-24  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57491         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57492
57493 2007-03-22  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57496
57497 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57498
57499         * MODULES.html.sh (File system functions): New module write-any-file.
57500         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57501         * m4/write-any-file.m4: New files.
57502
57503 2007-03-23  Eric Blake  <ebb9@byu.net>
57504
57505         * gnulib-tool: Rearrange space-tab sequences, since some editors
57506         like to eat them.
57507
57508 2007-03-23  Eric Blake  <ebb9@byu.net>
57509
57510         * lib/version-etc.c (version_etc_va): Update license wording to
57511         be more concise.  Recommended by Richard Stallman.
57512
57513 2007-03-22  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/poll.c (MSG_PEEK): New fallback definition.
57516
57517 2007-03-22  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57520         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57521         (main): Update.
57522         Fixes a compilation error on BeOS.
57523
57524 2007-03-22  Bruno Haible  <bruno@clisp.org>
57525
57526         * modules/frexpl-tests: New file.
57527         * tests/test-frexpl.c: New file.
57528
57529         * modules/frexpl: New file.
57530         * m4/frexpl.m4: New file.
57531         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57532         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57534         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57535         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57536         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57537
57538 2007-03-22  Bruno Haible  <bruno@clisp.org>
57539
57540         * lib/frexpl.c: Share code with lib/frexp.c.
57541         * modules/mathl (Files): Add lib/frexp.c.
57542         (Depends-on): Add isnanl-nolibm.
57543
57544 2007-03-22  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/printf-frexp (Files): Add m4/frexp.m4.
57547         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57548         only if the found frexp function actually works.
57549
57550 2007-03-22  Bruno Haible  <bruno@clisp.org>
57551
57552         * lib/frexp.c: Remove older implementation that uses divisions.
57553
57554 2007-03-21  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/frexp-tests: New file.
57557         * tests/test-frexp.c: New file.
57558
57559         * modules/frexp: New file.
57560         * lib/frexp.c: New file.
57561         * m4/frexp.m4: New file.
57562         * lib/math_.h (frexp): New declaration.
57563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57564         REPLACE_FREXP.
57565         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57566
57567 2007-03-21  Bruno Haible  <bruno@clisp.org>
57568
57569         * modules/isnanl-tests: New file.
57570         * tests/test-isnanl.c: New file.
57571
57572         * modules/isnanl: New file.
57573         * lib/isnanl.h: New file.
57574         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57575         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57576         gl_FUNC_ISNANL_WORKS.
57577         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57578         New macros.
57579
57580 2007-03-21  Bruno Haible  <bruno@clisp.org>
57581
57582         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57583         lib/isnanl.h.
57584         (Include): Update.
57585         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57586         * lib/vasnprintf.c: Update.
57587         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57588         tests/test-isnanl.h, remove tests/test-isnanl.c.
57589         (Makefile.am): Update.
57590         * tests/test-isnanl-nolibm.c: New file.
57591         * tests/test-isnanl.h: New file.
57592         * tests/test-isnanl.c: Remove file.
57593
57594 2007-03-21  Jim Meyering  <jim@meyering.net>
57595
57596         When trying to open ".", treat ESTALE like EACCES.
57597         * lib/savewd.c (savewd_save): Resort to forking not just upon
57598         failure with EACCES, but also when errno is ESTALE.
57599
57600 2007-03-20  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57603         Needed on AIX 5.1. Reported by Matthew Woehlke.
57604
57605 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57606
57607         Suggestions by Bruno Haible:
57608         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57609         our own.
57610         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57611         * modules/acl (Depends-on): Add gettext.
57612
57613 2007-03-19  Bruno Haible  <bruno@clisp.org>
57614
57615         * modules/iconvme: Remove file.
57616         * lib/iconvme.h: Remove file.
57617         * lib/iconvme.c: Remove file.
57618         * m4/iconvme.m4: Remove file.
57619
57620 2007-03-19  Bruno Haible  <bruno@clisp.org>
57621
57622         * doc/relocatable-maint.texi: Break long shell script line.
57623         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57624
57625 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57628         handle file_has_acl.
57629         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57630         * lib/acl.c: Move header inclusions and related macro defns into
57631         lib/acl-internal.h.
57632         (S_ISLNK): Remove defn, since that's now done for us.
57633         (file_has_acl): Move to lib/file-has-acl.c.
57634         Call acl_trivial if available.  This is the crucial part of the fix.
57635         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57636         shared within the library.  Rewrite a bit, partly to make it compatible
57637         with the GNU coding style.
57638         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57639         Remove unnecessary double-quotes.
57640         Don't test for acl_to_text; the build will catch that.
57641         Replace acl_entries if it doesn't exist and it is needed.
57642         Check for -lsec and acl_trivial (as used on Solaris 10).
57643         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57644         lib/file-has-acl.c.
57645         (Depends-on): Add sys_stat, for S_ISLNK.
57646
57647 2007-03-19  Ben Pfaff  <blp@gnu.org>
57648
57649         * doc/gnulib.texi: Fix typos.
57650         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57651
57652 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57653
57654         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57655         If size is zero here, buf must be zero.
57656
57657 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57658
57659         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57660         <bruno@clisp.org>.
57661
57662 2007-03-18  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57665         Suggested by Eric Blake.
57666
57667 2007-03-18  Ben Pfaff  <blp@gnu.org>
57668
57669         * doc/relocatable.texi: Recommend using as prefix a directory
57670         that does not exist and will never be created.  Based on
57671         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57672         and others.
57673
57674 2007-03-17  Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/fchownat.c: Include lchown.h.
57677
57678 2007-03-17  Bruno Haible  <bruno@clisp.org>
57679
57680         Fix endless loop when the given allocated size was > INT_MAX.
57681         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57682         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57683         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57684         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57685         * lib/sprintf.c (sprintf): Likewise.
57686
57687 2007-03-17  Bruno Haible  <bruno@clisp.org>
57688
57689         * tests/test-argp-2.sh (func_compare): Output a context diff.
57690
57691 2007-03-17  Bruno Haible  <bruno@clisp.org>
57692
57693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57694         locale's decimal-point character.
57695
57696 2007-03-17  Bruno Haible  <bruno@clisp.org>
57697
57698         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57699         before comparing it. Needed because on some platforms (e.g. x86) a
57700         'long double' occupies less bytes than sizeof (long double).
57701
57702 2007-03-17  Bruno Haible  <bruno@clisp.org>
57703
57704         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57705         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57706         * tests/test-getaddrinfo.c (simple): Likewise.
57707         * tests/test-read-file.c (main): Likewise.
57708
57709 2007-03-17  Bruno Haible  <bruno@clisp.org>
57710
57711         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57712
57713 2007-03-17  Bruno Haible  <bruno@clisp.org>
57714
57715         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57716         unused variable.
57717
57718 2007-03-17  Bruno Haible  <bruno@clisp.org>
57719
57720         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57721         * tests/test-c-strncasecmp.c: Likewise.
57722
57723 2007-03-17  Bruno Haible  <bruno@clisp.org>
57724
57725         * modules/stdlib (Depends-on): Add unistd.
57726         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57727         Needed for MacOS X 10.3.
57728
57729 2007-03-17  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57732
57733 2007-03-17  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57736
57737 2007-03-17  Bruno Haible  <bruno@clisp.org>
57738
57739         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57740         to reflect files copied from gnulib (with or without modifications).
57741         Suggested by Jim Meyering.
57742
57743 2007-03-17  Eric Blake  <ebb9@byu.net>
57744
57745         * NEWS: Document stdlib change from 2007-02-18.
57746
57747 2007-03-17  Jim Meyering  <jim@meyering.net>
57748
57749         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57750         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57751         someone uses a name containing shell meta-characters.
57752         Reported by Alfred M. Szmidt.
57753
57754         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57755
57756 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57757
57758         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57759         and copy gettext configuration files only if configure.ac contains
57760         a use of AM_GNU_GETTEXT_VERSION.
57761
57762 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57763
57764         * build-aux/bootstrap (gnulib_name): New variable.
57765         (gnulib_tool_options): Use it.
57766
57767 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57768
57769         * tests/test-des.c: Use new namespace.
57770
57771 2007-03-15  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57774         Reported by James Youngman <jay@gnu.org>.
57775
57776 2007-03-15  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57779         declared prototype. Needed with cc on OSF/1 5.1.
57780
57781 2007-03-15  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57784         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57785         (struct gl_list_implementation): Add dispose_fn argument to the
57786         'create_empty', 'create' methods.
57787         (struct gl_list_impl_base): Add field 'dispose_fn'.
57788         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57789         argument.
57790         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57791         dispose_fn argument.
57792         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57793         dispose_fn on the dropped values.
57794         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57795         dispose_fn argument.
57796         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57797         dropped values.
57798         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57799         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57800         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57801         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57802         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57803         argument.
57804         (gl_tree_list_free): Call dispose_fn on the dropped values.
57805         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57806         the dropped values.
57807         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57808         Add dispose_fn argument.
57809         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57810         Call dispose_fn on the dropped values.
57811         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57812         Add dispose_fn argument.
57813         (gl_sublist_create): Initialize the 'dispose_fn' field.
57814         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57815         * tests/test-array_list.c (main): Update.
57816         * tests/test-carray_list.c (main): Update.
57817         * tests/test-avltree_list.c (main): Update.
57818         * tests/test-rbtree_list.c (main): Update.
57819         * tests/test-avltreehash_list.c (main): Update.
57820         * tests/test-rbtreehash_list.c (main): Update.
57821         * tests/test-linked_list.c (main): Update.
57822         * tests/test-linkedhash_list.c (main): Update.
57823         * tests/test-array_oset.c (main): Update.
57824
57825 2007-03-15  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57828         (gl_oset_create_empty): Add dispose_fn argument.
57829         (struct gl_oset_implementation): Add dispose_fn argument to
57830         'create_empty' method.
57831         (struct gl_oset_impl_base): Add dispose_fn field.
57832         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57833         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57834         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57835         values.
57836         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57837         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57838         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57839         dropped value.
57840         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57841         dropped value.
57842         * tests/test-array_oset.c (main): Update.
57843         * tests/test-avltree_oset.c (main): Update.
57844         * tests/test-rbtree_oset.c (main): Update.
57845         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57846
57847 2007-03-13  Bruno Haible  <bruno@clisp.org>
57848
57849         * tests/test-stdbool.c (i): Update after last patch.
57850
57851 2007-03-12  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57854         the iswprint macro. Needed on Solaris 2.5.1.
57855
57856 2007-03-12  Bruno Haible  <bruno@clisp.org>
57857
57858         * tests/test-printf-frexp.c (main): Declare x as volatile.
57859
57860 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57861
57862         * doc/gnulib.texi (Build robot for gnulib): New section.
57863
57864 2007-03-12  Jim Meyering  <jim@meyering.net>
57865
57866         * build-aux/bootstrap: New file.
57867         * build-aux/bootstrap.conf: New file, from coreutils.
57868
57869 2007-03-11  Bruno Haible  <bruno@clisp.org>
57870
57871         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57872
57873 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57874
57875         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57876         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57877         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57878
57879 2007-03-11  Bruno Haible  <bruno@clisp.org>
57880
57881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57882         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57883
57884 2007-03-11  Bruno Haible  <bruno@clisp.org>
57885
57886         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57887         formula. Needed for SunPRO C 5.0.
57888
57889 2007-03-11  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/long-options (Depends-on): Add getopt.
57892
57893 2007-03-11  Bruno Haible  <bruno@clisp.org>
57894
57895         * modules/modechange (Depends-on): Add stdbool.
57896
57897 2007-03-11  Bruno Haible  <bruno@clisp.org>
57898
57899         * modules/i-ring (Depends-on): Add stdbool.
57900
57901 2007-03-11  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/gc-des (Depends-on): Add stdbool.
57904
57905 2007-03-11  Bruno Haible  <bruno@clisp.org>
57906
57907         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57908
57909 2007-03-11  Bruno Haible  <bruno@clisp.org>
57910
57911         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57912
57913 2007-03-11  Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57916
57917 2007-03-11  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/vasnprintf.c (sprintf): Undefine.
57920
57921 2007-03-11  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57924         initializers in SunPRO C and Compaq C compilers.
57925
57926 2007-03-11  Bruno Haible  <bruno@clisp.org>
57927
57928         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57929         decrementing code ANSI C compliant.
57930
57931 2007-03-11  Bruno Haible  <bruno@clisp.org>
57932
57933         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57934         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57935
57936 2007-03-11  Bruno Haible  <bruno@clisp.org>
57937
57938         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57939         <stdbool.h> substitute doesn't pass.
57940
57941 2007-03-11  Bruno Haible  <bruno@clisp.org>
57942
57943         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57944
57945 2007-03-11  Bruno Haible  <bruno@clisp.org>
57946
57947         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57948         script, for submission to autobuild.josefsson.org.
57949
57950 2007-03-10  Bruno Haible  <bruno@clisp.org>
57951
57952         * modules/canonicalize-lgpl-tests: New file.
57953         * tests/test-canonicalize-lgpl.sh: New file.
57954         * tests/test-canonicalize-lgpl.c: New file.
57955
57956         * modules/c-strcase-tests: New file.
57957         * tests/test-c-strcase.sh: New file.
57958         * tests/test-c-strcasecmp.c: New file.
57959         * tests/test-c-strncasecmp.c: New file.
57960
57961         * modules/atexit-tests: New file.
57962         * tests/test-atexit.sh: New file.
57963         * tests/test-atexit.c: New file.
57964
57965 2007-03-10  Bruno Haible  <bruno@clisp.org>
57966
57967         * tests/test-binary-io.sh: Use temporary filenames that are not so
57968         likely to clash with those of other tests (in a parallel make).
57969         * tests/test-binary-io.c: Likewise.
57970
57971 2007-03-10  Bruno Haible  <bruno@clisp.org>
57972
57973         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57974         fallback; use #error instead.
57975         Suggested by Simon Josefsson.
57976
57977 2007-03-10  Bruno Haible  <bruno@clisp.org>
57978
57979         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57980         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57981         first and the last.
57982
57983 2007-03-10  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57986
57987 2007-03-10  Bruno Haible  <bruno@clisp.org>
57988
57989         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57990         "make distcheck".
57991         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57992         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57993         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57994
57995 2007-03-10  Bruno Haible  <bruno@clisp.org>
57996
57997         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57998         variable.
57999         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58000         variable.
58001
58002 2007-03-09  Eric Blake  <ebb9@byu.net>
58003         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58004
58005         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58006         types are not being provided by gnulib.
58007         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58008         types are supported.
58009
58010 2007-03-10  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/stdio_.h (__attribute__): New macro.
58013         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58014         vsprintf): Specify __attribute__ __format__ for GCC.
58015         Suggested by Eric Blake.
58016
58017 2007-03-09  Bruno Haible  <bruno@clisp.org>
58018
58019         * modules/printf-posix-tests: New file.
58020         * tests/test-printf-posix.sh: New file.
58021         * tests/test-printf-posix.c: New file.
58022
58023         * modules/printf-posix: New file.
58024         * lib/printf.c: New file.
58025         * m4/printf-posix-rpl.m4: New file.
58026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58027         REPLACE_PRINTF.
58028         * lib/stdio_.h (printf): New declaration.
58029         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58030         ____strfmon____): New macros.
58031         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58032         REPLACE_PRINTF.
58033
58034 2007-03-09  Bruno Haible  <bruno@clisp.org>
58035
58036         * tests/test-vasnprintf-posix2.sh: New file.
58037         * tests/test-vasnprintf-posix2.c: New file.
58038         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58039         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58040         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58041
58042         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58043         a locale dependent decimal point, rather than always '.'.
58044
58045 2007-03-09  Eric Blake  <ebb9@byu.net>
58046
58047         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58048         spite of platforms like Tandem/NSK that define it to -1.
58049
58050 2007-03-08  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/vprintf-posix-tests: New file.
58053         * tests/test-vprintf-posix.sh: New file.
58054         * tests/test-vprintf-posix.c: New file.
58055         * tests/test-printf-posix.h: New file.
58056
58057         * modules/vprintf-posix: New file.
58058         * lib/vprintf.c: New file.
58059         * m4/vprintf-posix.m4: New file.
58060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58061         REPLACE_VPRINTF.
58062         * lib/stdio_.h (vprintf): New declaration.
58063         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58064         REPLACE_VPRINTF.
58065
58066 2007-03-08  Bruno Haible  <bruno@clisp.org>
58067
58068         * modules/fprintf-posix-tests: New file.
58069         * tests/test-fprintf-posix.sh: New file.
58070         * tests/test-fprintf-posix.c: New file.
58071
58072         * modules/fprintf-posix: New file.
58073         * lib/fprintf.c: New file.
58074         * m4/fprintf-posix.m4: New file.
58075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58076         REPLACE_FPRINTF.
58077         * lib/stdio_.h (fprintf): New declaration.
58078         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58079         REPLACE_FPRINTF.
58080
58081 2007-03-08  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/vfprintf-posix-tests: New file.
58084         * tests/test-vfprintf-posix.sh: New file.
58085         * tests/test-vfprintf-posix.c: New file.
58086         * tests/test-fprintf-posix.h: New file.
58087         * tests/test-fprintf-posix.out: New file.
58088
58089         * modules/vfprintf-posix: New file.
58090         * lib/vfprintf.c: New file.
58091         * m4/vfprintf-posix.m4: New file.
58092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58093         REPLACE_VFPRINTF.
58094         * lib/stdio_.h (vfprintf): New declaration.
58095         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58096         REPLACE_VFPRINTF.
58097
58098 2007-03-08  Bruno Haible  <bruno@clisp.org>
58099
58100         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58101
58102 2007-03-08  Bruno Haible  <bruno@clisp.org>
58103
58104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58105         instead of 'expr' invocations.
58106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58111         Suggested by Paul Eggert.
58112
58113 2007-03-08  Bruno Haible  <bruno@clisp.org>
58114
58115         * modules/fseterr-tests: New file.
58116         * tests/test-fseterr.c: New file.
58117
58118         * modules/fseterr: New file.
58119         * lib/fseterr.h: New file.
58120         * lib/fseterr.c: New file.
58121
58122 2007-03-08  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58125         * lib/getopt_.h: Likewise.
58126         * lib/mbswidth.h: Likewise.
58127         * lib/setenv.h: Likewise.
58128         * lib/vasnprintf.h: Likewise.
58129         * lib/vasprintf.h: Likewise.
58130         * lib/verror.h: Likewise.
58131         * lib/xsetenv.h: Likewise.
58132         * lib/xvasprintf.h: Likewise.
58133
58134 2007-03-08  Jim Meyering  <jim@meyering.net>
58135
58136         * users.txt: Add parted.
58137
58138         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58139
58140 2007-03-07  Bruno Haible  <bruno@clisp.org>
58141
58142         * m4/printf.m4: Make the shell script snippets copy&pastable.
58143
58144 2007-03-02  Bruno Haible  <bruno@clisp.org>
58145
58146         * lib/netinet_in_.h: New file.
58147         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58148         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58149         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58150         (Depends-on): Add absolute-header.
58151         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58152         into netinet/in.h.
58153
58154 2007-03-03  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/sys_select_.h: New file.
58157         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58158         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58159         * modules/sys_select (Files): Add lib/sys_select_.h.
58160         (Depends-on): Add absolute-header.
58161         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58162         into sys/select.h.
58163
58164 2007-03-02  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58167         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58168         values.
58169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58170         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58171         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58172         * modules/sys_socket (Depends-on): Add absolute-header.
58173         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58174         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58175         (Include): Remove requirement of inclusion of <sys/types.h>.
58176
58177 2007-03-02  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/byteswap_.h (bswap_32): Fix formula.
58180
58181 2007-03-06  Bruno Haible  <bruno@clisp.org>
58182
58183         * modules/sprintf-posix-tests: New file.
58184         * tests/test-sprintf-posix.c: New file.
58185
58186         * modules/sprintf-posix: New file.
58187         * lib/sprintf.c: New file.
58188         * m4/sprintf-posix.m4: New file.
58189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58190         REPLACE_SPRINTF.
58191         * lib/stdio_.h (sprintf): New declaration.
58192         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58193         REPLACE_SPRINTF.
58194
58195 2007-03-06  Bruno Haible  <bruno@clisp.org>
58196
58197         * modules/vsprintf-posix-tests: New file.
58198         * tests/test-vsprintf-posix.c: New file.
58199         * tests/test-sprintf-posix.h: New file.
58200
58201         * modules/vsprintf-posix: New file.
58202         * lib/vsprintf.c: New file.
58203         * m4/vsprintf-posix.m4: New file.
58204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58205         REPLACE_VSPRINTF.
58206         * lib/stdio_.h (vsprintf): New declaration.
58207         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58208         REPLACE_VSPRINTF.
58209
58210 2007-03-06  Bruno Haible  <bruno@clisp.org>
58211
58212         * modules/vsnprintf (Depend-on): Remove minmax.
58213
58214 2007-03-06  Bruno Haible  <bruno@clisp.org>
58215
58216         * modules/snprintf-posix-tests: New file.
58217         * tests/test-snprintf-posix.c: New file.
58218
58219         * modules/snprintf-posix: New file.
58220         * m4/snprintf-posix.m4: New file.
58221         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58222         gl_FUNC_SNPRINTF.
58223         (gl_FUNC_SNPRINTF): Invoke it.
58224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58225         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58226         is set.
58227         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58228
58229 2007-03-06  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/vsnprintf-posix-tests: New file.
58232         * tests/test-vsnprintf-posix.c: New file.
58233         * tests/test-snprintf-posix.h: New file.
58234
58235         * modules/vsnprintf-posix: New file.
58236         * m4/vsnprintf-posix.m4: New file.
58237         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58238         gl_FUNC_VSNPRINTF.
58239         (gl_FUNC_VSNPRINTF): Invoke it.
58240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58241         * lib/stdio_.h (vsnprintf): Define as a replacement if
58242         REPLACE_VSNPRINTF is set.
58243         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58244
58245 2007-03-06  Bruno Haible  <bruno@clisp.org>
58246
58247         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58249
58250 2007-03-06  Bruno Haible  <bruno@clisp.org>
58251
58252         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58253         (asinl): Declare also if HAVE_DECL_ASINL is set.
58254         (atanl): Declare also if HAVE_DECL_ATANL is set.
58255         (ceill): Declare also if HAVE_DECL_CEILL is set.
58256         (cosl): Declare also if HAVE_DECL_COSL is set.
58257         (expl): Declare also if HAVE_DECL_EXPL is set.
58258         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58259         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58260         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58261         (logl): Declare also if HAVE_DECL_LOGL is set.
58262         (sinl): Declare also if HAVE_DECL_SINL is set.
58263         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58264         (tanl): Declare also if HAVE_DECL_TANL is set.
58265         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58267         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58268         declaration of frexpl, ldexpl.
58269         * modules/printf-frexpl (Depends-on): Add math.
58270         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58271
58272 2007-03-05  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58275         frexpl and ldexpl are declared.
58276         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58277
58278 2007-03-05  Bruno Haible  <bruno@clisp.org>
58279
58280         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58281         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58282
58283 2007-03-05  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/stdio_.h: Include <stddef.h>.
58286
58287 2007-03-05  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58290
58291 2007-03-05  Bruno Haible  <bruno@clisp.org>
58292
58293         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58294         NetBSD 4, from Ralf Wildenhues.
58295
58296 2007-03-04  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/vasprintf.h: Update #if logic for the case when the functions
58299         exist but are overridden.
58300
58301 2007-03-04  Bruno Haible  <bruno@clisp.org>
58302
58303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58304         implementations: glibc-2.4 and MacOS X 10.3.
58305         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58306         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58307         * tests/test-vasprintf-posix.c (test_function): Likewise.
58308
58309 2007-03-04  Bruno Haible  <bruno@clisp.org>
58310
58311         * modules/vasprintf-posix-tests: New file.
58312         * tests/test-vasprintf-posix.c: New file.
58313
58314         * modules/vasprintf-posix: New file.
58315         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58316         defined.
58317         * m4/vasprintf-posix.m4: New file.
58318         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58319         gl_FUNC_VASPRINTF.
58320         (gl_FUNC_VASPRINTF): Invoke it.
58321         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58322         here.
58323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58324
58325 2007-03-04  Bruno Haible  <bruno@clisp.org>
58326
58327         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58328         REPLACE_GETTIMEOFDAY.
58329         * modules/sys_time (Makefile.am): Likewise.
58330         * m4/sys_time_h.m4: Likewise.
58331         * m4/gettimeofday.m4: Likewise.
58332
58333 2007-03-04  Bruno Haible  <bruno@clisp.org>
58334
58335         * modules/vasnprintf-posix-tests: New file.
58336         * tests/test-vasnprintf-posix.c: New file.
58337
58338         * modules/vasnprintf-posix: New file.
58339         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58340         printf-frexpl.h.
58341         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58342         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58343         REPLACE_VASNPRINTF is defined.
58344         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58345         gl_FUNC_VASNPRINTF.
58346         (gl_FUNC_VASNPRINTF): Invoke it.
58347         * m4/vasnprintf-posix.m4: New file.
58348         * m4/printf.m4: New file.
58349
58350 2007-03-04  Bruno Haible  <bruno@clisp.org>
58351
58352         Compile progreloc.c only if --enable-relocatable is specified.
58353         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58354         if --enable-relocatable was specified.
58355         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58356         lib_SOURCES.
58357
58358 2007-03-04  Jim Meyering  <jim@meyering.net>
58359
58360         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58361         Use it consistently, rather than enumerating errno constants.
58362
58363 2007-03-04  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/xvasprintf-tests: New file.
58366         * tests/test-xvasprintf.c: New file.
58367
58368         * modules/vasprintf-tests: New file.
58369         * tests/test-vasprintf.c: New file.
58370
58371         * modules/vasnprintf-tests: New file.
58372         * tests/test-vasnprintf.c: New file.
58373
58374         * modules/vsnprintf-tests: New file.
58375         * tests/test-vsnprintf.c: New file.
58376
58377         * modules/snprintf-tests: New file.
58378         * tests/test-snprintf.c: New file.
58379
58380 2007-03-04  Bruno Haible  <bruno@clisp.org>
58381
58382         Compile relocatable.c only if --enable-relocatable is specified.
58383         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58384         gl_RELOCATABLE_LIBRARY.
58385         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58386         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58387         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58388         gl_RELOCATABLE_LIBRARY.
58389         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58390         (Makefile.am): Remove lib_SOURCES.
58391         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58392         gl_RELOCATABLE_LIBRARY.
58393         (Makefile.am): Remove lib_SOURCES.
58394         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58395         always.
58396         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58397         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58398
58399 2007-03-04  Bruno Haible  <bruno@clisp.org>
58400
58401         * modules/argmatch-tests: New file.
58402         * tests/test-argmatch.c: New file.
58403
58404         * tests/test-allocsa.c (main): Halve the number of loop runs.
58405
58406         * modules/alloca-opt-tests: New file.
58407         * tests/test-alloca-opt.c: New file.
58408
58409 2007-03-04  Jim Meyering  <jim@meyering.net>
58410
58411         Work around difference between Linux ACLs and Solaris 10 ZFS.
58412         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58413         for EINVAL.
58414
58415 2007-03-03  Bruno Haible  <bruno@clisp.org>
58416
58417         * modules/relocatable-prog (Depends-on): Add back progreloc's
58418         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58419
58420 2007-03-03  Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58423         * modules/relocatable-lib: New file.
58424
58425 2007-03-03  Bruno Haible  <bruno@clisp.org>
58426
58427         * modules/relocatable-prog: Renamed from modules/relocatable.
58428         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58429
58430 2007-03-03  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58433         m4/relocatable-lib.m4.
58434         (Depends-on): Remove 'relocatable'.
58435         (configure.ac): Add gl_RELOCATABLE_NOP.
58436
58437 2007-03-03  Bruno Haible  <bruno@clisp.org>
58438
58439         * modules/relocatable-prog-wrapper: New file.
58440         * modules/relocatable (Depends-on): Add it. Remove all other
58441         dependencies except progname.
58442         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58443
58444         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58445         (gl_FUNC_STRERROR): Nop.
58446         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58447
58448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58449         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58450
58451         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58452         (gl_FUNC_READLINK): Update.
58453
58454         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58455
58456 2007-03-03  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58459         * modules/xreadlink (Depends-on): Add unistd.
58460         * modules/xreadlink-with-size (Depends-on): Likewise.
58461
58462 2007-03-03  Bruno Haible  <bruno@clisp.org>
58463
58464         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58465         extracted from gt_FUNC_SETENV.
58466         (gt_FUNC_SETENV): Remove macro.
58467         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58468         remove gt_FUNC_SETENV.
58469
58470 2007-03-03  Bruno Haible  <bruno@clisp.org>
58471
58472         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58473         ENABLE_RELOCATABLE here.
58474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58475
58476 2007-03-03  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58479         * tests/test-rbtreehash_list.c: Include progname.h.
58480         (main): Call set_program_name.
58481
58482         * modules/rbtree-oset-tests (Depends-on): Add progname.
58483         * tests/test-rbtree_oset.c: Include progname.h.
58484         (main): Call set_program_name.
58485
58486         * modules/rbtree-list-tests (Depends-on): Add progname.
58487         * tests/test-rbtree_list.c: Include progname.h.
58488         (main): Call set_program_name.
58489
58490         * modules/linked-list-tests (Depends-on): Add progname.
58491         * tests/test-linked_list.c: Include progname.h.
58492         (main): Call set_program_name.
58493
58494 2007-03-03  Bruno Haible  <bruno@clisp.org>
58495
58496         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58497         All uses of __restrict changed to _Restrict_.
58498         * lib/glob_.h (__restrict): Remove macro.
58499
58500 2007-03-02  Bruno Haible  <bruno@clisp.org>
58501
58502         * modules/gettext (configure.ac): Require gettext infrastructure
58503         from version 0.16.1.
58504
58505 2007-03-02  Bruno Haible  <bruno@clisp.org>
58506
58507         * modules/linkedhash-list-tests (Depends-on): Add progname.
58508         * tests/test-linkedhash_list.c: Include progname.h.
58509         (main): Call set_program_name.
58510
58511         * modules/carray-list-tests (Depends-on): Add progname.
58512         * tests/test-carray_list.c: Include progname.h.
58513         (main): Call set_program_name.
58514
58515         * modules/avltreehash-list-tests (Depends-on): Add progname.
58516         * tests/test-avltreehash_list.c: Include progname.h.
58517         (main): Call set_program_name.
58518
58519         * modules/avltree-oset-tests (Depends-on): Add progname.
58520         * tests/test-avltree_oset.c: Include progname.h.
58521         (main): Call set_program_name.
58522
58523         * modules/avltree-list-tests (Depends-on): Add progname.
58524         * tests/test-avltree_list.c: Include progname.h.
58525         (main): Call set_program_name.
58526
58527         * modules/array-oset-tests (Depends-on): Add progname.
58528         * tests/test-array_oset.c: Include progname.h.
58529         (main): Call set_program_name.
58530
58531         * modules/array-list-tests (Depends-on): Add progname.
58532         * tests/test-array_list.c: Include progname.h.
58533         (main): Call set_program_name.
58534
58535         * modules/argp-tests (Depends-on): Add progname.
58536         * tests/test-argp.c: Include argp.h first. Include progname.h.
58537         (main): Call set_program_name.
58538
58539 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * doc/gnulib-tool.texi (Initial import): Reword description of
58542         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58543         limited effect even if defined after the first system include.
58544
58545 2007-03-01  Bruno Haible  <bruno@clisp.org>
58546
58547         * build-aux/config.libpath: Update to libtool-1.5.22.
58548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58549
58550 2007-03-01  Bruno Haible  <bruno@clisp.org>
58551
58552         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58553         foo_CFLAGS.
58554         Reported by Ralf Wildenhues.
58555
58556 2007-03-01  Bruno Haible  <bruno@clisp.org>
58557
58558         * build-aux/install-reloc: Remove object files left over by some
58559         compilers.
58560         Reported by Ralf Wildenhues.
58561
58562 2007-03-01  Bruno Haible  <bruno@clisp.org>
58563
58564         * build-aux/install-reloc: Break long lines.
58565
58566 2007-03-01  Bruno Haible  <bruno@clisp.org>
58567
58568         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58569         Reported by Ralf Wildenhues.
58570
58571 2007-03-01  Bruno Haible  <bruno@clisp.org>
58572
58573         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58574         include ordering constraints.
58575
58576 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58580         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58581         as another example.
58582         * lib/time_.h: Fix misspelling.
58583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58584         Require gl_HEADER_TIME_H_DEFAULTS.
58585         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58586         * m4/time_r.m4 (gl_TIME_R): Likewise.
58587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58588
58589 2007-03-01  Bruno Haible  <bruno@clisp.org>
58590
58591         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58592         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58593
58594 2007-03-01  Jim Meyering  <jim@meyering.net>
58595
58596         * modules/xreadlink (Maintainer): Add my name.
58597         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58598
58599 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58600             Bruno Haible  <bruno@clisp.org>
58601
58602         * build-aux/install-reloc: Compile also c-ctype.c.
58603         * build-aux/relocatable.sh.in: New file.
58604         * doc/relocatable.texi: New file.
58605         * doc/relocatable-maint.texi: New file.
58606         * doc/gnulib.texi: Include relocatable-maint.texi.
58607         * lib/progreloc.c: Include unistd.h unconditionally.
58608         * lib/relocwrapper.c: Include unistd.h unconditionally.
58609         Include c-ctype.h.
58610         (add_dotbin): Use c_tolower.
58611         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58612         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58613         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58614         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58615         to m4/relocatable-lib.m4.
58616         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58617         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58618         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58619         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58620         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58621         * modules/relocatable: New file.
58622         * modules/relocatable-lib: New file.
58623         * modules/relocatable-script: New file.
58624
58625 2007-02-28  Bruno Haible  <bruno@clisp.org>
58626
58627         Import --enable-relocatable infrastructure.
58628         * build-aux/config.libpath: New file, from GNU gettext.
58629         * build-aux/install-reloc: New file, from GNU gettext.
58630         * build-aux/reloc-ldflags: New file, from GNU gettext.
58631         * lib/relocatable.h: New file, from GNU gettext.
58632         * lib/relocatable.c: New file, from GNU gettext.
58633         * lib/relocwrapper.c: New file, from GNU gettext.
58634         * m4/relocatable.m4: New file, from GNU gettext.
58635
58636 2007-02-28  Bruno Haible  <bruno@clisp.org>
58637
58638         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58639
58640         * modules/xreadlink: New file, from GNU gettext with modifications.
58641         * lib/xreadlink.c: New file, from GNU gettext.
58642         * lib/xreadlink.h: Add comments.
58643         (xreadlink): New declaration.
58644
58645         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58646         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58647         lib/xreadlink-with-size.c.
58648         (configure.ac): Remove gl_XREADLINK invocation.
58649         (Makefile.am): Augment lib_SOURCES.
58650         * m4/xreadlink.m4: Remove file.
58651         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58652         (xreadlink_with_size): Renamed from xreadink.
58653         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58654         * modules/canonicalize (Depends-on): Replace xreadlink with
58655         xreadlink-with-size.
58656         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58657
58658 2007-02-25  Jim Meyering  <jim@meyering.net>
58659
58660         * build-aux/announce-gen: When complaining about excess arguments,
58661         list them.
58662
58663 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58664
58665         * README: Document signed integer overflow situation more
58666         accurately.
58667
58668 2007-02-25  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58671         'a' or 'A' conversion.
58672
58673 2007-02-25  Bruno Haible  <bruno@clisp.org>
58674
58675         * modules/filename: Renamed from modules/pathname.
58676         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58677         lib/concatpath.c with lib/concat-filename.c.
58678         (Makefile.am): Update.
58679         (Include): Replace pathname.h with filename.h.
58680         * lib/filename.h: Renamed from lib/pathname.h.
58681         (concatenated_filename): Renamed from concatenated_pathname.
58682         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58683         (concatenated_filename): Renamed from concatenated_pathname.
58684         * lib/findprog.c: Include filename.h instead of pathname.h.
58685         (find_in_path): Update.
58686         * lib/javacomp.c: Include filename.h instead of pathname.h.
58687         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58688         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58689         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58690         is_oldgcj_14_13_usable, is_javac_usable): Update.
58691         * lib/javaexec.c: Include filename.h instead of pathname.h.
58692         (execute_java_class): Update.
58693         * modules/findprog: Update.
58694         * modules/javacomp: Update.
58695         * modules/javaexec: Update.
58696         * MODULES.html.sh (File system functions): Add 'filename', remove
58697         'pathname'.
58698
58699 2007-02-25  Bruno Haible  <bruno@clisp.org>
58700
58701         * modules/printf-frexpl-tests: New file.
58702         * tests/test-printf-frexpl.c: New file.
58703
58704         * modules/printf-frexpl: New file.
58705         * lib/printf-frexpl.h: New file.
58706         * lib/printf-frexpl.c: New file.
58707         * m4/printf-frexpl.m4: New file.
58708
58709 2007-02-25  Bruno Haible  <bruno@clisp.org>
58710
58711         * modules/printf-frexp-tests: New file.
58712         * tests/test-printf-frexp.c: New file.
58713
58714         * modules/printf-frexp: New file.
58715         * lib/printf-frexp.h: New file.
58716         * lib/printf-frexp.c: New file.
58717         * m4/printf-frexp.m4: New file.
58718
58719 2007-02-25  Bruno Haible  <bruno@clisp.org>
58720
58721         Assume automake >= 1.10 for the tests.
58722         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58723         * modules/arctwo-tests: Likewise.
58724         * modules/argp-tests: Likewise.
58725         * modules/avltree-list-tests: Likewise.
58726         * modules/avltree-oset-tests: Likewise.
58727         * modules/avltreehash-list-tests: Likewise.
58728         * modules/carray-list-tests: Likewise.
58729         * modules/crc-tests: Likewise.
58730         * modules/des-tests: Likewise.
58731         * modules/gc-arcfour-tests: Likewise.
58732         * modules/gc-arctwo-tests: Likewise.
58733         * modules/gc-des-tests: Likewise.
58734         * modules/gc-hmac-md5-tests: Likewise.
58735         * modules/gc-hmac-sha1-tests: Likewise.
58736         * modules/gc-md2-tests: Likewise.
58737         * modules/gc-md4-tests: Likewise.
58738         * modules/gc-md5-tests: Likewise.
58739         * modules/gc-pbkdf2-sha1-tests: Likewise.
58740         * modules/gc-rijndael-tests: Likewise.
58741         * modules/gc-sha1-tests: Likewise.
58742         * modules/gc-tests: Likewise.
58743         * modules/getaddrinfo-tests: Likewise.
58744         * modules/hmac-md5-tests: Likewise.
58745         * modules/hmac-sha1-tests: Likewise.
58746         * modules/linked-list-tests: Likewise.
58747         * modules/linkedhash-list-tests: Likewise.
58748         * modules/lock-tests: Likewise.
58749         * modules/md2-tests: Likewise.
58750         * modules/md4-tests: Likewise.
58751         * modules/md5-tests: Likewise.
58752         * modules/rbtree-list-tests: Likewise.
58753         * modules/rbtree-oset-tests: Likewise.
58754         * modules/rbtreehash-list-tests: Likewise.
58755         * modules/read-file-tests: Likewise.
58756         * modules/rijndael-tests: Likewise.
58757         * modules/stdint-tests: Likewise.
58758         * modules/tls-tests: Likewise.
58759
58760 2007-02-24  Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58763         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58764         function; instead check whether isnan with a double argument links.
58765         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58766         function; instead check whether isnan with a 'long double' argument
58767         links.
58768         Reported by Eric Blake <ebb9@byu.net>.
58769
58770 2007-02-24  Bruno Haible  <bruno@clisp.org>
58771
58772         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58773         defined.
58774         * lib/isnanl.c: Remove all code. Just include isnan.c.
58775         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58776
58777 2007-02-25  Jim Meyering  <jim@meyering.net>
58778
58779         Avoid conflicting types for 'unsetenv' on FreeBSD.
58780         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58781         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58782         in stdlib.h.
58783
58784 2007-02-24  Bruno Haible  <bruno@clisp.org>
58785
58786         * modules/isnanl-nolibm-tests: New file.
58787         * tests/test-isnanl.c: New file.
58788
58789         * modules/isnanl-nolibm: New file.
58790         * lib/isnanl.h: New file.
58791         * lib/isnanl.c: New file.
58792         * m4/isnanl.m4: New file.
58793
58794 2007-02-24  Bruno Haible  <bruno@clisp.org>
58795
58796         * modules/isnan-nolibm-tests: New file.
58797         * tests/test-isnan.c: New file.
58798
58799         * modules/isnan-nolibm: New file.
58800         * lib/isnan.h: New file.
58801         * lib/isnan.c: New file.
58802         * m4/isnan.m4: New file.
58803
58804 2007-02-24  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58807         assume that an exponent fits in 20 bits.
58808
58809 2007-02-24  Jim Meyering  <jim@meyering.net>
58810
58811         * m4/regex.m4: Update the description of the configure-time option,
58812         --without-included-regex, to state accurately what the defaults are,
58813         and perhaps to give people an idea why using this option is risky.
58814
58815 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58816
58817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58818         loops on small arguments.  This attempts to avoid the problem
58819         Bruno Haible reported for AIX 4.3.2 in
58820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58821
58822 2007-02-23  Bruno Haible  <bruno@clisp.org>
58823
58824         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58825         Needed for help2man.
58826
58827 2007-02-23  Karl Berry  <karl@gnu.org>
58828
58829         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58830         exists, foo.h should be cvs-ignored, not committed.
58831
58832 2007-02-23  Eric Blake  <ebb9@byu.net>
58833
58834         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58835         * lib/stat-time.h (includes): Likewise.
58836         * lib/utimecmp.c (includes): Likewise.
58837         * lib/utimens.h (includes): Likewise.
58838         * lib/getdate.y (includes): Also include "timespec.h" for use
58839         internal to the module.
58840         * modules/utimens (Depends-on): Revert yesterday's patch.
58841         * modules/nanosleep (Depends-on): Add missing dependency.
58842
58843 2007-02-22  Bruno Haible  <bruno@clisp.org>
58844
58845         * lib/glob.c: Don't include getlogin_r.h.
58846
58847 2007-02-22  Jim Meyering  <jim@meyering.net>
58848
58849         * modules/utimens (Depends-on): Add timespec, required for
58850         utimens.h's inclusion of timespec.h.
58851
58852 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58853
58854         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58855         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58856         Schwab in
58857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58858         I'll try to think of a better way to fix the Solaris problem.
58859
58860         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58861         like glibc; on Solaris 10, it fails with errno == EINVAL.
58862         POSIX says the behavior is unspecified if the first argument is NULL,
58863         so play it safe and never pass NULL to the system getcwd.
58864
58865 2007-02-21  Jim Meyering  <jim@meyering.net>
58866
58867         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58868         of gettimeofday.  It would conflict with the one now always
58869         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58870         an IRIX 6.5 build failure.
58871
58872 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58873
58874         Minor fixups to port to Solaris 10 with Sun C 5.8.
58875         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58876         * modules/getcwd (Depends-on): Add dirfd.
58877         * lib/putenv.c (putenv): #undef it.
58878         (rpl_putenv): New decl.
58879         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58880
58881 2007-02-20  Bruno Haible  <bruno@clisp.org>
58882
58883         * modules/stdio-tests: New file.
58884         * tests/test-stdio.c: New file.
58885
58886         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58887         (Depends-on): Add stdio.
58888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58889         (Include): Use <stdio.h> instead of vsnprintf.h.
58890         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58891         HAVE_DECL_VSNPRINTF.
58892         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58893
58894         * modules/snprintf (Files): Remove lib/snprintf.h.
58895         (Depends-on): Add stdio.
58896         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58897         (Include): Use <stdio.h> instead of snprintf.h.
58898         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58899         HAVE_DECL_SNPRINTF.
58900         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58901         * lib/getaddrinfo.c: Likewise.
58902
58903         * modules/stdio: New file.
58904         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58905         * lib/snprintf.h: Remove file.
58906         * lib/vsnprintf.h: Remove file.
58907         * lib/.cppi-disable: Remove snprintf.h.
58908         * m4/stdio_h.m4: New file.
58909         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58910
58911 2007-02-20  Jim Meyering  <jim@meyering.net>
58912
58913         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58914         used by e.g., mingw.  From Bruno Haible.
58915
58916 2007-02-19  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58919         warnings.
58920         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58921
58922 2007-02-19  Bruno Haible  <bruno@clisp.org>
58923
58924         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58925         from mingw users.
58926
58927 2007-02-19  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58930         warnings.
58931         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58932
58933 2007-02-19  Jim Meyering  <jim@meyering.net>
58934
58935         Don't use FD after a successful "fdopendir (fd)".
58936         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58937         Reset it by calling dirfd on the just-obtained DIR*.
58938
58939         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58940         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58941
58942 2007-02-18  Bruno Haible  <bruno@clisp.org>
58943
58944         * lib/readlink.c: Include <unistd.h>.
58945         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58946         HAVE_READLINK.
58947         * modules/readlink (Depends-on): Add unistd.
58948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58949         (Include): Add <unistd.h>.
58950
58951         * lib/getlogin_r.h: Remove file.
58952         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58953         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58954         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58955         HAVE_DECL_GETLOGIN_R.
58956         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58958         (Include): Use <unistd.h> instead of getlogin_r.h.
58959
58960         * lib/getcwd.h: Remove file.
58961         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58962         * lib/xgetcwd.c: Likewise.
58963         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58964         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58965         * modules/getcwd (Files): Remove lib/getcwd.h.
58966         (Depends-on): Add unistd.
58967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58968         (Include): Use <unistd.h> instad of getcwd.h.
58969
58970         * lib/ftruncate.c: Include <unistd.h> first.
58971         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58972         Set HAVE_FTRUNCATE.
58973         * modules/ftruncate (Depends-on): Add unistd.
58974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58975
58976         * lib/fchdir.c: Include <unistd.h> first.
58977         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58979         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58980         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58981         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58982
58983         * lib/dup2.c: Include <unistd.h> first.
58984         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58985         HAVE_DUP2.
58986         * modules/dup2 (Depends-on): Add unistd.
58987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58988
58989         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58990         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58991         REPLACE_CHOWN. Don't define chown as a macro here.
58992         * modules/chown (Depends-on): Add unistd.
58993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58994
58995         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58996         Add definition for GL_LINK_WARNING.
58997         (chown, dup2): New declarations.
58998         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58999         link warning.
59000         (ftruncate): New declaration.
59001         (getcwd): New declaration, taken from old getcwd.h.
59002         (getlogin_r): New declaration, taken from old getlogin_r.h.
59003         (readlink): New declaration.
59004         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59005         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59006         (gl_PREREQ_UNISTD): Remove macro.
59007         (gl_UNISTD_MODULE_INDICATOR): New macro.
59008         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59009         many new variables. Don't set UNISTD_H.
59010         * modules/unistd (Description): Change.
59011         (Depends-on): Add link-warning.
59012         (configure.ac): Update.
59013         (Makefile.am): Create unistd.h always. Substitute many new variables
59014         into it.
59015
59016 2007-02-18  Bruno Haible  <bruno@clisp.org>
59017
59018         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59019         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59020         HAVE_GETSUBOPT.
59021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59022         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59023         * lib/getsubopt.h: Remove file.
59024         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59025         (Depends-on): Add stdlib.
59026         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59027         (Includes): Use <stdlib.h> instead of getsubopt.h.
59028         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59029         Set HAVE_GETSUBOPT.
59030         * lib/getsubopt.c: Don't include getsubopt.h.
59031
59032 2007-02-18  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/fchdir (Depends-on): Add dup2.
59035
59036 2007-02-18  Bruno Haible  <bruno@clisp.org>
59037
59038         * lib/stdlib_.h: Handle glibc's special invocation convention
59039         specially.
59040
59041 2007-02-18  Bruno Haible  <bruno@clisp.org>
59042
59043         * modules/stdlib-tests: New file.
59044         * tests/test-stdlib.c: New file.
59045
59046         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59047         (Depends-on): Add stdlib.
59048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59049         (Includes): Use <stdlib.h> instead of mkstemp.h.
59050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59051         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59052         * lib/mkstemp.c: Don't include mkstemp.h.
59053         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59054         * lib/stdlib--.h: Don't include mkstemp.h.
59055
59056         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59057         (Depends-on): Add stdlib.
59058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59059         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59060         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59061         HAVE_MKDTEMP.
59062         * lib/mkdtemp.c: Don't include mkdtemp.h.
59063         * lib/clean-temp.c: Don't include mkdtemp.h.
59064
59065         * modules/exit (Files): Remove lib/exit.h.
59066         (Depends-on): Add stdlib.
59067         (Makefile.am): Remove lib_SOURCES.
59068         (Include): Use <stdlib.h> instead of exit.h.
59069         * lib/argmatch.c: Don't include exit.h.
59070         * lib/execute.c: Likewise.
59071         * lib/pagealign_alloc.c: Likewise.
59072         * lib/pipe.c: Likewise.
59073         * lib/wait-process.c: Likewise.
59074         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59075         * lib/exitfail.c: Likewise.
59076         * lib/savewd.c: Likewise.
59077         * lib/xsetenv.c: Likewise.
59078
59079         * modules/stdlib: New file.
59080         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59081         and extra comments about mkstemp().
59082         * lib/exit.h: Remove file.
59083         * lib/mkdtemp.h: Remove file.
59084         * lib/mkstemp.h: Remove file.
59085         * m4/stdlib_h.m4: New file.
59086         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59087
59088 2007-02-18  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/math-tests: New file.
59091         * tests/test-math.c: New file.
59092
59093         * modules/math: New file.
59094         * modules/mathl (Files): Remove lib/mathl.h.
59095         (Depends-on): Add math.
59096         (Makefile.am): Don't mention mathl.h.
59097         (Include): Use <math.h> instead of mathl.h.
59098         * lib/math_.h: New file.
59099         * lib/mathl.h: Remove file.
59100         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59101         mathl.h.
59102         * lib/asinl.c: Likewise.
59103         * lib/atanl.c: Likewise.
59104         * lib/ceill.c: Likewise.
59105         * lib/cosl.c: Likewise.
59106         * lib/expl.c: Likewise.
59107         * lib/floorl.c: Likewise.
59108         * lib/frexpl.c: Likewise.
59109         * lib/ldexpl.c: Likewise.
59110         * lib/logl.c: Likewise.
59111         * lib/sincosl.c: Likewise.
59112         * lib/sinl.c: Likewise.
59113         * lib/sqrtl.c: Likewise.
59114         * lib/tanl.c: Likewise.
59115         * lib/trigl.c: Likewise.
59116         * m4/math_h.m4: New file.
59117         * MODULES.html.sh (Mathematics): Add math.
59118
59119 2007-02-17  Bruno Haible  <bruno@clisp.org>
59120
59121         * modules/wctype-tests: New file.
59122         * tests/test-wctype.c: New file.
59123
59124         * modules/wchar-tests: New file.
59125         * tests/test-wchar.c: New file.
59126
59127         * modules/unistd-tests: New file.
59128         * tests/test-unistd.c: New file.
59129
59130         * modules/time-tests: New file.
59131         * tests/test-time.c: New file.
59132
59133         * modules/sysexits-tests: New file.
59134         * tests/test-sysexits.c: New file.
59135
59136         * modules/sys_time-tests: New file.
59137         * tests/test-sys_time.c: New file.
59138
59139         * modules/sys_stat-tests: New file.
59140         * tests/test-sys_stat.c: New file.
59141
59142         * modules/sys_socket-tests: New file.
59143         * tests/test-sys_socket.c: New file.
59144
59145         * modules/sys_select-tests: New file.
59146         * tests/test-sys_select.c: New file.
59147
59148         * modules/string-tests: New file.
59149         * tests/test-string.c: New file.
59150
59151         * modules/stdbool-tests: New file.
59152         * tests/test-stdbool.c: New file.
59153
59154         * modules/netinet_in-tests: New file.
59155         * tests/test-netinet_in.c: New file.
59156
59157         * modules/inttypes-tests: New file.
59158         * tests/test-inttypes.c: New file.
59159
59160         * modules/fcntl-tests: New file.
59161         * tests/test-fcntl.c: New file.
59162
59163         * modules/byteswap-tests: New file.
59164         * tests/test-byteswap.c: New file.
59165
59166         * modules/arpa_inet-tests: New file.
59167         * tests/test-arpa_inet.c: New file.
59168
59169 2007-02-17  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59172         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59173         if the corresponding module is not enabled. Emit link warnings if
59174         the function is used nevertheless.
59175         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59176         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59177         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59178         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59179         * modules/inttypes (Depends-on): Add link-warning.
59180         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59181         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59182         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59183         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59184         * modules/imaxdiv (configure.ac): Likewise.
59185         * modules/strtoimax (configure.ac): Likewise.
59186         * modules/strtoumax (configure.ac): Likewise.
59187
59188 2007-02-17  Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59191         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59192         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59193         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59194
59195 2007-02-17  Bruno Haible  <bruno@clisp.org>
59196
59197         * modules/link-warning: New file.
59198         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59199         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59200         * modules/string (Depends-on): Add link-warning.
59201         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59202         string.h.
59203         * MODULES.html.sh (Support for building libraries and executables): Add
59204         link-warning.
59205
59206 2007-02-17  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59209         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59210         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59211         long lines.
59212
59213 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59214             Bruno Haible  <bruno@clisp.org>
59215
59216         * modules/tmpfile: New file.
59217         * lib/tmpfile.c: New file.
59218         * m4/tmpfile.m4: New file.
59219         * MODULES.html.sh (func_all_modules): New section "Input/output".
59220
59221 2007-02-15  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59224         (supports_delete_on_close): New function.
59225         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59226
59227 2007-02-14  Bruno Haible  <bruno@clisp.org>
59228
59229         * modules/mbspcasecmp-tests: New file.
59230         * tests/test-mbspcasecmp.sh: New file.
59231         * tests/test-mbspcasecmp.c: New file.
59232
59233         New module mbspcasecmp.
59234         * modules/mbspcasecmp: New file.
59235         * lib/mbspcasecmp.c: New file.
59236         * lib/string_.h (strncasecmp): Change warning message.
59237         (mbspcasecmp): New declaration.
59238         * m4/mbspcasecmp.m4: New file.
59239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59240         GNULIB_MBSPCASECMP.
59241         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59242         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59243
59244 2007-02-14  Bruno Haible  <bruno@clisp.org>
59245
59246         * modules/mbsncasecmp-tests: New file.
59247         * tests/test-mbsncasecmp.sh: New file.
59248         * tests/test-mbsncasecmp.c: New file.
59249
59250         New module mbsncasecmp.
59251         * modules/mbsncasecmp: New file.
59252         * lib/mbsncasecmp.c: New file.
59253         * lib/string_.h (mbsncasecmp): New declaration.
59254         * m4/mbsncasecmp.m4: New file.
59255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59256         GNULIB_MBSNCASECMP.
59257         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59258         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59259
59260 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59261
59262         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59263         Verify that it doesn't overlap with our flags.
59264         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59265         do not have the desired effect in multibyte locales; instead, use
59266         mbscasecmp.
59267         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59268         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59269         we don't require GNU fnmatch ourselves (if our users require it, they
59270         should do so explicitly).
59271
59272         Fix regex code so it doesn't rely on strcasecmp.
59273         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59274         Otherwise, include gnulib's langinfo.h.
59275         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59276         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59277         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59278         * modules/regex (FILES): Remove m4/codeset.m4.
59279         (Depends-on): Add localcharset.  Remove strcase.
59280
59281 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59282
59283         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59284         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59285
59286 2007-02-13  Bruno Haible  <bruno@clisp.org>
59287
59288         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59290
59291 2007-02-12  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59294         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59295         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59296         time warning rather than a link error.
59297
59298 2007-02-12  Bruno Haible  <bruno@clisp.org>
59299
59300         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59303
59304 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59305
59306         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59307         args, not 2.
59308
59309 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         New module 'time', so that apps can include <time.h> as per
59312         POSIX and GNU instead of separate include files like time_r.h
59313         and timegm.h.  This implementation tries out a simpler approach
59314         for replacing decls in standard include files (as compared to
59315         the string module), somewhat as an experiment.
59316
59317         * config/srclist.txt: Comment out mktime.c for now.
59318         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59319         since it doesn't apply any more.  Use generic wording instead.
59320         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59321         'time'.
59322         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59323         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59324         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59325         Don't include <sys/types.h>; no longer needed since we assume C89.
59326         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59327         * lib/strftime.c: Likewise.
59328         * lib/time_r.c: Likewise.
59329         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59330         * lib/nanosleep.c: Include <time.h> first, to check interface.
59331         * lib/strptime.c: Likewise.
59332         * lib/time_r.c: Likewise.
59333         * lib/timegm.c: Likewise.
59334         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59335         needed.
59336         * lib/timegm.c: Don't include timegm.h; no longer needed.
59337         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59338         time.h now handles any problems in that area.
59339         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59340         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59341         that time.h defines struct timespec.
59342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59343         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59344         handles that.
59345         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59346         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59347         needed.  Set REPLACE_LOCALTIME.
59348         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59349         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59350         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59351         nanosleep; time_h.m4 now does that.  Don't require
59352         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59353         module handles this now.
59354         * modules/getdate (Depends-on): Remove timespec.  Add time.
59355         * modules/nanosleep (Depends-on): Likewise.
59356         * modules/stat-time (Depends-on): Likewise.
59357         * modules/nanosleep (Include): Include time.h, not timespec.h.
59358         * modules/strptime (Files): Remove lib/strptime.h.
59359         (Depends-on): Add extensions, time.
59360         (Include): Include time.h, not strptime.h.
59361         * modules/time_r (Files): Remove lib/time_r.h.
59362         (Depends-on): Add time.
59363         (Include): Include time.h, not time_r.h.
59364         * modules/timegm: Likewise.
59365         * modules/timespec (Description): Now does timespec-related decls
59366         of our own, instead of struct timespec itself.
59367         (Depends-on): Add time; remove extensions.
59368         (Maintainer): Add self.
59369         * modules/utimecmp (Depends-on): Add time; remove timespec.
59370         * modules/utimens (Depends-on): Likewise.
59371         * modules/xnanosleep (Depends-on): Likewise.
59372
59373 2007-02-11  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/c-strstr.c: Include allocsa.h.
59376         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59377         * lib/c-strcasestr.c: Include allocsa.h.
59378         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59379         * lib/strcasestr.c: Include allocsa.h.
59380         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59381         * lib/mbsstr.c: Include allocsa.h.
59382         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59383         allocsa/freesa instead of malloc/free.
59384         * lib/mbscasestr.c: Include allocsa.h.
59385         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59386         allocsa/freesa instead of malloc/free.
59387         * modules/c-strstr (Depends-on): Add allocsa.
59388         * modules/c-strcasestr (Depends-on): Likewise.
59389         * modules/strcasestr (Depends-on): Likewise.
59390         * modules/mbsstr (Depends-on): Likewise.
59391         * modules/mbscasestr (Depends-on): Likewise.
59392
59393 2007-02-11  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59396
59397         * modules/mbsspn-tests: New file.
59398         * tests/test-mbsspn.sh: New file.
59399         * tests/test-mbsspn.c: New file.
59400
59401 2007-02-11  Bruno Haible  <bruno@clisp.org>
59402
59403         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59404
59405         * modules/mbspbrk-tests: New file.
59406         * tests/test-mbspbrk.sh: New file.
59407         * tests/test-mbspbrk.c: New file.
59408
59409 2007-02-11  Bruno Haible  <bruno@clisp.org>
59410
59411         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59412         unneeded cast.
59413
59414         * modules/mbscspn-tests: New file.
59415         * tests/test-mbscspn.sh: New file.
59416         * tests/test-mbscspn.c: New file.
59417
59418 2007-02-11  Bruno Haible  <bruno@clisp.org>
59419
59420         * modules/mbscasecmp-tests: New file.
59421         * tests/test-mbscasecmp.sh: New file.
59422         * tests/test-mbscasecmp.c: New file.
59423
59424 2007-02-11  Bruno Haible  <bruno@clisp.org>
59425
59426         Ensure O(n) worst-case complexity of mbscasestr.
59427         * lib/mbscasestr.c: Include stdbool.h.
59428         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59429         functions.
59430         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59431         the bookkeeping indicates that it's worth it.
59432         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59433
59434         * modules/mbscasestr-tests: New file.
59435         * tests/test-mbscasestr1.c: New file.
59436         * tests/test-mbscasestr2.sh: New file.
59437         * tests/test-mbscasestr2.c: New file.
59438         * tests/test-mbscasestr3.sh: New file.
59439         * tests/test-mbscasestr3.c: New file.
59440         * tests/test-mbscasestr4.sh: New file.
59441         * tests/test-mbscasestr4.c: New file.
59442         * m4/locale-tr.m4: New file.
59443
59444 2007-02-11  Bruno Haible  <bruno@clisp.org>
59445
59446         Ensure O(n) worst-case complexity of mbsstr.
59447         * lib/mbsstr.c: Include stdbool.h.
59448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59449         functions.
59450         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59451         bookkeeping indicates that it's worth it.
59452         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59453
59454         * modules/mbsstr-tests: New file.
59455         * tests/test-mbsstr1.c: New file.
59456         * tests/test-mbsstr2.sh: New file.
59457         * tests/test-mbsstr2.c: New file.
59458         * tests/test-mbsstr3.sh: New file.
59459         * tests/test-mbsstr3.c: New file.
59460         * m4/locale-fr.m4: New file.
59461
59462 2007-02-11  Bruno Haible  <bruno@clisp.org>
59463
59464         * lib/mbsrchr.c (mbsrchr): Fix bug.
59465
59466         * modules/mbsrchr-tests: New file.
59467         * tests/test-mbsrchr.sh: New file.
59468         * tests/test-mbsrchr.c: New file.
59469
59470 2007-02-11  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/mbschr.c (mbschr): Fix bug.
59473
59474         * modules/mbschr-tests: New file.
59475         * tests/test-mbschr.sh: New file.
59476         * tests/test-mbschr.c: New file.
59477         * m4/locale-zh.m4: New file.
59478
59479 2007-02-11  Bruno Haible  <bruno@clisp.org>
59480
59481         Support for copying multibyte string iterators.
59482         * lib/mbiter.h: Include <string.h>.
59483         (mbiter_multi_copy): New function.
59484         (mbi_copy): New macro.
59485         * lib/mbuiter.h: Include <string.h>.
59486         (mbuiter_multi_copy): New function.
59487         (mbui_copy): New macro.
59488
59489 2007-02-11  Bruno Haible  <bruno@clisp.org>
59490
59491         New module mbslen.
59492         * modules/mbslen: New file.
59493         * lib/mbslen.c: New file.
59494         * lib/string_.h (mbslen): New declaration.
59495         * m4/mbslen.m4: New file.
59496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59497         GNULIB_MBSLEN.
59498         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59499         * MODULES.html.sh (Internationalization functions): Add mbslen.
59500
59501 2007-02-11  Bruno Haible  <bruno@clisp.org>
59502
59503         Ensure O(n) worst-case complexity of strcasestr substitute.
59504         * lib/strcasestr.c: Include stdbool.h.
59505         (knuth_morris_pratt): New function.
59506         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59507         bookkeeping indicates that it's worth it.
59508         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59509
59510         * modules/strcasestr-tests: New file.
59511         * tests/test-strcasestr.c: New file.
59512
59513 2007-02-11  Bruno Haible  <bruno@clisp.org>
59514
59515         Ensure O(n) worst-case complexity of c_strcasestr.
59516         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59517         (knuth_morris_pratt): New function.
59518         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59519         the bookkeeping indicates that it's worth it.
59520         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59521
59522         * modules/c-strcasestr-tests: New file.
59523         * tests/test-c-strcasestr.c: New file.
59524
59525 2007-02-11  Bruno Haible  <bruno@clisp.org>
59526
59527         Ensure O(n) worst-case complexity of c_strstr.
59528         * lib/c-strstr.c: Include stdbool.h, string.h.
59529         (knuth_morris_pratt): New function.
59530         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59531         bookkeeping indicates that it's worth it.
59532         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59533
59534         * lib/c-strstr.c: Complete rewrite for maintainability.
59535
59536         * modules/c-strstr-tests: New file.
59537         * tests/test-c-strstr.c: New file.
59538
59539 2007-02-11  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59542         5.2.1 and earlier, whereby \055 was treated just like the range
59543         delimiter '-'.
59544         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59545
59546 2007-02-08  Bruno Haible  <bruno@clisp.org>
59547
59548         * modules/regex (Depends-on): Add stdbool.
59549         Reported by Dalibor Topic <robilad@kaffe.org>.
59550
59551 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59554         Prefer returning from main to exiting from it.
59555         Remove unnecessary parens after sizeof.
59556
59557 2007-02-05  Bruno Haible  <bruno@clisp.org>
59558
59559         New module mbssep.
59560         * modules/mbssep: New file.
59561         * lib/mbssep.c: New file.
59562         * lib/string_.h (strsep): Add a conditional link warning.
59563         (mbssep): New declaration.
59564         * m4/mbssep.m4: New file.
59565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59566         GNULIB_MBSSEP.
59567         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59568         * MODULES.html.sh (Internationalization functions): Add mbssep.
59569
59570 2007-02-05  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59573         Optimize search in case of 1 delimiter.
59574
59575 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59576
59577         * lib/acl.h: Include sys/types.h before sys/acl.h.
59578
59579 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59580
59581         Merge upstream fix for glibc bugzilla #3957:
59582
59583         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59584
59585         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59586         bit for RE_HAT_LISTS_NOT_NEWLINE.
59587         (build_charclass_op): Remove bogus comment.
59588
59589 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59590
59591         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59592
59593 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59594
59595         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59596         * lib/memmem.c [!defined _LIBC]: Include config.h.
59597
59598 2007-02-04  Bruno Haible  <bruno@clisp.org>
59599
59600         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59601         warning message.
59602
59603 2007-02-04  Bruno Haible  <bruno@clisp.org>
59604
59605         New module mbstok_r.
59606         * modules/mbstok_r: New file.
59607         * lib/mbstok_r.c: New file.
59608         * lib/string_.h (strtok_r): Change argument names to match the
59609         comments. Add a conditional link warning.
59610         (mbstok_r): New declaration.
59611         * m4/mbstok_r.m4: New file.
59612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59613         GNULIB_MBSTOK_R.
59614         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59615         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59616
59617 2007-02-04  Bruno Haible  <bruno@clisp.org>
59618
59619         New module mbsspn.
59620         * modules/mbsspn: New file.
59621         * lib/mbsspn.c: New file.
59622         * lib/string_.h (strspn): Add a conditional link warning.
59623         (mbsspn): New declaration.
59624         * m4/mbsspn.m4: New file.
59625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59626         GNULIB_MBSSPN.
59627         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59628         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59629
59630 2007-02-04  Bruno Haible  <bruno@clisp.org>
59631
59632         New module mbspbrk.
59633         * modules/mbspbrk: New file.
59634         * lib/mbspbrk.c: New file.
59635         * lib/string_.h (strpbrk): Add a conditional link warning.
59636         (mbspbrk): New declaration.
59637         * m4/mbspbrk.m4: New file.
59638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59639         GNULIB_MBSPBRK.
59640         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59641         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59642
59643 2007-02-04  Bruno Haible  <bruno@clisp.org>
59644
59645         New module mbscspn.
59646         * modules/mbscspn: New file.
59647         * lib/mbscspn.c: New file.
59648         * lib/string_.h (strcspn): Add a conditional link warning.
59649         (mbscspn): New declaration.
59650         * m4/mbscspn.m4: New file.
59651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59652         GNULIB_MBSCSPN.
59653         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59654         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59655
59656 2007-02-04  Bruno Haible  <bruno@clisp.org>
59657
59658         New module mbscasestr, reduced goal of strcasestr.
59659         * modules/mbscasestr: New file.
59660         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59661         (mbscasestr): Renamed from strcasestr.
59662         * lib/strcasestr.c: Don't include mbuiter.h.
59663         (strcasestr): Remove support for multibyte locales.
59664         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59665         Change the conditional link warning.
59666         (mbscasestr): New declaration.
59667         * m4/mbscasestr.m4: New file.
59668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59669         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59670         REPLACE_STRCASESTR.
59671         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59673         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59674         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59675         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59676         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59677         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59678         (Depends-on): Remove mbuiter.
59679         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59680
59681 2007-02-04  Bruno Haible  <bruno@clisp.org>
59682
59683         Simplify handling of strncasecmp.
59684         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59685         the conditional link warning.
59686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59687         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59689         * modules/strcase (configure.ac): Don't invoke
59690         gl_STRING_MODULE_INDICATOR.
59691         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59692
59693 2007-02-04  Bruno Haible  <bruno@clisp.org>
59694
59695         New module mbscasecmp, reduced goal of strcasecmp.
59696         * modules/mbscasecmp: New file.
59697         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59698         (mbscasecmp): Renamed from strcasecmp.
59699         * lib/strcasecmp.c: Don't include mbuiter.h.
59700         (strcasecmp): Remove support for multibyte locales.
59701         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59702         Change the conditional link warning.
59703         (mbscasecmp): New declaration.
59704         * m4/mbscasecmp.m4: New file.
59705         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59706         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59707         REPLACE_STRCASECMP.
59708         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59710         GNULIB_MBSCASECMP.
59711         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59712         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59713         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59714         (Depends-on): Remove mbuiter.
59715         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59716
59717 2007-02-04  Bruno Haible  <bruno@clisp.org>
59718
59719         New module mbsstr. Remove module strstr.
59720         * modules/mbsstr: New file.
59721         * modules/strstr: Remove file.
59722         * lib/mbsstr.c: Renamed from lib/strstr.c.
59723         (mbsstr): Renamed from strstr.
59724         * lib/string_.h (strstr): Remove declaration. Change the conditional
59725         link warning.
59726         (mbsstr): New declaration.
59727         * m4/mbsstr.m4: New file.
59728         * m4/strstr.m4: Remove file.
59729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59730         REPLACE_STRSTR.
59731         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59732         Don't initialize GNULIB_STRSTR.
59733         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59734         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59735         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59736         (Support for systems lacking ANSI C 89): Remove strstr.
59737
59738 2007-02-04  Bruno Haible  <bruno@clisp.org>
59739
59740         New module mbsrchr.
59741         * modules/mbsrchr: New file.
59742         * lib/mbsrchr.c: New file.
59743         * lib/string_.h (strrchr): Add a conditional link warning.
59744         (mbsrchr): New declaration.
59745         * m4/mbsrchr.m4: New file.
59746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59747         GNULIB_MBSRCHR.
59748         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59749         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59750
59751 2007-02-04  Bruno Haible  <bruno@clisp.org>
59752
59753         New module mbschr.
59754         * modules/mbschr: New file.
59755         * lib/mbschr.c: New file.
59756         * lib/string_.h (strchr): Add a conditional link warning.
59757         (mbschr): New declaration.
59758         * m4/mbschr.m4: New file.
59759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59760         GNULIB_MBSCHR.
59761         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59762         * MODULES.html.sh (Internationalization functions): Add mbschr.
59763
59764 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59765
59766         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59767
59768         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59769
59770 2007-02-04  Bruno Haible  <bruno@clisp.org>
59771
59772         New module description section 'configure.ac-early'.
59773         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59774         (func_get_autoconf_early_snippet): New function.
59775         (func_import, func_create_testdir): Use it. Remove special cases for
59776         modules 'extensions' and 'lock'.
59777         * modules/extensions (configure.ac-early): Require
59778         gl_USE_SYSTEM_EXTENSIONS.
59779         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59780
59781 2007-02-04  Bruno Haible  <bruno@clisp.org>
59782
59783         Make use of gcj-4.3's -fsource and -ftarget option.
59784         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59785         and if so try the options -fsource and -ftarget.
59786         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59787         source_version, ftarget_option, target_version arguments.
59788         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59789         (is_envjavac_oldgcj_14_14_usable): Renamed from
59790         is_envjavac_gcj_14_14_usable.
59791         (is_envjavac_oldgcj_14_13_usable): Renamed from
59792         is_envjavac_gcj_14_13_usable.
59793         (is_gcj_present): Update.
59794         (is_gcj_43, is_gcj43_usable): New functions.
59795         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59796         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59797         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59798         try the options -fsource and -ftarget.
59799
59800 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59801
59802         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59803         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59804         larger value.
59805
59806 2007-02-03  Jim Meyering  <jim@meyering.net>
59807
59808         Give tools a better chance to allocate space for very large buffers.
59809         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59810
59811         Make pwd and readlink work also when run with an unreadable parent dir
59812         on systems with openat support.
59813         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59814         provided getcwd function, even when we have openat support.
59815         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59816
59817 2007-02-02  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59820         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59821         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59822         portability problems if one of these functions is only used on specific
59823         platforms.
59824         Reported by Paul Eggert.
59825
59826 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59827
59828         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59829         is causing more trouble than it's curing.
59830         * lib/regex_internal.h (__mempcpy): Remove.
59831         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59832         (and make the code a tad smaller to boot).
59833         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59834
59835 2007-02-02  Jim Meyering  <jim@meyering.net>
59836
59837         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59838         section, not in the Makefile.am: one.
59839
59840 2007-02-02  Eric Blake  <ebb9@byu.net>
59841
59842         * lib/strchrnul.c: Always include config.h first.
59843
59844         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59845         gnulib strstr is not necessary here.
59846
59847 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59848
59849         * m4/socklen.m4: Fix typo.
59850
59851 2007-02-02  Eric Blake  <ebb9@byu.net>
59852
59853         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59854         * modules/netinet_in (Makefile.am): Likewise.
59855
59856 2007-02-01  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/string_.h (GL_LINK_WARNING): New macro.
59859         (strcasecmp, strstr, strcasestr): If provided by the system,
59860         conditionally define as a macro that leads to a warning instead of to
59861         an error.
59862         (strncasecmp): Conditionally define as a macro that leads to a warning.
59863
59864 2007-02-01  Karl Berry  <karl@gnu.org>
59865
59866         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59867
59868 2007-02-01  Bruno Haible  <bruno@clisp.org>
59869
59870         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59871         renamings.
59872
59873 2007-02-01  Eric Blake  <ebb9@byu.net>
59874
59875         * modules/regex (Depends-on): Revert dependence on mempcpy.
59876         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59877         module's definition of mempcpy.
59878         Reported by Paul Eggert.
59879
59880 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59883         the symbol XYZ before redefining it.  This fixes a problem with
59884         programs that don't use XYZ, when compiled on systems that define
59885         XYZ to something else.
59886
59887 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59890         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59891         writeable to group or other and (2) is intended to have a special
59892         mode bit that is set or cleared.  In such a case, the directory
59893         should be neither group- nor other-writeable until the special
59894         mode bits are right.
59895
59896 2007-01-31  Eric Blake  <ebb9@byu.net>
59897
59898         * modules/mountlist (Depends-on): Add strstr.
59899
59900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59901         bug.
59902         * modules/string (Makefile.am): Remove redundant replacement.
59903         * modules/regex (Depends-on): Add mempcpy.
59904
59905 2007-01-31  Bruno Haible  <bruno@clisp.org>
59906
59907         New module description field 'Link'.
59908         * gnulib-tool (func_usage): Document --extract-link-directive.
59909         (sed_extract_prog): Recognize 'Link' directive.
59910         (func_get_link_directive): New function.
59911         (func_import): Show summary of link directives.
59912         Handle --extract-link-directive option.
59913         * modules/acl (Link): New section.
59914         * modules/clock-time (Link): New section.
59915         * modules/euidaccess (Link): New section.
59916         * modules/gettext (Link): New section.
59917         * modules/iconv (Link): New section.
59918         * modules/lock (Link): New section.
59919         * modules/nanosleep (Link): New section.
59920         * modules/readline (Link): New section.
59921
59922 2007-01-27  Bruno Haible  <bruno@clisp.org>
59923
59924         Enforce the use of gnulib modules for unportable <string.h> functions.
59925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59926         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59927         (gl_HEADER_STRING_H_BODY): Require it.
59928         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59929         the symbol XYZ to one that gives a link error.
59930         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59931         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59932         * modules/mempcpy (configure.ac): Likewise.
59933         * modules/memrchr (configure.ac): Likewise.
59934         * modules/stpcpy (configure.ac): Likewise.
59935         * modules/stpncpy (configure.ac): Likewise.
59936         * modules/strcase (configure.ac): Likewise.
59937         * modules/strcasestr (configure.ac): Likewise.
59938         * modules/strchrnul (configure.ac): Likewise.
59939         * modules/strdup (configure.ac): Likewise.
59940         * modules/strndup (configure.ac): Likewise.
59941         * modules/strnlen (configure.ac): Likewise.
59942         * modules/strpbrk (configure.ac): Likewise.
59943         * modules/strsep (configure.ac): Likewise.
59944         * modules/strstr (configure.ac): Likewise.
59945         * modules/strtok_r (configure.ac): Likewise.
59946
59947 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59948
59949         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59950
59951 2007-01-30  Jim Meyering  <jim@meyering.net>
59952
59953         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59954
59955 2007-01-29  Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59958         * lib/execute.c: Likewise.
59959         * lib/pipe.c: Likewise.
59960         * lib/printf-args.h: Likewise.
59961         * lib/printf-args.c: Likewise.
59962         * lib/printf-parse.c: Likewise.
59963         * lib/vasnprintf.c: Likewise.
59964
59965 2007-01-29  Eric Blake  <ebb9@byu.net>
59966
59967         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59968         declaration.
59969
59970 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         * lib/strptime.h (strptime): Use 'restrict' for args where
59973         POSIX requires this.
59974         * lib/strptime.c (strptime): Likewise.
59975         Change license notice from LGPL to GPL, since gnulib-tool will
59976         change this as needed.
59977         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59978         defined.
59979         Include "strptime.h" first, to check interface.
59980         Do not #undef _LIBC and _NL_CURRENT.
59981         Do not include <stdlib.h>; no longer needed.
59982         Include "time_r.h" and declare ptime_locale_status
59983         only if _LIBC is not defined.
59984         (__P): Remove unused macro.
59985         (match_string): Bring back glibc version, but use it only if _LIBC
59986         is defined.
59987         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59988         Remove unnecessary assertion and abort() call.
59989         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59990         * m4/strptime.m4: Fix serial number comment.
59991         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59992         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59993         (Depends-on): Add time_r.
59994
59995 2007-01-29  Bruno Haible  <bruno@clisp.org>
59996
59997         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59998         strptime.
59999         * modules/strptime (Depends-on): Add stdbool.
60000         * lib/strptime.h: Include <time.h> always. Add comments.
60001
60002 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60003
60004         * modules/strptime: New file.
60005         * lib/strptime.h: New file.
60006         * lib/strptime.c: New file.
60007         * m4/strptime.m4: New file.
60008
60009 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60010
60011         * MODULES.html.sh: New module mpsort.
60012         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60013
60014         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60015         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60017         All uses changed.
60018         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60019         All uses changed.
60020         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60021         to _Restrict_.
60022         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60023         the parameter matches the prototype.
60024
60025 2007-01-28  Jim Meyering  <jim@meyering.net>
60026
60027         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60028         sys/time.h here, reverting that part of the previous patch:
60029         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60030
60031 2007-01-28  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60034         value of $(SYS_TIME_H).
60035         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60036         remove it conditionally, too. [added by Jim Meyering]
60037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60039         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60040         GETTIMEOFDAY_REPLACEMENT to 1.
60041
60042 2007-01-28  Bruno Haible  <bruno@clisp.org>
60043
60044         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60045         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60047         Set UNISTD_H instead of UNISTD_H2.
60048         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60049
60050 2007-01-28  Bruno Haible  <bruno@clisp.org>
60051
60052         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60053         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60054
60055 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60056
60057         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60058         (func_create_testdir): Ensure C locale for `grep' and `tr'
60059         character ranges.
60060         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60061         ACLOCAL_AMFLAGS parsing state machine.
60062
60063 2007-01-27  Bruno Haible  <bruno@clisp.org>
60064
60065         * modules/unistr/base: Update.
60066
60067 2007-01-27  Bruno Haible  <bruno@clisp.org>
60068
60069         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60070         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60071         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60072         modules/unistr/u32-mbtouc.
60073         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60074         * lib/unistr.h: Update.
60075         * lib/linebreak.c: Update.
60076         * modules/unistr/u32-mbtouc: Renamed from
60077         modules/unistr/u32-mbtouc-safe.
60078         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60079         * lib/unistr.h: Update.
60080         * lib/unistr/u32-to-u8.c: Update.
60081         * lib/unistr/u32-to-u16.c: Update.
60082
60083 2007-01-27  Bruno Haible  <bruno@clisp.org>
60084
60085         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60086         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60087         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60088         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60089         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60090         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60091         modules/unistr/u16-mbtouc.
60092         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60093         * lib/unistr.h: Update.
60094         * lib/linebreak.c: Update.
60095         * modules/linebreak: Update.
60096         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60097         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60098         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60099         * modules/unistr/u16-mbtouc: Renamed from
60100         modules/unistr/u16-mbtouc-safe.
60101         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60102         * lib/unistr.h: Update.
60103         * lib/unistr/u16-to-u8.c: Update.
60104         * modules/unistr/u16-to-u8: Update.
60105         * lib/unistr/u16-to-u32.c: Update.
60106         * modules/unistr/u16-to-u32: Update.
60107
60108 2007-01-27  Bruno Haible  <bruno@clisp.org>
60109
60110         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60111         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60112         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60113         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60114         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60115         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60116         modules/unistr/u8-mbtouc.
60117         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60118         * lib/unistr.h: Update.
60119         * lib/striconveh.c: Update.
60120         * modules/striconveh: Update.
60121         * lib/linebreak.c: Update.
60122         * modules/linebreak: Update.
60123         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60124         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60125         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60126         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60127         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60128         * lib/unistr.h: Update.
60129         * lib/striconveh.c: Update.
60130         * modules/striconveh: Update.
60131         * lib/unistr/u8-to-u16.c: Update.
60132         * modules/unistr/u8-to-u16: Update.
60133         * lib/unistr/u8-to-u32.c: Update.
60134         * modules/unistr/u8-to-u32: Update.
60135
60136 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60137
60138         Sync from Libtool.
60139         * lib/argz.c: Do not include strings.h nor memory.h, include
60140         string.h unconditionally.  Patch by Simon Josefsson.
60141
60142 2007-01-27  Bruno Haible  <bruno@clisp.org>
60143
60144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60145         from gl_HEADER_STRING_H_BODY.
60146         (gl_HEADER_STRING_H_BODY): Require it.
60147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60149         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60150         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60152         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60155         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60156         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60158         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60159         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60160         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60162
60163 2007-01-27  Bruno Haible  <bruno@clisp.org>
60164
60165         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60166         check_PROGRAMS into noinst_PROGRAMS.
60167         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60168         check_PROGRAMS in this case.
60169         (func_import): Set for_test to false.
60170         (func_create_testdir): Set for_test to true.
60171
60172 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60173             Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60176         (Depends-on): Add string.
60177         (Includes): Use <string.h> instead of strcasestr.h.
60178         * modules/string (Makefile.am): Also substitute the value of
60179         REPLACE_STRCASESTR.
60180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60181         assume strcasestr is declared in <string.h> not <strings.h>. Also
60182         set REPLACE_STRCASESTR.
60183         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60184         REPLACE_STRCASESTR.
60185         * lib/strcasestr.h: Remove file.
60186         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60187         * lib/string_.h (strcasestr): New declaration.
60188
60189 2007-01-27  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/string_.h: Use 'extern'.
60192
60193 2007-01-27  Jim Meyering  <jim@meyering.net>
60194
60195         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60196         of set-but-not-used local, "q".
60197
60198         * lib/mempcpy.c: Include <config.h> before <string.h>.
60199         This fixes a compilation error on HP-UX, due to the system's
60200         "restrict"-using mempcpy prototype.
60201
60202 2007-01-26  Bruno Haible  <bruno@clisp.org>
60203
60204         Small optimization.
60205         * lib/javacomp.c: Include c-strstr.h.
60206          (is_envjavac_gcj): Use c_strstr instead of strstr.
60207         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60208
60209 2007-01-26  Bruno Haible  <bruno@clisp.org>
60210
60211         * MODULES.html.sh (Unicode string functions): Add the new modules.
60212
60213         * modules/uniconv/u32-strconv-to-locale: New file.
60214         * lib/uniconv/u32-strconv-to-locale.c: New file.
60215
60216         * modules/uniconv/u16-strconv-to-locale: New file.
60217         * lib/uniconv/u16-strconv-to-locale.c: New file.
60218
60219         * modules/uniconv/u8-strconv-to-locale: New file.
60220         * lib/uniconv/u8-strconv-to-locale.c: New file.
60221
60222         * modules/uniconv/u32-strconv-from-locale: New file.
60223         * lib/uniconv/u32-strconv-from-locale.c: New file.
60224
60225         * modules/uniconv/u16-strconv-from-locale: New file.
60226         * lib/uniconv/u16-strconv-from-locale.c: New file.
60227
60228         * modules/uniconv/u8-strconv-from-locale: New file.
60229         * lib/uniconv/u8-strconv-from-locale.c: New file.
60230
60231         * modules/uniconv/u32-strconv-to-enc: New file.
60232         * lib/uniconv/u32-strconv-to-enc.c: New file.
60233         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60234         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60235
60236         * modules/uniconv/u16-strconv-to-enc: New file.
60237         * lib/uniconv/u16-strconv-to-enc.c: New file.
60238         * lib/uniconv/u-strconv-to-enc.h: New file.
60239         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60240         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60241
60242         * modules/uniconv/u8-strconv-to-enc: New file.
60243         * lib/uniconv/u8-strconv-to-enc.c: New file.
60244         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60245         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60246
60247         * modules/uniconv/u32-strconv-from-enc: New file.
60248         * lib/uniconv/u32-strconv-from-enc.c: New file.
60249         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60250         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60251
60252         * modules/uniconv/u16-strconv-from-enc: New file.
60253         * lib/uniconv/u16-strconv-from-enc.c: New file.
60254         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60255         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60256
60257         * modules/uniconv/u8-strconv-from-enc: New file.
60258         * lib/uniconv/u8-strconv-from-enc.c: New file.
60259         * lib/uniconv/u-strconv-from-enc.h: New file.
60260         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60261         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60262
60263         * modules/uniconv/u32-conv-from-enc: New file.
60264         * lib/uniconv/u32-conv-from-enc.c: New file.
60265         * modules/uniconv/u32-conv-from-enc-tests: New file.
60266         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60267
60268         * modules/uniconv/u16-conv-from-enc: New file.
60269         * lib/uniconv/u16-conv-from-enc.c: New file.
60270         * lib/uniconv/u-conv-from-enc.h: New file.
60271         * modules/uniconv/u16-conv-from-enc-tests: New file.
60272         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60273
60274         * modules/uniconv/u8-conv-from-enc: New file.
60275         * lib/uniconv/u8-conv-from-enc.c: New file.
60276         * modules/uniconv/u8-conv-from-enc-tests: New file.
60277         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60278
60279         * modules/uniconv/base: New file.
60280         * lib/uniconv.h: New file.
60281
60282 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         * doc/gnulib-tool.texi (Initial import): Update to match current
60285         behavior with strdup module.
60286         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60287         * lib/memmem.h: Remove; all uses removed.  This is now done
60288         by <string.h>.
60289         * lib/mempcpy.h: Likewise.
60290         * lib/memrchr.h: Likewise.
60291         * lib/stpcpy.h: Likewise.
60292         * lib/stpncpy.h: Likewise.
60293         * lib/strcase.h: Likewise.
60294         * lib/strchrnul.h: Likewise.
60295         * lib/strdup.h: Likewise.
60296         * lib/strndup.h: Likewise.
60297         * lib/strnlen.h: Likewise.
60298         * lib/strpbrk.h: Likewise.
60299         * lib/strsep.h: Likewise.
60300         * lib/strstr.h: Likewise.
60301         * lib/strtok_r.h: Likewise.
60302         * lib/string_.h: New file.
60303         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60304         Rely on <string.h> instead.
60305         * lib/canon-host.c: Likewise.
60306         * lib/chdir-long.c: Likewise.
60307         * lib/concatpath.c: Likewise.
60308         * lib/exclude.c: Likewise.
60309         * lib/fchdir.c: Likewise.
60310         * lib/getaddrinfo.c: Likewise.
60311         * lib/getcwd.c: Likewise.
60312         * lib/getsubopt.c: Likewise.
60313         * lib/glob.c: Likewise.
60314         * lib/hard-locale.c: Likewise.
60315         * lib/iconvme.c: Likewise.
60316         * lib/javacomp.c: Likewise.
60317         * lib/mempcpy.c: Likewise.
60318         * lib/memrchr.c: Likewise.
60319         * lib/regex_internal.h: Likewise.
60320         * lib/stpncpy.c: Likewise.
60321         * lib/strcasecmp.c: Likewise.
60322         * lib/strchrnul.c: Likewise.
60323         * lib/strdup.c: Likewise.
60324         * lib/striconv.c: Likewise.
60325         * lib/striconveh.c: Likewise.
60326         * lib/striconveha.c: Likewise.
60327         * lib/strncasecmp.c: Likewise.
60328         * lib/strndup.c: Likewise.
60329         * lib/strnlen.c: Likewise.
60330         * lib/strsep.c: Likewise.
60331         * lib/strstr.c: Likewise.
60332         * lib/strtok_r.c: Likewise.
60333         * lib/userspec.c: Likewise.
60334         * lib/w32spawn.h: Likewise.
60335         * lib/xstrndup.c: Likewise.
60336         * lib/mountlist.c (strstr): Remove decl.
60337         * m4/string_h.m4: New file.
60338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60339         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60341         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60342         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60343         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60344         Set REPLACE_STRCASECMP if necessary.
60345         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60346         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60347         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60349         HAVE_DECL_STRDUP if necessary.
60350         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60351         since gl_FUNC_STRNDUP does that now.
60352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60353         Check for decl here...
60354         (gl_PREREQ_STRNLEN): ... not here.
60355         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60356         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60357         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60358         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60359         necessary.
60360         * modules/string: New file.
60361         * modules/memmem (Files): Remove special-purpose include file.
60362         (Depends-on): Add string.
60363         (Include): Include <string.h>, not the removed file.
60364         * modules/mempcpy: Likewise.
60365         * modules/memrchr: Likewise.
60366         * modules/stpcpy: Likewise.
60367         * modules/stpncpy: Likewise.
60368         * modules/strcase: Likewise.
60369         * modules/strchrnul: Likewise.
60370         * modules/strdup: Likewise.
60371         * modules/strndup: Likewise.
60372         * modules/strnlen: Likewise.
60373         * modules/strpbrk: Likewise.
60374         * modules/strsep: Likewise.
60375         * modules/strstr: Likewise.
60376         * modules/strtok_r: Likewise.
60377         * tests/test-dirname.c: Don't include "strdup.h", since
60378         <string.h> now suffices.
60379         * tests/test-memmem.c: Don't include "memmem.h", since
60380         <string.h> now suffices.
60381
60382 2007-01-25  Bruno Haible  <bruno@clisp.org>
60383
60384         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60385         *resultp is 0.
60386
60387         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60388         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60389         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60390         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60391
60392         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60393         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60394         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60395         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60396         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60397         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60398
60399 2007-01-24  Bruno Haible  <bruno@clisp.org>
60400
60401         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60403         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60404         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60405         gl_FUNC_FTS_CORE.
60406         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60407         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60408         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60409         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60410         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60411         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60412         gl_FUNC_FCHOWNAT.
60413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60414         gl_FUNC_STRFTIME.
60415         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60416         Reported by Ralf Wildenhues.
60417
60418 2007-01-24  Bruno Haible  <bruno@clisp.org>
60419
60420         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60421         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60422         gl_GETADDRINFO.
60423         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60424         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60425         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60426
60427 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60430         Don't use 'exit'; just return from 'main'.
60431         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60432
60433         * lib/fnmatch_.h: Readjust white space and comments to match
60434         glibc, to avoid spurious diffs.
60435
60436 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60439         2004-12-01 change by Jakub Jelinek, since this code won't compile
60440         if !LIBC.  Problem reported by Bob Proulx.
60441
60442 2007-01-23  Bruno Haible  <bruno@clisp.org>
60443
60444         * lib/striconveh.c: Include c-strcaseeq.h.
60445         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60446         * modules/striconveh (Depends-on): Add c-strcaseeq.
60447
60448 2007-01-23  Bruno Haible  <bruno@clisp.org>
60449
60450         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60451
60452         * modules/c-strcaseeq: New file.
60453         * lib/c-strcaseeq.h: New file.
60454
60455         * modules/streq: New file.
60456         * lib/streq.h: New file.
60457
60458 2007-01-23  Bruno Haible  <bruno@clisp.org>
60459
60460         * modules/striconveha-tests: New file.
60461         * tests/test-striconveha.c: New file.
60462
60463         * lib/striconveha.h: Include <stdbool.h>.
60464         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60465         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60466         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60467         (mem_iconveha): New function.
60468         (str_iconveha_notranslit): Renamed from str_iconveha.
60469         (str_iconveha): New function.
60470         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60471         c-strcase.
60472
60473 2007-01-23  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60476         encodings without forgiving before trying any encoding with handler.
60477         (str_iconveha): Try all encodings without forgiving before trying any
60478         encoding with handler.
60479
60480 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         Import the following changes from libc.
60483
60484         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60485
60486         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60487
60488         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60489
60490         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60491         normal_bracket label.
60492
60493         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60494
60495         [BZ #361]
60496         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60497         to normal_bracket after fetching the next character.
60498
60499 2007-01-22  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60502         argument.
60503         * lib/striconveh.c (iconv_carefully_1): New function.
60504         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60505         argument.
60506         (str_cd_iconveh): Update.
60507         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60508         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60509         * tests/test-striconveh.c (MAGIC): New macro.
60510         (new_offsets): New function.
60511         (main): Test call with and without offsets.
60512
60513 2007-01-22  Bruno Haible  <bruno@clisp.org>
60514
60515         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60516         * modules/sys_select (Makefile.am): Likewise.
60517         * modules/sys_socket (Makefile.am): Likewise.
60518         * modules/sys_time (Makefile.am): Likewise.
60519
60520 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * modules/gettimeofday (License): Change from GPL to LGPL, since
60523         gettimeofday is a library function.
60524
60525 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60526
60527         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60528
60529 2007-01-21  Bruno Haible  <bruno@clisp.org>
60530
60531         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60532
60533 2007-01-21  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/striconveha: New file.
60536         * lib/striconveha.h: New file.
60537         * lib/striconveha.c: New file.
60538         * MODULES.html.sh (Internationalization functions): Add striconveha.
60539         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60540         string.
60541         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60542
60543 2007-01-21  Bruno Haible  <bruno@clisp.org>
60544
60545         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60546         * lib/striconveh.c (str_iconveh): Likewise.
60547
60548 2007-01-21  Bruno Haible  <bruno@clisp.org>
60549
60550         * lib/striconveh.h (mem_iconveh): New declaration.
60551         * lib/striconveh.c (mem_iconveh): New function.
60552         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60553
60554 2007-01-21  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60557
60558         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60559         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60560         original result buffer.
60561         (str_cd_iconveh): Update.
60562         * tests/test-striconveh.c (main): Update.
60563
60564         * lib/striconv.h (mem_cd_iconv): Change specification.
60565         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60566         result buffer.
60567         (str_cd_iconv): Update.
60568         * tests/test-striconv.c (main): Update.
60569
60570 2007-01-21  Bruno Haible  <bruno@clisp.org>
60571
60572         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60573
60574 2007-01-20  Jim Meyering  <jim@meyering.net>
60575
60576         * lib/userspec.c (parse_with_separator): If a user or group string
60577         starts with "+", skip the corresponding name-to-ID look-up, since
60578         such a look-up must fail: user and group names may not include "+".
60579
60580 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60583         since we now assume the sys_time module.
60584         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60585         check for sys/time.h; no longer needed.
60586         * modules/poll (Depends-on): Depend on sys_time.
60587
60588 2007-01-18  Bruno Haible  <bruno@clisp.org>
60589
60590         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60592
60593         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60594         gettimeofday.
60595
60596         * tests/test-gettimeofday.c: Include <time.h>.
60597         (dummy): Remove variable.
60598
60599         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60600         gl_HEADER_SYS_TIME_H.
60601         (gl_HEADER_SYS_TIME_H): New macro.
60602
60603         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60604         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60605         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60606         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60607         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60608         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60609         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60610         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60611         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60612         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60613         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60614
60615         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60616         last change; it caused a compilation error when cross-compiling to
60617         Cygwin.
60618
60619 2007-01-18  Jim Meyering  <jim@meyering.net>
60620
60621         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60622         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60623         than the race-prone "test -d sys || mkdir sys".
60624         (configure.ac): Use AC_PROG_MKDIR_P.
60625         * modules/sys_select: Likewise.
60626         * modules/sys_socket: Likewise.
60627         * modules/sys_time: Likewise.
60628
60629 2007-01-18  Eric Blake  <ebb9@byu.net>
60630
60631         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60632         replace gettimeofday.
60633         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60634         name, to avoid infinite recursion.
60635
60636 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60639         module sys_time.
60640         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60641         assume timespec.h defines struct timeval.
60642         * lib/settime.c: Likewise.
60643         * lib/utimens.c: Likewise.
60644         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60645         since we now assume the gettimeofday module.
60646         * lib/tempname.c (__gen_tempname): Likewise.
60647         * lib/gettimeofday.h: Remove.
60648         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60649         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60650         Include <time.h>, for 'time()'.
60651         (localtime_buffer_addr): Also use this workaround if
60652         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60653         to simplify the uses.  All uses changed.
60654         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60655         that #undef is inside {}, and 'const' follows type name consistently.
60656         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60657         (gettimeofday): Do not use the maximum possible value for
60658         tv->tv_usec, since that might break usages other than ls.c.
60659         Instead, we'll leave ls.c alone.  This undoes today's patch
60660         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60661         we've never observed the problem but might as well keep the
60662         canary.
60663         * lib/nanosleep.c: Include timespec.h first, for interface check.
60664         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60665         now assume the sys_time module.
60666         * lib/tempname.c: Likewise.
60667         * lib/timespec.h: Likewise.
60668         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60669         needed.
60670         * lib/strftime.c: Likewise.
60671         * lib/timespec.h: Likewise.
60672         * lib/posixtm.c: Include posixtm.h first, for interface check.
60673         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60674         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60675         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60676         * lib/sys_time_.h: New file.
60677         * lib/timespec.h (struct timespec): Use long int, not long.
60678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60679         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60680         Remove obsolescent call to AC_HEADER_TIME.
60681         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60683         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60684         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60685         Likewise.
60686         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60687         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60688         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60689         into the sys_time module.  Check for gettimeofday just once.
60690         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60691         for gettimeofday signature to just check the signature.  Merely
60692         compile it, since linking doesn't test signature.  Improve test for
60693         whether gettimeofday.o is actually needed.
60694         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60695         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60696         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60697         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60698         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60699         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60700         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60701         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60702         than worrying about sys/time.h.
60703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60704         Don't bother worrying about TIME_WITH_SYS_TIME.
60705         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60706         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60707         * m4/sys_time_h.m4: New file.
60708         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60709         Don't include sys/time.h.  Return from main rather than exiting.
60710         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60711         all uses changed.
60712         * modules/gethrxtime (Depends-on): Add sys_time.
60713         * modules/gettime (Depends-on): Likewise.
60714         * modules/gettimeofday (Depends-on): Likewise.
60715         * modules/nanosleep (Depends-on): Likewise.
60716         * modules/settime (Depends-on): Likewise.
60717         * modules/tempname (Depends-on): Likewise.
60718         * modules/utimens (Depends-on): Likewise.
60719         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60720         (Include): Change back to <sys/time.h>.
60721         (Maintainer): Add self.
60722         * modules/sys_time: New file.
60723         * modules/tempname (Depends-on): Add gettimeofday.
60724         * tests/test-gettimeofday.c: Include <sys/time.h>
60725         rather than gettimeofday.h.
60726
60727 2007-01-17  Bruno Haible  <bruno@clisp.org>
60728
60729         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60730         the license default to GPL.
60731         (func_create_testdir): Don't complain if a module is LGPL and its
60732         tests module depends on GPLed modules.
60733
60734 2007-01-17  Bruno Haible  <bruno@clisp.org>
60735
60736         * lib/gettimeofday.c (gettimeofday): Add code for the case
60737         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60738         maximum possible value for tv->tv_usec, rather than the minimum one.
60739
60740 2005-10-08  Martin Lambers  <marlam@marlam.de>
60741 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60742 2007-01-16  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60745         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60746         gl_FUNC_GETTIMEOFDAY.
60747         (Include): Add gettimeofday.h.
60748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60749         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60750         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60751         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60752         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60753         * lib/gettimeofday.h: New file.
60754         * lib/gettimeofday.c: Include <sys/timeb.h>.
60755         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60756         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60757         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60758         fall back on time().
60759
60760         * tests/test-gettimeofday.c: New file.
60761         * modules/gettimeofday-tests: New file.
60762
60763 2007-01-16  Eric Blake  <ebb9@byu.net>
60764
60765         * modules/fnmatch (Depends-on): Depend on wchar.
60766         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60767         * m4/fnmatch.m4: Likewise.
60768         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60769         * m4/mbchar.m4: Likewise.
60770         * modules/mbswidth (Depends-on): Depend on wchar.
60771         * lib/mbswidth.c: Assume <wchar.h>.
60772         * m4/mbswidth.m4: Likewise.
60773         * modules/quotearg (Depends-on): Depend on wchar.
60774         * lib/quotearg.c: Assume <wchar.h>.
60775         * m4/quotearg.m4: Likewise.
60776         * modules/regex (Depends-on): Depend on wchar.
60777         * lib/regex_internal.h: Assume <wchar.h>.
60778         * m4/regex.m4: Likewise.
60779         * modules/stdint (Depends-on): Depend on wchar.
60780         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60781         * m4/stdint.m4: Likewise.
60782         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60783         * modules/strftime (Depends-on): Depend on wchar.
60784         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60785         * modules/strtol (Depends-on): Depend on wchar.
60786         * lib/strtol.c: Assume <wchar.h>.
60787         * modules/wcwidth (Depends-on): Depend on wchar.
60788         * lib/wcwidth.h: Assume <wchar.h>.
60789         * m4/wcwidth.m4: Likewise.
60790
60791 2007-01-16  Bruno Haible  <bruno@clisp.org>
60792
60793         * modules/csharpexec-script: New, created from...
60794         * modules/csharpexec: ... this.
60795
60796 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60797
60798         * modules/javaexec-script: New, created from...
60799         * modules/javaexec: ... this.
60800
60801 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60802
60803         * modules/poll (Dependencies): Add sys_select.
60804
60805 2007-01-15  Jim Meyering  <jim@meyering.net>
60806
60807         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60808         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60809         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60810         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60811
60812 2007-01-15  Bruno Haible  <bruno@clisp.org>
60813
60814         * modules/striconveh: New file.
60815         * lib/striconveh.h: New file.
60816         * lib/striconveh.c: New file.
60817         * MODULES.html.sh (Internationalization functions): Add striconveh.
60818
60819         * modules/striconveh-tests: New file.
60820         * tests/test-striconveh.c: New file.
60821
60822 2007-01-15  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60825         not from GNU libiconv or GNU libc.
60826
60827 2007-01-15  Bruno Haible  <bruno@clisp.org>
60828
60829         * doc/gnulib-intro.texi (Copyright): Explain the different license
60830         terms for module descriptions, autoconf macros, tests, documentation.
60831
60832 2007-01-14  Bruno Haible  <bruno@clisp.org>
60833
60834         * modules/striconv-tests: New file.
60835         * tests/test-striconv.c: New file.
60836
60837 2007-01-14  Bruno Haible  <bruno@clisp.org>
60838
60839         * modules/iconv-tests: New file.
60840         * tests/test-iconv.c: New file.
60841
60842 2007-01-14  Bruno Haible  <bruno@clisp.org>
60843
60844         * gnulib-tool (func_get_license): For test modules, use the license of
60845         the main module.
60846
60847 2007-01-14  Bruno Haible  <bruno@clisp.org>
60848
60849         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60850         if iconv is found to exist.
60851
60852 2007-01-14  Bruno Haible  <bruno@clisp.org>
60853
60854         * modules/c-ctype-tests: New file.
60855         * tests/test-c-ctype.c: New file.
60856
60857 2007-01-14  Bruno Haible  <bruno@clisp.org>
60858
60859         * modules/binary-io-tests: New file.
60860         * tests/test-binary-io.sh: New file.
60861         * tests/test-binary-io.c: New file.
60862
60863 2007-01-14  Bruno Haible  <bruno@clisp.org>
60864
60865         * modules/array-oset-tests: New file.
60866         * tests/test-array_oset.c: New file.
60867
60868 2007-01-14  Bruno Haible  <bruno@clisp.org>
60869
60870         * modules/array-list-tests: New file.
60871         * tests/test-array_list.c: New file.
60872
60873 2007-01-14  Bruno Haible  <bruno@clisp.org>
60874
60875         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60876         and make.
60877         Reported by Simon Josefsson in
60878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60879
60880 2007-01-14  Bruno Haible  <bruno@clisp.org>
60881
60882         * modules/allocsa-tests: New file.
60883         * tests/test-allocsa.c: New file.
60884
60885 2007-01-14  Bruno Haible  <bruno@clisp.org>
60886
60887         * modules/fchdir (Depends-on): Add absolute-header.
60888         * modules/unistd (Depends-on): Likewise.
60889
60890 2006-12-30  Bruno Haible  <bruno@clisp.org>
60891
60892         * modules/fchdir: New file.
60893         * modules/unistd (Files): Add lib/unistd_.h.
60894         (Makefile.am): Generate unistd.h from unistd_.h.
60895         * lib/fchdir.c: New file.
60896         * lib/dirent_.h: New file.
60897         * lib/unistd_.h: New file.
60898         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60899         * m4/fchdir.m4: New file.
60900         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60901         (gl_HEADER_UNISTD): Invoke it.
60902         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60903         function.
60904         * lib/backupfile.c (opendir, closedir): Undefine.
60905         * lib/chown.c (open, close): Undefine.
60906         * lib/clean-temp.c (open, close): Undefine.
60907         * lib/copy-file.c (open, close): Undefine.
60908         * lib/execute.c (open, close): Undefine.
60909         * lib/fsusage.c (open, close): Undefine.
60910         * lib/gc-gnulib.c (open, close): Undefine.
60911         * lib/getcwd.c (opendir, closedir): Undefine.
60912         * lib/glob.c (opendir, closedir): Undefine.
60913         * lib/javacomp.c (open, close): Undefine.
60914         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60915         * lib/openat-proc.c (open, close): Undefine.
60916         * lib/pagealign_alloc.c (open, close): Undefine.
60917         * lib/pipe.c (open, close): Undefine.
60918         * lib/progreloc.c (open, close): Undefine.
60919         * lib/savedir.c (opendir, closedir): Undefine.
60920         * lib/utime.c (open, close): Undefine.
60921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60922
60923 2007-01-10  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60926
60927 2007-01-12  Eric Blake  <ebb9@byu.net>
60928
60929         Provide a robust <wchar.h>.  Further simplifications are now
60930         possible in other modules, but not included here.
60931         * modules/wchar: New module.
60932         * m4/wchar.m4: New file.
60933         * lib/wchar_.h: Likewise.
60934         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60935         of the new module.
60936         * MODULES.html.sh (Extended multibyte and wide character utilities):
60937         New section.
60938
60939 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60940
60941         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60942         to a reasonable default for memory allocation.
60943         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60944         file system that reports garbage st_size values for symlinks.
60945         Problem reported by Liyang Hu.
60946
60947 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60948
60949         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60950         Emacs .#* auto-save files).
60951
60952 2007-01-11  Bruno Haible  <bruno@clisp.org>
60953
60954         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60955         directory.
60956
60957 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         Use @...@ consistently in lib/wctype_.h.
60960         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60961         on it being set to 1 or 0.
60962         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60963         go back to AC_SUBSTing it.
60964         * modules/wctype (Makefile.am): Undo previous change.
60965
60966 2007-01-10  Eric Blake  <ebb9@byu.net>
60967
60968         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60969         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60970         * modules/wctype (Makefile.am): Likewise.
60971         Reported by Chris McGuire.
60972
60973 2007-01-10  Jim Meyering  <jim@meyering.net>
60974
60975         fts.c: a small readability/maintainability improvement
60976         * lib/fts.c (fts_read): Make this code slightly more readable and
60977         maintainable by hoisting the "sp->fts_cur = p" assignments to
60978         immediately follow the statements that set P.  Derived from
60979         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60980
60981 2007-01-10  Eric Blake  <ebb9@byu.net>
60982
60983         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60984         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60986         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60987         Reported by Chris McGuire.
60988
60989 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60990
60991         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60992         in sed script.
60993
60994 2007-01-09  Bruno Haible  <bruno@clisp.org>
60995
60996         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60997         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60998         variables.
60999         (func_module): Use them.
61000
61001 2007-01-09  Bruno Haible  <bruno@clisp.org>
61002
61003         * modules/unistr/base: New file.
61004         * lib/unistr.h: New file.
61005
61006         * modules/unistr/u8-to-u16: New file.
61007         * lib/unistr/u8-to-u16.c: New file.
61008
61009         * modules/unistr/u8-to-u32: New file.
61010         * lib/unistr/u8-to-u32.c: New file.
61011
61012         * modules/unistr/u16-to-u8: New file.
61013         * lib/unistr/u16-to-u8.c: New file.
61014
61015         * modules/unistr/u16-to-u32: New file.
61016         * lib/unistr/u16-to-u32.c: New file.
61017
61018         * modules/unistr/u32-to-u8: New file.
61019         * lib/unistr/u32-to-u8.c: New file.
61020
61021         * modules/unistr/u32-to-u16: New file.
61022         * lib/unistr/u32-to-u16.c: New file.
61023
61024         * modules/unistr/u8-check: New file.
61025         * modules/unistr/u16-check: New file.
61026         * modules/unistr/u32-check: New file.
61027         * lib/unistr/u8-check.c: New file.
61028         * lib/unistr/u16-check.c: New file.
61029         * lib/unistr/u32-check.c: New file.
61030
61031         * modules/unistr/u8-chr: New file.
61032         * modules/unistr/u16-chr: New file.
61033         * modules/unistr/u32-chr: New file.
61034         * lib/unistr/u8-chr.c: New file.
61035         * lib/unistr/u16-chr.c: New file.
61036         * lib/unistr/u32-chr.c: New file.
61037
61038         * modules/unistr/u8-cmp: New file.
61039         * modules/unistr/u16-cmp: New file.
61040         * modules/unistr/u32-cmp: New file.
61041         * lib/unistr/u8-cmp.c: New file.
61042         * lib/unistr/u16-cmp.c: New file.
61043         * lib/unistr/u32-cmp.c: New file.
61044
61045         * modules/unistr/u8-cpy: New file.
61046         * modules/unistr/u16-cpy: New file.
61047         * modules/unistr/u32-cpy: New file.
61048         * lib/unistr/u8-cpy.c: New file.
61049         * lib/unistr/u16-cpy.c: New file.
61050         * lib/unistr/u32-cpy.c: New file.
61051         * lib/unistr/u-cpy.h: New file.
61052
61053         * modules/unistr/u8-cpy-alloc: New file.
61054         * modules/unistr/u16-cpy-alloc: New file.
61055         * modules/unistr/u32-cpy-alloc: New file.
61056         * lib/unistr/u8-cpy-alloc.c: New file.
61057         * lib/unistr/u16-cpy-alloc.c: New file.
61058         * lib/unistr/u32-cpy-alloc.c: New file.
61059         * lib/unistr/u-cpy-alloc.h: New file.
61060
61061         * modules/unistr/u8-endswith: New file.
61062         * modules/unistr/u16-endswith: New file.
61063         * modules/unistr/u32-endswith: New file.
61064         * lib/unistr/u8-endswith.c: New file.
61065         * lib/unistr/u16-endswith.c: New file.
61066         * lib/unistr/u32-endswith.c: New file.
61067         * lib/unistr/u-endswith.h: New file.
61068
61069         * modules/unistr/u8-mblen: New file.
61070         * modules/unistr/u16-mblen: New file.
61071         * modules/unistr/u32-mblen: New file.
61072         * lib/unistr/u8-mblen.c: New file.
61073         * lib/unistr/u16-mblen.c: New file.
61074         * lib/unistr/u32-mblen.c: New file.
61075
61076         * modules/unistr/u8-mbtouc: New file.
61077         * modules/unistr/u16-mbtouc: New file.
61078         * modules/unistr/u32-mbtouc: New file.
61079         * lib/unistr/u8-mbtouc.c: New file.
61080         * lib/unistr/u16-mbtouc.c: New file.
61081         * lib/unistr/u32-mbtouc.c: New file.
61082
61083         * modules/unistr/u8-mbtouc-safe: New file.
61084         * modules/unistr/u16-mbtouc-safe: New file.
61085         * modules/unistr/u32-mbtouc-safe: New file.
61086         * lib/unistr/u8-mbtouc-safe.c: New file.
61087         * lib/unistr/u16-mbtouc-safe.c: New file.
61088         * lib/unistr/u32-mbtouc-safe.c: New file.
61089
61090         * modules/unistr/u8-move: New file.
61091         * modules/unistr/u16-move: New file.
61092         * modules/unistr/u32-move: New file.
61093         * lib/unistr/u8-move.c: New file.
61094         * lib/unistr/u16-move.c: New file.
61095         * lib/unistr/u32-move.c: New file.
61096         * lib/unistr/u-move.h: New file.
61097
61098         * modules/unistr/u8-next: New file.
61099         * modules/unistr/u16-next: New file.
61100         * modules/unistr/u32-next: New file.
61101         * lib/unistr/u8-next.c: New file.
61102         * lib/unistr/u16-next.c: New file.
61103         * lib/unistr/u32-next.c: New file.
61104
61105         * modules/unistr/u8-prev: New file.
61106         * modules/unistr/u16-prev: New file.
61107         * modules/unistr/u32-prev: New file.
61108         * lib/unistr/u8-prev.c: New file.
61109         * lib/unistr/u16-prev.c: New file.
61110         * lib/unistr/u32-prev.c: New file.
61111
61112         * modules/unistr/u8-set: New file.
61113         * modules/unistr/u16-set: New file.
61114         * modules/unistr/u32-set: New file.
61115         * lib/unistr/u8-set.c: New file.
61116         * lib/unistr/u16-set.c: New file.
61117         * lib/unistr/u32-set.c: New file.
61118         * lib/unistr/u-set.h: New file.
61119
61120         * modules/unistr/u8-startswith: New file.
61121         * modules/unistr/u16-startswith: New file.
61122         * modules/unistr/u32-startswith: New file.
61123         * lib/unistr/u8-startswith.c: New file.
61124         * lib/unistr/u16-startswith.c: New file.
61125         * lib/unistr/u32-startswith.c: New file.
61126         * lib/unistr/u-startswith.h: New file.
61127
61128         * modules/unistr/u8-stpcpy: New file.
61129         * modules/unistr/u16-stpcpy: New file.
61130         * modules/unistr/u32-stpcpy: New file.
61131         * lib/unistr/u8-stpcpy.c: New file.
61132         * lib/unistr/u16-stpcpy.c: New file.
61133         * lib/unistr/u32-stpcpy.c: New file.
61134         * lib/unistr/u-stpcpy.h: New file.
61135
61136         * modules/unistr/u8-stpncpy: New file.
61137         * modules/unistr/u16-stpncpy: New file.
61138         * modules/unistr/u32-stpncpy: New file.
61139         * lib/unistr/u8-stpncpy.c: New file.
61140         * lib/unistr/u16-stpncpy.c: New file.
61141         * lib/unistr/u32-stpncpy.c: New file.
61142         * lib/unistr/u-stpncpy.h: New file.
61143
61144         * modules/unistr/u8-strcat: New file.
61145         * modules/unistr/u16-strcat: New file.
61146         * modules/unistr/u32-strcat: New file.
61147         * lib/unistr/u8-strcat.c: New file.
61148         * lib/unistr/u16-strcat.c: New file.
61149         * lib/unistr/u32-strcat.c: New file.
61150         * lib/unistr/u-strcat.h: New file.
61151
61152         * modules/unistr/u8-strchr: New file.
61153         * modules/unistr/u16-strchr: New file.
61154         * modules/unistr/u32-strchr: New file.
61155         * lib/unistr/u8-strchr.c: New file.
61156         * lib/unistr/u16-strchr.c: New file.
61157         * lib/unistr/u32-strchr.c: New file.
61158
61159         * modules/unistr/u8-strcmp: New file.
61160         * modules/unistr/u16-strcmp: New file.
61161         * modules/unistr/u32-strcmp: New file.
61162         * lib/unistr/u8-strcmp.c: New file.
61163         * lib/unistr/u16-strcmp.c: New file.
61164         * lib/unistr/u32-strcmp.c: New file.
61165
61166         * modules/unistr/u8-strcpy: New file.
61167         * modules/unistr/u16-strcpy: New file.
61168         * modules/unistr/u32-strcpy: New file.
61169         * lib/unistr/u8-strcpy.c: New file.
61170         * lib/unistr/u16-strcpy.c: New file.
61171         * lib/unistr/u32-strcpy.c: New file.
61172         * lib/unistr/u-strcpy.h: New file.
61173
61174         * modules/unistr/u8-strcspn: New file.
61175         * modules/unistr/u16-strcspn: New file.
61176         * modules/unistr/u32-strcspn: New file.
61177         * lib/unistr/u8-strcspn.c: New file.
61178         * lib/unistr/u16-strcspn.c: New file.
61179         * lib/unistr/u32-strcspn.c: New file.
61180         * lib/unistr/u-strcspn.h: New file.
61181
61182         * modules/unistr/u8-strdup: New file.
61183         * modules/unistr/u16-strdup: New file.
61184         * modules/unistr/u32-strdup: New file.
61185         * lib/unistr/u8-strdup.c: New file.
61186         * lib/unistr/u16-strdup.c: New file.
61187         * lib/unistr/u32-strdup.c: New file.
61188         * lib/unistr/u-strdup.h: New file.
61189
61190         * modules/unistr/u8-strlen: New file.
61191         * modules/unistr/u16-strlen: New file.
61192         * modules/unistr/u32-strlen: New file.
61193         * lib/unistr/u8-strlen.c: New file.
61194         * lib/unistr/u16-strlen.c: New file.
61195         * lib/unistr/u32-strlen.c: New file.
61196         * lib/unistr/u-strlen.h: New file.
61197
61198         * modules/unistr/u8-strmblen: New file.
61199         * modules/unistr/u16-strmblen: New file.
61200         * modules/unistr/u32-strmblen: New file.
61201         * lib/unistr/u8-strmblen.c: New file.
61202         * lib/unistr/u16-strmblen.c: New file.
61203         * lib/unistr/u32-strmblen.c: New file.
61204
61205         * modules/unistr/u8-strmbtouc: New file.
61206         * modules/unistr/u16-strmbtouc: New file.
61207         * modules/unistr/u32-strmbtouc: New file.
61208         * lib/unistr/u8-strmbtouc.c: New file.
61209         * lib/unistr/u16-strmbtouc.c: New file.
61210         * lib/unistr/u32-strmbtouc.c: New file.
61211
61212         * modules/unistr/u8-strncat: New file.
61213         * modules/unistr/u16-strncat: New file.
61214         * modules/unistr/u32-strncat: New file.
61215         * lib/unistr/u8-strncat.c: New file.
61216         * lib/unistr/u16-strncat.c: New file.
61217         * lib/unistr/u32-strncat.c: New file.
61218         * lib/unistr/u-strncat.h: New file.
61219
61220         * modules/unistr/u8-strncmp: New file.
61221         * modules/unistr/u16-strncmp: New file.
61222         * modules/unistr/u32-strncmp: New file.
61223         * lib/unistr/u8-strncmp.c: New file.
61224         * lib/unistr/u16-strncmp.c: New file.
61225         * lib/unistr/u32-strncmp.c: New file.
61226
61227         * modules/unistr/u8-strncpy: New file.
61228         * modules/unistr/u16-strncpy: New file.
61229         * modules/unistr/u32-strncpy: New file.
61230         * lib/unistr/u8-strncpy.c: New file.
61231         * lib/unistr/u16-strncpy.c: New file.
61232         * lib/unistr/u32-strncpy.c: New file.
61233         * lib/unistr/u-strncpy.h: New file.
61234
61235         * modules/unistr/u8-strnlen: New file.
61236         * modules/unistr/u16-strnlen: New file.
61237         * modules/unistr/u32-strnlen: New file.
61238         * lib/unistr/u8-strnlen.c: New file.
61239         * lib/unistr/u16-strnlen.c: New file.
61240         * lib/unistr/u32-strnlen.c: New file.
61241         * lib/unistr/u-strnlen.h: New file.
61242
61243         * modules/unistr/u8-strpbrk: New file.
61244         * modules/unistr/u16-strpbrk: New file.
61245         * modules/unistr/u32-strpbrk: New file.
61246         * lib/unistr/u8-strpbrk.c: New file.
61247         * lib/unistr/u16-strpbrk.c: New file.
61248         * lib/unistr/u32-strpbrk.c: New file.
61249         * lib/unistr/u-strpbrk.h: New file.
61250
61251         * modules/unistr/u8-strrchr: New file.
61252         * modules/unistr/u16-strrchr: New file.
61253         * modules/unistr/u32-strrchr: New file.
61254         * lib/unistr/u8-strrchr.c: New file.
61255         * lib/unistr/u16-strrchr.c: New file.
61256         * lib/unistr/u32-strrchr.c: New file.
61257
61258         * modules/unistr/u8-strspn: New file.
61259         * modules/unistr/u16-strspn: New file.
61260         * modules/unistr/u32-strspn: New file.
61261         * lib/unistr/u8-strspn.c: New file.
61262         * lib/unistr/u16-strspn.c: New file.
61263         * lib/unistr/u32-strspn.c: New file.
61264         * lib/unistr/u-strspn.h: New file.
61265
61266         * modules/unistr/u8-strstr: New file.
61267         * modules/unistr/u16-strstr: New file.
61268         * modules/unistr/u32-strstr: New file.
61269         * lib/unistr/u8-strstr.c: New file.
61270         * lib/unistr/u16-strstr.c: New file.
61271         * lib/unistr/u32-strstr.c: New file.
61272         * lib/unistr/u-strstr.h: New file.
61273
61274         * modules/unistr/u8-strtok: New file.
61275         * modules/unistr/u16-strtok: New file.
61276         * modules/unistr/u32-strtok: New file.
61277         * lib/unistr/u8-strtok.c: New file.
61278         * lib/unistr/u16-strtok.c: New file.
61279         * lib/unistr/u32-strtok.c: New file.
61280         * lib/unistr/u-strtok.h: New file.
61281
61282         * modules/unistr/u8-uctomb: New file.
61283         * modules/unistr/u16-uctomb: New file.
61284         * modules/unistr/u32-uctomb: New file.
61285         * lib/unistr/u8-uctomb.c: New file.
61286         * lib/unistr/u16-uctomb.c: New file.
61287         * lib/unistr/u32-uctomb.c: New file.
61288
61289         * MODULES.html.sh (Unicode string functions): Add the new modules.
61290
61291 2007-01-08  Bruno Haible  <bruno@clisp.org>
61292
61293         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61294         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61295         subdirectories.
61296
61297 2007-01-08  Karl Berry  <karl@gnu.org>
61298
61299         * doc/error.texi: mention that main() fns must set program_name
61300         when progname is used.
61301
61302 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61305         WCTYPE_H is empty, for the benefit of builds from non-distclean
61306         directories.  Problem reported by Eric Blake in
61307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61308
61309 2007-01-08  Bruno Haible  <bruno@clisp.org>
61310
61311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61312         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61313         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61314         PROVIDE_CANONICALIZE_FILENAME_MODE.
61315         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61316
61317 2007-01-08  Bruno Haible  <bruno@clisp.org>
61318
61319         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61320         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61321         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61322         * lib/fts.c: Likewise.
61323         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61324
61325 2006-12-25  Bruno Haible  <bruno@clisp.org>
61326
61327         * modules/utf8-ucs4-safe: New file.
61328         * lib/utf8-ucs4-safe.h: New file.
61329         * lib/unistr/utf8-ucs4-safe.c: New file.
61330
61331         * modules/utf16-ucs4-safe: New file.
61332         * lib/utf16-ucs4-safe.h: New file.
61333         * lib/unistr/utf16-ucs4-safe.c: New file.
61334
61335         * MODULES.html.sh (Unicode string functions): Add the new modules.
61336
61337 2007-01-08  Bruno Haible  <bruno@clisp.org>
61338
61339         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61340         (Depends-on): Add unitypes.
61341         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61342         (u8_mbtouc_aux): Move out to separate file.
61343         (u8_mbtouc): Use ucs4_t, uint8_t types.
61344         * lib/unistr/utf8-ucs4.c: New file.
61345
61346         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61347         (Depends-on): Add unitypes.
61348         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61349         (u16_mbtouc_aux): Move out to separate file.
61350         (u16_mbtouc): Use ucs4_t, uint16_t types.
61351         * lib/unistr/utf16-ucs4.c: New file.
61352
61353         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61354         (Depends-on): Add unitypes.
61355         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61356         (u8_uctomb_aux): Move out to separate file.
61357         (u8_uctomb): Use ucs4_t, uint8_t types.
61358         * lib/unistr/ucs4-utf8.c: New file.
61359
61360         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61361         (Depends-on): Add unitypes.
61362         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61363         (u16_uctomb_aux): Move out to separate file.
61364         (u16_uctomb): Use ucs4_t, uint16_t types.
61365         * lib/unistr/ucs4-utf16.c: New file.
61366
61367 2006-12-25  Bruno Haible  <bruno@clisp.org>
61368
61369         * modules/unitypes: New file.
61370         * lib/unitypes.h: New file.
61371         * MODULES.html.sh (func_all_modules): New section "Unicode string
61372         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61373         this section. Add unitypes.
61374
61375 2007-01-08  Bruno Haible  <bruno@clisp.org>
61376
61377         Avoid variable names that conflict with those from libtool.
61378         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61379         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61380         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61381         library_names_spec to acl_library_names_spec, hardcode_* to
61382         acl_hardcode_*.
61383         Reported by Ralf Wildenhues.
61384
61385 2007-01-08  Bruno Haible  <bruno@clisp.org>
61386
61387         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61388         definition.
61389         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61390         definition.
61391         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61392         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61393         definition.
61394         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61395         definition.
61396         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61397         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61398         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61399         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61400         definition.
61401         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61402         definition.
61403         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61404         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61405         GC_USE_<algorithm>.
61406         * lib/gc-libgcrypt.c: Likewise.
61407         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61408         * modules/gc-arctwo (configure.ac): Likewise.
61409         * modules/gc-des (configure.ac): Likewise.
61410         * modules/gc-hmac-md5 (configure.ac): Likewise.
61411         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61412         * modules/gc-md2 (configure.ac): Likewise.
61413         * modules/gc-md4 (configure.ac): Likewise.
61414         * modules/gc-md5 (configure.ac): Likewise.
61415         * modules/gc-random (configure.ac): Likewise.
61416         * modules/gc-rijndael (configure.ac): Likewise.
61417         * modules/gc-sha1 (configure.ac): Likewise.
61418
61419 2007-01-08  Bruno Haible  <bruno@clisp.org>
61420
61421         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61422         macro definition.
61423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61424         definition.
61425         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61426         definition.
61427         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61428         * modules/fcntl-safer (configure.ac): Likewise.
61429         * modules/fopen-safer (configure.ac): Likewise.
61430         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61431         GNULIB_FWRITEERROR macro definition.
61432
61433 2007-01-08  Bruno Haible  <bruno@clisp.org>
61434
61435         * m4/gnulib-common.m4: New file.
61436         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61437         (func_get_filelist): Add m4/gnulib-common.m4.
61438
61439 2007-01-08  Bruno Haible  <bruno@clisp.org>
61440
61441         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61442         command.
61443
61444 2007-01-08  Jim Meyering  <jim@meyering.net>
61445
61446         Use a more robust test for a "can't happen" condition.
61447         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61448         narrowed the st_size value.  Presuming the "can't happen" condition
61449         is true, that narrowing could conceivably convert an invalid st_size
61450         value into a valid one.  Instead, use a change based on Matthew
61451         Woehlke's original patch.
61452
61453         Slight readability improvement: use an assert-like macro
61454         in place of literal "abort ()" uses.
61455         * lib/fts.c (fts_assert): Define.
61456         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61457         Use this macro instead of a bare 'abort'.
61458
61459 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61460
61461         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61462         simply work around them.
61463         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61464         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61465         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61466         declaring.
61467         Don't bother to define as macros, since the standard doesn't require it.
61468         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61469         longer worry about IRIX 5.3.
61470         (HAVE_WCTYPE_CTMP_BUG): Remove.
61471
61472 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61473
61474         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61475         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61476         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61477         Problems reported by Georg Schwarz for IRIX 5.3.
61478
61479         * gnulib-tool (autoconf_minversion): Take the maximum version number
61480         found, not the minimum.  Problem reported by James Youngman.
61481
61482 2007-01-03  Karl Berry  <karl@gnu.org>
61483
61484         * doc/error.texi: new file, explaining interaction with progname.
61485         * doc/gnulib.texi: include it.  Update copyright.
61486
61487 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61488
61489         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61490         AC_CANONICAL_HOST, to improve autobuild outputs.
61491
61492 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61493             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61494
61495         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61496         sockets, server sockets, and other file descriptors.  Count errors
61497         to compute the return value.  Reorder the code a bit to be easier
61498         to follow.  Don't set event bits that were not requested (except
61499         POLLERR and POLLHUP).
61500
61501 2007-01-01  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61504
61505 2007-01-03  Jim Meyering  <jim@meyering.net>
61506
61507         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61508
61509 2007-01-02  Bruno Haible  <bruno@clisp.org>
61510
61511         * modules/settime (Include): Require timespec.h.
61512         * modules/nanosleep (Include): Likewise.
61513
61514 2007-01-01  Bruno Haible  <bruno@clisp.org>
61515
61516         * gnulib-tool (func_emit_copyright_notice): Bump year.
61517         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61518
61519 2007-01-01  Bruno Haible  <bruno@clisp.org>
61520
61521         Improve support for OpenBSD.
61522         * build-aux/config.rpath (libname_spec): Export.
61523         (library_names_spec): New variable. Export.
61524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61525         library_names_spec from the config.rpath output. Locate shared library
61526         through the name pattern in library_names_spec.
61527
61528 2007-01-01  Eric Blake  <ebb9@byu.net>
61529
61530         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61531
61532 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61533
61534         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61535         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61536         assume the C locale, and avoid an "eval" that could cause trouble.
61537         Problem with SORT reported by Bob Proulx.
61538
61539         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61540         Define.  Trivial patch from Henning Nielsen Lund, originally
61541         sent to bug-grep@gnu.org today.
61542
61543 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61546         struct stat.  Problem reported by Henning Nielsen Lund.
61547         * lib/acl.c: Include acl.h first, to check interface.  Don't
61548         bother to include sys/types.h and sys/stat.h again.
61549
61550 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61551
61552         Import the following change from libc; problem reported by
61553         Sven Verdoolaege.
61554
61555         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61556
61557         [BZ #1373]
61558         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61559
61560 2006-12-28  Jim Meyering  <jim@meyering.net>
61561
61562         * build-aux/announce-gen: Do not assume that the package
61563         builds any of tar.gz, tar.bz2, and .xdelta files.
61564         Suggestion from Simon Josefsson.
61565
61566 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61567
61568         * modules/announce-gen: New file.
61569
61570 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61573         handles its gotchas now.
61574         * lib/mbswidth.c: Likewise.
61575         * lib/wcwidth.h: Likewise.
61576         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61577         and iswcntrl; the wctype module does this stuff now.
61578         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61580         * modules/mbchar (Depends-on): Add wctype.
61581         * modules/mbswidth (Depends-on): Likewise.
61582         * modules/wcwidth (Depends-on): Likewise.
61583
61584 2006-12-27  Eric Blake  <ebb9@byu.net>
61585
61586         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61587         module uses more than what <wctype.h> is required to provide.
61588
61589 2006-12-26  Eric Blake  <ebb9@byu.net>
61590
61591         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61592
61593 2006-12-26  Eric Blake  <ebb9@byu.net>
61594
61595         * modules/absolute-header: New module.
61596         * modules/fcntl (Depends-on): Depend on it.
61597         * modules/inttypes (Depends-on): Likewise.
61598         * modules/stdint (Depends-on): Likewise.
61599         * modules/sys_stat (Depends-on): Likewise.
61600         * modules/wctype (Depends-on): Likewise.
61601         * MODULES.html.sh (Support for building libraries and
61602         executables): Document it.
61603
61604 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61605
61606         * gnulib-tool (SED): Remove, undoing previous change.
61607         The problem was that it broke coreutils on Solaris, because
61608         "sed --posix" leaked into a makefile.
61609         (sed): New alias, if 'alias' and GNU sed.
61610
61611 2006-12-24  Jim Meyering  <jim@meyering.net>
61612
61613         Work around an fchownat bug in glibc-2.4:
61614         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61615         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61616         in spite of the -P option.
61617         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61618         New macros.
61619         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61620         * modules/openat (Files): Add lib/fchownat.c.
61621         * lib/openat.c (fchownat): Don't define here.  Move to...
61622         * lib/fchownat.c: ...this new file.
61623
61624 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         Fix bug reported by Bruno Haible in
61627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61628         where quotearg.c didn't compile on Mac OS X 10.2 because it
61629         lacks <wchar.h> and wint_t.
61630         * lib/wctype_.h (__wctype_wint_t): New type.
61631         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61632         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61633         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61634         Arg is now of type __wctype_wint_t, not wint_t.
61635         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61636         substitute HAVE_WINT_T.
61637         * modules/wctype (Files): Add m4/wint_t.m4.
61638         (wctype.h): Substitute HAVE_WINT_T.
61639
61640 2006-12-23  Bruno Haible  <bruno@clisp.org>
61641
61642         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61643
61644 2006-12-23  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61647         S_ISLNK.
61648         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61649         mingw.
61650
61651 2006-12-22  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/copy-file.c: Include acl.h.
61654         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61655         Close the file descriptors only after being done with copy_acl.
61656         * modules/copy-file (Depends-on): Add acl.
61657
61658 2006-12-22  Bruno Haible  <bruno@clisp.org>
61659
61660         * gnulib-tool (SED): New variable.
61661         Use $SED instead of sed everywhere.
61662
61663 2006-12-22  Bruno Haible  <bruno@clisp.org>
61664
61665         * modules/no-c++: New file.
61666         * m4/no-c++.m4: New file.
61667         * MODULES.html.sh (Support for building libraries and executables):
61668         Add no-c++.
61669
61670 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61671
61672         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61673         Include <limits.h>, and use its INT_MAX to rewrite the
61674         j loop so that it does not overflow 'int'.  Problem reported by
61675         Ralf Wildenhues in
61676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61677         Play it safe by shifting left by 1 rather than multiplying by 2,
61678         as GCC is less likely to optimize this away when the value
61679         is signed (when it assumes overflow leads to undefined behavior).
61680         Also, don't assume time_t uses two's complement.
61681
61682 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * MODULES.html.sh: New module wctype.
61685         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61686         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61687         <wctype.h>, since the new wctype module should fix this.
61688         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61689         the wctype module should arrange for it.
61690         * lib/regex_internal.h: Likewise.
61691         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61692         since the wctype module should handle this now.
61693         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61694         * modules/fnmatch (Depends-on): Add wctype.
61695         * modules/quotearg (Depends-on): Likewise.
61696         * modules/regex (Depends-on): Likewise.
61697
61698 2006-12-19  Bruno Haible  <bruno@clisp.org>
61699
61700         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61701         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61702
61703 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61704
61705         * modules/savewd (Depends-on): Fix dependency on fcntl.
61706
61707 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61710         conforms to C99, rather than relying on the user's environment
61711         setting of STDINT_H.
61712
61713 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61714         and Eric Blake  <ebb9@byu.net>
61715
61716         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61717         This is more consistent with the other defines here.
61718         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61719         Port to z/OS.  Problem reported by Paul Gilmartin.
61720         Change local vars to use gl_ prefix rather than ac_.
61721         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61722         with other defines.
61723         * modules/double-slash-root: New module.
61724         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61725         (Depends-on): Add double-slash-root.
61726         * MODULES.html.sh (File system functions): Mention new module.
61727
61728 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61729
61730         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61731         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61732         This is for the benefit of gzip, which doesn't do i18n.
61733
61734 2006-12-12  Jim Meyering  <jim@meyering.net>
61735
61736         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61737         Reported by Andreas Schwab <schwab@suse.de>.
61738
61739 2006-12-12  Bruno Haible  <bruno@clisp.org>
61740
61741         Merge these changes.
61742         2006-09-05  Bruno Haible  <bruno@clisp.org>
61743         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61744         iconv_alloc succeeded.
61745         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61746         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61747         test for " && dest " at the end - dest is always != NULL there. Call
61748         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61749         with 2xNULL arguments, also to flush the state storage. Handle the
61750         IRIX iconv behaviour. Realloc the final result, to throw away unused
61751         memory.
61752
61753 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61754
61755         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61756         and fchmodat unconditionally, since glibc 2.4 has them.
61757         Problem reported by Arkadiusz Miskiewicz.
61758
61759 2006-12-10  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool (func_import): Show the include files only for those
61762         modules that are copied and specified.
61763         Reported by Karl Berry.
61764
61765 2006-12-08  Jim Meyering  <jim@meyering.net>
61766
61767         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61768         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61769
61770         * build-aux/announce-gen: Add two new options, both optional:
61771         --bootstrap-tools=TOOL_LIST
61772               a comma-separated list of tools, e.g.,
61773               autoconf,automake,bison,gnulib
61774         --gnulib-snapshot-date=DATE
61775               if gnulib is in the bootstrap tool list,
61776               then report this as the snapshot date.
61777               If not specified, use the current date/time.
61778               If you specify a date here, be sure it's UTC.
61779
61780 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61781
61782         * tests/test-argp-2.sh: Fix test to match actual output.
61783         (func_compare): Fix sed script to be portable.
61784
61785 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61786
61787         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61788         workaround for this case.  It is not autoconfigured now; offhand
61789         it's hard to see how to autoconfigure it.
61790
61791 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61792
61793         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61794         a directory that is about to be chowned.  Such a directory's
61795         initial file permissions should permit the owner only and this
61796         should not be changed until after the chown, since the group and
61797         other bits would be incorrect if they granted permission before
61798         the chown.
61799
61800         Fix porting problem for iswctype reported by Georg Schwarz in:
61801         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61802         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61803         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61806
61807 2006-12-03  Jim Meyering  <jim@meyering.net>
61808
61809         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61810         p->fts_statp may not yet be defined.
61811         (fts_read): Instead, set it in the caller, once p->fts_statp is
61812         sure to be defined, and corresponds to a top-level directory.
61813         This bug made du -x fail.  Here's the coreutils test case:
61814         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61815         Reported by Mike Frysinger.
61816
61817 2006-12-01  Jim Meyering  <jim@meyering.net>
61818
61819         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61820         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61821         Reported by Simon Josefsson.
61822
61823 2006-11-30  Jim Meyering  <jim@meyering.net>
61824
61825         * m4/warning.m4: Use the all-permissive copyright notice
61826         recommended by RMS (rather than LGPL).
61827         * m4/vararrays.m4: Likewise.
61828         * m4/flexmember.m4: Likewise.
61829
61830 2006-11-29  Bruno Haible  <bruno@clisp.org>
61831
61832         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61833         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61834         using +=.
61835         Reported by Simon Josefsson <simon@josefsson.org>.
61836
61837 2006-11-28  James Youngman <jay@gnu.org>
61838
61839         * README: Advise users that they might find the bug-gnulib@gnu.org
61840         and autotools-announce@gnu.org mailing lists useful.
61841
61842 2006-11-28  Bruno Haible  <bruno@clisp.org>
61843
61844         * m4/ptrdiff_max.m4: Remove file.
61845
61846 2006-11-21  Bruno Haible  <bruno@clisp.org>
61847
61848         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61849         _AC_COMPUTE_INT.
61850         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61851         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61852         _AC_COMPUTE_INT.
61853         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61854         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61855         _AC_COMPUTE_INT.
61856         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61857
61858 2006-11-28  Jim Meyering  <jim@meyering.net>
61859
61860         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61861         warning from "gcc -Wshadow" about shadowing the builtin.
61862
61863 2006-11-27  Bruno Haible  <bruno@clisp.org>
61864
61865         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61866         _AC_COMPUTE_INT.
61867         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61868
61869 2006-11-27  Bruno Haible  <bruno@clisp.org>
61870             Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61873
61874 2006-11-26  Bruno Haible  <bruno@clisp.org>
61875
61876         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61877         noinst_LTLIBRARIES.
61878
61879 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61880             Bruno Haible  <bruno@clisp.org>
61881
61882         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61883         if compiling with "gcc -ansi".
61884
61885 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61886
61887         Fix some incompatibilities with gcc -ansi -pedantic.
61888         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61889         if compiling pedantically with GCC, unless it's C99 or later.
61890         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61891         it mishandles gcc -ansi -pedantic as well.
61892         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61893         if gcc -pedantic.
61894         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61895         initializers for struct if -pedantic, unless it's C99 or later.
61896
61897 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61898
61899         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61900         Don't close an fd more than once. Identical atimes indicate
61901         success, not failure.
61902
61903 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61904
61905         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61906
61907 2006-11-23  Jim Meyering  <jim@meyering.net>
61908
61909         * build-aux/announce-gen: New file.  From coreutils.
61910
61911 2006-11-22  Jim Meyering  <jim@meyering.net>
61912
61913         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61914         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61915         (fts_read): Use a temporary to narrow the overused st_size member
61916         before using it in a switch statement.  Reported by Matthew Woehlke.
61917
61918         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61919         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61920
61921 2006-11-20  Bruno Haible  <bruno@clisp.org>
61922
61923         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61924         changequote instead of pairs of brackets.
61925         Reported by Andreas Schwab <schwab@suse.de>.
61926
61927 2006-11-21  Jim Meyering  <jim@meyering.net>
61928
61929         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61930         so as to remain compatible with older compilers.
61931         Patch from Michael Deutschmann.
61932
61933 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61934
61935         * MODULES.html.sh (File system functions): Add openat.
61936
61937         * lib/openat.h (rpl_fstatat): New macro, if
61938         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61939         (fstatat): Define to rpl_fstatat under the same conditions,
61940         unless COMPILING_FSTATAT.
61941         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61942         seems to have the bug.
61943         * lib/fstatat.c: New file.
61944         * modules/openat (Files): Add it.
61945
61946 2006-11-20  Bruno Haible  <bruno@clisp.org>
61947
61948         * Makefile: New file.
61949
61950 2006-11-20  Jim Meyering  <jim@meyering.net>
61951
61952         The beginnings of syntax-related checks for gnulib.
61953         * lib/Makefile: New file.
61954         * lib/t-idcache: New script.  Ensure that the two halves of
61955         idcache.c stay in sync.
61956
61957         * lib/idcache.c: Adjust comments in user- and group- portions to
61958         be more accurate, and to be consistent with one another.
61959
61960 2006-11-20  Jim Meyering  <jim@meyering.net>
61961
61962         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61963         continue using the flexible array member (thus, this module performs
61964         half as many malloc calls), with the addition that...
61965         (getgroup, getuser): Consistently record a non-match via an empty
61966         "name" string, and map an empty string match to a NULL return value.
61967         * modules/idcache (Depends-on): Re-add flexmember.
61968
61969         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61970         (getuidbyname, getgroup, getgidbyname): Likewise.
61971
61972         Use cleaner syntax: NULL rather than 0.
61973         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61974
61975 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61978         It mishandled the case where the group was missing.
61979         Problem reported by Greg Schafer.
61980         * modules/idcache: Likewise.
61981
61982 2006-11-18  Jim Meyering  <jim@meyering.net>
61983
61984         * check-module (%exempt_header): Add exception for some
61985         conditionally-included headers.
61986
61987         * modules/i-ring (Depends-on): Add verify.
61988         (License): Change to LGPL.
61989
61990 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61991
61992         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61993         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61994         and inttostr.h.  Use snprintf rather than uinttostr, so that
61995         LGPLed code doesn't depend on GPLed.
61996
61997 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         * modules/inline (License): Change from GPL to LGPL.
62000
62001 2006-11-17  Jim Meyering  <jim@meyering.net>
62002
62003         * modules/d-type (License): Switch to LGPL.
62004
62005 2006-11-15  Bruno Haible  <bruno@clisp.org>
62006
62007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62008
62009 2006-11-15  Eric Blake  <ebb9@byu.net>
62010
62011         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62012         the module dependency.
62013
62014 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62015             Bruno Haible  <bruno@clisp.org>
62016
62017         * gnulib-tool (func_create_testdir): Add license consistency check.
62018
62019 2006-11-15  Eric Blake  <ebb9@byu.net>
62020
62021         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62022         random "(cached)" in configure output.
62023
62024 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62025
62026         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62027         test for conforming inttypes.h is both announced and cached.
62028
62029         * MODULES.html.sh (seen_modules, seen_files): New variables.
62030         (func_module): Rewrite to use a few less gnulib-tool and sed
62031         invocations.  Avoid a couple of quadratic algorithms for ...
62032         (missed_modules, missed_files): ... these, with ...
62033         (func_append, func_tmpdir): ... these new functions, from
62034         gnulib-tool.  Analogously, install traps for cleanup.
62035
62036         * tests/test-gc.c (main): Remove unused variables.
62037         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62038
62039 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * modules/inttostr (License): Change to LGPL.
62042
62043 2006-11-14  Eric Blake  <ebb9@byu.net>
62044
62045         * modules/tempname (License): Change to LGPL.
62046
62047 2006-11-14  Eric Blake  <ebb9@byu.net>
62048
62049         * doc/functions.texi (Function Portability): *printf functions on
62050         Cygwin now understand all POSIX size specifiers.
62051
62052 2006-11-14  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/c-ctype (License): Change to LGPL.
62055
62056 2006-11-12  Bruno Haible  <bruno@clisp.org>
62057
62058         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62059         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62060         for GNOME libraries, for which the include files are installed in
62061         subdirectories of $prefix/include.
62062
62063 2006-11-12  Bruno Haible  <bruno@clisp.org>
62064
62065         * m4/lib-link.m4: Require at least autoconf-2.54.
62066         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62067         name to underscores for the --with option.
62068
62069 2006-11-13  Bruno Haible  <bruno@clisp.org>
62070
62071         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62072         the tests directory.
62073         Reported by Ralf Wildenhues.
62074
62075 2006-11-13  Bruno Haible  <bruno@clisp.org>
62076
62077         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62078         (func_emit_initmacro_end): Undo the override here.
62079         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62080         Works around the famous automake error in coreutils.
62081
62082 2006-11-13  Eric Blake  <ebb9@byu.net>
62083
62084         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62085         element, not its node.
62086
62087 2006-11-12  Bruno Haible  <bruno@clisp.org>
62088
62089         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62090         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62091
62092 2006-11-12  Bruno Haible  <bruno@clisp.org>
62093
62094         * gnulib-tool: New option --local-symlink.
62095         (func_usage): Document it.
62096         (lsymbolic): New variable.
62097         (func_import, func_create_testdir): If --symlink was not specified,
62098         test whether --local-symlink was specified and the file comes from
62099         the local_gnulib_dir.
62100
62101 2006-11-12  Bruno Haible  <bruno@clisp.org>
62102
62103         * gnulib-tool (func_ln): New function.
62104         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62105
62106 2006-11-12  Bruno Haible  <bruno@clisp.org>
62107
62108         Finish support for source files in subdirectories.
62109         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62110         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62111         AUTOMAKE_OPTIONS.
62112         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62113
62114 2006-11-12  Bruno Haible  <bruno@clisp.org>
62115
62116         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62117         EXTRA_lib_SOURCES augmentation.
62118         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62119
62120 2006-11-12  Jim Meyering  <jim@meyering.net>
62121
62122         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62123         file descriptors.  This also averts a failure on systems with
62124         native openat support when a traversed directory lacks "x" access.
62125         * lib/fts_.h: Include "i-ring.h"
62126         (struct FTS) [fts_fd_ring]: New member.
62127         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62128         (FCHDIR): Add parentheses.
62129         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62130         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62131         When descending, rather than simply closing the previous
62132         fts_cwd_fd value, push that file descriptor onto the ring.
62133         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62134         (fts_open): Initialize the new fd_ring member.
62135         (fts_close): Clear the ring.
62136         (fts_safe_changedir): When possible, use our new fd_ring to skip
62137         the diropen and fstat and dev/ino comparison that would normally
62138         accompany a virtual `chdir ("..")'.
62139
62140         * modules/fts (Depends-on): Add i-ring.
62141         * modules/i-ring: New module.
62142         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62143         * m4/i-ring.m4: New file.
62144
62145 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62146
62147         * gnulib-tool (func_create_testdir): Fix replacement of
62148         `build-aux' in configure.ac.  Run autotools in gltests
62149         subdirectory.
62150         (func_create_testdir, func_create_megatestdir, test): There is
62151         no need for '--force' in most autotool invocations in a new
62152         tree.  Actually fail the whole test if any of the tools, or the
62153         configure or make stages fail.
62154
62155         Sync from Automake.
62156         * build-aux/gnupload: Revert last change.  Add pointer to upload
62157         instructions of the GNU Maintenance Instructions.
62158         Suggestion by Karl Berry.
62159
62160 2006-11-10  Jim Meyering  <jim@meyering.net>
62161
62162         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62163
62164 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62167         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62168         (bind_textdomain_codeset) [! ENABLE_NLS]:
62169         Evaluate all the arguments.  That way, callers get compatible behavior
62170         if the arguments have side effects.  Also, it avoids some GCC
62171         diagnostics in some cases; Joel E. Denny reported problems when Bison
62172         was configured with --enable-gcc-warnigs.
62173
62174 2006-11-10  Jim Meyering  <jim@meyering.net>
62175
62176         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62177         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62178         account.
62179
62180 2006-11-10  Jim Meyering  <jim@meyering.net>
62181
62182         * modules/inline: New file/module.
62183         * modules/xalloc (Files): Remove m4/inline.m4.
62184         (Depends-on): Add inline, instead.
62185         * modules/oset: Likewise.
62186         * modules/list: Likewise.
62187
62188 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62189
62190         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62191         Problem reported by Matthew Woehlke.
62192
62193 2006-11-09  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/tempname.c (gen_tempname): Remove variant that invokes
62196         __gen_tempname.
62197         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62198         __gen_tempname.
62199
62200 2006-11-08  Bruno Haible  <bruno@clisp.org>
62201
62202         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62203         to 'yes' instead of 'cross-compiling'.
62204
62205 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62206
62207         * lib/quotearg.h (quotearg_free): New decl.
62208         * lib/quotearg.c (quotearg_free): New function.
62209         (slot0, nslots, slotvec0, slotvec):
62210         Now file-scope so that quotearg_free can get at them.
62211
62212 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62213
62214         Sync from Automake.
62215         * build-aux/gnupload: Add missing 'gnu' to example URL.
62216         Report by Karl Berry.
62217
62218 2006-11-08  Bruno Haible  <bruno@clisp.org>
62219
62220         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62221         Suggested by Paul Eggert.
62222
62223 2006-11-08  Jim Meyering  <jim@meyering.net>
62224
62225         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62226         It's already included if !_LIBC.
62227         (fts_safe_changedir): Add a comment.
62228
62229 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62230
62231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62232         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62233         Matthew Woehlke.
62234
62235         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62236         definitions up, to avoid colliding with change below.
62237         (static_inline) [HAVE_INLINE]: New macro.
62238         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62239         Provide extern decls when !HAVE_INLINE.  Do not define unless
62240         static_inline is defined, either by us or by xmalloc.c.  Use
62241         static_inline rather than static inline.
62242         (XCALLOC): Optimize sizeof(T) = 1 case.
62243         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62244
62245 2006-11-07  Bruno Haible  <bruno@clisp.org>
62246
62247         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62249         AC_C_INLINE.
62250         * modules/xalloc (Files): Add m4/inline.m4.
62251
62252 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62253
62254         * README: Fix typo.
62255         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62256         (Miscellanous Notes): ...from this.
62257
62258 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62259
62260         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62261         Mention that offsetof should be used instead of sizeof.
62262         From Bruno Haible.
62263
62264 2006-11-07  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62267
62268 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62269
62270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62271         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62272         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62273         (gl_tree_add_before, gl_tree_add_after):
62274         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62275         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62276         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62277         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62278         (gl_linked_add_after, gl_linked_add_at): Likewise.
62279         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62280         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62281         (gl_tree_add_before, gl_tree_add_after): Likewise.
62282         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62283         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62284         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62285
62286 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62287
62288         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62289
62290 2006-11-06  Bruno Haible  <bruno@clisp.org>
62291
62292         * m4/inline.m4: New file.
62293         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62294         * modules/list (Files): Add m4/inline.m4.
62295         * modules/oset (Files): Likewise.
62296
62297 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         * lib/idcache.c: Include <stddef.h>, for offsetof.
62300         (struct userid.name): Change from char * to a flexible array member.
62301         All uses changed.
62302         * modules/idcache (Depends-on): Add flexmember.
62303
62304         * MODULES.html.sh (Core language properties): New module flexmember.
62305         * modules/flexmember, m4/flexmember.m4: New files.
62306
62307         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62308         inline functions that are identical with the old xnmalloc_inline,
62309         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62310         that we can avoid some unnecessary integer multiplications and
62311         divisions in the common case where the element size is known at
62312         compile time.
62313         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62314         needed.
62315         (xnboundedmalloc): Remove.
62316         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62317         arguments, for consistency with rest of this header.
62318         (xcharalloc): Rewrite using XNMALLOC.
62319         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62320         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62321         versions have been moved to lib/xalloc.h and renamed to be the
62322         non-*_inline versions.
62323         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62324         and xnrealloc functions, since those functions are now inline and
62325         now call us.
62326         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62327         renaming described above.
62328         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62329         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62330         captures the dependency in AC_C_INLINE.
62331
62332         New module canonicalize-lgpl, proposed by Charles Wilson in
62333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62334         with a few small changes afterwards.
62335         * MODULES.html.sh (File system functions): New module
62336         canonicalize-lgpl.
62337         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62338         and canonicalize_file_name.
62339         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62340         * modules/canonicalize-lgpl: New files.
62341
62342 2006-11-05  Bruno Haible  <bruno@clisp.org>
62343
62344         * gnulib-tool (func_import, func_create_testdir): Create directories
62345         also for files in subdirectories of lib/.
62346
62347 2006-11-05  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62350         ANSI C compliant.
62351
62352 2006-11-03  Bruno Haible  <bruno@clisp.org>
62353
62354         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62355         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62356         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62357         (xnboundedmalloc): New inline function.
62358         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62359         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62360         xmalloc.
62361         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62362         xmalloc.
62363         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62364         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62365         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62366         xmalloc.
62367         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62368         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62369         xmalloc.
62370         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62371         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62372         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62373         xmalloc.
62374         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62375         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62376         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62377         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62378         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62379         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62380         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62381
62382 2006-11-03  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/c-ctype.h [C++]: Define functions without name mangling.
62385         * lib/fwriteerror.h [C++]: Likewise.
62386         * lib/gcd.h [C++]: Likewise.
62387         * lib/linebreak.h [C++]: Likewise.
62388
62389 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62392         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62393         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62394         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62395         Check for functions and headers just once.
62396         Check for declaration of canonicalize_file_name.
62397         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62398
62399 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62400
62401         * gnulib-tool (func_import): Fix typo in actioncmd.
62402
62403 2006-11-02  Bruno Haible  <bruno@clisp.org>
62404
62405         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62406         newline sequence in the Makefile.am snippet as a space, like "make"
62407         does.
62408         Reported by Roger Persson <perrog@gmail.com>.
62409
62410 2006-11-01  Bruno Haible  <bruno@clisp.org>
62411
62412         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62413         already declared in <string.h>.
62414         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62415
62416 2006-11-01  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62419         * lib/strcase.h: Include <string.h>.
62420         (strcasecmp): Define to rpl_strcasecmp here.
62421
62422 2006-11-01  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62425
62426 2006-11-01  Eric Blake  <ebb9@byu.net>
62427
62428         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62429
62430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62431
62432 2006-10-29  Bruno Haible  <bruno@clisp.org>
62433
62434         Make it compile in C++ mode.
62435         * lib/full-write.c (full_rw): Add a cast.
62436
62437 2006-11-01  Bruno Haible  <bruno@clisp.org>
62438
62439         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62440         be POSIX compliant.
62441         Reported by Roger Persson <perrog@gmail.com>.
62442
62443 2006-11-01  Eric Blake  <ebb9@byu.net>
62444
62445         * lib/getopt_.h: Fix comments.
62446
62447 2006-10-31  Eric Blake  <ebb9@byu.net>
62448
62449         * modules/tmpdir (Depends-on): Add sys_stat.
62450         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62451         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62452         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62453         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62454         tempname.
62455
62456 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62457
62458         Avoid some C++ diagnostics reported by Bruno Haible.
62459         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62460         xmalloc.
62461         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62462         (struct slotvec): Move to top level.
62463         (quotearg_n_options): Rewrite to avoid xmalloc.
62464         * lib/xalloc.h (xcharalloc): New function.
62465         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62466         [defined __cplusplus]: Add function template that provides result
62467         type propagation.  This part of the change is from Bruno Haible.
62468
62469 2006-10-29  Bruno Haible  <bruno@clisp.org>
62470
62471         Make it compile in C++ mode.
62472         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62473         * lib/strnlen1.c (strnlen1): Cast memchr result.
62474         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62475         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62476         (create_temp_dir): Rename local variable 'template'.
62477         (compile_csharp_using_sscli): Add cast.
62478         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62479         * lib/findprog.c (find_in_path): Likewise.
62480         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62481         * lib/wait-process.c (register_slave_subprocess): Likewise.
62482
62483 2006-10-22  Bruno Haible  <bruno@clisp.org>
62484
62485         * modules/tsearch: New file.
62486         * lib/tsearch.h: New file.
62487         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62488         * m4/tsearch.m4: New file.
62489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62490
62491 2006-10-29  Eric Blake  <ebb9@byu.net>
62492
62493         * lib/arcfour.c: Assume config.h.
62494         * lib/arctwo.c: Likewise.
62495         * lib/base64.c: Likewise.
62496         * lib/check-version.c: Likewise.
62497         * lib/crc.c: Likewise.
62498         * lib/des.c: Likewise.
62499         * lib/gc-gnulib.c: Likewise.
62500         * lib/gc-libgcrypt.c: Likewise.
62501         * lib/gc-pbkdf2-sha1.c: Likewise.
62502         * lib/getaddrinfo.c: Likewise.
62503         * lib/getdelim.c: Likewise.
62504         * lib/getline.c: Likewise.
62505         * lib/hmac-md5.c: Likewise.
62506         * lib/hmac-sha1.c: Likewise.
62507         * lib/iconvme.c: Likewise.
62508         * lib/md2.c: Likewise.
62509         * lib/md4.c: Likewise.
62510         * lib/memxor.c: Likewise.
62511         * lib/read-file.c: Likewise.
62512         * lib/readline.c: Likewise.
62513         * lib/rijndael-alg-fst.c: Likewise.
62514         * lib/rijndael-api-fst.c: Likewise.
62515         * lib/xgetdomainname.c: Likewise.
62516
62517 2006-10-28  Eric Blake  <ebb9@byu.net>
62518
62519         * lib/xstrndup.c: Assume config.h.
62520
62521 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62524         stat-macros.h is now for our own macros, whereas stat_h is for
62525         macros in the <sys/stat.h> name space.
62526         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62527         (STAT_MACROS_H): Remove.
62528         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62529         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62530         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62531         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62532         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62533         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62534         Move these macros to ...
62535         * lib/stat_.h: here.  Don't include stat-macros.h.
62536         * lib/canonicalize.c: Don't include stat-macros.h.
62537         * lib/chown.c: Likewise.
62538         * lib/euidaccess.c: Likewise.
62539         * lib/file-type.c: Likewise.
62540         * lib/filemode.c: Likewise.
62541         * lib/glob.c: Likewise.
62542         * lib/isapipe.c: Likewise.
62543         * lib/lchown.c: Likewise.
62544         * lib/lstat.c: Likewise.
62545         * lib/mkdir-p.c: Likewise.
62546         * lib/rmdir.c: Likewise.
62547         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62549         unless mkdir isn't declared, to speed up 'configure'.
62550         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62551         would define all the S_* symbols.
62552         * modules/canonicalize (Depends-on):
62553         Depend on sys_stat, not stat-macros.
62554         * modules/chown: Likewise.
62555         * modules/euidaccess: Likewise.
62556         * modules/filemode: Likewise.
62557         * modules/file-type: Likewise.
62558         * modules/glob: Likewise.
62559         * modules/isapipe: Likewise.
62560         * modules/lchown: Likewise.
62561         * modules/lstat: Likewise.
62562         * modules/mkancesdirs: Likewise.
62563         * modules/rmdir: Likewise.
62564         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62565         * modules/modechange: Likewise.
62566         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62567         (configure.ac): Remove gl_STAT_MACROS.
62568         * modules/sys_stat (Depends-on): Remove stat-macros.
62569
62570 2006-10-27  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/signed.m4: Remove file.
62573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62574         invocation.
62575         * modules/vasnprintf (Files): Remove m4/signed.m4.
62576
62577 2006-10-27  Bruno Haible  <bruno@clisp.org>
62578
62579         Update to GNU gettext 0.16.
62580         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62581         m4/inttypes-h.m4, m4/signed.m4.
62582         * m4/gettext.m4: Update to GNU gettext 0.16.
62583         * m4/intl.m4: New file, from GNU gettext.
62584         * m4/intldir.m4: New file, from GNU gettext.
62585         * config/srclist.txt: Update
62586
62587 2006-10-27  Eric Blake  <ebb9@byu.net>
62588
62589         * MODULES.html.sh: Document tempname.
62590         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62591         dependencies.
62592         (Files): Move lib/tempname.c...
62593         * modules/tempname: ...to this new module.
62594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62595         (gl_PREREQ_TEMPNAME): Move...
62596         * m4/tempname.m4: ...to this new file.
62597         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62598         * modules/sys_stat (Depends-on): Add stat-macros.
62599         * lib/stat_.h (includes): Pick up stat macros.
62600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62601         if stat macros are broken.
62602         * lib/tempname.c (includes): No need to include "stat-macros.h".
62603         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62604         (direxists, __path_search) [!_LIBC]: Don't compile these in
62605         gnulib; the tmpdir module covers that.
62606         * lib/tempname.h: New file.
62607
62608 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         * COPYING: Explain how gnulib-tool converts licence headers.
62611         Almost all wording by Eric Blake.
62612
62613 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * lib/mbchar.h (is_basic_table): Make read-only.
62616         * lib/mbchar.c (is_basic_table): Likewise.
62617         Reported by John Darrington.
62618
62619 2006-10-25  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/progname.h (set_program_name): Undefine before defining.
62622
62623 2006-10-25  Bruno Haible  <bruno@clisp.org>
62624
62625         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62626         false for non-gcc C++ compilers.
62627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62628
62629 2006-10-24  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62632         iconv implementations like Irix iconv.
62633
62634 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62635
62636         * modules/vararrays: New file.
62637         * m4/vararrays.m4: New file, taken from diffutils.
62638         * MODULES.html.sh: New module vararrays.
62639
62640 2006-10-24  Karl Berry  <karl@gnu.org>
62641
62642         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62643         Don't call GNU Unix.
62644
62645 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62646
62647         * users.txt: Add Libtool.
62648
62649         Sync from Libtool:
62650
62651         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62652
62653         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62654         to gnulib's policy of including config.h unconditionally.
62655
62656 2006-10-24  Bruno Haible  <bruno@clisp.org>
62657
62658         * modules/wcwidth (Files): Add m4/wint_t.m4.
62659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62660         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62661
62662 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62663
62664         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62665         to pacify GCC with some -W flags enabled.  Problem reported by
62666         Bruno Haible.
62667
62668 2006-10-24  Jim Meyering  <jim@meyering.net>
62669
62670         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62671         Reported by Karl Berry.
62672
62673 2006-10-23  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62676
62677 2006-10-24  Bruno Haible  <bruno@clisp.org>
62678
62679         * lib/gl_list.h: Use C comment style, not C++ comment style.
62680
62681 2006-10-23  Eric Blake  <ebb9@byu.net>
62682
62683         * lib/getaddrinfo.c (includes): Add missing include.
62684
62685 2006-10-23  Bruno Haible  <bruno@clisp.org>
62686             Paul Eggert  <eggert@cs.ucla.edu>
62687
62688         Ability to rename obstack_free.
62689         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62690         obstack_free.
62691         (obstack_free): Invoke the __obstack_free macro.
62692         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62693
62694 2006-10-23  Bruno Haible  <bruno@clisp.org>
62695             Paul Eggert  <eggert@cs.ucla.edu>
62696
62697         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62698         __argc, __argv from the declaration. (They are defined as macros on
62699         mingw.)
62700
62701 2006-10-22  Bruno Haible  <bruno@clisp.org>
62702
62703         * doc/gnulib-intro.texi: New file.
62704         * doc/gnulib.texi: Include it.
62705
62706 2006-10-21  Bruno Haible  <bruno@clisp.org>
62707
62708         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62709         "Introduction", "Miscellanous Notes", "Particular Modules".
62710
62711 2006-10-21  Bruno Haible  <bruno@clisp.org>
62712
62713         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62714         Change mostlyclean-local rule to avoid sh syntax error from bash
62715         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62716
62717 2006-10-23  Jim Meyering  <jim@meyering.net>
62718
62719         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62720         in place of snprintf.
62721
62722         * modules/inttostr (Files): Add lib/uinttostr.c.
62723         * lib/uinttostr.c (inttostr): New file/function.
62724         * lib/inttostr.h (uinttostr): Declare.
62725         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62726         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62727         Add uinttostr.
62728         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62729
62730 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62731
62732         * lib/canonicalize.c (ELOOP): Define if not already defined.
62733         Problem reported by Bruno Haible in
62734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62735
62736 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62737
62738         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62739         Problem reported by Perry Smith and Ville Laurikari.
62740
62741         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62742         uses.
62743
62744 2006-10-19  Bruno Haible  <bruno@clisp.org>
62745
62746         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62747         for mingw.
62748
62749 2006-10-19  Bruno Haible  <bruno@clisp.org>
62750
62751         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62752         Needed for mingw.
62753
62754 2006-10-19  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62757
62758 2006-10-19  Bruno Haible  <bruno@clisp.org>
62759
62760         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62761         it.
62762
62763 2006-10-19  Bruno Haible  <bruno@clisp.org>
62764
62765         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62766         invocation.
62767
62768 2006-10-19  Bruno Haible  <bruno@clisp.org>
62769
62770         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62771         mountlist by default.
62772
62773 2006-10-16  Bruno Haible  <bruno@clisp.org>
62774
62775         * lib/c-strstr.c: Include c-strstr.h.
62776
62777 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62778
62779         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62780         in a slash.
62781
62782 2006-10-18  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/lock.h [C++]: Wrap definitions in extern "C".
62785
62786 2006-10-18  Bruno Haible  <bruno@clisp.org>
62787
62788         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62789         gl_LIBOBJS list.
62790
62791 2006-10-18  Bruno Haible  <bruno@clisp.org>
62792
62793         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62794
62795 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * lib/xstrtol.h: Include gettext.h.
62798         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62799         Problem reported by Eric Blake.
62800         * modules/xstrtol (Depends-on): Add gettext-h.
62801
62802 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62803
62804         * lib/strftime.c (advance): New macro.
62805         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62806         incomplete type, so you can't add 0 to it.  Problem and patch
62807         reported by Eelco Dolstra for dietlibc.
62808
62809 2006-10-18  Jim Meyering  <jim@meyering.net>
62810
62811         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62812         type for a local, and rename it: s/up/user_proc/.
62813
62814 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62815
62816         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62817         READ_UTMP_USER_PROCESS.
62818         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62819
62820 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62823         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62824
62825 2006-10-17  Eric Blake  <ebb9@byu.net>
62826
62827         * lib/sigprocmask.c (sigprocmask): Fix typo.
62828
62829         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62830
62831         * modules/clean-temp (Makefile.am): Don't add to make output...
62832         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62833         config.h.
62834
62835 2006-10-17  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62838         differently if DEFAULT_TEXT_DOMAIN is set.
62839
62840 2006-10-16  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/clean-temp.c: Include fwriteerror.h.
62843
62844 2006-10-16  Bruno Haible  <bruno@clisp.org>
62845
62846         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62847
62848 2006-10-16  Bruno Haible  <bruno@clisp.org>
62849
62850         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62851         * lib/sigprocmask.h: Include <sys/types.h>.
62852         (sigset_t): Use the system's definition if present.
62853
62854 2006-10-17  Eric Blake  <ebb9@byu.net>
62855
62856         * lib/xvasprintf.c (includes): Assume config.h.
62857         * lib/xasprintf.c (includes): Likewise.
62858
62859 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62862         at least as wide as intmax_t.
62863
62864 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62865
62866         (Imported from Automake.)
62867         * build-aux/gnupload: Update to version 1.1 of directive file.
62868
62869 2006-10-16  Eric Blake  <ebb9@byu.net>
62870
62871         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62872         match Automake 1.10a.
62873
62874 2006-10-14  Bruno Haible  <bruno@clisp.org>
62875
62876         * modules/sigprocmask: New file.
62877         * lib/sigprocmask.h: New file.
62878         * lib/sigprocmask.c: New file.
62879         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62880         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62881         request sigprocmask.o.
62882         (gl_PREREQ_SIGPROCMASK): New macro.
62883         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62884         (Depends-on): Add sigprocmask.
62885         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62886         gt_SIGNALBLOCKING. Test for 'raise' only once.
62887         * lib/fatal-signal.c: Include sigprocmask.h.
62888         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62889         unblock_fatal_signals): Define always.
62890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62891         sigprocmask.
62892
62893 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62894
62895         Sync from Automake.
62896         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62897         which incorrectly sets the mode of an existing destination
62898         directory.  In some cases the unpatched install-sh could do the
62899         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62900         system.  We hope this is rare in practice, but it's clearly worth
62901         fixing.  Problem reported by Alex Unleashed in
62902         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62903         Also, don't bother to check for -m bugs unless we're using -m;
62904         suggested by Stepan Kasal.
62905
62906 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62907
62908         Sync from Automake.
62909         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62910         `-c' flag, so they appear at the same position as in %FASTDEP%
62911         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62912         which ignores unknown options only after the first non-option.
62913         Bug report against M4 by Nelson H. F. Beebe.
62914
62915 2006-10-13  Jim Meyering  <jim@meyering.net>
62916
62917         Fix a bug in yesterday's change.
62918         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62919         p->fts_statp->st_dev would be used uninitialized.
62920         Ensures that we always call fts_stat on the very first entry.
62921         Miklos Szeredi reported that find -xdev stopped working.
62922
62923 2006-10-12  Bruno Haible  <bruno@clisp.org>
62924
62925         * gnulib-tool (func_get_automake_snippet): Append an automatically
62926         computed EXTRA_DIST augmentation.
62927         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62928         * modules/alloca-opt (Makefile.am): Likewise.
62929         * modules/allocsa (Makefile.am): Likewise.
62930         * modules/arcfour (Makefile.am): Likewise.
62931         * modules/arctwo (Makefile.am): Likewise.
62932         * modules/argmatch (Makefile.am): Likewise.
62933         * modules/argz (Makefile.am): Likewise.
62934         * modules/atexit (Makefile.am): Likewise.
62935         * modules/backupfile (Makefile.am): Likewise.
62936         * modules/byteswap (Makefile.am): Likewise.
62937         * modules/c-strtod (Makefile.am): Likewise.
62938         * modules/c-strtold (Makefile.am): Likewise.
62939         * modules/calloc (Makefile.am): Likewise.
62940         * modules/canon-host (Makefile.am): Likewise.
62941         * modules/canonicalize (Makefile.am): Likewise.
62942         * modules/chdir-long (Makefile.am): Likewise.
62943         * modules/chdir-safer (Makefile.am): Likewise.
62944         * modules/check-version (Makefile.am): Likewise.
62945         * modules/chown (Makefile.am): Likewise.
62946         * modules/cloexec (Makefile.am): Likewise.
62947         * modules/close-stream (Makefile.am): Likewise.
62948         * modules/closeout (Makefile.am): Likewise.
62949         * modules/crc (Makefile.am): Likewise.
62950         * modules/csharpexec (Makefile.am): Likewise.
62951         * modules/cycle-check (Makefile.am): Likewise.
62952         * modules/des (Makefile.am): Likewise.
62953         * modules/dev-ino (Makefile.am): Likewise.
62954         * modules/dirfd (Makefile.am): Likewise.
62955         * modules/dirname (Makefile.am): Likewise.
62956         * modules/dup2 (Makefile.am): Likewise.
62957         * modules/eealloc (Makefile.am): Likewise.
62958         * modules/error (Makefile.am): Likewise.
62959         * modules/euidaccess (Makefile.am): Likewise.
62960         * modules/exclude (Makefile.am): Likewise.
62961         * modules/exitfail (Makefile.am): Likewise.
62962         * modules/fcntl-safer (Makefile.am): Likewise.
62963         * modules/fcntl (Makefile.am): Likewise.
62964         * modules/file-type (Makefile.am): Likewise.
62965         * modules/fileblocks (Makefile.am): Likewise.
62966         * modules/filemode (Makefile.am): Likewise.
62967         * modules/filenamecat (Makefile.am): Likewise.
62968         * modules/fnmatch (Makefile.am): Likewise.
62969         * modules/fopen-safer (Makefile.am): Likewise.
62970         * modules/fpending (Makefile.am): Likewise.
62971         * modules/fprintftime (Makefile.am): Likewise.
62972         * modules/free (Makefile.am): Likewise.
62973         * modules/fsusage (Makefile.am): Likewise.
62974         * modules/ftruncate (Makefile.am): Likewise.
62975         * modules/fts (Makefile.am): Likewise.
62976         * modules/gc-arcfour (Makefile.am): Likewise.
62977         * modules/gc-des (Makefile.am): Likewise.
62978         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62979         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62980         * modules/gc-md4 (Makefile.am): Likewise.
62981         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62982         * modules/gc-sha1 (Makefile.am): Likewise.
62983         * modules/gc (Makefile.am): Likewise.
62984         * modules/getaddrinfo (Makefile.am): Likewise.
62985         * modules/getcwd (Makefile.am): Likewise.
62986         * modules/getdelim (Makefile.am): Likewise.
62987         * modules/getdomainname (Makefile.am): Likewise.
62988         * modules/getgroups (Makefile.am): Likewise.
62989         * modules/gethostname (Makefile.am): Likewise.
62990         * modules/gethrxtime (Makefile.am): Likewise.
62991         * modules/getline (Makefile.am): Likewise.
62992         * modules/getloadavg (Makefile.am): Likewise.
62993         * modules/getlogin_r (Makefile.am): Likewise.
62994         * modules/getndelim2 (Makefile.am): Likewise.
62995         * modules/getopt (Makefile.am): Likewise.
62996         * modules/getpagesize (Makefile.am): Likewise.
62997         * modules/getpass-gnu (Makefile.am): Likewise.
62998         * modules/getpass (Makefile.am): Likewise.
62999         * modules/getsubopt (Makefile.am): Likewise.
63000         * modules/gettime (Makefile.am): Likewise.
63001         * modules/gettimeofday (Makefile.am): Likewise.
63002         * modules/getugroups (Makefile.am): Likewise.
63003         * modules/getusershell (Makefile.am): Likewise.
63004         * modules/glob (Makefile.am): Likewise.
63005         * modules/group-member (Makefile.am): Likewise.
63006         * modules/hard-locale (Makefile.am): Likewise.
63007         * modules/hash (Makefile.am): Likewise.
63008         * modules/hmac-md5 (Makefile.am): Likewise.
63009         * modules/hmac-sha1 (Makefile.am): Likewise.
63010         * modules/human (Makefile.am): Likewise.
63011         * modules/idcache (Makefile.am): Likewise.
63012         * modules/imaxabs (Makefile.am): Likewise.
63013         * modules/imaxdiv (Makefile.am): Likewise.
63014         * modules/inet_ntop (Makefile.am): Likewise.
63015         * modules/inet_pton (Makefile.am): Likewise.
63016         * modules/intprops (Makefile.am): Likewise.
63017         * modules/inttostr (Makefile.am): Likewise.
63018         * modules/inttypes (Makefile.am): Likewise.
63019         * modules/isapipe (Makefile.am): Likewise.
63020         * modules/javaversion (Makefile.am): Likewise.
63021         * modules/lchmod (Makefile.am): Likewise.
63022         * modules/lchown (Makefile.am): Likewise.
63023         * modules/localcharset (Makefile.am): Likewise.
63024         * modules/long-options (Makefile.am): Likewise.
63025         * modules/lstat (Makefile.am): Likewise.
63026         * modules/malloc (Makefile.am): Likewise.
63027         * modules/mathl (Makefile.am): Likewise.
63028         * modules/mbchar (Makefile.am): Likewise.
63029         * modules/md2 (Makefile.am): Likewise.
63030         * modules/md4 (Makefile.am): Likewise.
63031         * modules/md5 (Makefile.am): Likewise.
63032         * modules/memcasecmp (Makefile.am): Likewise.
63033         * modules/memchr (Makefile.am): Likewise.
63034         * modules/memcmp (Makefile.am): Likewise.
63035         * modules/memcoll (Makefile.am): Likewise.
63036         * modules/memcpy (Makefile.am): Likewise.
63037         * modules/memmem (Makefile.am): Likewise.
63038         * modules/memmove (Makefile.am): Likewise.
63039         * modules/mempcpy (Makefile.am): Likewise.
63040         * modules/memrchr (Makefile.am): Likewise.
63041         * modules/memset (Makefile.am): Likewise.
63042         * modules/memxor (Makefile.am): Likewise.
63043         * modules/mkancesdirs (Makefile.am): Likewise.
63044         * modules/mkdir-p (Makefile.am): Likewise.
63045         * modules/mkdir (Makefile.am): Likewise.
63046         * modules/mkdtemp (Makefile.am): Likewise.
63047         * modules/mkstemp (Makefile.am): Likewise.
63048         * modules/mktime (Makefile.am): Likewise.
63049         * modules/modechange (Makefile.am): Likewise.
63050         * modules/mountlist (Makefile.am): Likewise.
63051         * modules/nanosleep (Makefile.am): Likewise.
63052         * modules/obstack (Makefile.am): Likewise.
63053         * modules/openat (Makefile.am): Likewise.
63054         * modules/pagealign_alloc (Makefile.am): Likewise.
63055         * modules/pathmax (Makefile.am): Likewise.
63056         * modules/physmem (Makefile.am): Likewise.
63057         * modules/poll (Makefile.am): Likewise.
63058         * modules/posixtm (Makefile.am): Likewise.
63059         * modules/posixver (Makefile.am): Likewise.
63060         * modules/putenv (Makefile.am): Likewise.
63061         * modules/quote (Makefile.am): Likewise.
63062         * modules/quotearg (Makefile.am): Likewise.
63063         * modules/raise (Makefile.am): Likewise.
63064         * modules/read-file (Makefile.am): Likewise.
63065         * modules/readline (Makefile.am): Likewise.
63066         * modules/readlink (Makefile.am): Likewise.
63067         * modules/readtokens (Makefile.am): Likewise.
63068         * modules/readutmp (Makefile.am): Likewise.
63069         * modules/realloc (Makefile.am): Likewise.
63070         * modules/regex (Makefile.am): Likewise.
63071         * modules/rename-dest-slash (Makefile.am): Likewise.
63072         * modules/rename (Makefile.am): Likewise.
63073         * modules/rijndael (Makefile.am): Likewise.
63074         * modules/rmdir (Makefile.am): Likewise.
63075         * modules/rpmatch (Makefile.am): Likewise.
63076         * modules/safe-read (Makefile.am): Likewise.
63077         * modules/safe-write (Makefile.am): Likewise.
63078         * modules/same-inode (Makefile.am): Likewise.
63079         * modules/same (Makefile.am): Likewise.
63080         * modules/save-cwd (Makefile.am): Likewise.
63081         * modules/savedir (Makefile.am): Likewise.
63082         * modules/setenv (Makefile.am): Likewise.
63083         * modules/settime (Makefile.am): Likewise.
63084         * modules/sha1 (Makefile.am): Likewise.
63085         * modules/sig2str (Makefile.am): Likewise.
63086         * modules/snprintf (Makefile.am): Likewise.
63087         * modules/stat-macros (Makefile.am): Likewise.
63088         * modules/stat-time (Makefile.am): Likewise.
63089         * modules/stdbool (Makefile.am): Likewise.
63090         * modules/stdint (Makefile.am): Likewise.
63091         * modules/stdlib-safer (Makefile.am): Likewise.
63092         * modules/stpcpy (Makefile.am): Likewise.
63093         * modules/stpncpy (Makefile.am): Likewise.
63094         * modules/strcase (Makefile.am): Likewise.
63095         * modules/strcasestr (Makefile.am): Likewise.
63096         * modules/strchrnul (Makefile.am): Likewise.
63097         * modules/strcspn (Makefile.am): Likewise.
63098         * modules/strdup (Makefile.am): Likewise.
63099         * modules/strerror (Makefile.am): Likewise.
63100         * modules/strftime (Makefile.am): Likewise.
63101         * modules/strndup (Makefile.am): Likewise.
63102         * modules/strnlen (Makefile.am): Likewise.
63103         * modules/strpbrk (Makefile.am): Likewise.
63104         * modules/strsep (Makefile.am): Likewise.
63105         * modules/strstr (Makefile.am): Likewise.
63106         * modules/strtod (Makefile.am): Likewise.
63107         * modules/strtoimax (Makefile.am): Likewise.
63108         * modules/strtok_r (Makefile.am): Likewise.
63109         * modules/strtol (Makefile.am): Likewise.
63110         * modules/strtoll (Makefile.am): Likewise.
63111         * modules/strtoul (Makefile.am): Likewise.
63112         * modules/strtoull (Makefile.am): Likewise.
63113         * modules/strtoumax (Makefile.am): Likewise.
63114         * modules/strverscmp (Makefile.am): Likewise.
63115         * modules/sys_socket (Makefile.am): Likewise.
63116         * modules/sys_stat (Makefile.am): Likewise.
63117         * modules/sysexits (Makefile.am): Likewise.
63118         * modules/time_r (Makefile.am): Likewise.
63119         * modules/timegm (Makefile.am): Likewise.
63120         * modules/timespec (Makefile.am): Likewise.
63121         * modules/tmpfile-safer (Makefile.am): Likewise.
63122         * modules/trim (Makefile.am): Likewise.
63123         * modules/unistd-safer (Makefile.am): Likewise.
63124         * modules/unlinkdir (Makefile.am): Likewise.
63125         * modules/unlocked-io (Makefile.am): Likewise.
63126         * modules/userspec (Makefile.am): Likewise.
63127         * modules/utime (Makefile.am): Likewise.
63128         * modules/utimecmp (Makefile.am): Likewise.
63129         * modules/utimens (Makefile.am): Likewise.
63130         * modules/vasnprintf (Makefile.am): Likewise.
63131         * modules/vasprintf (Makefile.am): Likewise.
63132         * modules/vsnprintf (Makefile.am): Likewise.
63133         * modules/xalloc (Makefile.am): Likewise.
63134         * modules/xgetcwd (Makefile.am): Likewise.
63135         * modules/xnanosleep (Makefile.am): Likewise.
63136         * modules/xreadlink (Makefile.am): Likewise.
63137         * modules/xstrtod (Makefile.am): Likewise.
63138         * modules/xstrtol (Makefile.am): Likewise.
63139         * modules/xstrtold (Makefile.am): Likewise.
63140         * modules/yesno (Makefile.am): Likewise.
63141         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63142
63143 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63144
63145         * modules/error (Makefile.am): Distribute files through
63146         EXTRA_DIST, not lib_SOURCES.
63147
63148 2006-10-12  Eric Blake  <ebb9@byu.net>
63149
63150         * modules/error (Makefile.am): Distribute files in /lib.
63151         * modules/obstack (Makefile.am): Likewise.
63152
63153 2006-10-12  Bruno Haible  <bruno@clisp.org>
63154
63155         * modules/acl (Makefile.am): Distribute all files in lib/ through
63156         EXTRA_DIST.
63157         * modules/arcfour (Makefile.am): Likewise.
63158         * modules/arctwo (Makefile.am): Likewise.
63159         * modules/argmatch (Makefile.am): Likewise.
63160         * modules/argz (Makefile.am): Likewise.
63161         * modules/atexit (Makefile.am): Likewise.
63162         * modules/backupfile (Makefile.am): Likewise.
63163         * modules/c-strtod (Makefile.am): Likewise.
63164         * modules/c-strtold (Makefile.am): Likewise.
63165         * modules/calloc (Makefile.am): Likewise.
63166         * modules/canon-host (Makefile.am): Likewise.
63167         * modules/canonicalize (Makefile.am): Likewise.
63168         * modules/chdir-long (Makefile.am): Likewise.
63169         * modules/chdir-safer (Makefile.am): Likewise.
63170         * modules/check-version (Makefile.am): Likewise.
63171         * modules/chown (Makefile.am): Likewise.
63172         * modules/cloexec (Makefile.am): Likewise.
63173         * modules/close-stream (Makefile.am): Likewise.
63174         * modules/closeout (Makefile.am): Likewise.
63175         * modules/crc (Makefile.am): Likewise.
63176         * modules/cycle-check (Makefile.am): Likewise.
63177         * modules/des (Makefile.am): Likewise.
63178         * modules/dirfd (Makefile.am): Likewise.
63179         * modules/dirname (Makefile.am): Likewise.
63180         * modules/dup2 (Makefile.am): Likewise.
63181         * modules/euidaccess (Makefile.am): Likewise.
63182         * modules/exclude (Makefile.am): Likewise.
63183         * modules/exitfail (Makefile.am): Likewise.
63184         * modules/fcntl-safer (Makefile.am): Likewise.
63185         * modules/file-type (Makefile.am): Likewise.
63186         * modules/fileblocks (Makefile.am): Likewise.
63187         * modules/filemode (Makefile.am): Likewise.
63188         * modules/filenamecat (Makefile.am): Likewise.
63189         * modules/fnmatch (Makefile.am): Likewise.
63190         * modules/fopen-safer (Makefile.am): Likewise.
63191         * modules/fpending (Makefile.am): Likewise.
63192         * modules/fprintftime (Makefile.am): Likewise.
63193         * modules/free (Makefile.am): Likewise.
63194         * modules/fsusage (Makefile.am): Likewise.
63195         * modules/ftruncate (Makefile.am): Likewise.
63196         * modules/fts (Makefile.am): Likewise.
63197         * modules/gc (Makefile.am): Likewise.
63198         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63199         * modules/getaddrinfo (Makefile.am): Likewise.
63200         * modules/getcwd (Makefile.am): Likewise.
63201         * modules/getdelim (Makefile.am): Likewise.
63202         * modules/getdomainname (Makefile.am): Likewise.
63203         * modules/getgroups (Makefile.am): Likewise.
63204         * modules/gethostname (Makefile.am): Likewise.
63205         * modules/gethrxtime (Makefile.am): Likewise.
63206         * modules/getline (Makefile.am): Likewise.
63207         * modules/getloadavg (Makefile.am): Likewise.
63208         * modules/getlogin_r (Makefile.am): Likewise.
63209         * modules/getopt (Makefile.am): Likewise.
63210         * modules/getpass (Makefile.am): Likewise.
63211         * modules/getpass-gnu (Makefile.am): Likewise.
63212         * modules/getsubopt (Makefile.am): Likewise.
63213         * modules/gettime (Makefile.am): Likewise.
63214         * modules/gettimeofday (Makefile.am): Likewise.
63215         * modules/getugroups (Makefile.am): Likewise.
63216         * modules/getusershell (Makefile.am): Likewise.
63217         * modules/glob (Makefile.am): Likewise.
63218         * modules/group-member (Makefile.am): Likewise.
63219         * modules/hard-locale (Makefile.am): Likewise.
63220         * modules/hash (Makefile.am): Likewise.
63221         * modules/hmac-md5 (Makefile.am): Likewise.
63222         * modules/hmac-sha1 (Makefile.am): Likewise.
63223         * modules/human (Makefile.am): Likewise.
63224         * modules/idcache (Makefile.am): Likewise.
63225         * modules/imaxabs (Makefile.am): Likewise.
63226         * modules/imaxdiv (Makefile.am): Likewise.
63227         * modules/inet_ntop (Makefile.am): Likewise.
63228         * modules/inet_pton (Makefile.am): Likewise.
63229         * modules/inttostr (Makefile.am): Likewise.
63230         * modules/isapipe (Makefile.am): Likewise.
63231         * modules/lchown (Makefile.am): Likewise.
63232         * modules/long-options (Makefile.am): Likewise.
63233         * modules/lstat (Makefile.am): Likewise.
63234         * modules/malloc (Makefile.am): Likewise.
63235         * modules/mathl (Makefile.am): Likewise.
63236         * modules/mbchar (Makefile.am): Likewise.
63237         * modules/md2 (Makefile.am): Likewise.
63238         * modules/md4 (Makefile.am): Likewise.
63239         * modules/md5 (Makefile.am): Likewise.
63240         * modules/memcasecmp (Makefile.am): Likewise.
63241         * modules/memchr (Makefile.am): Likewise.
63242         * modules/memcmp (Makefile.am): Likewise.
63243         * modules/memcoll (Makefile.am): Likewise.
63244         * modules/memcpy (Makefile.am): Likewise.
63245         * modules/memmem (Makefile.am): Likewise.
63246         * modules/memmove (Makefile.am): Likewise.
63247         * modules/mempcpy (Makefile.am): Likewise.
63248         * modules/memrchr (Makefile.am): Likewise.
63249         * modules/memset (Makefile.am): Likewise.
63250         * modules/memxor (Makefile.am): Likewise.
63251         * modules/mkancesdirs (Makefile.am): Likewise.
63252         * modules/mkdir (Makefile.am): Likewise.
63253         * modules/mkdir-p (Makefile.am): Likewise.
63254         * modules/mkdtemp (Makefile.am): Likewise.
63255         * modules/mkstemp (Makefile.am): Likewise.
63256         * modules/mktime (Makefile.am): Likewise.
63257         * modules/modechange (Makefile.am): Likewise.
63258         * modules/mountlist (Makefile.am): Likewise.
63259         * modules/nanosleep (Makefile.am): Likewise.
63260         * modules/openat (Makefile.am): Likewise.
63261         * modules/pagealign_alloc (Makefile.am): Likewise.
63262         * modules/physmem (Makefile.am): Likewise.
63263         * modules/poll (Makefile.am): Likewise.
63264         * modules/posixtm (Makefile.am): Likewise.
63265         * modules/posixver (Makefile.am): Likewise.
63266         * modules/putenv (Makefile.am): Likewise.
63267         * modules/quote (Makefile.am): Likewise.
63268         * modules/quotearg (Makefile.am): Likewise.
63269         * modules/raise (Makefile.am): Likewise.
63270         * modules/read-file (Makefile.am): Likewise.
63271         * modules/readline (Makefile.am): Likewise.
63272         * modules/readlink (Makefile.am): Likewise.
63273         * modules/readtokens (Makefile.am): Likewise.
63274         * modules/readutmp (Makefile.am): Likewise.
63275         * modules/realloc (Makefile.am): Likewise.
63276         * modules/regex (Makefile.am): Likewise.
63277         * modules/rename (Makefile.am): Likewise.
63278         * modules/rename-dest-slash (Makefile.am): Likewise.
63279         * modules/rijndael (Makefile.am): Likewise.
63280         * modules/rmdir (Makefile.am): Likewise.
63281         * modules/rpmatch (Makefile.am): Likewise.
63282         * modules/safe-read (Makefile.am): Likewise.
63283         * modules/safe-write (Makefile.am): Likewise.
63284         * modules/same (Makefile.am): Likewise.
63285         * modules/save-cwd (Makefile.am): Likewise.
63286         * modules/savedir (Makefile.am): Likewise.
63287         * modules/setenv (Makefile.am): Likewise.
63288         * modules/settime (Makefile.am): Likewise.
63289         * modules/sha1 (Makefile.am): Likewise.
63290         * modules/sig2str (Makefile.am): Likewise.
63291         * modules/snprintf (Makefile.am): Likewise.
63292         * modules/stdlib-safer (Makefile.am): Likewise.
63293         * modules/stpcpy (Makefile.am): Likewise.
63294         * modules/stpncpy (Makefile.am): Likewise.
63295         * modules/strcase (Makefile.am): Likewise.
63296         * modules/strcasestr (Makefile.am): Likewise.
63297         * modules/strchrnul (Makefile.am): Likewise.
63298         * modules/strcspn (Makefile.am): Likewise.
63299         * modules/strdup (Makefile.am): Likewise.
63300         * modules/strerror (Makefile.am): Likewise.
63301         * modules/strftime (Makefile.am): Likewise.
63302         * modules/strndup (Makefile.am): Likewise.
63303         * modules/strnlen (Makefile.am): Likewise.
63304         * modules/strpbrk (Makefile.am): Likewise.
63305         * modules/strsep (Makefile.am): Likewise.
63306         * modules/strstr (Makefile.am): Likewise.
63307         * modules/strtod (Makefile.am): Likewise.
63308         * modules/strtoimax (Makefile.am): Likewise.
63309         * modules/strtok_r (Makefile.am): Likewise.
63310         * modules/strtol (Makefile.am): Likewise.
63311         * modules/strtoll (Makefile.am): Likewise.
63312         * modules/strtoul (Makefile.am): Likewise.
63313         * modules/strtoull (Makefile.am): Likewise.
63314         * modules/strtoumax (Makefile.am): Likewise.
63315         * modules/strverscmp (Makefile.am): Likewise.
63316         * modules/time_r (Makefile.am): Likewise.
63317         * modules/timegm (Makefile.am): Likewise.
63318         * modules/tmpfile-safer (Makefile.am): Likewise.
63319         * modules/unistd-safer (Makefile.am): Likewise.
63320         * modules/unlinkdir (Makefile.am): Likewise.
63321         * modules/userspec (Makefile.am): Likewise.
63322         * modules/utime (Makefile.am): Likewise.
63323         * modules/utimecmp (Makefile.am): Likewise.
63324         * modules/utimens (Makefile.am): Likewise.
63325         * modules/vasnprintf (Makefile.am): Likewise.
63326         * modules/vasprintf (Makefile.am): Likewise.
63327         * modules/vsnprintf (Makefile.am): Likewise.
63328         * modules/xalloc (Makefile.am): Likewise.
63329         * modules/xgetcwd (Makefile.am): Likewise.
63330         * modules/xnanosleep (Makefile.am): Likewise.
63331         * modules/xreadlink (Makefile.am): Likewise.
63332         * modules/xstrtod (Makefile.am): Likewise.
63333         * modules/xstrtol (Makefile.am): Likewise.
63334         * modules/xstrtold (Makefile.am): Likewise.
63335         * modules/yesno (Makefile.am): Likewise.
63336
63337 2006-10-12  Jim Meyering  <jim@meyering.net>
63338
63339         * m4/getloadavg.m4: Revert the change below.
63340
63341         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63342         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63343         fail with a symlink, which is what coreutils' ./bootstrap now
63344         creates by default.
63345
63346 2006-10-12  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63349         mingw.
63350         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63351         MSVC and mingw explicitly.
63352
63353 2006-10-11  Simon Josefsson  <jas@extundo.com>
63354             Bruno Haible  <bruno@clisp.org>
63355
63356         Add support for multiple gnulib-tool invocations in the scope of a
63357         single configure.ac file.
63358         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63359         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63360         with the same contents as the _LIBADD variable.
63361         (func_emit_initmacro_start, func_emit_initmacro_end,
63362         func_emit_initmacro_done): New functions.
63363         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63364         gl_LIBOBJS and gl_LTLIBOBJS.
63365
63366 2006-10-11  Bruno Haible  <bruno@clisp.org>
63367
63368         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63369         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63370         autoreconf. Instead, invoke autopoint explicitly but move back the
63371         *.m4 files from gnulib.
63372
63373 2006-10-11  Bruno Haible  <bruno@clisp.org>
63374
63375         * gnulib-tool (func_usage): Make module names after --create-testdir
63376         optional.
63377         (func_create_testdir): If no module was specified, use nearly all
63378         modules.
63379
63380 2006-10-12  Jim Meyering  <jim@meyering.net>
63381
63382         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63383         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63384         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63385         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63386         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63387         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63388         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63389         (fts_set_stat_required): New function.
63390         (fts_open): Defer the calls to fts_stat, if possible or requested.
63391         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63392         into fts_stat itself.
63393         (fts_read): Perform any required (deferred) fts_stat call.
63394         (fts_build): Likewise, for the directory we're about to open and read.
63395         In the readdir loop, carefully decide whether each entry will require
63396         an eventual call to fts_stat, using dirent.d_type info if available.
63397         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63398         a command line argument into this function.  Update all callers.
63399         Map a return value of FTS_DOT to FTS_D for a command line argument.
63400         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63401         Thanks to Miklos Szeredi for his tenacity and for the initial
63402         bug report about "find" failing on a FUSE-based file system.
63403
63404         * lib/fts.c (fts_open): Use consistent indentation.
63405
63406 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63407
63408         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63409         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63410         reported by Jim Meyering.  All uses of cache variables renamed
63411         to match Autoconf's.
63412         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63413         the other one.
63414
63415         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63416         Fix misspelling in diagnostic.
63417
63418 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63421         defined.  Problem reported by Matthew Woehlke.
63422
63423         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63424         Add support for Tandem NonStop R series.
63425         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63426         Use new macro.
63427
63428         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63429         (has_trailing_slash): Omit size arg; all callers changed.
63430         Omit 'inline', since it doesn't help performance and we'd
63431         need to configure it.
63432         Don't count //, ///, etc. as having a trailing slash.
63433         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63434         (rpl_rename_dest_slash): On failure, use rename's errno rather
63435         than (in some cases) an incorrect or junk errno.
63436         Simplify code by removing need to compute length; this does
63437         cause it to make two passes instead of one over the file name,
63438         but it's worth it.
63439
63440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63441         change, since Autoconf's version may no longer be appropriate now
63442         that we are using CVS Autoconf's version.  Add support for Tandem.
63443
63444 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63445             Bruno Haible  <bruno@clisp.org>
63446
63447         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63448         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63449         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63450         gl_AC_TYPE_LONG_LONG.
63451
63452         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63453         instead of HAVE_LONG_LONG.
63454         * lib/printf-args.c (printf_fetchargs): Likewise.
63455         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63456         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63457         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63458         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63459         gl_AC_TYPE_LONG_LONG.
63460
63461 2006-10-11  Bruno Haible  <bruno@clisp.org>
63462
63463         * m4/longlong.m4: Add comments.
63464         * m4/ulonglong.m4: Likewise.
63465
63466 2006-10-10  Bruno Haible  <bruno@clisp.org>
63467
63468         Make it possible to #define stpcpy, strdup to aliases.
63469         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63470         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63471
63472 2006-10-10  Bruno Haible  <bruno@clisp.org>
63473
63474         Make it possible to #define gcd to an alias.
63475         * lib/gcd.c: Include config.h.
63476
63477 2006-10-10  Bruno Haible  <bruno@clisp.org>
63478
63479         Make it possible to #define c_isascii to an alias.
63480         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63481         defined. Undefine the macros before defining them, to avoid gcc
63482         warnings.
63483         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63484         define NO_C_CTYPE_MACROS early.
63485
63486 2006-10-10  Bruno Haible  <bruno@clisp.org>
63487
63488         Make it possible to #define set_program_name to an alias.
63489         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63490         ENABLE_RELOCATABLE early.
63491
63492 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63495         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63496         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63497         More generally, don't assume that 64-bit signed int is available
63498         if unsigned int is, and vice versa.
63499         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63500         unsigned symbols, not on their signed counterparts.
63501         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63502         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63503         (UINT64_C, UINTMAX_C):
63504         Likewise.
63505         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63506         unsigned counterparts.
63507         (Have_long_long, Unsigned): New macros.
63508         (Int): Renamed from INT.
63509         (strtoimax): Use the new macros.
63510         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63511         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63512         * modules/inttypes (inttypes.h): Substitute
63513         HAVE_UNSIGNED_LONG_LONG_INT.
63514         * modules/stdint (stdint.h): Likewise.
63515         (Files): Add m4/ulonglong.m4.
63516
63517 2006-10-10  Bruno Haible  <bruno@clisp.org>
63518
63519         Fix a gcc -Wshadow warning.
63520         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63521         to 'bucket'.
63522         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63523         gl_linked_indexof_from_to): Likewise.
63524         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63525         Likewise.
63526         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63527         Likewise.
63528         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63529         Reported by Eric Blake.
63530
63531 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63534         for NetBSD.  Problem reported by Bruno Haible.
63535
63536 2006-10-09  Jim Meyering  <jim@meyering.net>
63537
63538         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63539         Patch from Bruno Haible.
63540
63541 2006-10-09  Jim Meyering  <jim@meyering.net>
63542
63543         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63544         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63545         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63546
63547 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         Don't include <config.h> twice; this doesn't work in some cases,
63550         e.g., when config.h has "#define intmax_t long long int" and
63551         we include <config.h>, <inttypes.h>, <config.h> in that order.
63552         Problem reported by Matthew Woehlke in:
63553         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63554         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63555         * lib/fts-cycle.c: Don't include config.h.
63556         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63557         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63558         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63559         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63560         inttypes.h.
63561         * lib/xstrtoumax.c: Likewise.
63562         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63563         __strtol and the like, so that this module is more like its siblings.
63564         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63565         Remove; no longer needed now that we assume gnulib inttypes.h.
63566
63567 2006-10-08  Bruno Haible  <bruno@clisp.org>
63568
63569         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63570         option.
63571
63572 2006-10-07  Jim Meyering  <jim@meyering.net>
63573
63574         * modules/inttypes (inttypes.h): Revert what seems to have been
63575         an inadvertent part of today's change: use "|", not "/" in the
63576         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63577
63578 2006-10-07  Bruno Haible  <bruno@clisp.org>
63579
63580         * modules/sublist: New file.
63581
63582 2006-10-07  Bruno Haible  <bruno@clisp.org>
63583
63584         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63585         * modules/argz (argz.h): Likewise.
63586         * modules/arpa_inet (arpa/inet.h): Likewise.
63587         * modules/byteswap (byteswap.h): Likewise.
63588         * modules/configmake (configmake.h): Likewise.
63589         * modules/fcntl (fcntl.h): Likewise.
63590         * modules/fnmatch (fnmatch.h): Likewise.
63591         * modules/getopt (getopt.h): Likewise.
63592         * modules/glob (glob.h): Likewise.
63593         * modules/inttypes (inttypes.h): Likewise.
63594         * modules/netinet_in (netinet/in.h): Likewise.
63595         * modules/poll (poll.h): Likewise.
63596         * modules/stdbool (stdbool.h): Likewise.
63597         * modules/stdint (stdint.h): Likewise.
63598         * modules/sys_select (sys/select.h): Likewise.
63599         * modules/sys_socket (sys/socket.h): Likewise.
63600         * modules/sys_stat (sys/stat.h): Likewise.
63601         * modules/sysexits (sysexits.h): Likewise.
63602         * modules/unistd (unistd.h): Likewise.
63603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63604         Add a "DO NOT EDIT" comment to the generated file.
63605         (func_import): Likewise for gnulib-comp.m4.
63606
63607 2006-10-07  Bruno Haible  <bruno@clisp.org>
63608
63609         * lib/gl_sublist.h: New file.
63610         * lib/gl_sublist.c: New file.
63611
63612 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63613
63614         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63615         name (relative to the original working directory) and the file
63616         name component (relative to the temporary working directory).  All
63617         callers changed.
63618         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63619         * lib/mkdir-p.c (make_dir_parents): Likewise.
63620         * lib/mkdir-p.h (make_dir_parents): Likewise.
63621
63622 2006-10-06  Eric Blake  <ebb9@byu.net>
63623
63624         Define several macros for use by the clean-temp module.
63625         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63626         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63627         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63628
63629         * lib/clean-temp.h (close_stream_temp): New declaration.
63630         * lib/clean-temp.c (includes): Pull in headers according to what
63631         other modules are in use.
63632         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63633
63634 2006-10-06  Bruno Haible  <bruno@clisp.org>
63635
63636         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63637         instead of fopen, fwriteerror.
63638
63639 2006-10-06  Bruno Haible  <bruno@clisp.org>
63640
63641         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63642         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63643         int.
63644         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63645         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63646         Return an error indicator.
63647         Suggested by Eric Blake.
63648
63649 2006-10-06  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63652         Reported by Eric Blake.
63653
63654 2006-10-06  Bruno Haible  <bruno@clisp.org>
63655
63656         * modules/closeout (Description): Mention stderr too.
63657
63658 2006-10-06  Bruno Haible  <bruno@clisp.org>
63659         and Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * lib/closeout.c (close_stdout): Also close stderr.
63662         * lib/closeout.h: Update comment.
63663
63664 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63667         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63668         * lib/dirchownmod.c: Include lchown.h.
63669         * lib/lchown.c: Don't include files that lchown.h now includes.
63670         Don't declare chown, since lchown.h now does that.
63671         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63672         (lchown): Define to rpl_chown if lchown is declared but
63673         does not exist.  Declare using a prototype if lchown is not
63674         declared.  Add a copyright notice.
63675         * lib/mkstemp.h: Include <unistd.h>.
63676         * lib/openat.c: Include lchown.h.
63677
63678         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63679         we now test for that separately.
63680         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63681         rather than O_NOFOLLOW, when testing whether it's possible to
63682         avoid a race condition reliably.
63683         * lib/savewd.c (savewd_chdir): Likewise.
63684
63685         Remove macros that are no longer needed now that stdint.h is
63686         reliable.
63687         * lib/fsusage.c (UINTMAX_MAX): Remove.
63688         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63689         * lib/utimecmp.c (SIZE_MAX): Remove.
63690
63691         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63692
63693         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63694         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63695         O_NOATIME works.
63696
63697 2006-10-05  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/gl_list.h (gl_sortedlist_search_from_to,
63700         gl_sortedlist_indexof_from_to): New declarations.
63701         (gl_list_implementation): New fields sortedlist_search_from_to,
63702         sortedlist_indexof_from_to.
63703         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63704         inline functions.
63705         * lib/gl_list.c (gl_sortedlist_search_from_to,
63706         gl_sortedlist_indexof_from_to): New functions.
63707         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63708         function.
63709         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63710         (gl_array_sortedlist_search_from_to): New function.
63711         (gl_array_list_implementation): Update.
63712         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63713         function.
63714         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63715         (gl_carray_sortedlist_search_from_to): New function.
63716         (gl_carray_list_implementation): Update.
63717         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63718         gl_linked_sortedlist_indexof_from_to): New functions.
63719         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63720         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63721         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63722         gl_tree_sortedlist_indexof_from_to): New functions.
63723         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63724         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63725         Update.
63726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63727         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63728         Update.
63729
63730 2006-10-05  Bruno Haible  <bruno@clisp.org>
63731
63732         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63733         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63734         (struct gl_list_implementation): Add fields search_from_to,
63735         indexof_from_to. Remove fields search, indexof.
63736         (gl_list_search): Use the search_from_to method.
63737         (gl_list_search_from, gl_list_search_from_to): New functions.
63738         (gl_list_indexof): Use the indexof_from_to method.
63739         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63740         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63741         (gl_list_search_from, gl_list_search_from_to): New functions.
63742         (gl_list_indexof): Use the indexof_from_to method.
63743         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63744         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63745         gl_array_indexof. Add start_index, end_index arguments.
63746         (gl_array_search_from_to): Renamed from gl_array_search. Add
63747         start_index, end_index arguments.
63748         (gl_array_remove, gl_array_list_implementation): Update.
63749         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63750         gl_carray_indexof. Add start_index, end_index arguments.
63751         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63752         start_index, end_index arguments.
63753         (gl_carray_remove, gl_carray_list_implementation): Update.
63754         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63755         gl_linked_search. Add start_index, end_index arguments.
63756         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63757         start_index, end_index arguments.
63758         (gl_linked_remove): Update.
63759         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63760         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63761         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63762         field to 'size_t'.
63763         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63764         gl_tree_search. Add start_index, end_index arguments.
63765         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63766         start_index, end_index arguments.
63767         (gl_tree_remove): Update.
63768         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63769         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63770         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63771         function.
63772         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63773         gl_tree_search. Add start_index, end_index arguments.
63774         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63775         start_index, end_index arguments.
63776         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63777         Update.
63778         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63779
63780 2006-10-05  Bruno Haible  <bruno@clisp.org>
63781
63782         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63783
63784         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63785         fwriteerror_temp): New declarations.
63786         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63787         (descriptors): New variable.
63788         (cleanup): First, close the descriptors.
63789         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63790         fclose_temp, fwriteerror_temp): New functions.
63791
63792 2006-10-04  Jim Meyering  <jim@meyering.net>
63793
63794         * lib/fts.c (fts_open): Tiny comment change.
63795
63796 2006-10-04  Bruno Haible  <bruno@clisp.org>
63797
63798         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63799         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63800         gl_LOCK_BODY.
63801         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63802         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63803         gl_LOCK_EARLY_BODY.
63804         (gl_LOCK): Require gl_LOCK_BODY.
63805
63806 2006-10-04  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63809         (gl_oset_search_atleast): New declaration.
63810         (struct gl_oset_implementation): Add field 'search_atleast'.
63811         (gl_oset_search_atleast): New inline function.
63812         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63813         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63814         (gl_array_oset_implementation): Update.
63815         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63816         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63817         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63818
63819 2006-10-04  Bruno Haible  <bruno@clisp.org>
63820
63821         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63822
63823 2006-10-03  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63826         from gl_avltreehash_list_implementation.
63827
63828 2006-10-03  Bruno Haible  <bruno@clisp.org>
63829
63830         * lib/gl_oset.c (gl_oset_add): Fix return type.
63831
63832 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63833
63834         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63835
63836 2006-10-02  Eric Blake  <ebb9@byu.net>
63837
63838         * modules/strnlen (Depends-on): Add extensions.
63839
63840 2006-10-02  Eric Blake  <ebb9@byu.net>
63841
63842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63843         definition in 2.60+.
63844
63845 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63846
63847         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63848         checks.
63849
63850 2006-10-02  Bruno Haible  <bruno@clisp.org>
63851
63852         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63853         to the AUTOMAKE_OPTIONS.
63854         Reported by Jim Meyering.
63855
63856 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         Work around bug in Solaris 10 /proc file system:
63859         /proc/self/fd/NNN/.. isn't the parent directory of
63860         the directory whose file descriptor is NNN.  This needs to
63861         be worked around at run time, not compile time, since a
63862         program might be built on Solaris 8, where things work, and
63863         run on Solaris 10.
63864         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63865         to use the following interface instead:
63866         (OPENAT_BUFFER_SIZE): New macro.
63867         (openat_proc_name): New function.
63868         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63869         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63870         Likewise.
63871         * lib/openat-proc.c: New file.
63872         * modules/openat (Files): Add lib/openat-proc.c.
63873         (Depends-on): Add same-inode, stdbool.
63874         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63875
63876 2006-09-29  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63879         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63880         argument. Set stdout_closed before testing for ferror, not after.
63881         (fwriteerror, fwriteerror_no_ebadf): New functions.
63882
63883 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63884
63885         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63886
63887 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63888
63889         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63890         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63891
63892 2006-09-28  Jim Meyering  <jim@meyering.net>
63893
63894         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63895         Include <unistd.h>.
63896
63897 2006-09-28  Bruno Haible  <bruno@clisp.org>
63898
63899         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63900         * modules/linkedhash-list (Depends-on): Likewise.
63901         * modules/rbtreehash-list (Depends-on): Likewise.
63902
63903 2006-09-28  Bruno Haible  <bruno@clisp.org>
63904
63905         * lib/strndup.h: Simplify the redefinition of strndup.
63906         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63907         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63908
63909 2006-09-28  Bruno Haible  <bruno@clisp.org>
63910
63911         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63912         * lib/gl_linkedhash_list.c: Likewise.
63913         * lib/gl_rbtreehash_list.c: Likewise.
63914
63915 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63918         getaddrinfo.
63919
63920         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63921         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63922         it causes <stdio_ext.h> to cause a compile-time error.
63923         Problem reported by Nelson H. F. Beebe.
63924         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63925         of HAVE_DECL___PENDING.
63926
63927         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63928         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63929         declaration.
63930
63931 2006-09-27  Jim Meyering  <jim@meyering.net>
63932
63933         This file could end up with a definition for a function
63934         named __strndup, rather than rpl_strndup on a system with
63935         incomplete weak_alias support.
63936         * lib/strndup.c (strndup): Rename from __strndup.
63937         Remove #defines that used to map __strndup to strndup.
63938         Don't use K&R prototypes.
63939         Remove LIBC-related code, since this file is not sync'd with glibc.
63940         * lib/strndup.h: Revamp, accordingly.
63941         * m4/strndup.m4: Modernize.
63942
63943 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         * modules/savewd (Depends-on): Add 'raise'.
63946         * lib/savewd.c: Include <signal.h>, for 'raise'.
63947
63948 2006-09-26  Jim Meyering  <jim@meyering.net>
63949
63950         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63951         when we detect Darwin 8.7.0's acl_get_file bug.
63952         Rearrange to perform the new (below) run-test while $LIBS
63953         contains any acl-related library.  Set USE_ACL at the end.
63954         (gl_ACL_GET_FILE): New function.
63955
63956 2006-09-26  Eric Blake  <ebb9@byu.net>
63957
63958         * lib/verror.c: Include <config.h> unconditionally.
63959
63960 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * modules/clock-time (Maintainer): Add self.
63963         * modules/getlogin_r (Depends-on): Add extensions.
63964
63965 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63966
63967         * modules/clock-time: New module.
63968         * modules/nanosleep (Depends-on): Add clock-time.
63969         * modules/gethrxtime (Depends-on): Likewise.
63970         * modules/gettime (Depends-on): Likewise.
63971         * modules/settime (Depends-on): Likewise.
63972
63973         * modules/fts-lgpl: Depend on openat.
63974         * modules/mkancesdirs: Depend on savewd.
63975         * modules/mkdir-p: Likewise.
63976
63977 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63978
63979         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63980
63981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63982         `gl_have_arbitrary_file_name_length_limit' to
63983         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63984         actually works between configure runs.
63985
63986 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63987             Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63990
63991 2006-09-25  Jim Meyering  <jim@meyering.net>
63992
63993         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63994         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63995
63996 2006-09-25  Eric Blake  <ebb9@byu.net>
63997
63998         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63999         exec's in 2006-09-18 patch when shuffling fds.
64000
64001 2006-09-25  Bruno Haible  <bruno@clisp.org>
64002
64003         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64004         Reported by Jim Meyering.
64005
64006 2006-09-24  Jim Meyering  <jim@meyering.net>
64007
64008         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64009         compare a pointer against a literal "0".  That caused failures with
64010         at least HP-UX's hpcc.
64011
64012 2006-09-22  Simon Josefsson  <jas@extundo.com>
64013
64014         * modules/gc-sha1:
64015         * modules/gc-md4:
64016         * modules/gc-hmac-sha1:
64017         * modules/gc-hmac-md5:
64018         * modules/gc-des:
64019         * modules/gc-arcfour: Distribute more files.
64020
64021 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64022
64023         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64024         (gl_linked_iterator_from_to): Initialize struct completely.
64025         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64026         (gl_tree_iterator_from_to): Likewise
64027         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64028         * lib/gl_array_list.c [lint] (gl_array_iterator)
64029         (gl_array_iterator_from_to): Likewise.
64030         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64031         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64032         (gl_carray_iterator_from_to): Likewise.
64033
64034         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64035         * lib/md4.c (md4_process_block): Remove unused variable.
64036         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64037         parentheses for clarity.
64038
64039 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64040
64041         * modules/bison-i18n (Depends-on): Add gettext.
64042
64043 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64044
64045         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64046         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64047         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64048         also add missing comma that caused broken test.
64049         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64050         stdlib.h, for `abort'.
64051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64052         variables.
64053         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64054         include unistd.h if present, for `rmdir'.
64055         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64056         variables.
64057         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64058         in the process include standard headers for prototypes.
64059         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64060         gets declared on GNU/Linux.
64061         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64062         unistd.h, for `rmdir'.
64063         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64064
64065         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64066         always true.
64067         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64068
64069         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64070
64071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64072
64073         * gnulib-tool (func_version): Create output all at once.  This
64074         may help avoid triggering unnecessary SIGPIPEs, and at any
64075         rate it doesn't hurt.
64076
64077 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64078             Bruno Haible  <bruno@clisp.org>
64079
64080         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64081         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64082         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64083
64084         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64085         (gl_FUNC_VASPRINTF): Invoke it.
64086
64087 2006-09-22  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64090         getloadavg.c as first argument.
64091
64092 2006-09-22  Bruno Haible  <bruno@clisp.org>
64093
64094         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64095         at the beginning of the gl_INIT macro.
64096         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64097         gl_GETLOADAVG.
64098
64099 2006-09-22  Bruno Haible  <bruno@clisp.org>
64100
64101         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64102         module.
64103         Suggested by Ralf Wildenhues.
64104
64105 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         Import this patch from libc:
64108
64109         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64110
64111         * lib/regex_internal.c (re_string_reconstruct): Handle
64112         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64113         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64114         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64115         re_string_context_at.
64116
64117         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64118         now requires it.
64119         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64120         gl_REGEX now does it for us.
64121         (gl_REGEX): Add test taken from
64122         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64123
64124         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64125         Check that large offsets work.  Modernize Autoconf usages.
64126         Prefer "yes" to mean a good thing rather than a bad.
64127         Don't put "#define mkstemp" in config.h, as this might interfere
64128         with standard system headers that "#define mkstemp mkstemp64".
64129
64130         * modules/mkstemp (Depends-on): Add extensions, so that
64131         mkstemp is visible on some platforms.
64132         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64133         (Include): Change to "mkstemp.h" from <stdlib.h>.
64134         (Files): Add mkstemp.h.
64135
64136         * lib/mkstemp.h: New file, since some standard headers
64137         #define mkstemp.
64138         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64139         Include "mkstemp.h".
64140         Make the _LIBC code resemble glibc original more,
64141         e.g., use K&R style.
64142         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64143         (mkstemp): Remove, since mkstemp.h does this for us.
64144         * lib/stdlib--.h: Include mkstemp.h.
64145
64146         Import this patch from libc:
64147
64148         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64149
64150         * lib/tempname.c (__gen_tempname): Change attempts_min
64151         into a macro.  Use preprocessor to decide how to initialize
64152         attempts [Coverity CID 67].
64153
64154 2006-09-20  Bruno Haible  <bruno@clisp.org>
64155
64156         * lib/mkdtemp.c: Import from libc.
64157         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64158                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64159                 attempts_min into a macro.  Use preprocessor to decide how to
64160                 initialize attempts [Coverity CID 67].
64161         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64162                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64163                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64164
64165 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64166
64167         * gnulib-tool (func_exit): New function, to allow to pass the
64168         exit status portably through the trap.  Use everywhere.
64169         (--help, --version): Signal a write error.
64170         (trap): catch SIGPIPE, for write errors.
64171         Exit at the end of the trap, with the correct exit status.
64172
64173 2006-09-19  Karl Berry  <karl@gnu.org>
64174
64175         * doc/gnulib.texi: note about the license texinfo files.
64176
64177 2006-09-19  Eric Blake  <ebb9@byu.net>
64178
64179         * gnulib-tool: Avoid space-tab.
64180
64181 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64182
64183         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64184         that prevented coreutils 6.1 from building.  Problem reported
64185         by Petter Reinholdtsen.
64186
64187 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         * gnulib-tool (avoidlist): Fix typo that broke options like
64190         --avoid=lock that are used by coreutils bootstrap.
64191
64192 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64193
64194         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64195         more systematically.
64196
64197 2006-09-18  Jim Meyering  <jim@meyering.net>
64198
64199         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64200
64201 2006-09-18  Bruno Haible  <bruno@clisp.org>
64202
64203         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64204
64205 2006-09-18  Bruno Haible  <bruno@clisp.org>
64206
64207         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64208         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64209         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64210         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64211         * m4/gettext.m4: Require autoconf >= 2.52.
64212         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64213         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64214         of gl_cv_header_inttypes_h.
64215
64216 2006-09-18  Bruno Haible  <bruno@clisp.org>
64217
64218         * lib/javaversion.c: Include configmake.h.
64219
64220 2006-09-18  Bruno Haible  <bruno@clisp.org>
64221
64222         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64223         avoid that the while loops be executed in a subshell.
64224
64225 2006-09-18  Bruno Haible  <bruno@clisp.org>
64226
64227         * MODULES.html.sh (func_module): Break long lines.
64228         Suggested by Bruce Korb <bkorb@gnu.org>.
64229
64230 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64231
64232         Speed up by a factor of 1.12.
64233         * gnulib-tool (nl): New variable.
64234         (func_import): Rewrite include directive extraction to only read each
64235         directive once.
64236
64237 2006-09-17  Bruno Haible  <bruno@clisp.org>
64238
64239         * modules/javaversion (Makefile.am): Remove DEFS setting.
64240         (Depends-on): Add configmake, for PKGDATADIR definition.
64241
64242 2006-09-17  Bruno Haible  <bruno@clisp.org>
64243
64244         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64245
64246 2006-09-17  Bruno Haible  <bruno@clisp.org>
64247
64248         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64249         (func_modules_transitive_closure, func_modules_add_dummy,
64250         func_modules_to_filelist, func_import, func_create_testdir,
64251         func_create_megatestdir, ...): Use it wherever possible.
64252         Suggested by Ralf Wildenhues.
64253
64254 2006-09-16  Karl Berry  <karl@gnu.org>
64255
64256         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64257         to avoid sectioning errors.
64258         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64259         [ifinfo]: blank line after @center-ed titles.
64260         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64261         Spell FSF address consistently with others.
64262         (These changes approved by rms.)
64263
64264 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64265
64266         Speed up by a factor of 1.61.
64267         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64268         already checked module names again.
64269
64270 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64271
64272         Speed up by a factor of 1.13.
64273         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64274         for new_files, and the input to func_add_or_update.
64275
64276 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64277
64278         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64279         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64280
64281 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64282
64283         * modules/mkancesdirs (Depends-on): Add fcntl.
64284         * modules/savewd: New file.
64285         * MODULES.html.sh (File system functions): Add savewd.
64286
64287         * modules/configmake (Makefile.am): Add support for the
64288         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64289
64290 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         * m4/savewd.m4: New file.
64293
64294 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64297         (dirchownmod): New arg FD.  All callers changed.
64298         Use FD rather than opening the directory ourself, as opening is
64299         now the caller's responsibility.
64300         * lib/dirchownmod.h: Likewise.
64301         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64302         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64303         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64304         (test_dir): Remove.
64305         (mkancesdirs): Return length of prefix of FILE that has already
64306         been made, or -2 if there is a child doing the work.  Redo
64307         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64308         ".", and treat ".." specially since it might stray back into
64309         already-created areas.  Use a subprocess if necessary.  New arg
64310         WD; all users changed.  MAKE_DIR function should now return 1
64311         if it creates a directory that is not readable.  Return -2 if
64312         a child process is spun off.
64313         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64314         Adjust signature to match code.
64315         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64316         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64317         all users changed.
64318         * lib/savewd.c, lib/savewd.h: New files.
64319
64320 2006-09-15  Jim Meyering  <jim@meyering.net>
64321
64322         * modules/rename-dest-slash: New module.
64323         * MODULES.html.sh (posix_compat): Add it here.
64324
64325         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64326
64327 2006-09-15  Jim Meyering  <jim@meyering.net>
64328
64329         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64330         file.
64331
64332         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64333
64334 2006-09-15  Jim Meyering  <jim@meyering.net>
64335
64336         * lib/rename-dest-slash.c (has_trailing_slash): Use
64337         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64338         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64339         test before testing whether SRC is a directory.
64340         Suggestions from Bruno Haible.
64341
64342         Avoid a warning about an unused variable.
64343         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64344         into the #ifdef block where it's used.
64345
64346         * lib/rename-dest-slash.c: New file.
64347
64348 2006-09-14  Bruno Haible  <bruno@clisp.org>
64349
64350         * lib/allocsa.c: Include <config.h> unconditionally.
64351         * lib/asnprintf.c: Likewise.
64352         * lib/asprintf.c: Likewise.
64353         * lib/c-strcasecmp.c: Likewise.
64354         * lib/c-strcasestr.c: Likewise.
64355         * lib/c-strncasecmp.c: Likewise.
64356         * lib/c-strstr.c: Likewise.
64357         * lib/classpath.c: Likewise.
64358         * lib/clean-temp.c: Likewise.
64359         * lib/concatpath.c: Likewise.
64360         * lib/copy-file.c: Likewise.
64361         * lib/csharpcomp.c: Likewise.
64362         * lib/csharpexec.c: Likewise.
64363         * lib/execute.c: Likewise.
64364         * lib/fatal-signal.c: Likewise.
64365         * lib/findprog.c: Likewise.
64366         * lib/fwriteerror.c: Likewise.
64367         * lib/gl_array_list.c: Likewise.
64368         * lib/gl_array_oset.c: Likewise.
64369         * lib/gl_avltree_list.c: Likewise.
64370         * lib/gl_avltree_oset.c: Likewise.
64371         * lib/gl_avltreehash_list.c: Likewise.
64372         * lib/gl_carray_list.c: Likewise.
64373         * lib/gl_linked_list.c: Likewise.
64374         * lib/gl_linkedhash_list.c: Likewise.
64375         * lib/gl_list.c: Likewise.
64376         * lib/gl_oset.c: Likewise.
64377         * lib/gl_rbtree_list.c: Likewise.
64378         * lib/gl_rbtree_oset.c: Likewise.
64379         * lib/gl_rbtreehash_list.c: Likewise.
64380         * lib/imaxabs.c: Likewise.
64381         * lib/imaxdiv.c: Likewise.
64382         * lib/javacomp.c: Likewise.
64383         * lib/javaexec.c: Likewise.
64384         * lib/javaversion.c: Likewise.
64385         * lib/linebreak.c: Likewise.
64386         * lib/localcharset.c: Likewise.
64387         * lib/lock.c: Likewise.
64388         * lib/mbchar.c: Likewise.
64389         * lib/mbswidth.c: Likewise.
64390         * lib/mkdtemp.c: Likewise.
64391         * lib/pipe.c: Likewise.
64392         * lib/printf-args.c: Likewise.
64393         * lib/printf-parse.c: Likewise.
64394         * lib/progname.c: Likewise.
64395         * lib/progreloc.c: Likewise.
64396         * lib/readlink.c: Likewise.
64397         * lib/sh-quote.c: Likewise.
64398         * lib/stpcpy.c: Likewise.
64399         * lib/stpncpy.c: Likewise.
64400         * lib/strcasecmp.c: Likewise.
64401         * lib/strcasestr.c: Likewise.
64402         * lib/strcspn.c: Likewise.
64403         * lib/striconv.c: Likewise.
64404         * lib/strncasecmp.c: Likewise.
64405         * lib/strnlen1.c: Likewise.
64406         * lib/strstr.c: Likewise.
64407         * lib/strtok_r.c: Likewise.
64408         * lib/tls.c: Likewise.
64409         * lib/tmpdir.c: Likewise.
64410         * lib/unicodeio.c: Likewise.
64411         * lib/unsetenv.c: Likewise.
64412         * lib/vasnprintf.c: Likewise.
64413         * lib/vasprintf.c: Likewise.
64414         * lib/wait-process.c: Likewise.
64415         * lib/xallocsa.c: Likewise.
64416         * lib/xsetenv.c: Likewise.
64417         * lib/xstriconv.c: Likewise.
64418
64419 2006-09-13  Simon Josefsson  <jas@extundo.com>
64420
64421         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64422         that internally, suggested by Ralf Wildenhues
64423         <Ralf.Wildenhues@gmx.de>.
64424
64425 2006-09-13  Simon Josefsson  <jas@extundo.com>
64426
64427         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64428         @LIBOBJS@.
64429         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64430
64431 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64432
64433         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64434         longer worry about uses that don't define HAVE_CONFIG_H.
64435         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64436         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64437         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64438         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64439         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64440         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64441         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64442         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64443         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64444         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64445         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64446         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64447         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64448         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64449         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64450         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64451         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64452         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64453         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64454         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64455         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64456         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64457         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64458         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64459         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64460         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64461         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64462         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64463         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64464         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64465         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64466         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64467         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64468         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64469         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64470         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64471         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64472         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64473         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64474         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64475         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64476         Likewise.
64477
64478 2006-09-13  Eric Blake  <ebb9@byu.net>
64479
64480         * lib/getopt.c: Fix typo in last commit.
64481
64482 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64483
64484         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64485         dgettext.
64486
64487 2006-09-12  Jim Meyering  <jim@meyering.net>
64488
64489         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64490         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64491         Reported by Nelson H. F. Beebe.
64492
64493 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64494
64495         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64496         program_invocation_name and program_invocation_short_name are
64497         initialized.
64498         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64499         and program_invocation_short_name to argp.h, so they are visible
64500         to user programs.
64501         * lib/argp.h: Likewise
64502
64503 2006-09-10  Bruno Haible  <bruno@clisp.org>
64504
64505         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64506         m4/inttypes_h.m4, m4/uintmax_t.m4.
64507
64508 2006-09-10  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64511         gl_AC_TYPE_UINTMAX_T.
64512
64513 2006-09-10  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64516
64517 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64518
64519         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64520         convention.  Text proposed by Bruno Haible.
64521         (struct argp_option): Document the use of N_() wrappers.
64522
64523         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64524         '\v', and translate the two parts separately, instead of feeding
64525         the whole string to gettext.  This allows to exclude
64526         '\v' from the strings visible to the translator by writing doc
64527         strings as N_("..") "\v" N_("..").
64528
64529 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64530
64531         * config/srclist.txt: Undo latest change; the bug was fixed.
64532
64533 2006-09-09  Bruno Haible  <bruno@clisp.org>
64534
64535         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64536         assignments if building a library without libtool.
64537         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64538         in func_emit_lib_Makefile_am.
64539         (func_import): When building a static library libfoo.a, arrange to
64540         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64541         (func_create_testdir): Likewise.
64542         * modules/gc (configure.ac, Makefile.am): If building statically,
64543         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64544         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64545         * modules/striconv (configure.ac, Makefile.am): Likewise.
64546         Based on a suggestion by Ralf Wildenhues.
64547
64548 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64551         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64552         Also:
64553
64554         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64555         Add year_2050_test to catch glibc bug 2821
64556         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64557
64558         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64559         Prefer #ifdef to #if.
64560
64561         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64562         Return from 'main' instead of calling 'exit'.
64563
64564 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64565
64566         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64567         returned the maximum time_t value rather than (time_t) -1.
64568         Problem originally reported by William Bardwell
64569         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64570
64571         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64572         Moved to here ...
64573         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64574         ... from here.
64575
64576 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64579         2821 is fixed.
64580
64581 2006-09-08  Jim Meyering  <jim@meyering.net>
64582
64583         Don't make generated files read-only.  That would bother too many
64584         people.  However, do retain the ability to work when targets are
64585         read-only: remove the destination and temporary files before writing
64586         them (when generated via sed or echo), or by using the -f option for
64587         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64588         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64589         * modules/byteswap, modules/configmake, modules/fcntl:
64590         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64591         * modules/localcharset, modules/netinet_in, modules/poll:
64592         * modules/stdbool, modules/stdint, modules/sys_select:
64593         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64594
64595 2006-09-08  Jim Meyering  <jim@meyering.net>
64596
64597         Avoid new build failure on FreeBSD 6.0.
64598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64599         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64600         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64601
64602 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64603
64604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64605
64606 2006-09-07  Jim Meyering  <jim@meyering.net>
64607
64608         Fix global typo in last change: use chmod u-w, not chmod u-x.
64609         Spotted by Paul Eggert and Bruce Korb.
64610         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64611         * modules/byteswap, modules/configmake, modules/fcntl:
64612         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64613         * modules/localcharset, modules/netinet_in, modules/poll:
64614         * modules/stdbool, modules/stdint, modules/sys_select:
64615         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64616
64617 2006-09-06  Jim Meyering  <jim@meyering.net>
64618
64619         Make generated files be read-only.
64620         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64621         Ensure that each generated file is now read-only.
64622         * modules/argz: Likewise.
64623         * modules/arpa_inet: Likewise.
64624         * modules/byteswap: Likewise.
64625         * modules/configmake: Likewise.
64626         * modules/fcntl: Likewise.
64627         * modules/fnmatch: Likewise.
64628         * modules/getopt: Likewise.
64629         * modules/glob: Likewise.
64630         * modules/inttypes: Likewise.
64631         * modules/netinet_in: Likewise.
64632         * modules/poll: Likewise.
64633         * modules/stdbool: Likewise.
64634         * modules/stdint: Likewise.
64635         * modules/sys_select: Likewise.
64636         * modules/sys_socket: Likewise.
64637         * modules/sys_stat: Likewise.
64638         * modules/sysexits: Likewise.
64639         * modules/localcharset: Same as above, but continue using temporary
64640         file named "t-$@" (why different?) rather than the "$@-t" used
64641         everywhere else.
64642
64643         * modules/sysexits (Makefile.am): Replace literal occurrences
64644         of "sysexit.h" more readable, and more consistent, "$@".
64645
64646 2006-09-06  Bruno Haible  <bruno@clisp.org>
64647
64648         * modules/striconv: New file.
64649         * modules/xstriconv: New file.
64650         * MODULES.html.sh (Internationalization functions): Add striconv,
64651         xstriconv.
64652
64653 2006-09-06  Bruno Haible  <bruno@clisp.org>
64654
64655         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64656         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64657         not using libtool correctly.
64658
64659 2006-09-06  Bruno Haible  <bruno@clisp.org>
64660
64661         * lib/striconv.h: New file.
64662         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64663         iconvstring.c.
64664         * lib/xstriconv.h: New file.
64665         * lib/xstriconv.c: New file.
64666
64667 2006-09-06  Bruno Haible  <bruno@clisp.org>
64668
64669         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64670         lib_..._LDFLAGS.
64671
64672 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64673
64674         * lib/argz_.h: Sync from Libtool.
64675
64676         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64677                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64678
64679         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64680
64681 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64682
64683         * modules/trim: New file.
64684
64685 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64686
64687         * lib/trim.h: New file.
64688         * lib/trim.c: New file.
64689
64690 2006-09-05  Bruno Haible  <bruno@clisp.org>
64691
64692         * MODULES.html.sh (String handling): Add trim.
64693
64694 2006-09-04  Karl Berry  <karl@gnu.org>
64695
64696         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64697         until next release.
64698
64699 2006-09-03  Bruno Haible  <bruno@clisp.org>
64700
64701         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64702         correctly.
64703
64704 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64707         not gl_GETLOADAVG.  Omit unneeded semicolons.
64708         Problems reported by Ralf Wildenhues in
64709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64710         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64711         at the end, which is the usual gnulib style.
64712
64713         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64714         of doing all the work ourselves.
64715         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64716         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64717
64718 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64721         Problem reported by Ralf Wildenhues in
64722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64723
64724         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64725         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64726
64727 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64730         yesterday's patch by changing test -n to test -z.
64731
64732 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64735         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64736         the former is now obsolescent.
64737
64738         * modules/chdir-long (Depends-on): Add fcntl.
64739
64740 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64741
64742         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64743         obsolescent, and programs should use gnulib instead.
64744         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64745         but with prefixes changed.
64746
64747 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64750         or stdbool.h, because they might not exist while configuring.
64751
64752         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64753         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64754         does that for us.
64755         (O_DIRECTORY): Remove.
64756
64757 2006-08-31  Eric Blake  <ebb9@byu.net>
64758
64759         * gnulib-tool: Don't let emacs change spaces to TAB.
64760
64761 2006-08-31  Bruno Haible  <bruno@clisp.org>
64762
64763         * gnulib-tool: When calling func_import more than once, do it in a
64764         subshell.
64765         Reported by Eric Blake <ebb9@byu.net>.
64766
64767 2006-08-31  Bruno Haible  <bruno@clisp.org>
64768
64769         * gnulib-tool (nl): Remove variable.
64770         (sed_transform_lib_file): Use more robust test for config-h module.
64771         (func_import): Fix typo in 2006-08-25 patch.
64772
64773 2006-08-31  Bruno Haible  <bruno@clisp.org>
64774
64775         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64776         specified, augment Makefile.am variables instead of assigning them.
64777
64778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64779
64780         Work around a bug in both the Linux and SunOS 64-bit kernels:
64781         nanosleep mishandles sleeps for longer than 2**31 seconds.
64782         Problem reported by Frank v Waveren in
64783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64785         Check for nanosleep bug.
64786         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64787
64788 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         Work around a bug in both the Linux and SunOS 64-bit kernels:
64791         nanosleep mishandles sleeps for longer than 2**31 seconds.
64792         Problem reported by Frank v Waveren in
64793         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64794         * lib/nanosleep.c (BILLION): New constant.
64795         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64796         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64797         implementation.
64798
64799 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * modules/nanosleep (Depends-on): Add gettime.
64802
64803 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64804         and Simon Josefsson  <jas@extundo.com>
64805         and Oskar Liljeblad  <oskar@osk.mine.nu>
64806
64807         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64808         * gnulib-tool (func_import): New license type 'unmodifiable license
64809         text'.
64810         * modules/fdl: Use it.  Longer description.
64811         * module/gpl, module/lgpl: New files.
64812
64813 2006-08-30  Jim Meyering  <jim@meyering.net>
64814
64815         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64816         shadowing the parameter.
64817
64818 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64819
64820         Sync from Libtool:
64821
64822         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64823
64824         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64825         sharing with gnulib.  Report by Eric Blake.
64826
64827 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * modules/isapipe: New file.
64830         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64831
64832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64833
64834         * modules/configmake (Makefile.am): Add a comment, and omit
64835         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64836         by Bruno Haible.
64837
64838 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64839
64840         * m4/isapipe.m4: New file.
64841
64842 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * lib/isapipe.c, lib/isapipe.h: New files.
64845
64846 2006-08-29  Jim Meyering  <jim@meyering.net>
64847
64848         * modules/configmake (Makefile.am): Make configmake.h depend on
64849         Makefile.  Otherwise, a stale configmake.h could hang around.
64850
64851 2006-08-29  Eric Blake  <ebb9@byu.net>
64852
64853         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64854         resolution of upstream bug 3044.
64855
64856 2006-08-29  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/localcharset (Depends-on): Add configmake.
64859         (Makefile.am): Remove setting of LIBDIR through DEFS.
64860
64861 2006-08-29  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64864         defined.
64865
64866 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * modules/fcntl: New file.
64869         * modules/chdir-safer (Depends-on): Add fcntl.
64870         * modules/fts: Likewise.
64871         * modules/mkdir-p: Likewise.
64872
64873         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64874         This undoes the most recent change, since we're now addressing the
64875         problem in a different way.
64876
64877         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64878         into output, since the output might be called Makefile.am even
64879         if $makefile_name is something different.
64880         (func_import): Use $makefile_am rather than
64881         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64882         empty.
64883
64884         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64885
64886 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64889         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64890         recent change to stdint.m4, since we're now addressing the problem in a
64891         different way.
64892
64893 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64894
64895         * m4/fcntl_h.m4: New file.
64896
64897 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64898
64899         * lib/fcntl_.h: New file.
64900         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64901         the fcntl module.
64902         * lib/dirchownmod.c: Likewise.
64903         * lib/fts.c: Likewise.
64904
64905         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64906         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64907         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64908         just before including <inttypes.h>, to avoid circular inclusion.
64909
64910 2006-08-28  Jim Meyering  <jim@meyering.net>
64911
64912         * doc/visibility.texi: Actually read and correct the grammar of the
64913         sentence affected by yesterday's change.
64914
64915 2006-08-28  Eric Blake  <ebb9@byu.net>
64916
64917         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64918         needs wrapper.
64919
64920 2006-08-28  Eric Blake  <ebb9@byu.net>
64921
64922         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64923
64924 2006-08-28  Eric Blake  <ebb9@byu.net>
64925
64926         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64927
64928 2006-08-28  Bruno Haible  <bruno@clisp.org>
64929
64930         * modules/c-strstr: New file, from GNU gettext.
64931         * MODULES.html.sh (String handling): Add c-strstr.
64932
64933 2006-08-28  Bruno Haible  <bruno@clisp.org>
64934
64935         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64936         macros.
64937         Reported by Eric Blake.
64938
64939 2006-08-28  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64942         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64943         * lib/vasprintf.c: Include errno.h, limits.h.
64944         (EOVERFLOW): New fallback definition.
64945         (vasprintf): Test here whether the string length is > INT_MAX.
64946         * lib/vsnprintf.c: Include errno.h, limits.h.
64947         (EOVERFLOW): New fallback definition.
64948         (vsnprintf): Fix bug when generated string was too long for the buffer.
64949         Test here whether the string length is > INT_MAX.
64950
64951 2006-08-28  Bruno Haible  <bruno@clisp.org>
64952
64953         * lib/inttypes_.h (SCNX*): Remove definitions.
64954         Reported by Eric Blake.
64955
64956 2006-08-28  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/c-strstr.h: New file, from GNU gettext.
64959         * lib/c-strstr.c: New file, from GNU gettext.
64960
64961 2006-08-28  Bruno Haible  <bruno@clisp.org>
64962
64963         * gnulib-tool: Reorder some statements.
64964
64965 2006-08-28  Bruno Haible  <bruno@clisp.org>
64966
64967         * gnulib-tool: New option --makefile-name.
64968         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64969         $makefile_name.
64970         (func_import): Write $makefile_name to the cache file, and read it from
64971         there unless explicitly specified. Use $makefile_name as file name
64972         instead of Makefile.am. Adjust the recommendations accordingly.
64973
64974 2006-08-28  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool (func_verify_module): Check against misapplying patch.
64977
64978 2006-08-28  Bruno Haible  <bruno@clisp.org>
64979
64980         * gnulib-tool (func_relativize, func_relconcat): New functions.
64981         Give an error if --local-dir is given with --update.
64982         Remove trailing slashes from $local_gnulib_dir.
64983         (func_import): Store the relativized $local_gnulib_dir in
64984         gnulib-cache.m4, and read it from there if not specified explicitly.
64985
64986 2006-08-28  Bruno Haible  <bruno@clisp.org>
64987
64988         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64989         is the current directory. Respect also $local_gnulib_dir.
64990
64991 2006-08-28  Bruno Haible  <bruno@clisp.org>
64992             Simon Josefsson  <jas@extundo.com>
64993
64994         BeOS portability.
64995         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64996
64997 2006-08-27  Jim Meyering  <jim@meyering.net>
64998
64999         * doc/visibility.texi: Remove duplicate word: "pointer".
65000
65001 2006-08-26  Bruno Haible  <bruno@clisp.org>
65002
65003         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65004         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65005         (Makefile.am): Create inttypes.h from inttypes_.h.
65006         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65007
65008         * modules/imaxabs: New file.
65009
65010         * modules/imaxdiv: New file.
65011
65012 2006-08-26  Bruno Haible  <bruno@clisp.org>
65013
65014         * m4/inttypes.m4: New file.
65015         * m4/_inttypes_h.m4: Remove file.
65016         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65017         PRI_MACROS_BROKEN.
65018         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65019
65020         * m4/imaxabs.m4: New file.
65021
65022         * m4/imaxdiv.m4: New file.
65023
65024 2006-08-26  Bruno Haible  <bruno@clisp.org>
65025
65026         * lib/inttypes_.h: New file.
65027         * lib/inttypes.h: Remove file.
65028         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65029
65030         * lib/imaxabs.c: New file.
65031
65032         * lib/imaxdiv.c: New file.
65033
65034 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         New config-h module, so that "make" output needn't be cluttered
65037         by -DHAVE_CONFIG_H.
65038         * MODULES.html.sh (Support for building libraries and executables):
65039         Add config-h.
65040         * modules/config-h: New file.
65041         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65042         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65043         the config-h module is used.
65044
65045         New configmake module, so that "make" output needn't be cluttered
65046         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65047         * MODULES.html.sh (Support for building libraries and executables):
65048         Add configmake.
65049         * modules/configmake: New file.
65050
65051 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         * m4/config-h.m4: New file.
65054
65055 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65056
65057         * config/srclist.txt: Add elisp-comp.
65058
65059 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * MODULES.html.sh (Support for building libraries and executables):
65062         Add elisp-comp.
65063         * build-aux/elisp-comp: New file.
65064         * modules/elisp-comp: New file.
65065
65066 2006-08-24  Bruno Haible  <bruno@clisp.org>
65067
65068         * gnulib-tool (func_create_testdir): Use non-default values of
65069         sourcebase and m4base.
65070
65071 2006-08-24  Bruno Haible  <bruno@clisp.org>
65072
65073         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65074         HTML structure.
65075
65076 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65077
65078         * modules/openat (Depends-on): Add lchown.
65079
65080 2006-08-23  Bruno Haible  <bruno@clisp.org>
65081
65082         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65083         of gl_LOCK_EARLY instead of gl_LOCK.
65084
65085 2006-08-23  Bruno Haible  <bruno@clisp.org>
65086
65087         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65088         on OSF/1 to no.
65089         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65090
65091 2006-08-23  Bruno Haible  <bruno@clisp.org>
65092
65093         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65094         as unusable.
65095
65096         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65097         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65098         (gl_LOCK): New macro.
65099
65100 2006-08-22  Simon Josefsson  <jas@extundo.com>
65101
65102         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65103         to md5 module.
65104
65105 2006-08-22  Simon Josefsson  <jas@extundo.com>
65106
65107         * MODULES.html.sh: Add "Support for maintaining and release
65108         projects".
65109
65110         * build-aux/gnupload: New file, from coreutils.
65111
65112 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65113
65114         Avoid the need for AC_LIBSOURCES in m4 macros.
65115         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65116         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65117         * modules/check-version (EXTRA_DIST): Add check-version.h.
65118         * modules/crc (EXTRA_DIST): Add crc.h.
65119         * modules/des (EXTRA_DIST): Add des.h.
65120         * modules/gc (EXTRA_DIST): Add gc.h.
65121         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65122         * modules/getline (EXTRA_DIST): Add getline.h.
65123         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65124         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65125         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65126         * modules/md2 (EXTRA_DIST): Add md2.h.
65127         * modules/md4 (EXTRA_DIST): Add md4.h.
65128         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65129         * modules/read-file (EXTRA_DIST): Add read-file.h.
65130         * modules/readline (EXTRA_DIST): Add readline.h.
65131         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65132         rijndael-api-fst.h.
65133
65134 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * m4/rijndael.m4 (gl_ARCFOUR):
65137         * m4/arctwo.m4 (gl_ARCTWO):
65138         * m4/check-version.m4 (gl_CHECK_VERSION):
65139         * m4/crc.m4 (gl_CRC):
65140         * m4/des.m4 (gl_DES):
65141         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65142         * m4/gc.m4 (gl_GC):
65143         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65144         * m4/getline.m4 (gl_FUNC_GETLINE):
65145         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65146         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65147         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65148         * m4/md2.m4 (gl_MD2):
65149         * m4/md4.m4 (gl_MD4):
65150         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65151         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65152         * m4/readline.m4 (gl_FUNC_READLINE):
65153         * m4/rijndael.m4 (gl_RIJNDAEL):
65154         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65155         to get the necessary .h files and whatnot.
65156
65157 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65158
65159         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65160         gnulib rather than the other way around.
65161         * config/srclistvars.sh (COREUTILS): Remove.
65162
65163 2006-08-22  Jim Meyering  <jim@meyering.net>
65164
65165         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65166
65167         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65168
65169 2006-08-22  Eric Blake  <ebb9@byu.net>
65170
65171         * modules/regexprops-generic: New file.
65172         * MODULES.html.sh (Support for building documentation): List it.
65173
65174 2006-08-22  Eric Blake  <ebb9@byu.net>
65175
65176         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65177         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65179         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65180
65181 2006-08-22  Bruno Haible  <bruno@clisp.org>
65182
65183         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65184         and lib_LTLIBRARIES like the other lib_* variables.
65185
65186 2006-08-22  Bruno Haible  <bruno@clisp.org>
65187
65188         * build-aux/x-to-1.in: New file, from GNU gettext.
65189
65190 2006-08-22  Bruno Haible  <bruno@clisp.org>
65191
65192         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65193         <utmpx.h> exists.
65194
65195 2006-08-22  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65198         <utmpx.h> exists.
65199
65200 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         BeOS portability.
65203         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65204         exist.
65205         Problem reported by Bruno Haible.
65206
65207 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65208
65209         Avoid the need for AC_LIBSOURCES in m4 macros.
65210         * modules/acl (EXTRA_DIST): Add acl.h.
65211         * modules/argmatch (Files): Add m4/argmatch.m4.
65212         (configure.ac): Add gl_ARGMATCH.
65213         (EXTRA_DIST): Renamed from lib_SOURCES, for
65214         consistency with the other modules.  Remove argmatch.c.
65215         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65216         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65217         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65218         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65219         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65220         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65221         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65222         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65223         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65224         * modules/closeout (EXTRA_DIST): Add closeout.h.
65225         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65226         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65227         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65228         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65229         dirname.h; remove basename.c and stripslash.c.
65230         * modules/exclude (EXTRA_DIST): Add exclude.h.
65231         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65232         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65233         * modules/file-type (EXTRA_DIST): Add file-type.h.
65234         * modules/filemode (EXTRA_DIST): Add filemode.h.
65235         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65236         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65237         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65238         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65239         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65240         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65241         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65242         * modules/getdate (EXTRA_DIST): Add getdate.c.
65243         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65244         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65245         * modules/getpass (EXTRA_DIST): Add getpass.h.
65246         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65247         * modules/group-member (EXTRA_DIST): Add group-member.h.
65248         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65249         * modules/hash (EXTRA_DIST): Add hash.h.
65250         * modules/human (EXTRA_DIST): Add human.h.
65251         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65252         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65253         * modules/lchown (EXTRA_DIST): Add lchown.h.
65254         * modules/long-options (EXTRA_DIST): Add long-options.h.
65255         * modules/lstat (EXTRA_DIST): Add lstat.h.
65256         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65257         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65258         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65259         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65260         * modules/memxor (EXTRA_DIST): Add memxor.h.
65261         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65262         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65263         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65264         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65265         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65266         * modules/physmem (EXTRA_DIST): Add physmem.h.
65267         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65268         * modules/posixver (EXTRA_DIST): Add posixver.h.
65269         * modules/quote (EXTRA_DIST): Add quote.h.
65270         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65271         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65272         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65273         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65274         regex_internal.h regexec.c.
65275         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65276         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65277         * modules/same (EXTRA_DIST): Add same.h.
65278         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65279         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65280         * modules/savedir (EXTRA_DIST): Add savedir.h.
65281         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65282         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65283         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65284         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65285         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65286         * modules/strdup (EXTRA_DIST): Add strdup.h.
65287         * modules/strftime (EXTRA_DIST): Add strftime.h.
65288         * modules/strndup (EXTRA_DIST): Add strndup.h.
65289         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65290         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65291         * modules/time_r (EXTRA_DIST): Add time_r.h.
65292         * modules/timespec (EXTRA_DIST): Add timespec.h.
65293         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65294         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65295         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65296         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65297         * modules/userspec (EXTRA_DIST): Add userspec.h.
65298         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65299         * modules/utimens (EXTRA_DIST): Add utimens.h.
65300         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65301         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65302         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65303         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65304         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65305         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65306         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65307         * modules/yesno (EXTRA_DIST): Add yesno.h.
65308
65309 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65312
65313         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65314         * m4/dev-ino.m4, same-inode.m4: Remove.
65315
65316         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65317         * m4/acl.m4 (AC_FUNC_ACL):
65318         * m4/backupfile.m4 (gl_BACKUPFILE):
65319         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65320         * m4/canon-host.m4 (gl_CANON_HOST):
65321         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65322         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65323         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65324         * m4/cloexec.m4 (gl_CLOEXEC):
65325         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65326         * m4/closeout.m4 (gl_CLOSEOUT):
65327         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65328         * m4/dirname.m4 (gl_DIRNAME):
65329         * m4/exclude.m4 (gl_EXCLUDE):
65330         * m4/exitfail.m4 (gl_EXITFAIL):
65331         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65332         * m4/file-type.m4 (gl_FILE_TYPE):
65333         * m4/filemode.m4 (gl_FILEMODE):
65334         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65335         * m4/fpending.m4 (gl_FUNC_FPENDING):
65336         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65337         * m4/fts.m4 (gl_FUNC_FTS):
65338         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65339         * m4/getdate.m4 (gl_GETDATE):
65340         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65341         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65342         * m4/getpass.m4 (gl_FUNC_GETPASS):
65343         * m4/gettime.m4 (gl_GETTIME):
65344         * m4/getugroups.m4 (gl_GETUGROUPS):
65345         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65346         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65347         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65348         * m4/hash.m4 (gl_HASH):
65349         * m4/idcache.m4 (gl_IDCACHE):
65350         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65351         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65352         * m4/long-options.m4 (gl_LONG_OPTIONS):
65353         * m4/lstat.m4 (gl_FUNC_LSTAT):
65354         * m4/md5.m4 (gl_MD5):
65355         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65356         * m4/memcoll.m4 (gl_MEMCOLL):
65357         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65359         * m4/memxor.m4 (gl_MEMXOR):
65360         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65361         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65362         * m4/modechange.m4 (gl_MODECHANGE):
65363         * m4/mountlist.m4 (gl_MOUNTLIST):
65364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65365         * m4/openat.m4 (gl_FUNC_OPENAT):
65366         * m4/pathmax.m4 (gl_PATHMAX):
65367         * m4/physmem.m4 (gl_PHYSMEM):
65368         * m4/posixtm.m4 (gl_POSIXTM):
65369         * m4/posixver.m4 (gl_POSIXVER):
65370         * m4/quote.m4 (gl_QUOTE):
65371         * m4/quotearg.m4 (gl_QUOTEARG):
65372         * m4/readtokens.m4 (gl_READTOKENS):
65373         * m4/readutmp.m4 (gl_READUTMP):
65374         * m4/regex.m4 (gl_REGEX):
65375         * m4/safe-read.m4 (gl_SAFE_READ):
65376         * m4/safe-write.m4 (gl_SAFE_WRITE):
65377         * m4/same.m4 (gl_SAME):
65378         * m4/save-cwd.m4 (gl_SAVE_CWD):
65379         * m4/savedir.m4 (gl_SAVEDIR):
65380         * m4/settime.m4 (gl_SETTIME):
65381         * m4/sha1.m4 (gl_SHA1):
65382         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65383         * m4/stat-macros.m4 (gl_STAT_MACROS):
65384         * m4/stat-time.m4 (gl_STAT_TIME):
65385         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65386         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65387         * m4/strdup.m4 (gl_FUNC_STRDUP):
65388         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65389         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65390         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65391         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65392         * m4/time_r.m4 (gl_TIME_R):
65393         * m4/timespec.m4 (gl_TIMESPEC):
65394         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65395         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65396         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65397         * m4/userspec.m4 (gl_USERSPEC):
65398         * m4/utimecmp.m4 (gl_UTIMECMP):
65399         * m4/utimens.m4 (gl_UTIMENS):
65400         * m4/xalloc.m4 (gl_XALLOC):
65401         * m4/xgetcwd.m4 (gl_XGETCWD):
65402         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65403         * m4/xreadlink.m4 (gl_XREADLINK):
65404         * m4/xstrtod.m4 (gl_XSTRTOD):
65405         * m4/yesno.m4 (gl_YESNO):
65406         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65407         to get the necessary .h files and whatnot.
65408
65409 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65410             Bruno Haible  <bruno@clisp.org>
65411
65412         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65413         /bin/sh understanding of '!' conditional negation.
65414
65415 2006-08-21  Jim Meyering  <jim@meyering.net>
65416
65417         * modules/openat (Depends-on): Really alphabetize.
65418
65419         * modules/acl (Depends-on): Add error and quote.
65420
65421         * check-module (find_included_lib_files): Add at-func.c to the
65422         ok-to-include-more-than-once white list.
65423
65424         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65425
65426 2006-08-21  Bruno Haible  <bruno@clisp.org>
65427
65428         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65429         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65430         Reported by Martin Lambers <marlam@marlam.de>.
65431
65432 2006-08-21  Bruno Haible  <bruno@clisp.org>
65433
65434         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65435         specify an installation location, don't emit a noinst_LIBRARIES or
65436         noinst_LTLIBRARIES assignment.
65437
65438 2006-08-21  Bruno Haible  <bruno@clisp.org>
65439
65440         BeOS portability.
65441         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65442         BeOS has mbrtowc() but no <wctype.h>.
65443
65444 2006-08-21  Bruno Haible  <bruno@clisp.org>
65445
65446         BeOS portability.
65447         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65448         exist.
65449
65450 2006-08-21  Bruno Haible  <bruno@clisp.org>
65451
65452         BeOS portability.
65453         * lib/mbchar.h: Include <wctype.h> only if it exists.
65454
65455 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         Remove files that are no longer needed by their respective modules.
65458         * m4/obstack.m4: Remove.
65459         * m4/strerror_r.m4: Remove.
65460         * m4/uint32_t.m4: Remove.
65461         * m4/uintptr_t.m4: Remove.
65462         * m4/ullong_max.m4: Remove.
65463         * m4/xstrtoimax.m4: Remove.
65464         * m4/xstrtoumax.m4: Remove.
65465
65466         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65467         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65468         dependencies now capture this.
65469
65470         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65471         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65472         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65473         * m4/human.m4 (gl_HUMAN): Likewise.
65474         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65475         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65476
65477         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65478
65479         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65480         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65481         stdint.
65482         * m4/human.m4 (gl_HUMAN): Likewise.
65483         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65484         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65485         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65486         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65487         * m4/xstrtol (gl_XSTRTOL): Likewise.
65488
65489         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65490         AC_TYPE_LONG_LONG_INT.
65491         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65492         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65493         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65494         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65495
65496         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65497         on stdbool.
65498
65499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65500         (gl_PREREQ_XSTRTOUL): Remove.
65501
65502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65503
65504         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65505         mode.
65506
65507 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65508
65509         Add and change modules to make it easier for coreutils to use
65510         gnulib-tool.
65511         * modules/backupfile (Files): Remove m4/d-ino.m4.
65512         (Depends-on): Add d-ino.
65513         * modules/cycle-check (Depends-on): Add stdint.
65514         (lib_SOURCES): Add cycle-check.h.
65515         * modules/d-ino: New module.
65516         * modules/d-type: New module.
65517         * modules/error (Files): Remove m4/strerror_r.m4.
65518         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65519         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65520         m4/inttypes_h.m4, m4/uintmax_t.m4.
65521         (Depends-on): Add stdint.
65522         (lib_SOURCES): Add fsusage.h.
65523         * modules/getcwd (Files): Remove d-ino.m4.
65524         (Depends-on): Add d-ino.
65525         * modules/getndelim2 (Depends-on): Add stdint.
65526         * modules/glob (Files): Remove m4/d-type.m4.
65527         (Depends-on): Add d-type.
65528         * modules/host-os: New module.
65529         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65530         m4/inttypes_h.m4, m4/uintmax_t.m4.
65531         * Depends-on: Add stdint.
65532         (lib_SOURCES): Add human.h.
65533         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65534         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65535         m4/uintmax_t.m4, m4/ulonglong.m4.
65536         (Depends-on): Add stdint.
65537         (EXTRA_DIST): Add inttostr.h.
65538         * modules/lchmod: New module.
65539         * modules/link-follow: New module.
65540         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65541         (Depends-on): Add lchmod.
65542         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65543         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65544         (Depends-on): Add stdint.
65545         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65546         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65547         (Depends-on): Add stdint.
65548         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65549         * modules/perl: New module.
65550         * modules/regex (Depends-on): Add stdint.
65551         * modules/rmdir-errno: New module.
65552         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65553         m4/intmax_t.m4.
65554         (Depends-on): Add stdint.
65555         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65556         m4/uintmax_t.m4.
65557         (Depends-on): Add stdint.
65558         * modules/unlink-busy: New module.
65559         * modules/utimecmp (Depends-on): Add stdint.
65560         * modules/uptime: New module.
65561         * modules/winsz-ioctl: New module.
65562         * modules/winsz-termios: New module.
65563         * modules/xnanosleep (Depends-on): Add nanosleep.
65564         * modules/ullong_max: Remove.
65565         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65566         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65567         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65568         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65569         (Depends-on): Add inttypes.
65570         (lib_SOURCES): Add xstrtol.h.
65571         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65572         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65573         * MODULES.html.sh: Move 'assert' into the assert section.
65574         Move 'dummy' into the linking section.
65575         Remove ullong_max.
65576         Add section for compatibility checks for POSIX:2001 functions,
65577         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65578         winsz-ioctl, and winsz-termios into it.
65579         Add lchmod.
65580         Add top-level Misc section and put host-os, perl, and uptime
65581         into it.
65582
65583 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65584
65585         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65586         now assume the stdint module.  Do not include inttypes.h.
65587         * lib/fsusage.h: Likewise.
65588         * lib/getndelim2.c: Likewise.
65589         * lib/human.h: Likewise.
65590         * lib/inttostr.h: Likewise.
65591         * lib/obstack.c: Likewise.
65592         * lib/regex_internal.h: Likewise.
65593         * lib/tempname.c: Likewise.
65594         * lib/utimecmp.c: Likewise.
65595         * lib/xstrtol.h: Likewise.
65596
65597         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65598
65599         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65600         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65601         * lib/xtime.h: Likewise.
65602
65603 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * modules/openat (Files): Add lib/fchmodat.c.
65606         Fixes problem reported by Jay Youngman.
65607
65608 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65611         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65612
65613 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65614             Bruno Haible  <bruno@clisp.org>
65615
65616         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65617         and is a script that invokes bison. Tighten the code. Add comments.
65618
65619 2006-08-18  Jim Meyering  <jim@meyering.net>
65620
65621         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65622         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65623         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65624         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65625
65626 2006-08-18  Bruno Haible  <bruno@clisp.org>
65627
65628         * modules/bison-i18n: New file.
65629         * MODULES.html.sh (Internationalization functions): Add it.
65630
65631 2006-08-18  Bruno Haible  <bruno@clisp.org>
65632
65633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65634         sys/statvfs.h. When getmntinfo was found, check its declaration and
65635         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65636
65637 2006-08-18  Bruno Haible  <bruno@clisp.org>
65638
65639         * m4/bison-i18n.m4: New file, from bison.
65640
65641 2006-08-18  Bruno Haible  <bruno@clisp.org>
65642
65643         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65644         (ME_DUMMY): Treat "kernfs" as a dummy.
65645         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65646
65647 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65648
65649         Update from coreutils.
65650
65651         2006-08-15  Jim Meyering  <jim@meyering.net>
65652
65653         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65654
65655         2006-01-17  Jim Meyering  <jim@meyering.net>
65656
65657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65658
65659         2006-01-11  Jim Meyering  <jim@meyering.net>
65660
65661         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65662         Check for the lchmod function.
65663
65664 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65665
65666         Update from coreutils.
65667
65668         * lib/__fpending.h: Add copyright notice.
65669         * lib/fprintftime.h: Likewise.
65670         * lib/savedir.c: Use (C) in copyright notice.
65671         * lib/savedir.h: Likewise.
65672
65673         2006-08-15  Jim Meyering  <jim@meyering.net>
65674
65675         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65676         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65677         in support of the EXPECTED_ERRNO macro.
65678         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65679         definitions.  Instead, define the appropriate symbols and include
65680         "at-func.c".
65681         * lib/mkdirat.c (mkdirat): Likewise.
65682         * lib/fchmodat.c (fchmodat): Likewise.
65683         (ENOSYS): Remove definition.
65684         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65685         it.  Don't include "unistd--.h" -- it wasn't ever used.
65686
65687         2006-01-17  Jim Meyering  <jim@meyering.net>
65688
65689         Rewrite fts.c not to change the current working directory,
65690         by using openat, fstatat, fdopendir, etc..
65691
65692         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65693         (HAVE_OPENAT_SUPPORT): Define.
65694         [_LIBC] (fchdir): Don't undef or define; no longer used.
65695         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65696         Now, this `function' always succeeds, and consumes its file descriptor
65697         parameter -- so callers must not close such FDs.  Update callers.
65698         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65699         (diropen): Add parameter, SP.  Adjust all callers.
65700         Implement using diropen_fd, rather than open.
65701         (fts_open): Initialize new member, fts_cwd_fd.
65702         Remove fts_rft-setting code.
65703         (fts_close): Close fts_cwd_fd, if necessary.
65704         (__opendir2): Define in terms of opendir or opendirat,
65705         depending on whether the FST_NOCHDIR flag is set.
65706         (fts_build): Since fts_safe_changedir consumes its FD, and since
65707         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65708         and close the dup'd file descriptor upon failure.
65709         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65710         (fts_safe_changedir): Tweak semantics to reflect that this function
65711         now calls cwd_advance_fd and hence consumes its FD argument.
65712         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65713         [struct FTS] (fts_rft): Remove now-unused member.
65714         [struct FTS] (fts_cycle.state): Improve comment.
65715
65716         * lib/openat.c (openat_needs_fchdir): New function.
65717         * lib/openat.h (openat_needs_fchdir): Declare it.
65718
65719 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65722         Problem and fix reported by Pádraig Brady in
65723         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65724
65725 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65726
65727         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65728
65729 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * lib/memcoll.c (memcoll): Optimize for the common case where the
65732         arguments are bytewise equal.
65733
65734 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         * doc/regexprops-generic.texi: Add a copyright notice.
65737
65738 2006-08-15  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/tmpdir (License): Change to LGPL.
65741
65742 2006-08-15  Bruno Haible  <bruno@clisp.org>
65743
65744         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65745         module.
65746
65747 2006-08-14  Simon Josefsson  <jas@extundo.com>
65748
65749         * config/srclist.txt: Add gnupload.
65750
65751 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         Change copyright notice from LGPL 2 to GPL 2, since that's the
65754         standard form used in the gnulib repository.
65755         * tests/test-lock.c: Likewise.
65756         * tests/test-stdint.c: Likewise.
65757         * tests/test-tls.c: Likewise.
65758
65759         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65760         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65761         Add copyright notice.
65762
65763         * check-module: Add copyright notice.  Output a copyright
65764         notice if "--version" is specified.
65765         * modules/COPYING: New file.
65766         * tests/test-getaddrinfo.c: Add copyright notice.
65767         * tests/test-verify.c: Likewise.
65768
65769 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         Change copyright notice from LGPL 2 to GPL 2, since that's the
65772         standard form used in the gnulib repository.
65773         * lib/lock.c: LGPL -> GPL.
65774         * lib/lock.h: Likewise.
65775         * lib/strnlen1.c: Likewise.
65776         * lib/strnlen1.h: Likewise.
65777         * lib/tls.c: Likewise.
65778         * lib/tls.h: Likewise.
65779         * lib/tmpdir.c: Likewise.
65780
65781         * lib/TODO: Remove; this belongs only in coreutils.
65782
65783 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         Add copyright notices to long-enough files that lack them, since
65786         otherwise the files aren't clearly free.  Use the same notice that
65787         getdate.texi already uses.
65788         * doc/alloca-opt.texi: Add copyright notice.
65789         * doc/alloca.texi: Likewise.
65790         * doc/ctime.texi: Likewise.
65791         * doc/functions.texi: Likewise.
65792         * doc/gcd.texi: Likewise.
65793         * doc/gnulib-tool.texi: Likewise.
65794         * doc/inet_ntoa.texi: Likewise.
65795         * doc/visibility.texi: Likewise.
65796
65797         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65798         * doc/quote.texi: Add copyright notice.
65799
65800         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65801         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65802         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65803         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65804         is now obsolete, and give a pointer to the Sun list.
65805         Add copyright notice.
65806
65807 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * config/srclistvars.sh: Add copyright notice.
65810
65811 2006-08-14  Eric Blake  <ebb9@byu.net>
65812
65813         Import the following change from libc:
65814
65815         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65816
65817         Upstream bug 2997.
65818         * lib/misc/error.c: Add space between program name and message if file
65819         name is missing.
65820
65821 2006-08-12  Karl Berry  <karl@gnu.org>
65822
65823         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65824         remove, these originate in gnulib now.
65825
65826 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65827
65828         * doc/Makefile (standards.info standards.html standards.dvi):
65829         Also depend on make-stds.texi.
65830
65831 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65834         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65835
65836         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65837         in wchar_t.  Problem reported by Eric Blake.
65838
65839         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65840         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65841         Also, help the compiler to keep LEN in a register.
65842
65843 2006-08-11  Eric Blake  <ebb9@byu.net>
65844
65845         * users.txt: Sort.  Add tar.
65846
65847 2006-08-11  Bruno Haible  <bruno@clisp.org>
65848
65849         * users.txt: New file.
65850
65851 2006-08-11  Bruno Haible  <bruno@clisp.org>
65852
65853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65854         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65855
65856 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65857
65858         * modules/snprintf (Depends-on): Remove minmax.
65859         (Maintainer): Add self and Bruno.
65860
65861 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65864         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65865         (EOVERFLOW): Define if the system does not.
65866         Do not include "minmax.h"; it wasn't used.
65867         (snprintf): Don't assume size_t promotes to an unsigned type.
65868         Fix bug when generated string was too long for the buffer: the
65869         buffer's contents are supposed to be the initial prefix of the
65870         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65871         exceeds INT_MAX; do the check ourselves.
65872
65873         Import the following changes from libc:
65874
65875         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65876
65877         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65878         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65879         set wc to the byte which couldn't be converted.
65880         (re_string_reconstruct): Don't clear valid_raw_len before calling
65881         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65882         tip_context using re_string_context_at.
65883
65884         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65885
65886         * lib/posix/regex.h: g++ still cannot handled [restrict].
65887
65888         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65889
65890         * lib/posix/regex.h: Remove special handling for VMS.
65891
65892 2006-08-10  Jim Meyering  <jim@meyering.net>
65893
65894         * modules/same-inode: New module.
65895         * modules/dev-ino: New module.
65896         * modules/cycle-check: Depend on these modules, rather than simply
65897         including their .h files.
65898         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65899         required via m4/cycle-check.m4.
65900         * modules/same: Depend on new same-inode module, rather than
65901         including same-inode.h.
65902         * modules/chdir-safer: New file.
65903
65904         * modules/chown (Depends-on): Add stat-macros.
65905
65906 2006-08-10  Jim Meyering  <jim@meyering.net>
65907
65908         * m4/cycle-check.m4: New file.
65909         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65910         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65911
65912 2006-08-10  Eric Blake  <ebb9@byu.net>
65913
65914         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65915         in from original proposal.
65916
65917 2006-08-10  Eric Blake  <ebb9@byu.net>
65918         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65919
65920         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65921         namespace.
65922
65923 2006-08-10  Bruno Haible  <bruno@clisp.org>
65924
65925         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65926         as well.
65927
65928 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         Sync from coreutils.
65931
65932         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65933
65934         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65935         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65936
65937 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * modules/restrict: Remove; no longer needed now that we assume
65940         Autoconf 2.59 or later.
65941         * MODULES.html.sh: Remove 'restrict'.
65942         * modules/argp (Depends-on): Remove 'restrict'.
65943         * modules/base64 (Depends-on): Likewise.
65944         * modules/gc (Depends-on): Likewise.
65945         * modules/getaddrinfo (Depends-on): Likewise.
65946         * modules/glob (Depends-on): Likewise.
65947         * modules/inet_ntop (Depends-on): Likewise.
65948         * modules/inet_pton (Depends-on): Likewise.
65949         * modules/memxor (Depends-on): Likewise.
65950         * modules/regex (Depends-on): Likewise.
65951         * modules/strtok_r (Depends-on): Likewise.
65952         * modules/time_r (Depends-on): Likewise.
65953
65954 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65955
65956         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65957         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65958         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65959         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65960         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65961         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65962         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65963         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65964
65965         Merge from coreutils.
65966         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65967         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65969         * m4/time_r.m4 (gl_TIME_R): Likewise.
65970
65971 2006-08-09  Karl Berry  <karl@gnu.org>
65972
65973         * config/srclist.txt: no more gettext-tools, per Bruno.
65974
65975 2006-08-08  Eric Blake  <ebb9@byu.net>
65976
65977         * modules/verror: New module.
65978         * MODULES.html.sh: Document it.
65979
65980 2006-08-08  Eric Blake  <ebb9@byu.net>
65981
65982         * lib/verror.h, lib/verror.c: New files.
65983
65984 2006-08-08  Eric Blake  <ebb9@byu.net>
65985
65986         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65987         verror_at_line output complies with GNU Coding Standards even when
65988         file is NULL.
65989
65990 2006-08-07  Bruno Haible  <bruno@clisp.org>
65991
65992         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65993         versions of AIX.
65994         Reported by Ralf Wildenhues.
65995
65996 2006-08-07  Bruno Haible  <bruno@clisp.org>
65997
65998         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65999         in an AC_DEFUN. Needed so that the autoconf snippets can use
66000         AC_REQUIRE.
66001
66002 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66003
66004         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66005         Initialize pkgdata_DATA.
66006         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66007         overriding it.
66008
66009 2006-08-06  Eric Blake  <ebb9@byu.net>
66010
66011         * lib/error.h: Fold in some upstream changes from glibc.
66012         * lib/error.c: Likewise.
66013
66014 2006-08-04  Bruno Haible  <bruno@clisp.org>
66015
66016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66017         Make the mostlyclean-local rule depend on mostlyclean-generic.
66018         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66019
66020 2006-07-31  Bruno Haible  <bruno@clisp.org>
66021
66022         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66023         <stdlib.h>, <string.h>.
66024
66025 2006-07-30  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/readlink (License): Change to LGPL.
66028
66029 2006-07-30  Bruno Haible  <bruno@clisp.org>
66030
66031         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66032         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66033         set PKGDATADIR to point to it.
66034
66035 2006-07-30  Bruno Haible  <bruno@clisp.org>
66036
66037         * modules/csharpexec (configure.ac): Comment out macro invocation.
66038         * modules/javaexec (configure.ac): Likewise.
66039         * modules/javacomp-script (configure.ac): Likewise.
66040
66041         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66042
66043 2006-07-30  Bruno Haible  <bruno@clisp.org>
66044
66045         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66046         linked-list.
66047
66048 2006-07-30  Bruno Haible  <bruno@clisp.org>
66049
66050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66051
66052 2006-07-30  Bruno Haible  <bruno@clisp.org>
66053
66054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66055         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66056         get removed.
66057
66058 2006-07-29  Bruno Haible  <bruno@clisp.org>
66059
66060         Make it possible for gnulib-tool to work with locally modified or
66061         augmented gnulib repositories.
66062         * gnulib-tool (func_usage): Document --local-dir option.
66063         (local_gnulib_dir): New variable.
66064         Handle --local-dir option.
66065         (func_lookup_file): New function.
66066         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66067         (func_get_description, func_get_filelist, func_get_description,
66068         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66069         func_get_automake_snippet, func_get_include_directive,
66070         func_get_license, func_get_maintainer): Use func_lookup_file.
66071         (func_import, func_create_testdir): Use func_lookup_file.
66072
66073 2006-07-29  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/setenv (Depends-on): Add unistd.
66076
66077 2006-07-29  Bruno Haible  <bruno@clisp.org>
66078
66079         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66080
66081 2006-07-29  Bruno Haible  <bruno@clisp.org>
66082
66083         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66084
66085 2006-07-29  Bruno Haible  <bruno@clisp.org>
66086
66087         * gnulib-tool (import, update): If there is no Makefile.am, look at
66088         aclocal.m4, instead of bailing out.
66089
66090 2006-07-29  Bruno Haible  <bruno@clisp.org>
66091
66092         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66093         Categorize the options by when they are useful.
66094
66095 2006-07-29  Bruno Haible  <bruno@clisp.org>
66096
66097         * gnulib-tool (func_usage): Document option --no-libtool.
66098         Handle option --no-libtool.
66099         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66100         for changed semantics of $libtool variable.
66101         (func_import): Likewise. If libtool is not used, show this through
66102         an option --no-libtool.
66103         (func_create_testdir): Update.
66104
66105 2006-07-29  Bruno Haible  <bruno@clisp.org>
66106
66107         * gnulib-tool (func_import): Extend error message about missing
66108         --doc-base.
66109
66110 2006-07-29  Bruno Haible  <bruno@clisp.org>
66111
66112         * gnulib-tool (func_import): Don't create the $docbase directory if
66113         there is no file to store there.
66114
66115 2006-07-29  Bruno Haible  <bruno@clisp.org>
66116
66117         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66118         relevant, look for configure.ac there, not in the current directory.
66119         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66120
66121 2006-07-29  Bruno Haible  <bruno@clisp.org>
66122
66123         * gnulib-tool (SORT): New variable.
66124         (func_usage): Undocument --assume-autoconf option.
66125         Remove --assume-autoconf option handling.
66126         (autoconf_minversion): Determine from the contents of configure.ac.
66127         (func_import): Remove autoconf_minversion handling.
66128         Suggested by Eric Blake.
66129
66130 2006-07-29  Bruno Haible  <bruno@clisp.org>
66131
66132         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66133
66134 2006-07-29  Bruno Haible  <bruno@clisp.org>
66135
66136         * config/srclist.txt (*setenv.[ch]): Remove rules.
66137
66138 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66139
66140         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66141
66142 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66143
66144         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66145         arpa/inet.h.
66146
66147 2006-07-28  Simon Josefsson  <jas@extundo.com>
66148
66149         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66150         * modules/inet_pton (Depends-on): Likewise.
66151
66152 2006-07-28  Simon Josefsson  <jas@extundo.com>
66153
66154         * m4/netinet_in_h.m4: New file.
66155
66156 2006-07-28  Simon Josefsson  <jas@extundo.com>
66157
66158         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66159         #include's.
66160
66161 2006-07-28  Simon Josefsson  <jas@extundo.com>
66162
66163         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66164         #include's.
66165
66166 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66167
66168         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66169         setgid on directories only if they set these bits.
66170         * lib/modechange.h: Remove obsolete comment about masks.
66171
66172 2006-07-28  Eric Blake  <ebb9@byu.net>
66173
66174         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66175         macro expansion.
66176
66177 2006-07-28  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66180
66181 2006-07-28  Bruno Haible  <bruno@clisp.org>
66182
66183         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66184
66185 2006-07-28  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66188         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66189         Define fallbacks.
66190         Avoids link error on FreeBSD 4.x.
66191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66192
66193         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66194         encoding.
66195         * lib/mbswidth.c (iswcntrl): Likewise.
66196
66197 2006-07-27  Bruno Haible  <bruno@clisp.org>
66198
66199         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66200         test.
66201
66202 2006-07-27  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66205         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66206         defined.
66207
66208 2006-07-26  Eric Blake  <ebb9@byu.net>
66209
66210         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66211
66212 2006-07-26  Eric Blake  <ebb9@byu.net>
66213
66214         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66215         like mingw that lack mkstemp.
66216         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66217         avoid compilation warning on mingw.
66218
66219 2006-07-26  Bruno Haible  <bruno@clisp.org>
66220
66221         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66222         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66223         INT_FAST*_MIN, INTPTR_MIN.
66224
66225 2006-07-25  Bruno Haible  <bruno@clisp.org>
66226
66227         * modules/version-etc (Depends-on): Add stdarg.
66228
66229 2006-07-25  Bruno Haible  <bruno@clisp.org>
66230
66231         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66232         complex commands.
66233
66234 2006-07-25  Bruno Haible  <bruno@clisp.org>
66235
66236         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66237         defined in <stdarg.h> or config.h.
66238
66239 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66242         (gl_STDIO_SAFER): Remove.
66243
66244 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * MODULES.html.sh (File stream based Input/Output):
66247         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66248         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66249         * modules/fopen-safer, modules/tmpfile-safer: New files.
66250         * modules/stdio-safer: Remove.
66251
66252 2006-07-24  Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/tmpdir: New file.
66255         * MODULES.html.sh (File system functions): Add it.
66256
66257 2006-07-24  Bruno Haible  <bruno@clisp.org>
66258
66259         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66260         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66261
66262 2006-07-24  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/clean-temp: New file.
66265
66266 2006-07-24  Bruno Haible  <bruno@clisp.org>
66267
66268         * m4/tmpdir.m4: New file, from GNU gettext.
66269
66270 2006-07-24  Bruno Haible  <bruno@clisp.org>
66271
66272         * lib/tmpdir.h: New file, from GNU gettext.
66273         * lib/tmpdir.c: New file, from GNU gettext.
66274
66275 2006-07-24  Bruno Haible  <bruno@clisp.org>
66276
66277         * lib/clean-temp.h: New file, from GNU gettext.
66278         * lib/clean-temp.c: New file, from GNU gettext.
66279
66280 2006-07-23  Eric Blake  <ebb9@byu.net>
66281
66282         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66283         (Depends-on): Add binary-io.
66284
66285 2006-07-23  Eric Blake  <ebb9@byu.net>
66286
66287         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66288
66289 2006-07-23  Eric Blake  <ebb9@byu.net>
66290
66291         * lib/tmpfile-safer.c: New file.
66292         * lib/stdio-safer.h (fopen_safer): Add prototype.
66293         * lib/stdio--.h (tmpfile): Make safer.
66294
66295 2006-07-23  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66298         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66299         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66300         gl_linked_remove_at): Use it.
66301
66302 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66303         and Simon Josefsson <jas@extundo.com>
66304
66305         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66306
66307         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66308
66309 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66310
66311         * modules/close-stream: New file.
66312         * modules/closeout (Description): Make it clear that it exits
66313         with a diagnostic on error.
66314         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66315         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66316
66317 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * m4/close-stream.m4: New file.
66320
66321 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * lib/close-stream.c, lib/close-stream.h: New files.
66324
66325 2006-07-22  Bruno Haible  <bruno@clisp.org>
66326
66327         Merge from GNU gettext 0.15.
66328
66329         2006-05-01  Bruno Haible  <bruno@clisp.org>
66330
66331                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66332
66333         2006-07-22  Bruno Haible  <bruno@clisp.org>
66334
66335                 * modules/javaversion: New file.
66336                 * MODULES.html.sh (Java): Add javaversion.
66337
66338         2006-03-12  Bruno Haible  <bruno@clisp.org>
66339
66340                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66341
66342         2005-12-04  Bruno Haible  <bruno@clisp.org>
66343
66344                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66345                 (untested).
66346
66347         2006-06-21  Bruno Haible  <bruno@clisp.org>
66348
66349                 Avoid warnings from recent versions of mcs.
66350                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66351                 -o, -L, -r any more. Use options documented since mcs-1.0
66352                 instead. Similarly for -g.
66353
66354         2005-12-04  Bruno Haible  <bruno@clisp.org>
66355
66356                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66357                 .resources, not .resource.
66358
66359         2005-07-09  Bruno Haible  <bruno@clisp.org>
66360
66361                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66362                 add a .dll suffix.
66363                 Reported by Mark Junker <mjscod@gmx.de>.
66364
66365         2006-07-22  Bruno Haible  <bruno@clisp.org>
66366
66367                 * modules/gettext: Upgrade to gettext-0.15.
66368                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66369                 m4/visibility.m4.
66370                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66371
66372 2006-07-22  Bruno Haible  <bruno@clisp.org>
66373
66374         Merge from GNU gettext 0.15.
66375
66376         2006-03-25  Bruno Haible  <bruno@clisp.org>
66377
66378                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66379
66380         2006-07-21  Bruno Haible  <bruno@clisp.org>
66381
66382                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66383                 "1.1".
66384
66385         2006-05-09  Bruno Haible  <bruno@clisp.org>
66386
66387                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66388                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66389                 for the conftestver execution.
66390
66391         2006-05-01  Bruno Haible  <bruno@clisp.org>
66392
66393                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66394                 optional target-version argument. Verify that the compiler
66395                 groks source of the specified source-version, or add -source
66396                 option as necessary. Verify that the compiler produces
66397                 bytecode in the specified target-version, or add -target and
66398                 -source options as necessary. Make the result of the test
66399                 available as variable CONF_JAVAC. Also log error output in
66400                 config.log.
66401
66402         2006-03-11  Bruno Haible  <bruno@clisp.org>
66403
66404                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66405
66406         2006-05-09  Bruno Haible  <bruno@clisp.org>
66407
66408                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66409                 CLASSPATH_SEPARATOR to a semicolon.
66410
66411         2006-03-12  Bruno Haible  <bruno@clisp.org>
66412
66413                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66414                 available as variable CONF_JAVA, for subsequent autoconf
66415                 tests. Also log error output in config.log.
66416
66417         2006-07-19  Bruno Haible  <bruno@clisp.org>
66418
66419                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66420                 that getline works on glibc2 systems. Needed to avoid trouble
66421                 in relocatable.c.
66422                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66423
66424         2005-12-04  Bruno Haible  <bruno@clisp.org>
66425
66426                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66427                 launcher (untested).
66428
66429         2005-12-04  Bruno Haible  <bruno@clisp.org>
66430
66431                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66432
66433         2006-07-22  Bruno Haible  <bruno@clisp.org>
66434
66435                 * gettext.m4: Update from GNU gettext-0.15.
66436                 * nls.m4: Likewise.
66437                 * po.m4: Likewise.
66438                 * inttypes-pri.m4: Likewise.
66439                 * inttypes-h.m4: Renamed from inttypes.m4.
66440                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66441
66442 2006-07-22  Bruno Haible  <bruno@clisp.org>
66443
66444         Merge from GNU gettext 0.15.
66445
66446         2005-07-05  Bruno Haible  <bruno@clisp.org>
66447
66448                 * printf-args.c (printf_fetchargs): Work around broken
66449                 definition of wint_t on mingw.
66450
66451         2005-02-12  Bruno Haible  <bruno@clisp.org>
66452
66453                 * xallocsa.h: Add extern "C" for C++.
66454
66455         2006-05-17  Bruno Haible  <bruno@clisp.org>
66456
66457                 Cygwin portability.
66458                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66459
66460         2006-04-30  Bruno Haible  <bruno@clisp.org>
66461
66462                 * progreloc.c: Include <mach-o/dyld.h> if available.
66463                 (find_executable): Use _NSGetExecutablePath when possible.
66464
66465         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66466
66467                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66468                 function.
66469
66470         2005-12-29  Bruno Haible  <bruno@clisp.org>
66471
66472                 * progreloc.c (set_program_name_and_installdir): Fix
66473                 compilation error.
66474
66475         2005-12-04  Bruno Haible  <bruno@clisp.org>
66476
66477                 Cygwin portability.
66478                 * progreloc.c: Include <windows.h> also on Cygwin.
66479                 (find_executable): Add support for Cygwin.
66480                 (set_program_name_and_installdir): Handle also platforms with
66481                 nonempty EXEEXT.
66482
66483         2006-07-11  Bruno Haible  <bruno@clisp.org>
66484
66485                 * javacomp.c: Fix a comment.
66486                 Reported by Jim Meyering.
66487
66488         2006-04-30  Bruno Haible  <bruno@clisp.org>
66489
66490                 * javacomp.h (compile_java_class): Add source_version,
66491                 target_version arguments.
66492                 * javacomp.c: Rewritten to choose only a compiler that
66493                 respects the specified source_version and target_version.
66494
66495         2006-06-27  Bruno Haible  <bruno@clisp.org>
66496
66497                 Assume correct S_ISDIR macro.
66498                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66499
66500         2006-07-22  Bruno Haible  <bruno@clisp.org>
66501
66502                 * javaversion.h: New file, from GNU gettext.
66503                 * javaversion.c: New file, from GNU gettext.
66504                 * javaversion.java: New file, from GNU gettext.
66505                 * javaversion.class: New file, from GNU gettext.
66506
66507         2006-05-17  Bruno Haible  <bruno@clisp.org>
66508
66509                 Cygwin portability.
66510                 * javaexec.c (execute_java_class): Test for jview program
66511                 also on Cygwin.
66512
66513         2006-04-09  Bruno Haible  <bruno@clisp.org>
66514
66515                 * fatal-signal.c: Don't include string.h.
66516                 (at_fatal_signal): Use a copying loop instead of memcpy.
66517
66518         2005-12-04  Bruno Haible  <bruno@clisp.org>
66519
66520                 * csharpexec.c: Add support for 'clix' launcher (untested).
66521                 (execute_csharp_using_sscli): New function.
66522                 (execute_csharp_program): Call it.
66523
66524         2006-06-21  Bruno Haible  <bruno@clisp.org>
66525
66526                 Avoid warnings from recent versions of mcs.
66527                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66528                 -o, -L, -r any more. Use options documented since mcs-1.0
66529                 instead. Similarly for -g.
66530
66531         2005-07-09  Bruno Haible  <bruno@clisp.org>
66532
66533                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66534                 add a .dll suffix.
66535                 Reported by Mark Junker <mjscod@gmx.de>.
66536
66537         2006-06-17  Bruno Haible  <bruno@clisp.org>
66538
66539                 * config.charset: Update for NetBSD 3.0.
66540
66541         2006-05-17  Bruno Haible  <bruno@clisp.org>
66542
66543                 Cygwin portability.
66544                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66545
66546         2006-05-16  Bruno Haible  <bruno@clisp.org>
66547
66548                 * localcharset.c [CYGWIN]: Include <windows.h>.
66549                 (get_charset_aliases): For Cygwin, return the same CPxxx
66550                 aliases list as under WIN32.
66551                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66552                 the environment variables. Fall back to GetACP().
66553
66554         2006-04-05  Bruno Haible  <bruno@clisp.org>
66555
66556                 * config.charset: Update Juan Manuel Guerrero's address.
66557
66558         2005-02-12  Bruno Haible  <bruno@clisp.org>
66559
66560                 * allocsa.h: Add extern "C" for C++.
66561
66562         2005-02-10  Bruno Haible  <bruno@clisp.org>
66563
66564                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66565                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66566
66567         2006-07-22  Bruno Haible  <bruno@clisp.org>
66568
66569                 * gettext.h: Update to GNU gettext-0.15.
66570
66571 2006-07-22  Bruno Haible  <bruno@clisp.org>
66572
66573         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66574         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66575         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66576
66577 2006-07-21  Eric Blake  <ebb9@byu.net>
66578
66579         * modules/stdlib-safer: New file.
66580         * MODULES.html.sh (File stream based Input/Output): Add
66581         stdlib-safer.
66582
66583 2006-07-21  Eric Blake  <ebb9@byu.net>
66584
66585         * lib/stdlib-safer.h: New file from coreutils, required by
66586         stdlib--.h.
66587
66588 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66591
66592 2006-07-20  Bruno Haible  <bruno@clisp.org>
66593
66594         * gnulib-tool: Recognize new option --assume-autoconf.
66595         (autoconf_minversion): New variable.
66596         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66597
66598 2006-07-20  Bruno Haible  <bruno@clisp.org>
66599
66600         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66601
66602 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66603
66604         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66605         Reindent and repaginate.
66606
66607 2006-07-19  Derek Price  <derek@ximbiot.com>
66608
66609         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66610         Correct grammar.
66611
66612 2006-07-17  Bruno Haible  <bruno@clisp.org>
66613
66614         * modules/list: New file.
66615         * modules/array-list: New file.
66616         * modules/carray-list, modules/carray-list-tests: New files.
66617         * modules/linked-list, modules/linked-list-tests: New files.
66618         * modules/avltree-list, modules/avltree-list-tests: New files.
66619         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66620         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66621         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66622         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66623         * modules/oset: New file.
66624         * modules/array-oset: New file.
66625         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66626         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66627         * tests/test-carray_list.c: New file.
66628         * tests/test-linked_list.c: New file.
66629         * tests/test-avltree_list.c: New file.
66630         * tests/test-rbtree_list.c: New file.
66631         * tests/test-linkedhash_list.c: New file.
66632         * tests/test-avltreehash_list.c: New file.
66633         * tests/test-rbtreehash_list.c: New file.
66634         * tests/test-avltree_oset.c: New file.
66635         * tests/test-rbtree_oset.c: New file.
66636         * MODULES.html.sh (Container data structures): New section.
66637
66638 2006-07-17  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/gl_list.m4: New file.
66641
66642 2006-07-17  Bruno Haible  <bruno@clisp.org>
66643
66644         * lib/gl_list.h: New file.
66645         * lib/gl_list.c: New file.
66646         * lib/gl_array_list.h: New file.
66647         * lib/gl_array_list.c: New file.
66648         * lib/gl_carray_list.h: New file.
66649         * lib/gl_carray_list.c: New file.
66650         * lib/gl_linked_list.h: New file.
66651         * lib/gl_linked_list.c: New file.
66652         * lib/gl_anylinked_list1.h: New file.
66653         * lib/gl_anylinked_list2.h: New file.
66654         * lib/gl_avltree_list.h: New file.
66655         * lib/gl_avltree_list.c: New file.
66656         * lib/gl_anyavltree_list1.h: New file.
66657         * lib/gl_anyavltree_list2.h: New file.
66658         * lib/gl_rbtree_list.h: New file.
66659         * lib/gl_rbtree_list.c: New file.
66660         * lib/gl_anyrbtree_list1.h: New file.
66661         * lib/gl_anyrbtree_list2.h: New file.
66662         * lib/gl_anytree_list1.h: New file.
66663         * lib/gl_anytree_list2.h: New file.
66664         * lib/gl_linkedhash_list.h: New file.
66665         * lib/gl_linkedhash_list.c: New file.
66666         * lib/gl_anyhash_list1.h: New file.
66667         * lib/gl_anyhash_list2.h: New file.
66668         * lib/gl_avltreehash_list.h: New file.
66669         * lib/gl_avltreehash_list.c: New file.
66670         * lib/gl_rbtreehash_list.h: New file.
66671         * lib/gl_rbtreehash_list.c: New file.
66672         * lib/gl_anytreehash_list1.h: New file.
66673         * lib/gl_anytreehash_list2.h: New file.
66674
66675         * lib/gl_oset.h: New file.
66676         * lib/gl_oset.c: New file.
66677         * lib/gl_array_oset.h: New file.
66678         * lib/gl_array_oset.c: New file.
66679         * lib/gl_avltree_oset.h: New file.
66680         * lib/gl_avltree_oset.c: New file.
66681         * lib/gl_rbtree_oset.h: New file.
66682         * lib/gl_rbtree_oset.c: New file.
66683         * lib/gl_anytree_oset.h: New file.
66684
66685 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         * m4/mkancesdirs.m4: New file.
66688         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66689         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66690         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66691         it.
66692
66693 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66696         * lib/mkancesdirs.h: New files.
66697         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66698         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66699         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66700         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66701         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66702         callers changed.  Revamp internals significantly, by not
66703         attempting to create directories that are temporarily more
66704         permissive than the final results.  Do not attempt to use
66705         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66706         This removes some race conditions, fixes some bugs, and simplifies
66707         things.  Use new dirchownmod function to do owner and mode changes.
66708         * lib/mkdir-p.h: Likewise.
66709         * lib/modechange.c (octal_to_mode): New function.
66710         (struct mode_change): New member mentioned.
66711         (make_node_op_equals): New arg mentioned.  All callers changed.
66712         (mode_compile): Keep track of which mode bits the user has explicitly
66713         mentioned.
66714         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66715         New arg PMODE_BITS, to keep track of which mode bits the user
66716         mentioned; it treats S_ISUID and S_ISGID speciall.
66717         All callers changed.
66718         * lib/modechange.h: Likewise.
66719
66720 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * MODULES.html.sh: Add mkancestors.
66723         * modules/mkancesdirs: New module.
66724         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66725         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66726         The chdir-safer and afs files are now orphans; I'll remove them
66727         unless someone speaks up.
66728         Add lib/dirchownmod.c, lib/dirchownmod.h.
66729         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66730         Add lchown, mkancesdirs.
66731         (Maintainer): Add self.
66732
66733 2006-07-15  Karl Berry  <karl@gnu.org>
66734
66735         * gnulib-tool: help message wording/arrangement.
66736
66737 2006-07-14  Simon Josefsson  <jas@extundo.com>
66738
66739         * doc/gnulib.texi (Libtool and Windows): New section.
66740
66741 2006-07-12  Simon Josefsson  <jas@extundo.com>
66742
66743         * modules/gendocs (License): Fix license, approved by Karl.
66744
66745 2006-07-12  Eric Blake  <ebb9@byu.net>
66746
66747         * MODULES.html.sh: Add gendocs.
66748
66749 2006-07-11  Eric Blake  <ebb9@byu.net>
66750
66751         * modules/fdl: New module, to install doc/fdl.texi.
66752         * MODULES.html.sh: Add new section for documentation modules.
66753         * gnulib-tool: Avoid space-tab.
66754         (--doc-base): New option, to manage files from doc.
66755
66756 2006-07-11  Eric Blake  <ebb9@byu.net>
66757
66758         * m4/absolute-header.m4: Fix comments to match recent change.
66759
66760 2006-07-11  Eric Blake  <ebb9@byu.net>
66761
66762         * gnulib-tool: List --doc-base before --tests-base.
66763
66764 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66765
66766         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66767
66768 2006-07-11  Bruno Haible  <bruno@clisp.org>
66769
66770         * README: Mention where to put documentation.
66771
66772 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66773
66774         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66775
66776 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66779         to stdint.m4.
66780
66781 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66784         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66785         "no/such/file/stdint.h" when there is no such file, so that
66786         the resulting C code can be parsed by dodgy compilers.
66787         Problems reported by Bob Proulx.
66788
66789 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66790
66791         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66793         macros into the GNU _D_EXACT_NAMLEN.
66794         * lib/savedir.c:  Likewise.
66795         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66796
66797 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66798         and Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66801         * m4/savedir.m4:
66802         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66803         macros into the GNU _D_EXACT_NAMLEN.
66804
66805 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66808         around the absolute name, to work around a problem with the HP-UX
66809         11.23 native C compiler, reported by Bob Proulx.
66810
66811 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * doc/maintain.texi, make-stds.texi: Sync from
66814         <http://savannah.gnu.org/projects/gnustandards>.
66815
66816 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66819
66820 2006-07-09  Jim Meyering  <jim@meyering.net>
66821
66822         * m4/glob.m4: Remove a doubled word in a comment.
66823
66824 2006-07-09  Jim Meyering  <jim@meyering.net>
66825
66826         * lib/argp-pv.c: Remove a doubled word in a comment.
66827         * lib/check-version.c (check_version): Likewise.
66828         * lib/javacomp.c (compile_java_class): Likewise.
66829
66830 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66831
66832         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66833         for the benefit of people using Autoconf 2.60.  If you want to
66834         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66835         (or m4/onceonly.m4, if pre-2.57) manually.
66836
66837 2006-07-08  Jim Meyering  <jim@meyering.net>
66838
66839         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66840         comment.
66841         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66842         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66843         comment.
66844
66845 2006-07-08  Jim Meyering  <jim@meyering.net>
66846
66847         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66848
66849 2006-07-07  Simon Josefsson  <jas@extundo.com>
66850
66851         * tests/test-crc.c: Change expected crc value, the test vector
66852         were probably computed using the old broken crc.c?
66853
66854 2006-07-06  Simon Josefsson  <jas@extundo.com>
66855
66856         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66857         now the canonical place for the M4 file).
66858
66859         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66860         from the sys_socket dependency now.
66861
66862         * modules/inet_pton (Files): Ditto.
66863
66864         * modules/inet_ntop (Files): Ditto.
66865
66866 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66867
66868         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66869         not gl_PREREQ_GETUSERSHELL.
66870
66871 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66872
66873         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66874         with only one argument, for Autoconf 2.60.
66875         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66876         expand to nothing, so add a shell command to avoid syntax error.
66877         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66878
66879 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66880
66881         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66882
66883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66886         no longer needed.  Check for isblank decl.
66887         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66888         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66889         of existence.
66890
66891 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66892
66893         * lib/getloadavg.c: Use __VMS, not VMS.
66894         * lib/getopt.c: Likewise.
66895         * lib/getpagesize.h: Likewise.
66896         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66897         and probably does not work.
66898
66899 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * lib/.cppi-disable: Add wcwidth.
66902         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66903         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66904         (ISGRAPH): Remove.  All uses changed to isgraph.
66905         (FOLD) [!defined _LIBC]: Remove special case.
66906         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66907         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66908         HAVE_ISBLANK.
66909         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66910         case.
66911
66912 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66913
66914         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66915         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66916         brackets.  Other minor changes to suppress some compiler
66917         warnings.
66918
66919 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66920         and Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66923         of invoking obsolescent AC_HEADER_DIRENT macro.
66924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66925         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66926         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66928         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66929         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66930         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66931         * m4/readdir.m4: Remove; no longer needed.
66932
66933 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66934         and Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66937         Don't worry about this obsolete case any more.
66938         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66939         directories.
66940         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66941         worry about this obsolete case any more.
66942         * lib/fts.c: Likewise.
66943         * lib/getcwd.c: Likewise.
66944         * lib/glob.h: Likewise.
66945         * lib/savedir.c: Likewise.
66946
66947 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66948
66949         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66950         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66951         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66952         needed.
66953         All uses removed.
66954         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66955         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66956         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66957         needed.
66958         * m4/getdate.m4 (gl_GETDATE): Likewise.
66959         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66960         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66961         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66962         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66963         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66965         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66966         needed.
66967
66968 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66969
66970         * lib/memcasecmp.c: Include <limits.h>.
66971         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66972         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66973         Don't assume isdigit succeeds only on '0' through '9'.
66974
66975 2006-07-05  Eric Blake  <ebb9@byu.net>
66976
66977         * modules/getaddrinfo (Depends-on): Add snprintf.
66978
66979 2006-07-05  Eric Blake  <ebb9@byu.net>
66980
66981         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66982         to avoid 'header present but could not be compiled' on cygwin.
66983
66984 2006-07-05  Eric Blake  <ebb9@byu.net>
66985
66986         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66987         missing from netdb.h.
66988         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66989
66990 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66991
66992         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66993         no longer needed.
66994         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66995         * m4/getdate.m4 (gl_GETDATE): Likewise.
66996         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66997         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66998         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66999         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67001
67002 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67003
67004         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67005         All uses of is_space replaced by isspace.
67006         * lib/exit.h: Don't talk about STDC_HEADERS.
67007         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67008         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67009         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67010         replaced by isprint etc.
67011         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67012         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67013         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67014         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67015         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67016         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67017
67018 2006-07-05  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67021         the function exists, before testing against AIX.
67022         Reported by Martin Lambers <marlam@marlam.de>.
67023
67024 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67027         From Mark D. Baushke.
67028
67029 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67032         to the absolute name, not just one, to bypass Sun C 5.8's
67033         "warning: #include of /usr/include/... may be non-portable".
67034
67035 2006-07-04  Eric Blake  <ebb9@byu.net>
67036
67037         * modules/dirname-tests: New test module.
67038         * tests/test-dirname.c: New file, replacing dirname.c
67039         TEST_DIRNAME section that was recently deleted.
67040
67041 2006-07-04  Bruno Haible  <bruno@clisp.org>
67042
67043         Assume ANSI C header files and <ctype.h> functions.
67044         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67045         (mbsnwidth): Use isprint, iscntrl instead.
67046
67047 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         Merge from coreutils.
67050         * MODULES.html.sh: Add xstrtold.
67051         * modules/xstrtold: New file.
67052         * modules/cycle-check (Files): Add lib/same-inode.h.
67053         * modules/dirname (Files): Add m4/double-slash-root.m4.
67054         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67055         * modules/mkdir-p (Files): Add lib/same-inode.h.
67056         * modules/same (Files): Add lib/same-inode.h.
67057
67058 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67059
67060         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67061         This is to keep the terminology clean; POSIX talks about
67062         "absolute pathnames", not "full pathnames", but the GNU
67063         Coding Standards say to use "path" for something else;
67064         so use "absolute" to keep both sides happy.
67065         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67066         Set gl_absolute_header, not gl_full_header_path.
67067         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67068         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67069         All uses changed.
67070
67071         Merge from coreutils.
67072
67073         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67074
67075         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67076         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67077         want to require the building of c-strtod.o.
67078         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67079         needs -lm directly.
67080         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67081
67082         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67085         --as-needed option if available.  Problem reported by Albert Chin in
67086         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67087         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67088         cc merely issues a bunch of annoying warnings for --as-needed
67089         (this problem was reported by Bob Proulx).  Also, try linking with
67090         -lm to detect a bug in binutils 2.16 (this problem was reported
67091         by Ralf Wildenhues).
67092
67093         2006-06-18  Jim Meyering  <jim@meyering.net>
67094
67095         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67096         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67097         macro.
67098         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67099         also check for glibc-2.4's abort-inducing bug.
67100
67101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67102         Low-probability clean-up should be to use rmdir to get rid of
67103         the just-created directory, not unlink.
67104
67105         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67106         configure fail, and request a bug report to inform us about it.
67107         Add a comment that, barring reports to the contrary, in 2007 we'll
67108         assume ftruncate is universally available.
67109
67110         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67113
67114         2006-03-12  Jim Meyering  <jim@meyering.net>
67115
67116         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67117         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67118         * m4/same.m4 (gl_SAME): Likewise.
67119         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67120
67121         2006-03-11  Eric Blake  <ebb9@byu.net>
67122
67123         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67124         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67125         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67126         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67127
67128 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67129
67130         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67131         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67132         reported by Mark D. Baushke, one in
67133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67134
67135         Merge from coreutils.
67136
67137         * lib/.cppi-disable: Add stdint_.h.
67138         * lib/.cvsignore: Add stdint.h.
67139
67140         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67141
67142         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67143         both double and long double versions.
67144         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67145         * lib/xstrtold.c: New file.
67146         * lib/xstrtod.h (xstrtold): New decl.
67147
67148         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * lib/filemode.c (setst): Remove.
67151         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67152         (arguably) clearer, and the generated code is a bit smaller on my
67153         Debian GNU/Linux stable x86 host.
67154
67155         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67158         Assume that filemode.h includes sys/types.h and sys/stat.h.
67159         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67160         (ftypelet): Reorder to put common cases first, for efficiency.
67161         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67162         to do 'M'.
67163         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67164         of 10, for compatibility with FreeBSD.  All callers changed.
67165         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67166         types that can't be deduced solely from st_mode.  First arg is now a
67167         const pointer.
67168         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67169         (strmode): Renamed from mode_string.
67170         (filemodestring): New decl.
67171         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67172         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67173         needed.
67174         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67175
67176         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67179         fsusage.h now does that.  Include fsusage.h first, to test interface.
67180         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67181         at most one method (the old code could have generated decls that
67182         didn't conform to C89, not that this was ever exercised).
67183         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67184
67185         2006-03-19  Jim Meyering  <jim@meyering.net>
67186
67187         Work even in a chroot where d_ino values for entries in "/"
67188         don't match the stat.st_ino values for the same names.
67189         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67190         number, iterate through all entries again, using lstat instead.
67191         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67192         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67193
67194         * lib/getcwd.c (__getcwd): Clarify a comment.
67195         Use memcpy in place of a call to strcpy.
67196
67197         2006-03-12  Jim Meyering  <jim@meyering.net>
67198
67199         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67200         matches that of the current directory (which we're about to chdir ".."
67201         out of), then save the dev-ino of the parent, instead.
67202
67203         * lib/same-inode.h (SAME_INODE): New file/macro.
67204         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67205         Include "same-inode.h", instead.
67206         * lib/same.c: Likewise.
67207         * lib/cycle-check.h: Include "same-inode.h".
67208         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67209         * lib/cycle-check.c (SAME_INODE): Remove definition.
67210         * lib/root-dev-ino.h: Include "same-inode.h".
67211
67212         2006-03-11  Eric Blake  <ebb9@byu.net>
67213
67214         * lib/same.c (same_name): s/base_name/last_component/
67215         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67216         * lib/filenamecat.c (file_name_concat): Likewise.
67217
67218         2006-03-11  Eric Blake  <ebb9@byu.net>,
67219                     Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67222         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67223         drive prefix.
67224         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67225         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67226         (last_component): New method.
67227         * lib/dirname.c (dir_len): Determine when drive letters need a
67228         subsequent slash.  Preserve // when it is special.
67229         (dir_name): Don't append dot when drive letter is absolute.
67230         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67231         * lib/basename.c (base_name): New semantics - malloc the result.
67232         Preserve // when it is special.  Preserve relative files that look
67233         like drive letters.
67234         (base_len): Preserve // when it is special.
67235         (last_component): New method, similar to old base_name semantics.
67236         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67237         base_name.  Strip redundant slashes from ///.
67238
67239 2006-07-03  Jim Meyering  <jim@meyering.net>
67240
67241         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67242         macro is used before the first cycle_check call.
67243
67244 2006-07-03  Eric Blake  <ebb9@byu.net>
67245
67246         * modules/dirname (Depends-on): Add xstrndup.
67247
67248 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67251         test cases, so that config.log is a bit easier to follow.
67252
67253 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67256         both are 64 bits, since this seems to be the tradition, and this
67257         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67258         we ever run into a host that prefers long long to long in this
67259         case, we'll need another configure-time test.  Problem reported by
67260         Jim Meyering.
67261
67262 2006-07-02  Eric Blake  <ebb9@byu.net>
67263
67264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67265
67266 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * modules/inttypes (Depends-on): No longer depends on stdint.
67269         * modules/stdint (Description): Say more about assumptions.
67270         Say that the fast types might differ.  Say macros are used.
67271         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67272         (Makefile.am): Revise list of substituted symbols to match
67273         new stdint.m4.
67274         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67275         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67276         * tests/test-stdint.c (verify_same_types)
67277         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67278         the code conforms to C99/C89.
67279         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67280         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67281
67282 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67285         but fix a bug, by requiring at least 64 bits.
67286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67287         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67288         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67289         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67290
67291         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67292         changes.  Make 2.59 a prerequisite.  Check and substitute for
67293         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67294         inttypes.h.  Do not use special include files; just use the
67295         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67296         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67297         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67298         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67299         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67300         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67301         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67302         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67303         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67304         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67305         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67306         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67307         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67308         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67309         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67310         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67311         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67312         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67313         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67314         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67315         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67316         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67317         not check for things that C99 does not require, e.g., int8_t.  If
67318         a test isn't needed unless <stdint.h> isn't working, and is
67319         unlikely to be needed for any other reason, then don't do it
67320         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67321         size_t, since we assume C89 freestanding at least.  Do not check
67322         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67323         the right thing even if the types are not defined.  Instead use:
67324         (gl_STDINT_TYPE_PROPERTIES): New macro.
67325         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67326         testing whether <sys/types.h> clashes, as Autoconf does this for
67327         us now.  All uses removed.
67328         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67329         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67330         (gl_CHECK_TYPE_SAME):
67331         Remove; no longer needed.
67332         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67333         exists, since we'll return 0 anyway in that case.
67334         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67335
67336 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67339         possible collision with system files.
67340         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67341         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67342         WCHAR_MIN and WCHAR_MAX in this case.
67343         (<stddef.h>): Do not include; no longer needed.
67344         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67345         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67346         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67347         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67348         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67349         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67350         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67351         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67352         !defined(__c99))]: Include in this case too, since it's harmless
67353         now.
67354         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67355         dangerous to do so.
67356         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67357         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67358         (_STDINT_MIN, _STDINT_MAX): New macros.
67359         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67360         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67361         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67362         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67363         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67364         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67365         macros, not typedefs; this simplifies things quite a bit.
67366         Use long int for all types narrower than int64_t.
67367         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67368         Define in terms of long long int or int64_t or long int,
67369         not int64_t or int32_t.  This saves some compile-time testing.
67370         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67371         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67372         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67373         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67374         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67375         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67376         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67377         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67378         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67379         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67380         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67381         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67382         undef any previous version and define our own version, for
67383         simplicity and consistency with the new macros for types.
67384         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67385         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67386         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67387         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67388         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67389         @WINT_T_SUFFIX@ to keep things simple here.
67390         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67391         Simplify by assuming typical 8/16/32/64 host, since we're
67392         already doing that elsewhere anyway.
67393         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67394         and assume long long int is 64 bits if available.  This
67395         speeds up 'configure'.
67396
67397 2006-07-01  Eric Blake  <ebb9@byu.net>
67398
67399         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67400         Reported by Andreas Buening.
67401
67402 2006-07-01  Eric Blake  <ebb9@byu.net>
67403
67404         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67405
67406 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67407
67408         * lib/getaddrinfo.c: fixed typo
67409
67410 2006-06-29  Jim Meyering  <jim@meyering.net>
67411
67412         * modules/strftime (Maintainer): Add my name, since with the
67413         FPRINTFTIME changes strftime.c has forked from glibc.
67414
67415 2006-06-29  Eric Blake  <ebb9@byu.net>
67416
67417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67418
67419 2006-06-29  Eric Blake  <ebb9@byu.net>
67420
67421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67422
67423 2006-06-29  Eric Blake  <ebb9@byu.net>
67424
67425         * lib/stat_.h: New file.
67426
67427 2006-06-29  Eric Blake  <ebb9@byu.net>
67428
67429         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67430         unused static function.
67431
67432 2006-06-29  Eric Blake  <ebb9@byu.net>
67433
67434         * doc/functions.texi (Function Portability): Document missing lstat
67435         on mingw.
67436
67437 2006-06-29  Eric Blake  <ebb9@byu.net>
67438
67439         * MODULES.html.sh: Add sys_stat.
67440         * modules/sys_stat: New module.
67441         * modules/mkstemp (Depends-on): Add sys_stat.
67442
67443 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67444
67445         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67446
67447 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67448
67449         * m4/c-bs-a.m4: Removed.
67450
67451 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67452
67453         * lib/strftime.c: Assume strftime() exists.
67454
67455 2006-06-29  Derek Price  <derek@ximbiot.com>
67456
67457         * modules/c-bs-a: Removed - \a is C89.
67458         * MODULES.html.sh: Remove c-bs-a.
67459
67460 2006-06-29  Bruno Haible  <bruno@clisp.org>
67461
67462         * modules/wcwidth (License): Change to LGPL.
67463
67464 2006-06-28  Simon Josefsson  <jas@extundo.com>
67465
67466         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67467         on _WIN32.
67468
67469         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67470         getnameinfo.
67471
67472 2006-06-28  Simon Josefsson  <jas@extundo.com>
67473
67474         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67475
67476 2006-06-28  Simon Josefsson  <jas@extundo.com>
67477
67478         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67479         functions there.  It will succeed on Windows XP, but on Windows
67480         2000 and (presumably) earlier, it will fail, and use the internal
67481         re-implementation.
67482         (use_win32_p): New function.
67483         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67484         Support AI_NUMERICSERV to disable getservbyname.
67485         (getnameinfo): New function, only supports
67486         NI_NUMERICHOST|NI_NUMERICSERV for now.
67487
67488         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67489         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67490         getnameinfo.
67491
67492 2006-06-28  Eric Blake  <ebb9@byu.net>
67493
67494         * modules/wcwidth: New file.
67495         * modules/mbchar (Depends-on): Add wcwidth.
67496         * modules/mbswidth (Depends-on): Add wcwidth.
67497         * MODULES.html.sh: Add wcwidth.
67498
67499 2006-06-28  Eric Blake  <ebb9@byu.net>
67500
67501         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67503
67504 2006-06-28  Eric Blake  <ebb9@byu.net>
67505
67506         * lib/xvasprintf.h: Fix comments.
67507
67508 2006-06-28  Eric Blake  <ebb9@byu.net>
67509
67510         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67511         * lib/mbswidth.c (wcwidth): Move from here...
67512         * lib/wcwidth.h: ...to this new file.
67513
67514 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67515
67516         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67517
67518         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67519         it's obsolete.
67520         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67521
67522 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67523
67524         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67525         Autoconf 2.60 says this stuff was obsolete.
67526
67527 2006-06-28  Bruno Haible  <bruno@clisp.org>
67528
67529         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67530
67531 2006-06-28  Bruno Haible  <bruno@clisp.org>
67532
67533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67534         gt_TYPE_WCHAR_T.
67535
67536 2006-06-28  Bruno Haible  <bruno@clisp.org>
67537
67538         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67539         declaration for wcwidth.
67540         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67541
67542 2006-06-28  Bruno Haible  <bruno@clisp.org>
67543
67544         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67545         (mkdir): Define using _mkdir.
67546
67547 2006-06-28  Bruno Haible  <bruno@clisp.org>
67548
67549         * lib/getaddrinfo.h: Fix POSIX URL.
67550         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67551         _WIN32.
67552         (use_win32_p): Make static.
67553         (getaddrinfo): Reject service name if it is empty or does not consist
67554         solely of decimal digits, or if its value is > 65535.
67555         (getnameinfo): Remove useless casts.
67556
67557 2006-06-27  Simon Josefsson  <jas@extundo.com>
67558
67559         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67560         Eggert and Martin Lambers.
67561
67562 2006-06-27  Simon Josefsson  <jas@extundo.com>
67563
67564         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67565         Eggert and Martin Lambers.
67566
67567 2006-06-27  Bruno Haible  <bruno@clisp.org>
67568
67569         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67570         result to 0, not to empty.
67571         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67572
67573 2006-06-27  Bruno Haible  <bruno@clisp.org>
67574
67575         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67576
67577 2006-06-26  Simon Josefsson  <jas@extundo.com>
67578
67579         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67580         present.
67581
67582 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67583
67584         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67585         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67587
67588 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67589
67590         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67591
67592 2006-06-26  Bruno Haible  <bruno@clisp.org>
67593
67594         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67595
67596 2006-06-26  Bruno Haible  <bruno@clisp.org>
67597
67598         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67599
67600 2006-06-26  Bruno Haible  <bruno@clisp.org>
67601
67602         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67603         SGI C compiler in pre-C99 mode.
67604         Suggested by Mark D. Baushke and Larry Jones.
67605
67606 2006-06-26  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67609         WCHAR_MAX.
67610         Reported by Mark D. Baushke and Larry Jones.
67611
67612 2006-06-26  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67615         in pre-C99 mode.
67616         Suggested by Mark D. Baushke and Larry Jones.
67617
67618 2006-06-23  Simon Josefsson  <jas@extundo.com>
67619             Bruno Haible  <bruno@clisp.org>
67620
67621         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67622         Emit mostlyclean-local rule.
67623         (func_emit_tests_Makefile_am): Likewise.
67624         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67625
67626 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67627
67628         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67629
67630 2006-06-23  Bruno Haible  <bruno@clisp.org>
67631
67632         * tests/test-stdint.c: Update to match ISO C 99 Technical
67633         Corrigendum 1.
67634
67635 2006-06-23  Bruno Haible  <bruno@clisp.org>
67636
67637         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67638
67639 2006-06-23  Bruno Haible  <bruno@clisp.org>
67640
67641         * lib/stdint_.h: Treat IRIX like OpenBSD.
67642
67643 2006-06-23  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67646         ISO C 99 Technical Corrigendum 1.
67647
67648 2006-06-22  Simon Josefsson  <jas@extundo.com>
67649
67650         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67651         MinGW.
67652
67653 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67656         needed.  Some compiler complained about some of them.  Problem reported
67657         by Larry Jones in
67658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67659
67660 2006-06-21  Simon Josefsson  <jas@extundo.com>
67661
67662         * tests/test-getaddrinfo.c: New file.
67663
67664         * modules/getaddrinfo-tests: New file.
67665
67666         * MODULES.html.sh: Add inet_pton.
67667
67668         * modules/inet_pton: New file.
67669
67670 2006-06-21  Simon Josefsson  <jas@extundo.com>
67671
67672         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67673         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67674         of using the (limited) gnulib implementation on Windows XP.
67675
67676         * m4/inet_pton.m4: New file.
67677
67678 2006-06-21  Simon Josefsson  <jas@extundo.com>
67679
67680         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67681         variable.
67682
67683         * lib/socket_.h: Don't define WINVER.
67684
67685         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67686         slightly modified to work in gnulib.
67687
67688 2006-06-21  Simon Josefsson  <jas@extundo.com>
67689
67690         * doc/gnulib.texi (Windows sockets): Add.
67691
67692 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67693
67694         * lib/read-file.c (fread_file): Start with buffer allocation of
67695         0 bytes rather than 1 byte; this simplifies the code.
67696         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67697         code to free buffer and save/restore errno.
67698         (internal_read_file): Remove unused local.
67699
67700 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67703         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67704         Problem reported by Denis Excoffier in
67705         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67706
67707 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67708
67709         * modules/sys_socket, modules/socklen: Include sys/types since
67710         FreeBSD 4.x's sys/socket.h needs it.
67711
67712 2006-06-19  Simon Josefsson  <jas@extundo.com>
67713
67714         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67715
67716 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67719
67720 2006-06-19  Bruno Haible  <bruno@clisp.org>
67721
67722         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67723         and FULL_PATH_INTTYPES_H in angle brackets.
67724         Reported by Mark D. Baushke <mdb@gnu.org>.
67725
67726 2006-06-17  Eric Blake  <ebb9@byu.net>
67727
67728         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67729         errno.
67730
67731 2006-06-17  Bruno Haible  <bruno@clisp.org>
67732
67733         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67734         <sys/inttypes.h>.
67735
67736 2006-06-17  Bruno Haible  <bruno@clisp.org>
67737
67738         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67739         whether errno is declared. Assume <errno.h> declares errno.
67740
67741 2006-06-17  Bruno Haible  <bruno@clisp.org>
67742
67743         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67744
67745 2006-06-17  Bruno Haible  <bruno@clisp.org>
67746
67747         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67748         problem on Solaris 2.5.1.
67749
67750 2006-06-16  Eric Blake  <ebb9@byu.net>
67751
67752         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67753         * lib/unicodeio.c [!defined errno]: Likewise.
67754         * lib/strtol.c [!defined errno]: Likewise.
67755         * lib/strtod.c [!defined errno]: Likewise.
67756
67757 2006-06-15  Eric Blake  <ebb9@byu.net>
67758
67759         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67760
67761 2006-06-15  Eric Blake  <ebb9@byu.net>
67762
67763         * config/srclist.txt (ssize_t.m4): Lose sync.
67764
67765 2006-06-15  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/stdint (Files): Include m4/full-header-path.m4,
67768         m4/size_max.m4, m4/wchar_t.m4.
67769         (Makefile.am): Many more substitutions.
67770         * modules/stdint-tests: New file.
67771         * tests/test-stdint.c: New file.
67772
67773 2006-06-15  Bruno Haible  <bruno@clisp.org>
67774
67775         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67776         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67777         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67778         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67779         gl_CHECK_TYPE_SAME): New macros.
67780
67781 2006-06-15  Bruno Haible  <bruno@clisp.org>
67782
67783         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67784
67785 2006-06-15  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/stdint_.h: Rewritten to be fully auto-configured.
67788         Fixes bug on HP-UX/IA64.
67789
67790 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         * lib/getdate.y (__attribute__): Don't define if already defined.
67793         Problem reported by Larry Jones.
67794         * lib/utimens.c (__attribute__): Likewise.
67795
67796 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67799         reported by Andreas Schwab.
67800
67801 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67802             Bruno Haible  <bruno@clisp.org>
67803
67804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67805         check for the declaration of strnlen and a run test that exposes the
67806         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67807         rpl_strndup.
67808
67809 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67810             Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67813
67814 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67815
67816         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67817         compile test, for Tru64 4.0D.
67818
67819 2006-05-28  Karl Berry  <karl@gnu.org>
67820
67821         * config/srclist.txt (printf-args.c): lose sync.
67822
67823 2006-05-26  Martin Lambers  <marlam@marlam.de>
67824
67825         * lib/getpass.c: Updates the test for the native W32 API, and adds
67826         missing includes, thus fixing compilation warnings.
67827
67828 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67829
67830         * lib/exclude.c (exclude_fnmatch): New function.
67831         (excluded_file_name): Call exclude_fnmatch.
67832         * lib/exclude.h (excluded_file_name): New prototype
67833
67834 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * lib/tempname.c (small_open, large_open): New macros.
67837         (__open, __open64) [!_LIBC]: Remove.
67838         (__gen_tempname): Use small_open and large_open instead of __open
67839         and __open64.  This fixes a portability bug on HP-UX 11.11i
67840         reported by Simon Wing-Tang in
67841         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67842
67843 2006-05-24  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67846         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67847         Reported by Thorsten Maerz <torte@netztorte.de> via
67848         Aaron Stone <aaron@serendipity.cx>.
67849
67850 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67853         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67854         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67855         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67856         not really conditional on the cache.
67857         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67858
67859 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67862         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67863         (my_usleep): Don't mishandle maximum value.
67864
67865 2006-05-19  Jim Meyering  <jim@meyering.net>
67866
67867         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67868
67869 2006-05-17  Bruno Haible  <bruno@clisp.org>
67870
67871         Cygwin portability.
67872         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67873
67874 2006-05-17  Bruno Haible  <bruno@clisp.org>
67875
67876         * lib/stdint_.h: Fix recognition of Cygwin.
67877
67878 2006-05-15  Bruno Haible  <bruno@clisp.org>
67879
67880         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67881         on libtool patch by Ralf Wildenhues.
67882
67883 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67884
67885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67886         test for C99 conformance; (bool) 0.5 is an integer constant
67887         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67888         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67889
67890 2006-05-11  Simon Josefsson  <jas@extundo.com>
67891
67892         * m4/xvasprintf.m4: Fix obvious typo.
67893
67894 2006-05-11  Jim Meyering  <jim@meyering.net>
67895
67896         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67897         James Lemley.
67898
67899 2006-05-10  Simon Josefsson  <jas@extundo.com>
67900
67901         * lib/md4.c: Typo fix, update copyright years.
67902         (K1, K2): Don't use L because it turn computations into 64-bit on
67903         64-bit platforms.
67904
67905 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67906
67907         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67908         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67909         unwanted sign propagation, e.g., on hosts with 64-bit int.
67910         There still are some problems with reeelly weird theoretical hosts
67911         (e.g., 33-bit int) but it's not worth worrying about now.
67912         * lib/sha1.c (rol): Likewise.
67913         (K1, K2, K3, K4): Remove unnecessary L suffix.
67914
67915 2006-05-10  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/des.c: Cast to avoid warnings.
67918
67919 2006-05-09  Bruno Haible  <bruno@clisp.org>
67920
67921         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67922         (Depends-on): Depend also on xsize, stdarg.
67923         (configure.ac): Add gl_XVASPRINTF.
67924
67925 2006-05-09  Bruno Haible  <bruno@clisp.org>
67926
67927         * m4/xvasprintf.m4: New file.
67928
67929 2006-05-09  Bruno Haible  <bruno@clisp.org>
67930
67931         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67932         (EOVERFLOW): Define fallback value.
67933         (xstrcat): New function.
67934         (xvasprintf): Recognize the special case of a string concatenation.
67935
67936 2006-05-08  Eric Blake  <ebb9@byu.net>
67937
67938         * gnulib-tool (func_version): Base copyright year on CVS date.
67939         (func_emit_copyright_notice): New function.
67940         (func_emit_lib_Makefile_am): Use it.
67941         (func_emit_tests_Makefile_am): Likewise.
67942         (func_import): Likewise.
67943
67944 2006-05-08  Bruno Haible  <bruno@clisp.org>
67945
67946         * modules/stdarg: New file.
67947         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67948
67949 2006-05-08  Bruno Haible  <bruno@clisp.org>
67950
67951         * m4/stdarg.m4: New file, from GNU gettext.
67952
67953 2006-05-08  Bruno Haible  <bruno@clisp.org>
67954
67955         * config/srclist.txt (build-aux/config.rpath): different from latest
67956         release.
67957
67958 2006-05-08  Bruno Haible  <bruno@clisp.org>
67959
67960         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67961
67962 2006-05-05  Jim Meyering  <jim@meyering.net>
67963
67964         * m4/warning.m4: New file, derived from bison's file by the same name.
67965
67966 2006-05-03  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/stdint_.h: Shorter URL.
67969         * lib/inttypes.h: Likewise.
67970
67971 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67972
67973         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67974
67975 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * lib/verify.h: Document the internals better.  Most of this change
67978         was written by Bruno Haible.
67979
67980 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * doc/verify.texi: New file, partly based on a proposal by
67983         Bruno Haible.
67984
67985 2006-05-02  Bruno Haible  <bruno@clisp.org>
67986
67987         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67988         test from here...
67989         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67990
67991 2006-04-29  Bruno Haible  <bruno@clisp.org>
67992
67993         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67994         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67995
67996 2006-04-29  Bruno Haible  <bruno@clisp.org>
67997
67998         * gnulib-tool: Make --update option actually work.
67999
68000 2006-04-29  Bruno Haible  <bruno@clisp.org>
68001
68002         * doc/gcd.texi: New file.
68003         * doc/gnulib.texi: Include it.
68004
68005 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68006
68007         * lib/getdate.y (get_date): When adding relative date, start with the
68008         initial time, not with the result of the first mktime call.
68009
68010 2006-04-25  Bruno Haible  <bruno@clisp.org>
68011
68012         * gnulib-tool (func_import): Output the include directives in three
68013         blocks, sorted separately.
68014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68015
68016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68019         to define main with arguments, for C++.  Reported by Eric Blake.
68020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68021         Prefer 'int main ()' to 'int main (void)', for C++.
68022         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68024         for 'main', for C99 and C++.
68025
68026 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68029         Don't assume that exit status -1 is valid.
68030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68031         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68032         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68033         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68034         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68035         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68036         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68037         functions can be used without declaring them, or that you can
68038         exit with status -1.
68039         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68040
68041 2006-04-24  Karl Berry  <karl@gnu.org>
68042
68043         * config/srclist.txt (longdouble.m4): sync lost.
68044
68045 2006-04-24  Eric Blake  <ebb9@byu.net>
68046
68047         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68048
68049 2006-04-24  Bruno Haible  <bruno@clisp.org>
68050
68051         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68052         poll() implementation in AIX.
68053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68054
68055 2006-04-24  Bruno Haible  <bruno@clisp.org>
68056
68057         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68058         assigned exactly once.
68059
68060 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68061             Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68064         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68065         for AM_CPPFLAGS.
68066
68067 2006-04-23  Bruno Haible  <bruno@clisp.org>
68068
68069         * modules/copy-file: Depend on unistd.
68070         * modules/execute: Likewise.
68071         * modules/fatal-signal: Likewise.
68072         * modules/findprog: Likewise.
68073         * modules/mkdtemp : Likewise.
68074         * modules/pipe: Likewise.
68075         * modules/wait-process: Likewise.
68076
68077 2006-04-23  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68080         condition was already detected.
68081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68082
68083 2006-04-23  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/copy-file.c: Include <unistd.h> unconditionally.
68086         * lib/execute.c: Likewise.
68087         * lib/fatal-signal.c: Likewise.
68088         * lib/findprog.c: Likewise.
68089         * lib/mkdtemp.c: Likewise.
68090         * lib/pipe.h: Likewise.
68091         * lib/pipe.c: Likewise.
68092         * lib/wait-process.h: Likewise.
68093
68094 2006-04-23  Bruno Haible  <bruno@clisp.org>
68095
68096         * gnulib-tool (func_usage): Fix --import description. Document
68097         --update.
68098         (func_import): Create temporary file in a temporary directory, if
68099         --dry-run is specified. Silence errors from 'grep' when there are no
68100         m4 files in $m4dir.
68101         (func_create_testdir): Silence errors from 'grep' when there are no
68102         m4 files in $m4dir.
68103         Reported by Karl Berry <karl@freefriends.org>.
68104
68105 2006-04-20  Bruno Haible  <bruno@clisp.org>
68106
68107         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68108         one argument, so that the code will be portable to Autoconf 2.60.
68109         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68111         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68112
68113 2006-04-19  Derek Price  <derek@ximbiot.com>
68114             Eric Blake  <ebb9@byu.net>
68115
68116         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68117         rather than "/full/path.h".  Update comment to match.  Shorten &
68118         generalize m4_translit call via AS_TR_CPP.
68119
68120 2006-04-19  Derek Price  <derek@ximbiot.com>
68121             Eric Blake  <ebb9@byu.net>
68122
68123         * lib/inttypes.h: Correct grammar in comment.
68124
68125 2006-04-18  Derek Price  <derek@ximbiot.com>
68126             Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         * modules/inttypes: New file.
68129         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68130
68131 2006-04-18  Derek Price  <derek@ximbiot.com>
68132             Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68135         New files.
68136
68137 2006-04-18  Derek Price  <derek@ximbiot.com>
68138             Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * lib/inttypes.h: New file.
68141         * lib/strtoimax.c: Assume <inttypes.h>.
68142
68143 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68146         isn't mounted.  Problem reported by Kir Kolyshkin.
68147
68148 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68151         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68152         Derek R. Price.
68153         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68154         implementation.
68155
68156 2006-04-12  Eric Blake  <ebb9@byu.net>
68157
68158         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68159         is now done automatically by the corresponding Autoconf macro.
68160
68161 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68162
68163         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68164         time_r.h.
68165
68166 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         Merge regex changes from libc, removing some of our
68169         POSIX-conformance changes that were rejected and redoing them in a
68170         less-intrusive way.
68171
68172         * lib/regcomp.c (re_compile_internal, init_dfa):
68173         Length arg is now size_t, not Idx.  All uses changed.
68174         (peek_token): Forward decl now says internal_function.
68175         (__re_error_msgid, __re_error_msgid_idx):
68176         Now static rather than extern with attribute_hidden.
68177         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68178         For some reason libc prefers K&R style defns for external functions.
68179         (regerror) [!defined _LIBC]: Likewise.
68180         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68181         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68182         (build_range_exp, build_collating_symbol):
68183         Use K&R-style defn.
68184         (re_compile_fastmap): Use '\0' to memset, not 0.
68185         (utf8_sb_map): Make the calculations more obvious.
68186         (init_dfa, parse_bracket_exp, build_charclass_op):
68187         Call calloc and cast result, as glibc does.
68188         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68189         (build_range_exp, build_collating_symbol):
68190         Now internal functions.
68191
68192         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68193
68194         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68195         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68196         Don't depend on VMS; depend on __VMS instead, for POSIX
68197         namespace cleanness.
68198         (regoff_t): Define to ssize_t, not long int.
68199
68200         Remove the REG_ macros named below.  Instead, make the old names
68201         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68202         __USE_GNU_REGEX.
68203         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68204         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68205         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68206         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68207         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68208         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68209         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68210         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68211         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68212         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68213         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68214         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68215         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68216         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68217         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68218         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68219         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68220         (REG_NREGS):
68221         Remove.  All uses replaced by the old RE_* names.
68222         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68223         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68224         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68225         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68226         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68227         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68228         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68229         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68230         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68231         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68232         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68233         Don't bother having these macros be independent of each others'
68234         values, since they no longer exist in the POSIX name space.
68235
68236         Rename the following member names back to their old names,
68237         unless !__USE_GNU_REGEX.  All uses changed back.
68238         (buffer): Renamed from re_buffer.
68239         (allocated): Renamed from re_allocated.
68240         (used): Renamed from re_used.
68241         (syntax): Renamed from re_syntax.
68242         (fastmap): Renamed from re_fastmap.
68243         (translate): Renamed from re_translate.
68244         (can_be_null): Renamed from re_can_be_null.
68245         (regs_allocated): Renamed from re_regs_allocated.
68246         (fastmap_accurate): Renamed from re_fastmap_accurate.
68247         (no_sub): Renamed from re_no_sub.
68248         (not_bol): Renamed from re_not_bol.
68249         (not_eol): Renamed from re_not_eol.
68250         (newline_anchor): Renamed from re_newline_anchor.
68251         (num_regs): Renamed from rm_num_regs.
68252         (start): Renamed from rm_start.
68253         (end): Renamed from rm_end.
68254
68255         (free_state): Move up a bit.
68256
68257         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68258         #define to be empty.
68259         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68260         when that is what is intended.
68261         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68262         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68263         (MAX): New macro.
68264         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68265         All uses changed back to re_malloc, etc.  It's now the caller's
68266         responsibility to check for overflow; all callers changed.
68267         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68268         (re_x2nrealloc): Remove.
68269         (free_state): Remove decl.
68270
68271         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68272         (re_set_registers, re_exec):
68273         Use K&R-style defn.
68274
68275         2006-01-31  Roland McGrath  <roland@redhat.com>
68276
68277         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68278         Reported by Mike Frysinger <vapier@gentoo.org>.
68279
68280         2006-01-15  Andreas Jaeger  <aj@suse.de>
68281
68282         [BZ #1950]
68283         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68284         build_wcs_upper_buffer change.
68285         (build_wcs_upper_buffer): Change return type.
68286
68287         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68288
68289         * lib/regex_internal.h: Include <stdint.h> if available.
68290
68291         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68292
68293         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68294
68295         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68296
68297         * lib/regcomp.c: Adjust for changed secondary hash function.
68298
68299         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68300
68301         * lib/regex.h: Pretty printing.
68302         Clean up namespace a bit.
68303
68304         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68305
68306         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68307         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68308
68309         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68310                     Ulrich Drepper  <drepper@redhat.com>
68311
68312         [BZ #1302]
68313         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68314         changed.
68315         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68316
68317         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68318
68319         [BZ #281]
68320         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68321         * lib/regcomp.c: Remove unnecessary uses of
68322         unsigned RE_TRANSLATE_TYPE.
68323         * lib/regex_internal.h: Likewise.
68324         * lib/regex_internal.c: Likewise.
68325         * lib/regexec.c: Likewise.
68326         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68327
68328         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68329
68330         * lib/regexec.c (find_recover_state): Remove unnecessary
68331         initialization.
68332         (transit_state_bkref): Make DFA a const pointer.
68333         (get_subexp): Likewise.
68334         (check_arrival): Likewise.
68335         (update_cur_sifted_state): Likewise.
68336         (re_search_internal): Likewise.
68337         (prune_impossible_nodes): Likewise.
68338         (acquire_init_state_context): Likewise.
68339         (proceed_next_node): Likewise.
68340         (set_regs): Likewise.
68341         (free_fail_stack_return): Likewise.
68342         (check_arrival_expand_ecl): Mark DFA parameter as const.
68343         (check_arrival_expand_ecl_sub): Likewise.
68344         (check_subexp_limits): Likewise.
68345         (sub_epsilon_src_nodes):  Likewise.
68346         (add_epsilon_src_nodes):  Likewise.
68347         (merge_state_array): Likewise.
68348         (update_regs): Likewise.
68349         (build_trtable): Likewise.
68350         (sift_states_backward): Mark MCTX parameter as const.
68351         (build_sifted_states): Likewise.
68352         (update_cur_sifted_state): Likewise.
68353         (sift_states_mkref): Likewise.
68354         (check_arrival_expand_ecl): Mark eclosure as const.
68355         (check_dst_limits_calc_pos_1): Likewise.
68356         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68357         pointer.
68358
68359         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68360
68361         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68362         (transit_state_sb): Likewise.
68363         (transit_state_mb): Likewise.
68364         (sift_states_iter_mb): Likewise.
68365         (check_arrival_add_next_nodes): Likewise.
68366         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68367         [_LIBC] (re_search_2_stub): Use mempcpy.
68368
68369         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68370         mbrtowc for very simple UTF-8 case.
68371
68372         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68373         a pointer-to-const.
68374         (re_acquire_state_context): Likewise.
68375         * lib/regex_internal.h: Adjust prototypes.
68376
68377         * lib/regex.c: Prevent using C++ compilers.
68378
68379         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68380         (re_acquire_state_context): Likewise.
68381
68382 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * modules/regex (Depends-on): Add ssize_t.
68385
68386 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68389         translation table.
68390
68391 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68392
68393         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68394
68395 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68396             Bruno Haible  <bruno@clisp.org>
68397
68398         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68399         <sys/types.h> and <inttypes.h>.
68400
68401 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68402
68403         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68404         `__error_t_defined', so argp.h will not typedef the former.
68405
68406 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68409         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68410         glibc names.  Even if glibc is changed to conform to POSIX, the
68411         traditional names will be available anyway, since regex depends on
68412         the extensions module.  Also, fix a longstanding typo in the
68413         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68414         reported by Emanuele Giaquinta.  Also, change sense of cached
68415         variable, so that the message makes sense.
68416
68417 2006-03-24  Simon Josefsson  <jas@extundo.com>
68418
68419         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68420         including some doc fixes.
68421         (base64_encode_alloc): Fix +1 bug on allocation failures.
68422
68423 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68424
68425         * lib/base64.c (base64_encode): Do not read past end of array with
68426         unsanitized input on systems with CHAR_BIT > 8.
68427
68428 2006-03-24  Eric Blake  <ebb9@byu.net>
68429
68430         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68431
68432 2006-03-22  Karl Berry  <karl@gnu.org>
68433
68434         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68435         * config/srclistvars.sh (COREUTILS): new var.
68436
68437 2006-03-17  Jim Meyering  <jim@meyering.net>
68438
68439         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68440         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68441
68442 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68443
68444         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68445         no longer needs it.  Instead, check that regoff_t is as least
68446         as wide as ptrdiff_t.
68447
68448         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68449         so that our regex.h stays compatible with the installed regex.
68450         This is helpful for installers who configure --without-included-regex.
68451         Problem reported by Emanuele Giaquinta.
68452
68453 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68456         Typedef to long int, not to off_, as POSIX will likely change
68457         in that direction.
68458
68459 2006-03-15  Eric Blake  <ebb9@byu.net>
68460
68461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68462
68463 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68464
68465         * lib/argp-help.c (validate_uparams): Fix typo
68466         * lib/argp-parse.c (argp_default_options): Consistently begin help
68467         messages with a lowercase letter.
68468
68469 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68472         overrun buffers and shouldn't be used (much as gets shouldn't be
68473         used).
68474         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68475
68476 2006-03-08  Simon Josefsson  <jas@extundo.com>
68477
68478         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68479         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68480
68481 2006-03-08  Simon Josefsson  <jas@extundo.com>
68482
68483         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68484         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68485
68486 2006-03-08  Simon Josefsson  <jas@extundo.com>
68487
68488         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68489         signal that configure disabled the device.
68490
68491 2006-03-08  Simon Josefsson  <jas@extundo.com>
68492
68493         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68494         languages.
68495
68496 2006-03-07  Simon Josefsson  <jas@extundo.com>
68497
68498         * modules/getopt (Depends-on): Add unistd.
68499
68500         * modules/unistd: New file.
68501
68502 2006-03-07  Simon Josefsson  <jas@extundo.com>
68503
68504         * modules/gc-random: New file.
68505
68506 2006-03-07  Simon Josefsson  <jas@extundo.com>
68507
68508         * m4/unistd_h.m4: New file.
68509
68510 2006-03-07  Simon Josefsson  <jas@extundo.com>
68511
68512         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68513         test to be side-effect free by storing the result in the cache
68514         variable gl_cv_lib_readline, and moving the assignment of
68515         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68516         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68517
68518 2006-03-07  Simon Josefsson  <jas@extundo.com>
68519
68520         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68521         error on missing devices (the functions will return an error).
68522
68523         * m4/gc.m4: Move random stuff to gc-random.m4
68524
68525 2006-03-07  Simon Josefsson  <jas@extundo.com>
68526
68527         * lib/unistd_.h: New file.
68528
68529 2006-03-07  Simon Josefsson  <jas@extundo.com>
68530
68531         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68532
68533 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68534
68535         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68536         Problem reported by Juan Manuel Guerrero.
68537
68538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68541         the unistd module.
68542         * lib/getlogin_r.c: Likewise.
68543         * lib/getlogin_r.h: Likewise.
68544         * lib/glob.c: Likewise.
68545         * lib/pagealign_alloc.c: Likewise.
68546         * lib/unistd_.h: Remove; no longer needed.
68547
68548 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68551         Add unistd.
68552         * modules/c-stack (Depends-on): Add unistd.
68553         * modules/getlogin_r: Likewise.
68554         * modules/glob: Likewise.
68555         * modules/pagealign_alloc: Likewise.
68556         * modules/unistd (Files): Remove lib/unistd_.h.
68557         (EXTRA_DIST): Remove.
68558         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68559         need unistd_.h.
68560         (MOSTLYCLEANFILES): Remove unistd.h-t.
68561
68562 2006-03-03  Simon Josefsson  <jas@extundo.com>
68563
68564         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68565
68566 2006-03-03  Simon Josefsson  <jas@extundo.com>
68567
68568         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68569         libidn and bison.
68570
68571 2006-03-03  Simon Josefsson  <jas@extundo.com>
68572
68573         * build-aux/maint.mk: Add indent target.
68574
68575 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68576
68577         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68578         our replacement poll.h in any case, to avoid a differing
68579         declaration from a system header.  Seen on AIX.
68580
68581 2006-03-01  Simon Josefsson  <jas@extundo.com>
68582
68583         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68584         <kasal@ucw.cz>.
68585
68586 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * modules/gettime (Depends-on): Add extensions module.
68589         * modules/nanosleep (Depends-on): Likewise.
68590         * modules/settime (Depends-on): Likewise.
68591
68592 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68595         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68596         pedantically.
68597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68598         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68599
68600         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68601         not "==".  Reported by Ralf Wildenhues.
68602
68603 2006-03-01  Karl Berry  <karl@gnu.org>
68604
68605         * doc/Copyright/request-*: new files, synced from gnuorg.
68606
68607 2006-03-01  Karl Berry  <karl@gnu.org>
68608
68609         * config/srclist.txt (Copyright/*): new entries.
68610
68611 2006-02-28  Simon Josefsson  <jas@extundo.com>
68612
68613         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68614
68615 2006-02-27  Simon Josefsson  <jas@extundo.com>
68616
68617         * lib/base64.h: Indent #define's.  From Jim Meyering
68618         <jim@meyering.net>.
68619
68620 2006-02-27  Jim Meyering  <jim@meyering.net>
68621
68622         Revert the change of 2006-02-24, so these files can continue
68623         to be sync'd from gettext.
68624         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68625         of `config.h'.
68626
68627 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * modules/intprops: New file.
68630         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68631         Add intprops.
68632         * modules/getloadavg (Files): Remove lib/intprops.h.
68633         (Depends-on): Add intprops.
68634         * modules/human: Likewise.
68635         * modules/inttostr: Likewise.
68636         * modules/openat: Likewise.
68637         * modules/sig2str: Likewise.
68638         * modules/userspec: Likewise.
68639         * modules/utimecmp: Likewise.
68640         * modules/xnanosleep: Likewise.
68641         * modules/xstrtol: Likewise.
68642
68643 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68644
68645         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68646         * modules/lock-tests (TESTS): Use $(EXEEXT).
68647         * modules/tls-tests: Likewise.
68648         * modules/argp-tests: Likewise.
68649         (check_PROGRAMS): New var, replacing...
68650         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68651
68652 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68653
68654         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68655         `config.h'.
68656
68657 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68660
68661 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68662
68663         Sync from coreutils.
68664         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68665         gl_CHDIR_SAFER.
68666
68667 2006-02-22  Jim Meyering  <jim@meyering.net>
68668
68669         Sync from coreutils.
68670         * m4/chdir-safer.m4: New file.
68671
68672 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68675         AT_FDCWD exceeds INT_MAX.
68676         * lib/openat.h (AT_FDCWD): Likewise.
68677
68678 2006-02-17  Eric Blake  <address@hidden>
68679
68680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68681
68682 2006-02-16  Simon Josefsson  <jas@extundo.com>
68683
68684         * modules/getaddrinfo (Depends-on): Add sys_socket.
68685
68686 2006-02-15  Simon Josefsson  <jas@extundo.com>
68687
68688         * build-aux/maint.mk: Add dsyntax-check rule.
68689
68690 2006-02-15  Eric Blake  <ebb9@byu.net>
68691
68692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68693         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68694         'present but cannot compile' warnings on cygwin.
68695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68696         use ws2tcpip.h if sys/socket.h works.
68697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68698         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68699
68700 2006-02-14  Simon Josefsson  <jas@extundo.com>
68701
68702         * modules/maintainer-makefile (Files): Rename.
68703
68704         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68705         and (the local) Makefile.cfg to maint-cfg.mk.
68706
68707         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68708         to the latter.
68709
68710         * modules/maintainer-makefile: New module.
68711
68712         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68713         severaly stripped to make it possible to build it up from scratch
68714         with reliable tests.
68715
68716         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68717         fixes to permit overriding the default actions when configure and
68718         makefile are not available.
68719
68720 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         Sync from coreutils.
68723         * modules/lstat (Depends-on): Don't depend on xalloc.
68724         (License): Change from GPL to LGPL, since this is now simply a
68725         replacement for a libc function.
68726
68727 2006-02-14  Jim Meyering  <jim@meyering.net>
68728
68729         Sync from coreutils.
68730
68731         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68732         failure on deficient systems, and simplify gnulib lgpl dependencies.
68733         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68734         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68735
68736         * lib/xalloc-die.c: Remove unused definition of N_.
68737
68738 2006-02-14  Jim Meyering  <jim@meyering.net>
68739
68740         Sync from coreutils.
68741         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68742         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68743         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68744         double-quote uses of that variable, to accommodate the rare case in
68745         which getmntent is available in none of the libraries checked.  This
68746         happens at least on FreeBSD 5.0.
68747
68748 2006-02-13  Simon Josefsson  <jas@extundo.com>
68749
68750         * gnulib-tool (Usage): Fix --import, from
68751         karl@freefriends.org (Karl Berry).
68752
68753 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68754
68755         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68756
68757 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68758
68759         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68760         "autoupdate" on 2005-12-12.
68761
68762 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         * modules/closeout (Depends-on): Remove atexit.
68765
68766 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68769         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68770
68771 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68774         __EXTENSIONS__ if this causes compilation to fail.  Problem
68775         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68776         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68777
68778 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68781         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68783         All uses changed.
68784
68785 2006-01-26  Simon Josefsson  <jas@extundo.com>
68786
68787         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68788         prototype is visible on mingw32.
68789
68790         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68791         for mingw32.
68792
68793         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68794         mingw32).
68795
68796 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68799         attempt to open for write; this always fails, at least on POSIX
68800         hosts.  This reinstates the 2006-01-09 change, which was
68801         inadvertently removed.
68802
68803 2006-01-26  Bruno Haible  <bruno@clisp.org>
68804
68805         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68806         Reported by Paul Eggert.
68807
68808 2006-01-26  Bruno Haible  <bruno@clisp.org>
68809             Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         * lib/stdbool_.h (_Bool)
68812         [(! (defined __cplusplus || defined __BEOS__)
68813           && !defined __GNUC__
68814           && !(defined __HP_cc || defined __xlc__
68815                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68816                || defined __sgi))]:
68817         #define to signed char in these cases too; this simplifies
68818         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68819         etc., separately) and makes it more conservative.
68820
68821 2006-01-25  Simon Josefsson  <jas@extundo.com>
68822
68823         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68824         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68825         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68826
68827 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68828
68829         * lib/argp-namefrob.h: Bugfix. Remove stray #
68830
68831 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68834         so that we test the test.
68835         Check for yet another HP-UX cc bug involving *bool |= bool.
68836
68837 2006-01-25  Karl Berry  <karl@gnu.org>
68838
68839         * config/srclist.txt (vasnprintf.c): sync lost.
68840
68841 2006-01-25  Jim Meyering  <jim@meyering.net>
68842
68843         Sync from the stable (b5) branch of coreutils:
68844
68845         * lib/fts.c (fts_children): Don't let close() clobber errno from
68846         failed fchdir().
68847
68848         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68849         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68850         a dangling symlink.  That can also happen at least for ELOOP.
68851         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68852         FYI, this bug predates the inclusion of fts.c in coreutils.
68853
68854         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68855         in their own block, so pre-c99 compilers don't object.
68856
68857         Avoid the double-free (first in fts_read, second in fts_close) that
68858         would occur when an `active' directory is made inaccessible (e.g.,
68859         via chmod a-x) during a traversal.
68860         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68861         before returning.  Reproduce this failure by
68862         mkdir -p a/b; cd a; chmod a-x . b
68863         Reported by Stavros Passas.
68864
68865 2006-01-25  Jim Meyering  <jim@meyering.net>
68866
68867         * lib/fileblocks.c: Remove more useless parentheses.
68868         * lib/readutmp.h: Likewise.
68869
68870 2006-01-25  Bruno Haible  <bruno@clisp.org>
68871
68872         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68873         warnings.
68874         Reported by Paul Eggert.
68875
68876 2006-01-25  Bruno Haible  <bruno@clisp.org>
68877
68878         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68879         rid of a trap command. For Solaris sh.
68880         Reported by Mark D. Baushke <mdb@gnu.org>.
68881
68882 2006-01-24  Simon Josefsson  <jas@extundo.com>
68883
68884         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68885         Bruno.
68886
68887 2006-01-24  Karl Berry  <karl@gnu.org>
68888
68889         * config/srclist.txt (argp-namefrob.h): sync lost.
68890
68891 2006-01-24  Jim Meyering  <jim@meyering.net>
68892
68893         * modules/openat (Files): Add lib/intprops.h.
68894         From Mark D. Baushke.
68895
68896 2006-01-24  Jim Meyering  <jim@meyering.net>
68897
68898         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68899         Reported by Mark D. Baushke.
68900
68901 2006-01-24  Jim Meyering  <jim@meyering.net>
68902
68903         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68904
68905 2006-01-24  Bruno Haible  <bruno@clisp.org>
68906
68907         * modules/strnlen (Maintainer): Change from glibc to all.
68908
68909 2006-01-24  Bruno Haible  <bruno@clisp.org>
68910
68911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68912         Patch by Paul Eggert.
68913
68914 2006-01-24  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68917         already has it.
68918         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68919         2005-11-26.
68920
68921         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68922         'signed char' to avoid problems with the built-in _Bool type.
68923         Reported by Paul Eggert on 2005-11-26.
68924
68925 2006-01-24  Bruno Haible  <bruno@clisp.org>
68926
68927         * gnulib-tool (func_import): Avoid constructing complicated sed
68928         expressions inside backquote.
68929         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68930
68931 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68932
68933         These changes imported from libc.
68934         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68935         test and two separate function calls.
68936         * lib/strndup.c (__strndup): Add libc_hidden_def.
68937
68938 2006-01-23  Simon Josefsson  <jas@extundo.com>
68939
68940         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68941         Remove the test_*_SOURCES variable: automake infers it by default.
68942         * modules/tls-tests: Likewise.
68943
68944 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         Work around porting bugs reported by Dieter in
68947         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68948         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68949         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68950         Include "getopt.h" first, to check interface.
68951         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68952         !HAVE_DECL_GETENV.
68953         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68954         (__strndup): Revert to K&R-style function dfns, the glibc style.
68955         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68956         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68957         Include strnlen.h first, to get prototype properly.
68958         (strnlen): Renamed from __strnlen.
68959         Remove weak alias.
68960
68961 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68962
68963         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68964
68965 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * config/srclist.txt: Adjust to reflect glibc reorganization.
68968         This affects only comments.
68969
68970 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68971
68972          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68973          Reported by Bruce Korb <bkorb@gnu.org>.
68974
68975 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68976
68977         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68978         to pacify gcc -Wswitch-default.
68979
68980 2006-01-22  Bruno Haible  <bruno@clisp.org>
68981
68982         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68983         temporary buffer for sprintf, take into account the precision also
68984         for 'd', 'i', 'u', 'o', 'x', 'X'.
68985
68986 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68987
68988         * modules/argp-tests: New module
68989         * tests/test-argp.c: New file
68990         * tests/test-argp-2.sh: New file
68991
68992 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68993
68994         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68995         (__argp_base_name): Removed
68996         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68997         typo.
68998         (__argp_base_name): Provide macro definition or extern declaration
68999         depending on the configuration
69000
69001 2006-01-20  Simon Josefsson  <jas@extundo.com>
69002
69003         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69004
69005 2006-01-20  Simon Josefsson  <jas@extundo.com>
69006
69007         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69008
69009 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69012         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69013         Suggested by Bruno Haible.
69014
69015 2006-01-20  Karl Berry  <karl@gnu.org>
69016
69017         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69018         until changes propagate, I guess.
69019
69020 2006-01-19  Simon Josefsson  <jas@extundo.com>
69021
69022         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69023
69024 2006-01-19  Simon Josefsson  <jas@extundo.com>
69025
69026         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69027
69028 2006-01-19  Simon Josefsson  <jas@extundo.com>
69029
69030         * gnulib-tool: Set check_PROGRAMS.
69031
69032         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69033         modules/des-tests, modules/gc-arcfour-tests,
69034         modules/gc-arctwo-tests, modules/gc-des-tests,
69035         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69036         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69037         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69038         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69039         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69040         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69041         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69042         test_*_SOURCES.
69043
69044 2006-01-18  Simon Josefsson  <jas@extundo.com>
69045
69046         * modules/socklen (Depends-on): Depend on sys_socket.
69047
69048 2006-01-18  Simon Josefsson  <jas@extundo.com>
69049
69050         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69051         modules/des-tests, modules/gc-arcfour-tests,
69052         modules/gc-arctwo-tests, modules/gc-des-tests,
69053         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69054         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69055         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69056         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69057         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69058         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69059         $(EXEEXT) to automake TESTS variable, for mingw32.
69060
69061 2006-01-17  Simon Josefsson  <jas@extundo.com>
69062
69063         * modules/socklen (Include): Need sys/socket.h.
69064
69065 2006-01-17  Bruno Haible  <bruno@clisp.org>
69066
69067         * modules/ssize_t (Include): Add <sys/types.h>.
69068
69069 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69072         it's not portable and it doesn't work with cross-compiles.
69073         Problem reported by Bruno Haible.  Fix missing-$ typo in
69074         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69075         -zignore from being used with Sun's C compiler.
69076
69077 2006-01-12  Simon Josefsson  <jas@extundo.com>
69078
69079         * lib/base64.c: Fix warning, reported by Bruno Haible
69080         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69081
69082 2006-01-12  Bruno Haible  <bruno@clisp.org>
69083
69084         * modules/ldd: New file.
69085         * build-aux/ldd.sh.in: New file.
69086         * MODULES.html.sh (Support for building libraries and executables): Add
69087         ldd.
69088
69089 2006-01-12  Bruno Haible  <bruno@clisp.org>
69090
69091         * m4/ldd.m4: New file.
69092
69093 2006-01-12  Bruno Haible  <bruno@clisp.org>
69094
69095         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69096         endless loop while replacing $auxdir with build-aux.
69097
69098 2006-01-11  Simon Josefsson  <jas@extundo.com>
69099
69100         * lib/stdint_.h (SIZE_MAX): Add missing (.
69101
69102 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         Sync from coreutils.
69105         * lib/md5.c: Fix commentary typos.
69106         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69107         * lib/md5.h (__attribute__): Remove; unused.
69108         * lib/sha1.c: Fix commentary to match md5 better.
69109         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69110         so that we don't need to worry about alignment.  All uses changed.
69111         This merges the 2005-10-28 md5 change into sha1.
69112
69113 2006-01-11  Jim Meyering  <jim@meyering.net>
69114
69115         Sync from coreutils.
69116         * lib/md5.c (OP): Fix spacing.
69117
69118 2006-01-11  Bruno Haible  <bruno@clisp.org>
69119
69120         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69121         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69122         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69123
69124 2006-01-11  Bruno Haible  <bruno@clisp.org>
69125
69126         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69127         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69128         the "early" section as well.
69129
69130 2006-01-11  Bruno Haible  <bruno@clisp.org>
69131
69132         Avoid "ar: no archive members specified" error on MacOS X.
69133         * gnulib-tool (func_modules_add_dummy): New function.
69134         (func_import, func_create_testdir): Invoke it.
69135
69136 2006-01-11  Bruno Haible  <bruno@clisp.org>
69137
69138         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69139         with $auxdir in AC_CONFIG_FILES statements.
69140
69141 2006-01-11  Bruno Haible  <bruno@clisp.org>
69142
69143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69144         Initialize also noinst_HEADERS to empty.
69145
69146 2006-01-11  Bruno Haible  <bruno@clisp.org>
69147
69148         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69149         variables.
69150         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69151         autoreconf.
69152
69153 2006-01-11  Bruno Haible  <bruno@clisp.org>
69154
69155         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69156         overridable by the user.
69157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69158
69159 2006-01-10  Simon Josefsson  <jas@extundo.com>
69160
69161         * modules/sys_socket: New file.
69162
69163 2006-01-10  Simon Josefsson  <jas@extundo.com>
69164
69165         * m4/sys_socket_h.m4: New file.
69166
69167 2006-01-10  Simon Josefsson  <jas@extundo.com>
69168
69169         * lib/socket_.h: New file.
69170
69171 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * modules/readutmp (Maintainer): Add myself.
69174
69175 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69178         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69179         People who are still concerned with buggy memcmp implementations
69180         can invoke gl_FUNC_MEMCMP themselves.
69181
69182 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69183
69184         * lib/regex_internal.h (BITSET_WORD_BITS):
69185         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69186         preprocessor mishandles large unsigned values as if they were signed.
69187         Problem reported by Claudio Fontana in
69188         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69189
69190 2006-01-10  Jim Meyering  <jim@meyering.net>
69191
69192         Avoid the double-free (first in fts_read, second in fts_close) that
69193         would occur when an `active' directory is made inaccessible (e.g.,
69194         via chmod a-x) during a traversal.
69195         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69196         before returning.  Reproduce this failure by
69197         mkdir -p a/b; cd a; chmod a-x . b
69198         Reported by Stavros Passas.
69199
69200         Sync from coreutils.
69201         * lib/sha1.c: Tweak grammar in a comment.
69202
69203 2006-01-10  Jim Meyering  <jim@meyering.net>
69204
69205         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69206         Patch by Joerg Sonnenberger.
69207
69208 2006-01-10  Bruno Haible  <bruno@clisp.org>
69209
69210         * modules/readutmp: Depend on module free.
69211         * modules/strtok_r: Depend on module restrict.
69212
69213 2006-01-10  Bruno Haible  <bruno@clisp.org>
69214
69215         * modules/gettext (configure.ac): Add an invocation of
69216         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69217
69218 2006-01-10  Bruno Haible  <bruno@clisp.org>
69219
69220         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69221         Reported by Werner Lemberg <wl@gnu.org>.
69222
69223 2006-01-10  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/localcharset.c: Update from GNU gettext.
69226
69227 2006-01-10  Bruno Haible  <bruno@clisp.org>
69228
69229         * lib/argp.h (__const): Remove macro. Use const instead.
69230         * lib/argp-fmtstream.h (__const): Likewise.
69231         * lib/glob_.h (__const): Remove macro.
69232         * lib/glob-libc.h: Use const instead of __const.
69233
69234 2006-01-10  Bruno Haible  <bruno@clisp.org>
69235
69236         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69237         variable.
69238         Needed to avoid an automake error regarding the 'gettext' module.
69239
69240 2006-01-09  Simon Josefsson  <jas@extundo.com>
69241
69242         * modules/inet_ntop (Depends-on): Add restrict.
69243
69244 2006-01-09  Simon Josefsson  <jas@extundo.com>
69245
69246         * modules/gc-rijndael-tests (License): Put under LGPL.
69247
69248         * modules/gc-des-tests (License): Likewise.
69249
69250         * modules/gc-arcfour-tests (License): Likewise.
69251
69252         * modules/gc-arctwo-tests (License): Likewise.
69253
69254         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69255
69256         * modules/gc-hmac-sha1-tests (Files): Likewise.
69257
69258         * modules/gc-hmac-md5-tests (License): Likewise.
69259
69260         * modules/gc-sha1-tests (License): Likewise.
69261
69262         * modules/gc-md5-tests (License): Likewise.
69263
69264         * modules/gc-md4-tests (License): Likewise.
69265
69266         * modules/gc-md2-tests (License): Likewise.
69267
69268         * modules/gc-tests (License): Likewise.
69269
69270         * modules/des-tests (License): Likewise.
69271
69272         * modules/md4-tests (License): Likewise.
69273
69274         * modules/md2-tests (License): Likewise.
69275
69276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         Sync from coreutils:
69279
69280         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69281         * modules/lib-ignore: New file.
69282         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69283         chdir-safer.m4, lchmod.m4.
69284         * modules/openat: Add mkdirat.c, openat-priv.h.
69285
69286 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         Sync from coreutils.
69289         * m4/lib-ignore.m4: New file.
69290         * m4/lchmod.m4: New file.
69291
69292 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         Sync from coreutils.
69295         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69296         for write access: POSIX says that must fail.
69297         * lib/fts.c (diropen): Likewise.
69298         * lib/save-cwd.c (save_cwd): Likewise.
69299         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69300         well, for minor improvements on hosts that lack O_DIRECTORY.
69301         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69302         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69303         Fall back on chown if open failed with EACCES.
69304
69305         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69306         Report an error at compile-time if only a 1-second nominal clock
69307         resolution is found.
69308
69309         * lib/lchmod.h: New file.
69310         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69311         (make_dir_parents): Use lchown rather than chown, and
69312         lchmod rather than chmod.
69313
69314         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69315         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69316         "proc" reported by n0dalus.
69317
69318         * lib/mountlist.c: Include <limits.h>.
69319         (dev_from_mount_options)
69320         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69321         New function.  It no longer assumes "dev=" has the System V meaning
69322         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69323         (read_file_system_list)
69324         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69325         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69326         dev= in that case.
69327
69328         * lib/posixtm.h (PDS_PRE_2000): New macro.
69329         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69330         allow_century.  All usages changed.  Reject dates outside the range
69331         1969-1999 if PDS_PRE_2000 is used.
69332
69333 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         Sync from coreutils.
69336         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69337         (Time of day items): Mention the possibility of leap seconds.
69338         Problem reported by Dr. David Alan Gilbert.
69339
69340 2006-01-09  Jim Meyering  <jim@meyering.net>
69341
69342         Sync from coreutils.
69343
69344         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69345
69346         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69347
69348         * lib/modechange.c (mode_compile): Reject an invalid mode string
69349         that starts with an octal digit.  From Andreas Gruenbacher.
69350
69351         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69352         and dup to open_safer and dup_safer, respectively.
69353         (openat_permissive): Fix typo in comment.
69354
69355         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69356         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69357         (_): Remove; no longer needed.
69358         (openat): Renamed from rpl_openat; no need for rpl_openat
69359         since openat.h renames openat for us.
69360         Replace most of the body with a call to openat_permissive,
69361         to avoid duplicate code.
69362         Port to (probably hypothetical) environments were mode_t is
69363         wider than int.
69364         (openat_permissive): Require mode arg, so that we can check
69365         types better.  Put it just after flags.  Change cwd failure
69366         indicator from pointer-to-bool to pointer-to-errno-value.
69367         All callers changed.
69368         Invoke openat_save_fail and/or openat_restore_fail if
69369         cwd_errno is null, so that openat can call us.
69370         (openat_permissive, fdopendir, fstatat, unlinkat):
69371         Simplify errno handling to avoid some duplicate code,
69372         as it's OK to set errno on success.
69373         * lib/openat.h: Revamp code so that function macros depend on
69374         __OPENAT_PREFIX only, not also on AT_FDCWD.
69375         (openat_ro): Remove.  Caller changed to use openat_permissive.
69376         (openat_permissive): Now a macro, if not a function.
69377         (openat_restore_fail, openat_save_fail): Now always functions,
69378         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69379
69380         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69381         and openat.c.
69382         * lib/mkdirat.c: Include openat-priv.h.
69383         Remove definitions of macros defined therein.
69384         * lib/openat.c: Likewise.
69385
69386         * lib/mkdirat.c (mkdirat): New file and function.
69387         * lib/openat.h (mkdirat): Declare.
69388
69389         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69390
69391         * lib/openat.h (openat_permissive): Declare.
69392         (openat_ro): Define.
69393
69394         * lib/openat.c (EXPECTED_ERRNO): New macro.
69395         (openat_permissive): New function -- used in remove.c rewrite.
69396         (all functions): Set errno just before returning, only if there
69397         was an actual failure.
69398         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69399
69400         Emulate openat-family functions using Linux's procfs, if possible.
69401         Idea and some code based on Ulrich Drepper's glibc changes.
69402
69403         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69404         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69405         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69406         before falling back on save_cwd and restore_cwd.
69407         (fdopendir, fstatat, unlinkat): Likewise.
69408
69409         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69410         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69411
69412         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69413         as second argument to va_arg.  Otherwise, some versions of gcc
69414         warn that `if this code is reached, the program will abort'.
69415
69416 2006-01-09  Jim Meyering  <jim@meyering.net>
69417
69418         Sync from coreutils.
69419         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69420         Require openat-priv.h.
69421
69422 2006-01-09  Bruno Haible  <bruno@clisp.org>
69423
69424         * modules/strnlen (Include): Use strnlen.h.
69425
69426 2006-01-09  Bruno Haible  <bruno@clisp.org>
69427
69428         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69429
69430 2006-01-09  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/sysexit_.h (EX_OK): New macro.
69433         Suggested by Martin Lambers <marlam@marlam.de>.
69434
69435 2006-01-09  Bruno Haible  <bruno@clisp.org>
69436
69437         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69438         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69439
69440 2006-01-09  Bruno Haible  <bruno@clisp.org>
69441
69442         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69443         numbers.
69444
69445 2006-01-09  Bruno Haible  <bruno@clisp.org>
69446
69447         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69448         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69449         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69450         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69451
69452 2006-01-09  Bruno Haible  <bruno@clisp.org>
69453
69454         * build-aux/javacomp.sh.in: New file, moved from lib/.
69455         * modules/javacomp-script (Files): Update.
69456         (configure.ac): Add AC_CONFIG_FILES invocation.
69457         (EXTRA_DIST): Remove variable.
69458
69459         * build-aux/javaexec.sh.in: New file, moved from lib/.
69460         * modules/javaexec (Files): Update.
69461         (configure.ac): Add AC_CONFIG_FILES invocation.
69462         (EXTRA_DIST): Remove javaexec.sh.in.
69463
69464         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69465         * modules/csharpcomp-script (Files): Update.
69466         (configure.ac): Add AC_CONFIG_FILES invocation.
69467         (EXTRA_DIST): Remove variable.
69468
69469         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69470         * modules/csharpexec (Files): Update.
69471         (configure.ac): Add AC_CONFIG_FILES invocation.
69472         (EXTRA_DIST): Remove csharpexec.sh.in.
69473
69474 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69475
69476         Sync from coreutils.
69477
69478         Add POSIX ACL support
69479         * lib/acl.h (copy_acl, set_acl): Add declarations.
69480         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69481         systems other than Linux.
69482         (chmod_or_fchmod): New function: use fchmod when possible,
69483         and chmod otherwise.
69484         (file_has_acl): Add a POSIX ACL implementation, with a
69485         Linux-specific subcase.
69486         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69487         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69488         acls are unsupported.
69489         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69490         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69491         are unsupported.
69492
69493 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69494
69495         Sync from coreutils.
69496         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69497
69498 2006-01-07  Bruno Haible  <bruno@clisp.org>
69499
69500         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69501         gl_EARLY.
69502
69503 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69504
69505         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69506         Problem reported for Mingw by Mark Junker.
69507
69508 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * README: Gnulib normally doesn't generate a tarball.
69511
69512 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69515         long int, not int, for nanosecond counts, so that people who are
69516         used to POSIX struct timespec won't be surprised.  Reported by Jim
69517         Meyering.
69518
69519 2005-12-28  Bruno Haible  <bruno@clisp.org>
69520
69521         * build-aux/config.rpath: Update from GNU gettext.
69522
69523 2005-12-16  Jim Meyering  <jim@meyering.net>
69524
69525         * modules/fprintftime: New module.
69526         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69527
69528 2005-12-16  Jim Meyering  <jim@meyering.net>
69529
69530         * m4/fprintftime.m4: New file.
69531
69532 2005-12-16  Jim Meyering  <jim@meyering.net>
69533
69534         * lib/fprintftime.c, lib/fprintftime.h: New files.
69535
69536 2005-12-15  Simon Josefsson  <jas@extundo.com>
69537
69538         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69539         new m4/socklen.m4.
69540
69541 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69542
69543         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69544         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69545
69546 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69547
69548         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69549         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69550         struct uparams is valid. Fall back to the default values if it is
69551         not.
69552
69553 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69554
69555         * modules/argp (Files): Add argp-pin.c
69556         (Depends-on): dirname
69557         (lib_SOURCES): Add argp-pin.c
69558
69559 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69560
69561         * m4/argp.m4:  Check if program_invocation_name and
69562         program_invocation_short_name are declared and define appropriate
69563         macros if they are not.
69564
69565 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69566
69567         * lib/argp-help.c (__argp_base_name): New function
69568         (__argp_short_program_name): Rewrite using __argp_base_name
69569         * lib/argp-namefrob.h: Define program_invocation_name and
69570         program_invocation_short_name if requested
69571         (__argp_base_name): Add prototype
69572         * lib/argp-parse.c (argp_def): Use gettext wrappers
69573         (argp_default_parser): Use __argp_base_name
69574         * lib/argp-pin.c: New file. Defines program_invocation_name and
69575         program_invocation_short_name on systems that lack them.
69576
69577 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69580         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69581         porting problem reported by Georg Schwarz in
69582         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69583
69584 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69587         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69588         porting problem reported by Georg Schwarz in
69589         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69590
69591 2005-12-05  Bruno Haible  <bruno@clisp.org>
69592
69593         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69594         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69595         Reported by Mark Junker <mjscod@gmx.de>.
69596
69597 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69600         Use implementation from Albert Chin, with some
69601         comments/corrections by Stepan Kasal and myself.
69602
69603 2005-12-02  Bruno Haible  <bruno@clisp.org>
69604
69605         * gnulib-tool (func_import): Accept GPLed build tool modules when
69606         --lgpl is given.
69607         * modules/csharpcomp-script: New file.
69608         * modules/csharpcomp: Depend on it.
69609         * modules/javacomp-script: New file.
69610         * modules/javacomp: Depend on it.
69611         Suggested by Simon Josefsson.
69612
69613 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69614
69615         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69616         statement, to work around an HP-UX 10.20 compiler bug reported by
69617         Peter O'Gorman.
69618
69619 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         * modules/savedir (Depends-on): Add openat.
69622
69623 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69626         (uintmax_t) [defined uintmax_t]: Do not declare.
69627         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69628         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69629         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69630         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69631         sake of portability to weird hosts that C allows (though we don't
69632         know of any practical examples).
69633
69634         * lib/savedir.h (fdsavedir): New decl.
69635         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69636         contains most of the former guts of savedir.
69637         (savedir): Use savedirstream.
69638         Include "openat.h".
69639
69640 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * modules/obstack (Files): Add m4/ulonglong.m4.
69643         Problem reported by Davide Angelocola.
69644
69645 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69646
69647         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69648         coreutils no longer futzes with rounding modes.
69649
69650 2005-11-14  Jim Meyering  <jim@meyering.net>
69651
69652         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69653         replacement of mkstemp.
69654
69655 2005-11-10  Simon Josefsson  <jas@extundo.com>
69656
69657         * lib/readline.c: Remove EOL.
69658
69659 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * modules/gethrxtime (Depends-on): Add gettime.
69662
69663 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69666         or gettimeofday; no longer needed.
69667
69668 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69669
69670         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69671         time business.
69672         (gethrxtime) [! (HAVE_NANOUPTIME
69673         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69674         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69675         our own approximation.
69676
69677 2005-11-08  Eric Blake  <ebb9@byu.net>
69678
69679         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69680
69681 2005-11-08  Eric Blake  <ebb9@byu.net>
69682
69683         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69684
69685 2005-11-04  Bruno Haible  <bruno@clisp.org>
69686
69687         * gnulib-tool: Implement --update mode.
69688
69689 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         Fix porting problem reported by Theodoros V. Kalamatianos.
69692         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69693         Don't assume that futimes failing means we must fail.
69694
69695 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69698         variables to suggest the intended function of the PATH_MAX check.
69699
69700 2005-10-30  Kean Johnston  <jkj@sco.com>
69701
69702         Trivial changes to support SCO systems.
69703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69704         as PATH_MAX.
69705         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69706         where __ptr is null when no I/O is pending.
69707
69708 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69709
69710         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69711         leave errno alone.  Problem reported by Dmitry V. Levin.
69712
69713 2005-10-28  Simon Josefsson  <jas@extundo.com>
69714
69715         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69716         Test more.
69717
69718         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69719
69720         * modules/md2, modules/md2-tests: New files.
69721
69722 2005-10-28  Simon Josefsson  <jas@extundo.com>
69723
69724         * m4/inet_ntop.m4: More tests.
69725
69726         * m4/gc-md2.m4, md2.m4: New file.
69727
69728 2005-10-28  Simon Josefsson  <jas@extundo.com>
69729
69730         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69731         "restrict" keywords, as per POSIX.  Protect the function
69732         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69733         Don't use K&R prototypes.  Check the sprintf return values.
69734         Re-define EAFNOSUPPORT if not present.  Indent.
69735
69736         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69737         suggested by Bruno Haible <bruno@clisp.org>.
69738
69739         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69740
69741         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69742
69743         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69744         libgcrypt).
69745
69746         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69747
69748         * lib/md2.h, lib/md2.c: New files.
69749
69750 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69753         errno alone.  Problem reported by Frederic Jolliton.
69754
69755 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * modules/verify (License): Change from GPL to LGPL.  This is a
69758         tiny module and there are apparently near-equivalents that are
69759         under the BSD license.
69760
69761 2005-10-24  Simon Josefsson  <jas@extundo.com>
69762
69763         * modules/sha1: Relicense to LGPL.
69764
69765 2005-10-24  Simon Josefsson  <jas@extundo.com>
69766
69767         * lib/md4.h: Shrink buffer size, now that we changed the type.
69768
69769 2005-10-23  Simon Josefsson  <jas@extundo.com>
69770
69771         * gnulib-tool (func_import): Fix --tests-base.
69772
69773 2005-10-22  Simon Josefsson  <jas@extundo.com>
69774
69775         * modules/arcfour (Depends-on): Need stdint.
69776
69777 2005-10-22  Simon Josefsson  <jas@extundo.com>
69778
69779         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69780         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69781
69782 2005-10-22  Simon Josefsson  <jas@extundo.com>
69783
69784         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69785         suggested by Bruno Haible <bruno@clisp.org>.
69786
69787 2005-10-22  Simon Josefsson  <jas@extundo.com>
69788
69789         * lib/crc.h: Include stddef.h, for size_t.
69790
69791 2005-10-22  Simon Josefsson  <jas@extundo.com>
69792
69793         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69794         arcfour_context struct (simplify test vector testing in GNU
69795         Shishi).
69796
69797 2005-10-21  Simon Josefsson  <jas@extundo.com>
69798
69799         * modules/des, modules/des-tests: New files.
69800
69801         * modules/gc-des, modules/gc-des-tests: New files.
69802
69803         * tests/test-des.c, tests/test-gc-des.c: New file.
69804
69805 2005-10-21  Simon Josefsson  <jas@extundo.com>
69806
69807         * modules/arctwo, modules/arctwo-tests: New files.
69808
69809         * tests/test-arctwo.c: New file.
69810
69811         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69812
69813         * tests/test-gc-arctwo.c: New file.
69814
69815 2005-10-21  Simon Josefsson  <jas@extundo.com>
69816
69817         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69818         Bruno Haible <bruno@clisp.org>.
69819
69820         * m4/gc-des.m4: New file.
69821
69822 2005-10-21  Simon Josefsson  <jas@extundo.com>
69823
69824         * m4/arctwo.m4: New file.
69825
69826         * m4/gc-arctwo.m4: New file.
69827
69828 2005-10-21  Simon Josefsson  <jas@extundo.com>
69829
69830         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69831         block.
69832
69833 2005-10-21  Simon Josefsson  <jas@extundo.com>
69834
69835         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69836         <bruno@clisp.org>.
69837
69838         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69839
69840         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69841         Bruno Haible <bruno@clisp.org>.
69842
69843         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69844         <bruno@clisp.org>.
69845
69846 2005-10-21  Simon Josefsson  <jas@extundo.com>
69847
69848         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69849
69850 2005-10-21  Simon Josefsson  <jas@extundo.com>
69851
69852         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69853
69854 2005-10-21  Simon Josefsson  <jas@extundo.com>
69855
69856         * lib/des.h, lib/des.c: New files.
69857
69858         * lib/gc-gnulib.c: Support DES.c
69859
69860 2005-10-21  Simon Josefsson  <jas@extundo.com>
69861
69862         * lib/arctwo.h, lib/arctwo.c: New files.
69863
69864         * lib/gc-gnulib.c: Support ARCTWO.
69865
69866 2005-10-21  Simon Josefsson  <jas@extundo.com>
69867
69868         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69869         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69870
69871 2005-10-21  Simon Josefsson  <jas@extundo.com>
69872
69873         * gnulib-tool (func_import, func_create_testdir): Define automake
69874         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69875         Makefile.am snippet),
69876         suggested by Bruno Haible <bruno@clisp.org>.
69877
69878         * modules/gc (Makefile.am): Use it.
69879
69880 2005-10-21  Bruno Haible  <bruno@clisp.org>
69881
69882         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69883         patch.
69884
69885 2005-10-19  Simon Josefsson  <jas@extundo.com>
69886
69887         * tests/test-gc-rijndael.c: New file.
69888
69889         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69890
69891 2005-10-19  Simon Josefsson  <jas@extundo.com>
69892
69893         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69894         interface too.
69895
69896 2005-10-19  Simon Josefsson  <jas@extundo.com>
69897
69898         * tests/test-gc-arcfour.c: New file.
69899
69900         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69901
69902 2005-10-19  Simon Josefsson  <jas@extundo.com>
69903
69904         * modules/gc-md4, modules/gc-md4-tests: New file.
69905
69906         * tests/test-gc-md4.c: New file.
69907
69908 2005-10-19  Simon Josefsson  <jas@extundo.com>
69909
69910         * m4/gc-md4.m4: New file.
69911
69912 2005-10-19  Simon Josefsson  <jas@extundo.com>
69913
69914         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69915         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69916         <kasal@ucw.cz>.
69917
69918 2005-10-19  Simon Josefsson  <jas@extundo.com>
69919
69920         * m4/gc-arcfour.m4: New file.
69921
69922         * m4/gc-rijndael.m4: New file.
69923
69924 2005-10-19  Simon Josefsson  <jas@extundo.com>
69925
69926         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69927
69928 2005-10-19  Simon Josefsson  <jas@extundo.com>
69929
69930         * lib/gc-gnulib.c: Support ARCFOUR.
69931
69932 2005-10-19  Simon Josefsson  <jas@extundo.com>
69933
69934         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69935         support.
69936
69937         * lib/gc.h: Add ECB enum type.
69938
69939         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69940
69941 2005-10-18  Simon Josefsson  <jas@extundo.com>
69942
69943         * tests/test-md5.c: New file.
69944
69945         * modules/md5-tests: New file.
69946
69947 2005-10-18  Simon Josefsson  <jas@extundo.com>
69948
69949         * tests/test-md4.c: New file.
69950
69951         * modules/md4, modules/md4-tests: New files.
69952
69953 2005-10-18  Simon Josefsson  <jas@extundo.com>
69954
69955         * m4/md4.m4: New file.
69956
69957 2005-10-18  Simon Josefsson  <jas@extundo.com>
69958
69959         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69960
69961 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69962
69963         * gnulib-tool (func_create_testdir): Omit the second check whether
69964         BUILT_SOURCES in nonempty.
69965
69966 2005-10-17  Simon Josefsson  <jas@extundo.com>
69967
69968         * tests/test-rijndael.c: New file.
69969
69970 2005-10-17  Simon Josefsson  <jas@extundo.com>
69971
69972         * modules/sha1: Depend on stdint instead of md5.
69973
69974         * modules/md5: Depend on stdint, remove uint32_t.
69975
69976 2005-10-17  Simon Josefsson  <jas@extundo.com>
69977
69978         * modules/gc-sha1-tests: New file.
69979
69980         * tests/test-gc-sha1.c: New file.
69981
69982 2005-10-17  Simon Josefsson  <jas@extundo.com>
69983
69984         * m4/md5.m4: Remove call to uint32_t.m4.
69985
69986 2005-10-17  Simon Josefsson  <jas@extundo.com>
69987
69988         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69989
69990         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69991         md5.h.
69992
69993         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69994
69995         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69996
69997 2005-10-17  Simon Josefsson  <jas@extundo.com>
69998
69999         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70000
70001 2005-10-17  Simon Josefsson  <jas@extundo.com>
70002
70003         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70004
70005 2005-10-17  Simon Josefsson  <jas@extundo.com>
70006
70007         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70008
70009         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70010
70011 2005-10-17  Bruno Haible  <bruno@clisp.org>
70012
70013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70014         that it can also be used in a test.
70015
70016 2005-10-16  Bruno Haible  <bruno@clisp.org>
70017
70018         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70019         TESTS_ENVIRONMENT, so that individual tests can augment it.
70020
70021         * gnulib-tool (func_create_testdir): Use an intermediate target for
70022         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70023         macros, like $(ALLOCA_H), which cannot be passed through the command
70024         line.
70025
70026 2005-10-15  Simon Josefsson  <jas@extundo.com>
70027
70028         * modules/rijndael-tests: New file.
70029
70030         * modules/rijndael: New file.
70031
70032 2005-10-15  Simon Josefsson  <jas@extundo.com>
70033
70034         * m4/rijndael.m4: New file.
70035
70036 2005-10-15  Simon Josefsson  <jas@extundo.com>
70037
70038         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70039
70040         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70041
70042 2005-10-14  Simon Josefsson  <jas@extundo.com>
70043
70044         * tests/test-arcfour.c: New file.
70045
70046         * modules/arcfour, modules/arcfour-tests: New files.
70047
70048 2005-10-14  Simon Josefsson  <jas@extundo.com>
70049
70050         * m4/arcfour.m4: New file.
70051
70052 2005-10-14  Simon Josefsson  <jas@extundo.com>
70053
70054         * lib/arcfour.h, lib/arcfour.c: New files.
70055
70056 2005-10-14  Roland McGrath  <roland@redhat.com>
70057
70058         Import from libc.  [BZ #1331]
70059         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70060         macro argument.
70061         Reported by Matej Vela <vela@debian.org>.
70062
70063 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70066         include <wchar.h>; no longer needed.
70067
70068 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70071
70072 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70073         and  Ulrich Drepper  <drepper@redhat.com>
70074
70075         Import from libc.
70076         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70077         instead of inline stream orientation test and two separate
70078         function calls.  Pay no attention to USE_IN_LIBIO.
70079
70080 2005-10-13  Simon Josefsson  <jas@extundo.com>
70081
70082         * modules/gc-hmac-md5-tests: New file.
70083
70084         * tests/test-gc-hmac-sha1.c: New file.
70085
70086         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70087
70088         * modules/gc-hmac-md5-tests: New file.
70089
70090         * tests/test-gc-md5.c: New file.
70091
70092         * modules/gc-md5-tests: New file.
70093
70094 2005-10-13  Simon Josefsson  <jas@extundo.com>
70095
70096         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70097         Move memory allocation outside of loop.
70098
70099 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70102         intermediate directory is in a read-only file system.  Problem
70103         reported by Eric Blake.
70104
70105 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70106
70107         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70108
70109 2005-10-12  Simon Josefsson  <jas@extundo.com>
70110
70111         * tests/test-hmac-sha1.c: New file.
70112
70113         * modules/hmac-sha1-tests: New file.
70114
70115         * modules/hmac-sha1: New file.
70116
70117 2005-10-12  Simon Josefsson  <jas@extundo.com>
70118
70119         * modules/gc-sha1: New file.
70120
70121 2005-10-12  Simon Josefsson  <jas@extundo.com>
70122
70123         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70124
70125         * tests/test-gc-pbkdf2-sha1.c: New file.
70126
70127 2005-10-12  Simon Josefsson  <jas@extundo.com>
70128
70129         * modules/gc-md5, modules/gc-hmac-md5: New files.
70130
70131         * modules/gc (Files): Remove md5, memxor and hmac files.
70132
70133 2005-10-12  Simon Josefsson  <jas@extundo.com>
70134
70135         * m4/gc-pbkdf2-sha1.m4: New file.
70136
70137         * m4/gc-hmac-sha1.m4: New file.
70138
70139         * m4/gc-sha1: New file.
70140
70141         * m4/hmac-sha1.m4: New file.
70142
70143 2005-10-12  Simon Josefsson  <jas@extundo.com>
70144
70145         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70146
70147         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70148
70149 2005-10-12  Simon Josefsson  <jas@extundo.com>
70150
70151         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70152         suggested by Bruno Haible <bruno@clisp.org>.
70153
70154 2005-10-12  Simon Josefsson  <jas@extundo.com>
70155
70156         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70157
70158 2005-10-12  Simon Josefsson  <jas@extundo.com>
70159
70160         * lib/gc-pbkdf2-sha1.c: New file.
70161
70162         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70163
70164 2005-10-12  Simon Josefsson  <jas@extundo.com>
70165
70166         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70167
70168         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70169
70170 2005-10-12  Simon Josefsson  <jas@extundo.com>
70171
70172         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70173         GC_USE_HMAC_MD5, respectively.
70174
70175         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70176         (gc_md5): Fix typo.
70177
70178         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70179
70180         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70181
70182         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70183
70184 2005-10-12  Bruno Haible  <bruno@clisp.org>
70185
70186         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70187         Reported by Stepan Kasal <kasal@ucw.cz>.
70188
70189 2005-10-11  Simon Josefsson  <jas@extundo.com>
70190
70191         * tests/test-crc.c: New file.
70192
70193         * modules/crc, modules/crc-tests: New files.
70194
70195 2005-10-11  Simon Josefsson  <jas@extundo.com>
70196
70197         * m4/crc.m4: New file.
70198
70199 2005-10-11  Simon Josefsson  <jas@extundo.com>
70200
70201         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70202
70203         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70204
70205         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70206
70207 2005-10-11  Simon Josefsson  <jas@extundo.com>
70208
70209         * lib/crc.h, lib/crc.c: New files.
70210
70211         * lib/gc.h (gc_hash_buffer): Add doc.
70212
70213 2005-10-11  Bruno Haible  <bruno@clisp.org>
70214
70215         * modules/c-strcasestr: New file.
70216         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70217
70218 2005-10-11  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/c-strcase: New file.
70221         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70222
70223 2005-10-11  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/strcasecmp.c: Include limits.h.
70226         (strcasecmp): Avoid integer overflow on exotic platforms.
70227         * lib/strncasecmp.c: Include limits.h.
70228         (strncasecmp): Avoid integer overflow on exotic platforms.
70229         Reported by Paul Eggert.
70230
70231 2005-10-11  Bruno Haible  <bruno@clisp.org>
70232
70233         * lib/c-strcasestr.h: New file, from GNU gettext.
70234         * lib/c-strcasestr.c: New file, from GNU gettext.
70235
70236 2005-10-11  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/c-strcase.h: New file, from GNU gettext.
70239         * lib/c-strcasecmp.c: New file, from GNU gettext.
70240         * lib/c-strncasecmp.c: New file, from GNU gettext.
70241
70242 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * modules/mempcpy (License): GPL -> LGPL.
70245         * modules/strchrnul (License): Likewise.
70246         * modules/sysexits (License): Likewise.
70247
70248 2005-10-08  Simon Josefsson  <jas@extundo.com>
70249
70250         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70251
70252 2005-10-07  Simon Josefsson  <jas@extundo.com>
70253
70254         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70255
70256 2005-10-06  Simon Josefsson  <jas@extundo.com>
70257
70258         * tests/test-hmac-md5.c: New file.
70259
70260         * modules/hmac-md5-tests: New file.
70261
70262         * modules/hmac-md5: New file.
70263
70264 2005-10-06  Simon Josefsson  <jas@extundo.com>
70265
70266         * m4/hmac-md5.m4: New file.
70267
70268         * m4/memxor.m4: Require gl_C_RESTRICT.
70269
70270 2005-10-06  Simon Josefsson  <jas@extundo.com>
70271
70272         * lib/memxor.c (memxor): Avoid casts and warnings.
70273
70274 2005-10-06  Simon Josefsson  <jas@extundo.com>
70275
70276         * lib/hmac-md5.c: New file.
70277
70278         * lib/hmac.h: New file.
70279
70280 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70283         promotes to int, not unsigned int, to catch the AIX 5.3
70284         compiler bug.
70285
70286 2005-10-05  Simon Josefsson  <jas@extundo.com>
70287
70288         * modules/memxor: New file.
70289
70290         * modules/iconv (Files): Move config.rpath to havelib, it is used
70291         there.
70292
70293         * modules/havelib (Files): Add config.rpath.
70294
70295 2005-10-05  Simon Josefsson  <jas@extundo.com>
70296
70297         * m4/memxor.m4: New file.
70298
70299 2005-10-05  Simon Josefsson  <jas@extundo.com>
70300
70301         * lib/memxor.c (memxor): Fix compiler error.
70302
70303         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70304         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70305
70306         * lib/memxor.h, lib/memxor.c: New files.
70307
70308         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70309         we assume all systems have it, suggested by Jim Meyering
70310         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70311         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70312         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70313         same reasons.
70314
70315 2005-10-05  Simon Josefsson  <jas@extundo.com>
70316
70317         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70318
70319 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70322         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70323         needed, since the source code now assumes these .h files.
70324
70325 2005-10-05  Derek Price  <derek@ximbiot.com>
70326
70327         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70328
70329 2005-10-05  Bruno Haible  <bruno@clisp.org>
70330
70331         * modules/stdint (License): Change to LGPL.
70332
70333 2005-10-04  Simon Josefsson  <jas@extundo.com>
70334
70335         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70336         D. Baushke" <mdb@gnu.org>.
70337
70338 2005-10-04  Bruno Haible  <bruno@clisp.org>
70339
70340         * lib/verify.h (verify_true): Provide alternative definition for C++.
70341
70342 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70343
70344         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70345         (SSIZE_MAX): New macro, if not already defined.
70346         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70347         than 2 GiB.
70348
70349 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         Sync from coreutils.
70352         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70353         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70354         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70355         ULLONG_MAX doesn't work with 2.7.2.1.
70356
70357 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70358
70359         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70360         From Ben Pfaff.
70361
70362         * modules/exclude (Depends-on): Depend on verify.
70363         * modules/strtoimax (Depends-on): Likewise.
70364         * modules/utimecmp (Depends-on): Likewise.
70365
70366 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * lib/exclude.c: Include verify.h.
70369         (verify): Remove.  All callers changed to use verify.h's version.
70370         * lib/strtoimax.c: Likewise.
70371         * lib/utimecmp.c: Likewis.e
70372
70373         Sync from coreutils.
70374         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70375         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70376         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70377         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70378         bother returning ENOSYS if settimeofday or stime fails; just let
70379         them return whatever errno they want to return.
70380         * lib/utimens.c: Include unistd.h, for dup2.
70381         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70382         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70383
70384 2005-10-02  Jim Meyering  <jim@meyering.net>
70385
70386         Sync from coreutils.
70387         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70388         from glibc-2.2.5 that fails for read-only files.
70389
70390 2005-10-02  Jim Meyering  <jim@meyering.net>
70391
70392         Sync from coreutils.
70393         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70394         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70395         `#if HAVE_CONFIG_H'.
70396         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70397         Remove AT_FDCWD test.
70398         Do not consume the fd unless successful.
70399         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70400         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70401         block, so that we don't even try to compile it if settimeofday is
70402         available.  This works around a compilation failure on OSF1 V5.1,
70403         due to stime requiring a `long int*' while tv_sec is `int'.
70404
70405 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70406
70407         Sync from coreutils.
70408         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70409         against `yes', rather than just testing for nonempty.
70410
70411 2005-10-01  Simon Josefsson  <jas@extundo.com>
70412
70413         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70414         and Darwin.
70415
70416         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70417         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70418         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70419         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70420         Check if struct addrinfo is declared.
70421
70422 2005-10-01  Simon Josefsson  <jas@extundo.com>
70423
70424         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70425         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70426         AI_* and EAI_* definitions.  Protect function declarations.
70427
70428 2005-10-01  Jim Meyering  <jim@meyering.net>
70429
70430         Sync from coreutils.
70431
70432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70433         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70434         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70435         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70436         in the inet and nsl libraries.  Required on Solaris 5.7.
70437
70438 2005-10-01  Jim Meyering  <jim@meyering.net>
70439
70440         Sync from coreutils.
70441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70442         in the inet and nsl libraries.  Required on Solaris 5.7.
70443
70444 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70445
70446         * lib/getdelim.c (getdelim): Remove unused variables.
70447
70448 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70451         so that the code works even with ancient cpp.  Portability problem
70452         with GCC 2.7.2.1 reported by Thomas M.Ott.
70453
70454 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         * modules/regex (Depends-on): Add strcase.
70457
70458         * modules/gethostname (Licence): Change from GPL to LGPL, since
70459         gethostname.c is a trivial implementation of a standard library
70460         function.
70461         * modules/poll (License): Change from GPL to LGPL, since it's
70462         derived from LGPL code.
70463
70464 2005-09-27  Jim Meyering  <jim@meyering.net>
70465
70466         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70467         HAVE_CONFIG_H.
70468
70469         * lib/intprops.h (signed_type_or_expr__): Define.
70470         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70471         for unsigned types.
70472
70473 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * lib/verify.h (verify_expr): Remove, replacing with:
70476         (verify_true): New macro that returns true instead of void.
70477         (verify_type__): Remove.
70478         (verify): Use verify_true rather than verify_type__.
70479
70480 2005-09-26  Bruno Haible  <bruno@clisp.org>
70481
70482         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70483         is necessary.
70484         (lib_SOURCES): Remove mbchar.c.
70485         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70486         (Files): Add m4/mbrtowc.m4.
70487         * modules/mbiter: Likewise.
70488         * modules/mbuiter: Likewise.
70489
70490 2005-09-26  Bruno Haible  <bruno@clisp.org>
70491
70492         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70493         compile mbchar.c if they are not both present.
70494         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70495         * m4/mbiter.m4 (gl_MBITER): Likewise.
70496         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70497         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70498         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70499
70500 2005-09-25  Jim Meyering  <jim@meyering.net>
70501
70502         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70503         also uses socklen_t.
70504
70505 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70506
70507         * lib/utimens.c (ENOSYS): Define if not already defined.
70508         (futimens): Support having a null PATH if the file descriptor
70509         is nonnegative.
70510
70511         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70512         Remove.
70513         (__attribute): Define to empty unless GCC 3.1 or later.
70514         This works around a core dump on OpenBSD 3.4, which has GCC
70515         2.95.3, which dumps core when given __attribute__(()).  It also
70516         simplifies other tests, since we really don't want to bother with
70517         worrying about which ancient version of GCC supported what.
70518         Original problem reported by Yoann Vandoorselaere, with part of
70519         the fix suggested by Derek Price.
70520
70521 2005-09-24  Jim Meyering  <jim@meyering.net>
70522
70523         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70524         so we can once again use a positive bitfield width of 1 -- now we
70525         don't have to explain why we were using a bitfield width of 2.
70526
70527 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70530         and similarly for the other external symbols.  Problem reported
70531         by James Gallager.
70532
70533         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70534         bug reported by Jim Meyering.
70535
70536         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70538         not needed, since socklen is a prerequisite module.
70539
70540 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70543         Problem reported by Eric Blake.
70544         (getaddrinfo): Initialize se so that it's not garbage.
70545         Redo internal storage allocation so that it doesn't make unportable
70546         assumptions about alignment.
70547         Fix a memory leak.
70548
70549         * lib/utimens.c (futimens): Use futimesat if available.
70550         Prefer it to futimes since it doesn't have the futimes bug.
70551
70552         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70553         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70554         Instead, declare a function that returns a pointer to an array,
70555         and use verify_type__ to declare the size of the array.
70556         Problem and germ of a solution reported by Bruno Haible.
70557         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70558         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70559
70560 2005-09-23  Jim Meyering  <jim@meyering.net>
70561
70562         Sync from coreutils.
70563         Correct build failure (socklen_t not defined) on at least
70564         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70566
70567 2005-09-23  Jim Meyering  <jim@meyering.net>
70568
70569         * modules/getaddrinfo (Depends-on): Add socklen.
70570
70571 2005-09-23  Bruno Haible  <bruno@clisp.org>
70572
70573         * tests/test-verify.c: New file.
70574
70575 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         Sync from coreutils.
70578
70579         * modules/argmatch (Depends-on): Add verify.
70580         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70581         unistd-safer.
70582         * modules/save-cwd (Depends-on): Likewise.
70583
70584         * modules/openat (Files): Add lib/openat-die.c.
70585         (Depends-on): Remove error, exitfail.
70586         Add dirname.
70587
70588         * modules/verify: New file.
70589         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70590         with "verify" module.
70591
70592 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70593
70594         Sync from coreutils.
70595
70596         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70597         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70598         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70599         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70600         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70601         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70602         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70603         Don't bother checking for string.h, stdlib.h, unistd.h.
70604         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70605         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70606         module's job.
70607         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70608         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70609
70610         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70611         (gl_GETDATE): Use it.
70612
70613         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70614
70615 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         Sync from coreutils.
70618
70619         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70620         stat-time.h.
70621         * lib/argmatch.h: Include verify.h
70622         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70623         (ARGMATCH_ASSERT): Remove; unused.
70624         * lib/canonicalize.c: Assume STDC_HEADERS.
70625         * lib/exclude.c: Include "strcase.h".
70626         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70627         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70628         and stdio-safer.h.
70629         (getusershell): Call fopen, not fopen_safer.
70630         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70631         Do not include unistd-safer.h.
70632         (save_cwd): Don't call fd_safer; no longer needed
70633         now that we include fcntl--.h.
70634
70635         * lib/getdate.y (relative_time): New type.
70636         (RELATIVE_TIME_0): New constant.
70637         (parser_control): Use relative_time instead of doing it ourselves.
70638         (%union): Add new relative_time rel member.
70639         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70640         Now typeless.
70641         (relunit, relunit_snumber): Now of type rel.
70642         (zone, rel, relunit, get_date): Adjust to above changes.
70643
70644         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70645         Do not include unistd-safer.h.
70646         (getloadavg): Don't call fd_safer; no longer needed
70647         now that we include fcntl--.h.
70648
70649         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70650         (make_dir_parents): Treat ENOSYS like EEXIST.
70651
70652         Improve quality of diagnostics on restore_cwd failure.
70653         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70654         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70655         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70656         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70657         each time through the loop.  Do not diagnose restore_cwd failure;
70658         that is the caller's job (and perhaps the caller does not care).
70659
70660         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70661         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70662         If the file already exists but is not a directory, don't bother
70663         to try to make its parents.
70664         Close potential file descriptor leak if we can't chdir("/") (!).
70665         Don't always return true if chdir($PWD) fails; return true only
70666         if the requested action was done successfully (except for the
70667         chdir($PWD)).
70668         Don't log final directory unless we actually made it.
70669         Refactor to avoid duplicate code to fix up permissions.
70670         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70671
70672         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70673         to make it a bit faster and (I hope) clearer.
70674         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70675         Fix bug in formats like %2N.
70676
70677         * lib/verify.h: New file.
70678
70679 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         Sync from coreutils.
70682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70683
70684 2005-09-22  Jim Meyering  <jim@meyering.net>
70685
70686         Sync from coreutils.
70687
70688         * m4/lstat.m4 (gl_FUNC_LSTAT):
70689         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70690         Remove obsolete comment.
70691         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70692         * m4/xstrtod.m4: Likewise.
70693
70694         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70695
70696 2005-09-22  Jim Meyering  <jim@meyering.net>
70697
70698         Sync from coreutils.
70699
70700         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70701
70702         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70703         the .tm_year member, since otherwise gcc-4.0 would now warn about
70704         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70705
70706         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70707         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70708
70709         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70710         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70711         when run in a time zone for which daylight savings time is in effect
70712         for the starting date.
70713
70714         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70715         stop us from restricting permissions of just-created absolute-named
70716         directories.
70717         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70718         to restore initial working directory.
70719         * lib/mkdir-p.c (make_dir_parents): New parameter:
70720         different_working_dir, to tell caller if/when we change the working
70721         directory and are unable to return to the initial one.
70722         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70723         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70724         `return false'.  This fixes a bug introduced on 2004-07-30.
70725
70726         * lib/openat.c (fdopendir): Be sure to close the supplied
70727         file descriptor before returning.  This makes our replacement
70728         implementation a little closer to Solaris's, where fdopendir
70729         ties the file descriptor to the returned DIR* pointer.
70730         * lib/openat.c (unlinkat): New function.
70731         * lib/openat.h (unlinkat): Add prototype.
70732         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70733         (openat_restore_fail): Rename from openat_restore_die.
70734         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70735
70736         Provide an alternative to exiting immediately upon save_cwd or
70737         restore_cwd failure.  Now, an application can arrange e.g.,
70738         to perform a longjump in that case.
70739         * lib/openat.c: Include dirname.h.
70740         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70741         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70742         and openat_restore_die rather than calling error directly.
70743         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70744
70745         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70746         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70747         define.
70748
70749         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70750         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70751                             int utc, int nanoseconds);
70752         Background:
70753         date should not have to allocate a megabyte of virtual memory to
70754         handle a format argument like +%1048575T.  When implemented with
70755         strftime, it must allocate such a buffer, use strftime to fill it
70756         in, print it, then free it.
70757         With fprintftime, it simply prints everything and exits.
70758         With no need for memory allocation, that's one fewer way to fail.
70759         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70760         optional field width, not before, so we accept %9:z, not %:9z.
70761         (my_strftime): Be sure to use L_('x') for literals.
70762
70763         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70764         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70765         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70766         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70767         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70768         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70769         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70770         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70771         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70772         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70773         * lib/xgethostname.c, lib/xreadlink.c:
70774         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70775
70776         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70777         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70778         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70779         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70780         and don't include <sys/file.h>).
70781
70782 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70783
70784         Sync from coreutils.
70785
70786         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70787         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70788         [!LDAV_DONE]: Avoid unused variable warning.
70789
70790 2005-09-21  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/unicodeio.h (unicode_to_mb): New declaration.
70793
70794 2005-09-20  Derek Price  <derek@ximbiot.com>
70795
70796         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70797         getaddrinfo.h.
70798
70799 2005-09-20  Bruno Haible  <bruno@clisp.org>
70800
70801         * gnulib-tool: Remove trailing slashes from the values specified for
70802         --source-base, --m4-base, --tests-base, --aux-dir.
70803         Suggested by Simon Josefsson <jas@extundo.com>.
70804
70805 2005-09-20  Bruno Haible  <bruno@clisp.org>
70806
70807         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70808         func_modules_to_filelist, func_import, func_create_testdir): Make all
70809         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70810         change when gnulib-tool is invoked in a different locale.
70811
70812 2005-09-19  Simon Josefsson  <jas@extundo.com>
70813
70814         * m4/socklen.m4: Fix typo.
70815
70816 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70817
70818         Use a consistent style for including <config.h>.
70819         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70820         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70821         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70822         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70823         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70824         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70825         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70826         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70827         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70828         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70829         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70830         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70831         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70832         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70833         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70834         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70835         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70836         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70837         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70838         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70839         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70840         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70841         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70842         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70843         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70844         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70845         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70846         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70847         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70848         lib/xstrtoumax.c, lib/yesno.c:
70849         Standardize inclusion of config.h.
70850         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70851         lib/inttostr.h:  Removed inclusion of config.h from header files.
70852         * lib/inttostr.c:  Adjusted in-tree users.
70853         * lib/timespec.h: Remove superfluous warning to include config.h.
70854         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70855         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70856         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70857         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70858         config.h with HAVE_CONFIG_H.
70859
70860 2005-09-19  Jim Meyering  <jim@meyering.net>
70861
70862         * modules/pathmax (License): Change to LGPL.
70863
70864 2005-09-19  Derek Price  <derek@ximbiot.com>
70865
70866         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70867
70868 2005-09-19  Bruno Haible  <bruno@clisp.org>
70869
70870         * gnulib-tool (import): Provide default for --tests-base.
70871
70872 2005-09-19  Bruno Haible  <bruno@clisp.org>
70873
70874         * doc/quote.texi: New file, extracted from gnulib.texi.
70875         * doc/ctime.texi: New file, extracted from gnulib.texi.
70876         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70877         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70878         * doc/gnulib.texi: Include them.
70879
70880 2005-09-18  Bruno Haible  <bruno@clisp.org>
70881
70882         Portability fix.
70883         * gnulib-tool (func_readlink): New function.
70884         (func_ln_if_changed): Use it.
70885
70886 2005-09-18  Bruno Haible  <bruno@clisp.org>
70887
70888         * gnulib-tool: Support --with-tests also with --import.
70889         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70890         (func_import): Use variables $testsbase and $inctests. Emit a
70891         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70892         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70893         SUBDIRS += $testsdir.
70894         (func_create_testdir): Update.
70895
70896 2005-09-18  Bruno Haible  <bruno@clisp.org>
70897
70898         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70899         instead of $dry_run.
70900         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70901         (func_ln_if_changed): Don't handle dry-run here.
70902         (func_import): In dry-run mode, detect more precisely which actions
70903         would be performed, and don't use "...ing" verbs.
70904
70905 2005-09-18  Bruno Haible  <bruno@clisp.org>
70906
70907         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70908         (func_import): Use join on two temporary files instead of three nested
70909         loops, in order to determine which files are new or old.
70910
70911 2005-09-18  Bruno Haible  <bruno@clisp.org>
70912
70913         * gnulib-tool (func_import): Comment out code that spits out the
70914         new files with --dry-run.
70915
70916 2005-09-18  Bruno Haible  <bruno@clisp.org>
70917
70918         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70919
70920 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * lib/stat-time.h: New file.
70923         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70924         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70925         in a different way.
70926         (timespec_cmp): New function.
70927         * lib/utimecmp.c: Include stat-time.h.
70928         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70929         members exist, not on the obsolescent ST_MTIM_NSEC.
70930         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70931
70932 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70935
70936 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * MODULES.html.sh (File system functions): Add stat-time.
70939         * modules/stat-time: New file.
70940         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70941         is now done in a different way, by the stat-time module.
70942         * modules/utimecmp (Depends-on): Add stat-time.
70943
70944 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         * m4/st_mtim.m4: Remove.  Superseded by...
70947         * m4/stat-time.m4: New file.
70948         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70949         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70950
70951 2005-09-15  Derek Price  <derek@ximbiot.com>
70952
70953         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70954
70955 2005-09-15  Derek Price  <derek@ximbiot.com>
70956
70957         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70958         * lib/regex_internal.c: Ditto, using this...
70959         (__GNUC_PREREQ): ...new macro.
70960         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70961         using...
70962         (__GNUC_PREREQ): ...this new macro.
70963
70964         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70965
70966 2005-09-15  Derek Price  <derek@ximbiot.com>
70967             Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70970         changes, consolidating in...
70971         * lib/regex_internal.h: ...this file.
70972
70973 2005-09-13  Jim Meyering  <jim@meyering.net>
70974
70975         * lib/canon-host.c: Filter through gnu indent and reword comments
70976         slightly.
70977         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70978
70979 2005-09-13  Derek Price  <derek@ximbiot.com>
70980
70981         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70982         failure.
70983         Reported by Jim Meyering  <jim@meyering.net>.
70984
70985 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70986
70987         * lib/base64.c: Typo.
70988         (base64_encode): Put b64str in initialized data section.
70989
70990 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         Merge glibc and coreutils changes into gnulib, plus a few
70993         extra fixes.
70994         * lib/md5.c: Use #error rather than a string.
70995         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70996         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70997         (__attribute__): Define to empty for non recent-GCC.
70998         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70999         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71000         Renamed from their non-__ counterparts, with new macros replacing
71001         them if not _LIBC.  Add __THROW attribute.
71002         (rol): Remove.
71003         (struct md5_ctx): Align buffer if using GCC.
71004         * lib/sha1.h (struct sha1_ctx): Likewise.
71005         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71006         The old name was backwards.
71007         (NOTSWAP): Remove; not used.
71008         (rol): New macro, moved here from md5.h.
71009         (sha1_process_block): Remove a FIXME that doesn't make sense.
71010
71011 2005-09-12  Derek Price  <derek@ximbiot.com>
71012
71013         Return usable errors from canon-host.
71014         * lib/canon-host.h: New file.
71015         * lib/canon-host.c (canon_host): Wrap...
71016         (canon_host_r): ...this new function, which now relies exclusively on
71017         getaddrinfo.
71018         (ch_strerror): New function.
71019         (last_cherror): New global.
71020         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71021         interface.
71022         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71023         void *.
71024         (freeaddrinfo): Free ai->ai_canonname when set.
71025
71026 2005-09-12  Derek Price  <derek@ximbiot.com>
71027
71028         Make canon-host require getaddrinfo.
71029         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71030         AC_LIBSOURCE canon-host.h.  Call...
71031         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71032         gl_GETADDRINFO.
71033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71034
71035 2005-09-12  Derek Price  <derek@ximbiot.com>
71036
71037         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71038         LGPL.
71039         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71040
71041 2005-09-12  Derek Price  <derek@ximbiot.com>
71042
71043         * lib/gai_strerror.c: Include config.h when available.  Include
71044         getaddrinfo.h before other headers to test interface.
71045         Reported by Larry Jones <lawrence.jones@ugs.com>.
71046
71047 2005-09-12  Derek Price  <derek@ximbiot.com>
71048             Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * modules/glob (Files): Add glob-libc.h.
71051
71052 2005-09-12  Derek Price  <derek@ximbiot.com>
71053             Paul Eggert  <eggert@cs.ucla.edu>
71054
71055         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71056         glob_.h, glob-libc.h.
71057         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71058
71059 2005-09-12  Derek Price  <derek@ximbiot.com>
71060             Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71063         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71064         protecting things that should be done only in gnulib contexts.
71065         * lib/glob_.h: New file, containing only the glob things needed for
71066         gnulib.
71067         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71068         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71069         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71070         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71071         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71072         and to respect the namespace rules better.
71073
71074 2005-09-08  Simon Josefsson  <jas@extundo.com>
71075
71076         * modules/socklen: New file.
71077
71078 2005-09-08  Simon Josefsson  <jas@extundo.com>
71079
71080         * m4/socklen.m4: New file.
71081
71082 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * modules/utimens (Files): Add m4/utimbuf.m4, since
71085         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71086         Reported by Sergey Poznyakoff.
71087
71088 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71091         definitions, since that's the preferred style in glibc.
71092         Fix a minor spacing issue, and update copyright notice to match
71093         glibc's.
71094
71095 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71098
71099 2005-09-06  Simon Josefsson  <jas@extundo.com>
71100
71101         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71102         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71103
71104 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71107         warning.
71108
71109 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * config/srclist.txt: Add glibc bug 1302.
71112
71113 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         Change bitset word type from unsigned int to unsigned long int,
71116         as this has better performance on typical 64-bit hosts.
71117         Port bitset code to hosts with unusual word sizes.
71118         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71119         (build_collating_symbol):
71120         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71121         argument is a bitset.  This is merely a style issue, but it makes
71122         it clearer that an entire array is expected.
71123         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71124         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71125         Port to the case where bitset_word is not the same as unsigned int.
71126         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71127         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71128         Likewise.
71129         * lib/regexec.c (check_dst_limits_calc_pos_1,
71130         check_subexp_matching_top):
71131         (build_trtable, group_nodes_into_DFAstates):
71132         Likewise.
71133         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71134         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71135         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71136         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71137         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71138         * lib/regcomp.c (optimize_subexps, lower_subexp):
71139         Work even if bitset_word has holes in its bitwise representation.
71140         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71141         * lib/regexec.c (check_dst_limits_calc_pos_1,
71142         check_subexp_matching_top):
71143         Likewise.
71144         * lib/regex_internal.c (re_string_reconstruct):
71145         Don't assume UCHAR_MAX == 255.
71146         * lib/regex_internal.h (bitset_set_all): Likewise.
71147         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71148         All uses changed.
71149         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71150         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71151         All uses changed.
71152         (BITSET_WORD_MAX): New macro.
71153         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71154         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71155         (bitset_empty, bitset_copy):
71156         Prefer sizeof (bitset) to multiplying it out ourselves.
71157         (bitset_not_merge): Remove; unused.
71158         (bitset_contain): Return bool, not unsigned int with one bit on.
71159         All callers changed.
71160         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71161         alignment than re_node_set; do this by defining a new internal
71162         type struct dests_alloc and using it to allocate memory.
71163
71164 2005-09-05  Bruno Haible  <bruno@clisp.org>
71165
71166         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71167         links.
71168
71169 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71170
71171         * modules/size_max (Makefile.am): Add size_max.h
71172
71173 2005-09-04  Derek Price  <derek@ximbiot.com>
71174
71175         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71176
71177 2005-09-03  Simon Josefsson  <jas@extundo.com>
71178
71179         * gnulib-tool: Fix typo.
71180
71181 2005-09-03  Simon Josefsson  <jas@extundo.com>
71182
71183         * config/srclist.txt: Add glibc bug 1293.
71184
71185 2005-09-03  Derek Price  <derek@ximbiot.com>
71186
71187         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71188         From Larry Jones <lawrence.jones@ugs.com>.
71189
71190 2005-09-02  Simon Josefsson  <jas@extundo.com>
71191
71192         * modules/socklen: New file.
71193
71194 2005-09-02  Simon Josefsson  <jas@extundo.com>
71195
71196         * modules/havelib: New module.
71197
71198         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71199         Use havelib.
71200
71201 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         Check for arithmetic overflow when calculating sizes, to prevent
71204         some buffer-overflow issues.  These patches are conservative, in the
71205         sense that when I couldn't determine whether an overflow was possible,
71206         I inserted a run-time check.
71207         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71208         macros.
71209         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71210         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71211         (re_xnrealloc, re_x2nrealloc): New inline functions.
71212         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71213         parse_bracket_exp):
71214         (build_equiv_class, build_charclass): Check for arithmetic overflow
71215         in size expression calculations.
71216         * lib/regex_internal.c (re_string_realloc_buffers):
71217         (build_wcs_upper_buffer, re_node_set_add_intersect):
71218         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71219         (re_dfa_add_node, register_state): Likewise.
71220         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71221         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71222         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71223         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71224
71225 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71228         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71229
71230 2005-09-02  Bruno Haible  <bruno@clisp.org>
71231
71232         Support for lib vs. lib64 distinction on biarch platforms.
71233         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71234         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71236
71237 2005-09-02  Bruno Haible  <bruno@clisp.org>
71238
71239         * gnulib-tool (import): In the other first-use case, provide defaults
71240         as well.
71241
71242 2005-09-02  Bruno Haible  <bruno@clisp.org>
71243
71244         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71245         patches not yet found in the latest gettext release.
71246
71247 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71250         to avoid a collision with bits/local_lim.h in glibc.
71251         All uses changed.  Problem reported by Dmitry V. Levin in
71252         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71253
71254         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71255         bugs in int versus size_t comparisons.
71256         (re_string_context_at): Fix bug where the code assumed that
71257         Idx is signed.
71258
71259         Use bool where appropriate.
71260         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71261         All callers changed.
71262         (calc_eclosure_iter): Likewise, for ROOT arg.
71263         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71264         (build_charclass_op): Likewise, for NON_MATCH arg.
71265         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71266         (re_string_construct_common): Likewise, for ICASE arg.
71267         * lib/regexec.c (re_search_2_stub, re_search_stub):
71268         Likewise, for RET_LEN arg.
71269         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71270         (set_regs): Likewise, for FL_BACKTRACK arg.
71271         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71272         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71273         (calc_eclosure_iter, parse_bracket_exp):
71274         Use bool for internal variables that are booleans.
71275         * lib/regexec.c (re_search_internal, check_matching,
71276         proceed_next_node):
71277         (set_regs, build_sifted_states, sift_states_bkref):
71278         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71279         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71280         (find_collation_sequence_value):
71281         Likewise.
71282         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71283         (re_node_set_compare):
71284         Return bool, not int. All callers changed.
71285         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71286         (build_trtable, check_node_accept): Likewise.
71287         * lib/regex_internal.h: Include stdbool.h.
71288
71289         Fix bugs uncovered when converting to bool.
71290         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71291         failure instead of charging ahead blindly.
71292         * lib/regex_internal.c (register_state): Likewise.
71293         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71294         for freeing internal storage.
71295         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71296         bitset pieces used as boolean, to avoid undefined behavior
71297         on hosts that do int overflow checking.
71298
71299 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * config/srclist.txt: Add glibc bugs 1285-1287.
71302
71303 2005-09-01  Jim Meyering  <jim@meyering.net>
71304
71305         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71306         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71307         Require gl_STAT_MACROS, too.
71308
71309 2005-09-01  Bruno Haible  <bruno@clisp.org>
71310
71311         * gnulib-tool (import): In the first-use case, provide defaults.
71312
71313 2005-09-01  Bruno Haible  <bruno@clisp.org>
71314
71315         * gnulib-tool (func_import): Remove the .tmp files.
71316
71317 2005-09-01  Bruno Haible  <bruno@clisp.org>
71318
71319         * gnulib-tool (func_import): Fix handling of symbolic links.
71320
71321 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71324         old glibc regex code mishandles strings longer than 2**31 bytes.
71325         This patch fixes this when the regex code is used in gnulib
71326         (i.e., outside glibc).
71327
71328         This patch should not affect the use of the regex code inside
71329         glibc.  No doubt this problem also needs to be handled for glibc
71330         as well, but the result will be an incompatible change to the
71331         glibc ABI, and the old ABI will have to be supported too.  That
71332         can be the the subject for another patch.
71333
71334         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71335         governing whether the rest of this patch is active.  By default,
71336         the macro is disabled and the patch has no effect.
71337         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71338         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71339         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71340         (re_match_2, re_set_registers): Use the new types.
71341         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71342         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71343         New macros.
71344         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71345         (re_string_context_at, bin_tree_t, re_dfastate_t):
71346         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71347         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71348         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71349         (re_string_char_size_at, re_string_wchar_at):
71350         (re_string_elem_size_at):
71351         Use the new types and macros to port to 64-bit hosts.
71352         Use unsigned types for internal values, so that the code
71353         mostly works even for arrays larger than SSIZE_MAX.
71354         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71355         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71356         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71357         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71358         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71359         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71360         (calc_inveclosure, parse_dup_op, build_range_exp):
71361         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71362         (fetch_number, create_token_tree, mark_opt_subexp):
71363         Likewise.
71364         * lib/regex_internal.c (re_string_construct_common,
71365         create_ci_newstate):
71366         (create_cd_newstate, re_string_allocate, re_string_construct):
71367         (re_string_realloc_buffers, build_wcs_upper_buffer):
71368         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71369         (re_string_reconstruct, re_string_peek_byte_case):
71370         (re_string_fetch_byte_case, re_string_context_at):
71371         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71372         (re_node_set_init_copy, re_node_set_add_intersect):
71373         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71374         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71375         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71376         (re_acquire_state, re_acquire_state_context, register_state):
71377         Likewise.
71378         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71379         search_cur_bkref_entry):
71380         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71381         (re_search_internal, re_search_2_stub, re_search_stub)
71382         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71383         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71384         (update_cur_sifted_state, check_dst_limits):
71385         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71386         (check_subexp_limits, sift_states_bkref, merge_state_array):
71387         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71388         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71389         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71390         (expand_bkref_cache, check_node_accept_bytes):
71391         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71392         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71393         (acquire_init_state_context, check_halt_node_context):
71394         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71395         (sift_states_backward, clean_state_log_if_needed):
71396         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71397         (find_recover_state, transit_state_sb, transit_state_mb):
71398         (transit_state_bkref, build_trtable, match_ctx_clean):
71399         Likewise.
71400         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71401         to work around an assumption that REG_MISSING is negative.
71402
71403         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71404         (seek_collating_symbol_entry) [defined _LIBC]:
71405         (lookup_collation_sequence_value) [defined _LIBC]:
71406         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71407         Use prototypes rather than old-style function definitions.
71408         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71409         (transit_state_sb) [0]:
71410         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71411
71412         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71413         rm_eo.
71414
71415         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71416         (optimize_subexps, lower_subexp):
71417         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71418         since the signed shift might overflow.  Use 1u<<31 instead.
71419         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71420         Likewise.
71421         * lib/regexec.c (check_dst_limits_calc_pos_1,
71422         check_subexp_matching_top): Likewise.
71423
71424         * lib/regcomp.c (optimize_subexps, lower_subexp):
71425         Use CHAR_BIT rather than 8, for clarity.
71426         * lib/regexec.c (check_dst_limits_calc_pos_1):
71427         (check_subexp_matching_top): Likewise.
71428         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71429         have to worry about portability issues when shifting it left.
71430         Remove no-longer-needed test for table_size > 0.
71431         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71432         in a word, as the resulting behavior is undefined.
71433         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71434         in one case, a <= should have been an <, and in another case the
71435         whole test was missing.
71436         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71437         the standard name CHAR_BIT.
71438         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71439         this is not true on one's complement and signed-magnitude hosts.
71440
71441         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71442         next_last_offset.
71443         (struct re_dfa_t): Remove unused member states_alloc.
71444         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71445
71446 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71449         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71450         and large-file glibc and in 32-bit large-file Solaris.
71451
71452 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71455         lengths fit in regoff_t; this isn't true if regoff_t is the same
71456         width as size_t.
71457         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71458         (= START + RANGE) instead of RANGE.  This avoids overflow
71459         problems when regoff_t is the same width as size_t.
71460         All callers changed.
71461         (re_search_2_stub): Check for overflow when adding the
71462         sizes of the two strings.
71463         (re_search_stub): Check for overflow when adding START
71464         to RANGE; if it occurs, substitute the extreme value.
71465
71466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71469
71470 2005-08-31  Jim Meyering  <jim@meyering.net>
71471
71472         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71473         a pointer-to-const.
71474         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71475         (register_state): Likewise.
71476         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71477         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71478         (group_nodes_into_DFAstates): Likewise.
71479
71480 2005-08-31  Jim Meyering  <jim@meyering.net>
71481
71482         * check-module: Add a FIXME comment.
71483
71484 2005-08-31  Eric Blake  <ebb9@byu.net>
71485
71486         * modules/unistd-safer (Files): Add unistd--.h.
71487         * modules/stdio-safer (Files): Add stdio--.h.
71488
71489 2005-08-31  Derek Price  <derek@ximbiot.com>
71490
71491         * lib/getdelim.c (getdelim): Return EOF on EOF.
71492         Reported by Larry Jones <lawrence.jones@ugs.com>.
71493
71494 2005-08-31  Bruno Haible  <bruno@clisp.org>
71495
71496         Avoid unnecessary diffs in the generated lib/Makefile.am.
71497         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71498         the generated files.
71499         (func_import): Don't set cmd.
71500
71501 2005-08-31  Bruno Haible  <bruno@clisp.org>
71502
71503         * lib/strstr.c: Include <stddef.h>, for NULL.
71504         * lib/strcasestr.c: Likewise.
71505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71506
71507 2005-08-31  Bruno Haible  <bruno@clisp.org>
71508
71509         * gnulib-tool: New option --macro-prefix.
71510         (func_import): Use macro_prefix.
71511         (import): Handle option --macro-prefix.
71512
71513 2005-08-31  Bruno Haible  <bruno@clisp.org>
71514
71515         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71516         Also use new variables cached_lgpl, cached_libtool.
71517
71518 2005-08-31  Bruno Haible  <bruno@clisp.org>
71519
71520         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71521         always instantiating them.
71522
71523 2005-08-31  Bruno Haible  <bruno@clisp.org>
71524
71525         * gnulib-tool (func_import): Read the previous cached settings
71526         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71527         earlier added by gnulib but are now dropped. Warn when a gnulib file
71528         overwrites a non-gnulib file.
71529
71530 2005-08-31  Bruno Haible  <bruno@clisp.org>
71531
71532         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71533         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71534         projects that don't keep autogenerated files in CVS. Put into
71535         actioncmd only the specified modules, not the transitive closure.
71536
71537 2005-08-31  Bruno Haible  <bruno@clisp.org>
71538
71539         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71540         Create directories that shall be filled.
71541         (import): Don't look for gl_* macros in configure.ac. Recurse across
71542         all directories containing a gnulib-cache.m4 files, if meaningful.
71543
71544 2005-08-31  Bruno Haible  <bruno@clisp.org>
71545
71546         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71547         (import): Set seen_libtool when we see gl_LIBTOOL.
71548
71549 2005-08-31  Bruno Haible  <bruno@clisp.org>
71550
71551         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71552         declaration macro definitions from generated gnulib.m4.
71553
71554 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71555
71556         * lib/iconvme.h: Add prototype for iconv_alloc.
71557
71558 2005-08-29  Simon Josefsson  <jas@extundo.com>
71559
71560         * lib/iconvme.c: Fix errno.
71561
71562 2005-08-29  Bruno Haible  <bruno@clisp.org>
71563
71564         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71565         that it works when the directory contains spaces.
71566
71567 2005-08-29  Bruno Haible  <bruno@clisp.org>
71568
71569         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71570
71571 2005-08-29  Bruno Haible  <bruno@clisp.org>
71572
71573         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71574         Emit more advice.
71575
71576 2005-08-29  Bruno Haible  <bruno@clisp.org>
71577         and Stepan Kasal  <kasal@ucw.cz>
71578
71579         * check-module: If more parameters are given, check each of them
71580         separately; add more exceptions, as noted by Jim Meyering.
71581         (check_module): New procedure.
71582         (%exempt_header): Now contains all exceptions.
71583
71584 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71585
71586         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71587
71588 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71589
71590         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71591
71592 2005-08-28  Bruno Haible  <bruno@clisp.org>
71593
71594         * m4/gnulib-tool.m4: New file.
71595
71596 2005-08-27  Jim Meyering  <jim@meyering.net>
71597
71598         * modules/unistd-safer (Files): Add pipe-safer.c.
71599         * modules/fcntl-safer (Files): Add creat-safer.c.
71600
71601 2005-08-27  Jim Meyering  <jim@meyering.net>
71602
71603         * m4/stdlib-safer.m4: New file.  From coreutils.
71604         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71605         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71606         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71608         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71609
71610 2005-08-27  Jim Meyering  <jim@meyering.net>
71611
71612         * lib/fopen-safer.c: Merge minor changes from coreutils.
71613         * lib/dup-safer.c: Likewise.
71614         * lib/fd-safer.c: Likewise.
71615
71616         Merge from coreutils.
71617         * lib/stdio--.h: New file.
71618         * lib/stdlib--.h: New file.
71619         * lib/mkstemp-safer.c: New file.
71620
71621         GNU tar needs these.
71622         * lib/pipe-safer.c: New file.
71623         * lib/creat-safer.c: New file.
71624         * lib/fcntl--.h (creat): Define to creat_safer.
71625         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71626         * lib/unistd--.h (pipe): Define to pipe_safer.
71627         * lib/unistd-safer.h: Declare pipe_safer.
71628
71629 2005-08-26  Simon Josefsson  <jas@extundo.com>
71630
71631         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71632         Haible <bruno@clisp.org>.
71633
71634 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * lib/regex_internal.h: Remove all references to
71637         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71638         or better.
71639         (bitset_not, bitset_merge, bitset_not_merge):
71640         (bitset_mask, re_string_allocate, re_string_construct):
71641         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71642         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71643         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71644         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71645         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71646         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71647         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71648         (re_acquire_state_context):
71649         Remove unnecessary forward decls.
71650         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71651         Put __attribute at function definition,
71652         now that the function decl has been removed.
71653         * lib/regex_internal.c (re_string_peek_byte_case):
71654         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71655         Likewise.
71656
71657 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71658
71659         * m4/regex.m4: Add AC_PREREQ(2.50).
71660         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71661
71662 2005-08-25  Simon Josefsson  <jas@extundo.com>
71663
71664         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71665         __fsetlocking.
71666
71667 2005-08-25  Simon Josefsson  <jas@extundo.com>
71668
71669         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71670         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71671         GLIBC specific code.
71672
71673 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         Make regex safe for g++.  This fixes one real bug (an "err"
71676         that should have been "*err").  g++ problem reported by
71677         Sam Steingold.
71678         * lib/regex_internal.h (re_calloc): New macro, consistent with
71679         re_malloc etc.  All callers of calloc changed to use re_calloc.
71680         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71681         not int.  All callers changed.
71682         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71683         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71684         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71685         (find_recover_state): Change "err" to "*err"; this fixes what
71686         appears to be a real bug.
71687         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71688         versus int.
71689
71690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         * modules/regex (Depends-on): Add malloc, since the code
71693         assumes that !malloc(0) means failure.
71694
71695 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71696
71697         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71698
71699         alloca modernization/simplification for regex.
71700         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71701         needs to be at the start of the file, and can be moved into
71702         regex_internal.h and simplified.
71703         * lib/regex_internal.h: Include <alloca.h>.
71704         (__libc_use_alloca) [!defined _LIBC]: New macro.
71705         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71706         now works outside glibc.
71707
71708 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * config/srclist.txt: Add glibc bugs 1241, 1245.
71711
71712 2005-08-25  Jim Meyering  <jim@meyering.net>
71713
71714         * lib/open-safer.c: Include <config.h>.
71715         Otherwise, we'd lose LARGEFILE support in any file using
71716         e.g. "fcntl--.h"
71717
71718 2005-08-25  Bruno Haible  <bruno@clisp.org>
71719
71720         * m4/minmax.m4: Require autoconf 2.52.
71721         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71722         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71723         alternatives of translit over the alphabet.
71724         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71725
71726 2005-08-24  Simon Josefsson  <jas@extundo.com>
71727
71728         * tests/test-getpass.c: New file.
71729
71730 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71733         for GNU regex features.
71734
71735 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71738         * lib/regex.h (regerror): Likewise.
71739
71740         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71741         requires this.  (The code never needed it.)
71742
71743         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71744         All uses of recently-renamed identifiers changed to use the new,
71745         POSIX-compliant names.  The code will build and run just fine
71746         without these changes, but it's better to eat our own dog food
71747         and use the standard-conforming names.
71748
71749         * lib/regex.h: Fix a multitude of POSIX name space violations.
71750         These changes have an effect only for programs that define
71751         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71752         do not change anything for programs compiled in the normal way.
71753         Also, there is no effect on the ABI.
71754
71755         (_REGEX_SOURCE): New macro.
71756         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71757         defined and _GNU_SOURCE is not; this fixes a name space violation.
71758
71759         Rename the following macros to obey POSIX requirements.
71760         The old names are still visible as macros if _REGEX_SOURCE is defined.
71761         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71762         RE_BACKSLASH_ESCAPE_IN_LISTS.
71763         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71764         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71765         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71766         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71767         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71768         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71769         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71770         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71771         (REG_INTERVALS): renamed from RE_INTERVALS.
71772         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71773         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71774         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71775         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71776         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71777         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71778         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71779         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71780         RE_UNMATCHED_RIGHT_PAREN_ORD.
71781         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71782         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71783         (REG_DEBUG): renamed from RE_DEBUG.
71784         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71785         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71786         unusual, since we can't clash with the POSIX REG_ICASE.
71787         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71788         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71789         (REG_NO_SUB): renamed from RE_NO_SUB.
71790         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71791         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71792         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71793         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71794         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71795         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71796         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71797         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71798         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71799         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71800         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71801         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71802         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71803         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71804         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71805         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71806         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71807         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71808         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71809         (REG_FIXED): Renamed from REGS_FIXED.
71810         (REG_NREGS): Renamed from RE_NREGS.
71811
71812         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71813         of other REG_* macros, since POSIX says the user is allowed to
71814         #undef these macros selectively.
71815
71816         (reg_errcode_t): Update comment stating what other tables need
71817         to be consistent.
71818
71819         Rename the following enum values to obey POSIX requirements.
71820         The old names are still visible as macros.
71821         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71822         is not defined, since GNU is supposed to be a superset of POSIX as
71823         much as possible, and since we want reg_errcode_t to be a signed
71824         type for implementation consistency.
71825         (_REG_NOERROR): Renamed from REG_NOERROR.
71826         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71827         (_REG_BADPAT): Renamed from REG_BADPAT.
71828         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71829         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71830         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71831         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71832         (_REG_EBRACK): Renamed from REG_EBRACK.
71833         (_REG_EPAREN): Renamed from REG_EPAREN.
71834         (_REG_EBRACE): Renamed from REG_EBRACE.
71835         (_REG_BADBR): Renamed from REG_BADBR.
71836         (_REG_ERANGE): Renamed from REG_ERANGE.
71837         (_REG_ESPACE): Renamed from REG_ESPACE.
71838         (_REG_BADRPT): Renamed from REG_BADRPT.
71839         (_REG_EEND): Renamed from REG_EEND.
71840         (_REG_ESIZE): Renamed from REG_ESIZE.
71841         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71842         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71843         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71844         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71845         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71846
71847         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71848         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71849         changed.  But support the old name if the new one is not defined
71850         and if _REGEX_SOURCE.
71851
71852         Change the following member names in struct re_pattern_buffer.
71853         The old names are still supported if !_REGEX_SOURCE.
71854         The new names are always supported, regardless of _REGEX_SOURCE.
71855         (re_buffer): Renamed from buffer.
71856         (re_allocated): Renamed from allocated.
71857         (re_used): Renamed from used.
71858         (re_syntax): Renamed from syntax.
71859         (re_fastmap): Renamed from fastmap.
71860         (re_translate): Renamed from translate.
71861         (re_can_be_null): Renamed from can_be_null.
71862         (re_regs_allocated): Renamed from regs_allocated.
71863         (re_fastmap_accurate): Renamed from fastmap_accurate.
71864         (re_no_sub): Renamed from no_sub.
71865         (re_not_bol): Renamed from not_bol.
71866         (re_not_eol): Renamed from not_eol.
71867         (re_newline_anchor): Renamed from newline_anchor.
71868
71869         Change the following member names in struct re_registers.
71870         The old names are still supported if !_REGEX_SOURCE.
71871         The new names are always supported, regardless of _REGEX_SOURCE.
71872         (rm_num_regs): Renamed from num_regs.
71873         (rm_start): Renamed from start.
71874         (rm_end): Renamed from end.
71875
71876         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71877         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71878         Prepend __ to parameter names.
71879
71880         Undo yesterday's changes.
71881
71882 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71885         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71886         lib/regex.c.
71887
71888 2005-08-24  Jim Meyering  <jim@meyering.net>
71889
71890         Sync from coreutils.
71891         * m4/fcntl-safer.m4: New file.
71892
71893         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71894         and object files for this module.
71895
71896 2005-08-24  Jim Meyering  <jim@meyering.net>
71897
71898         Sync from coreutils.
71899         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71900
71901 2005-08-24  Jim Meyering  <jim@meyering.net>
71902
71903         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71904         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71905
71906 2005-08-24  Jim Meyering  <jim@meyering.net>
71907
71908         * modules/fcntl-safer: New module.
71909         * modules/fts (Depends-on): Add fcntl-safer.
71910         * MODULES.html.sh (File descriptor based Input/Output):
71911         Add fcntl-safer.
71912
71913 2005-08-24  Bruno Haible  <bruno@clisp.org>
71914
71915         Support for unit test modules.
71916         * modules/README: Mention tests modules.
71917         * modules/TEMPLATE-TESTS: New file.
71918         * gnulib-tool: New options --extract-tests-module, --with-tests and
71919         --tests-base (unused for the moment).
71920         (testsbase, inctests): New variables.
71921         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71922         (func_verify_module): Exclude TEMPLATE-TESTS.
71923         (func_verify_nontests_module, func_verify_tests_module): New functions.
71924         (func_get_dependencies): Add implicit dependency for tests modules.
71925         (func_get_tests_module): New function.
71926         (func_modules_transitive_closure): When --with-tests was specified,
71927         include the unit tests as well, unless explicitly avoided.
71928         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71929         (func_emit_tests_Makefile_am): New function.
71930         (func_create_testdir): When --with-tests was specified, emit a
71931         tests/ directory.
71932         * MODULES.html.sh (Future developments): Update.
71933
71934 2005-08-24  Bruno Haible  <bruno@clisp.org>
71935
71936         * modules/tls-tests: New file.
71937         * tests/test-tls.c: New file, from GNU gettext.
71938
71939 2005-08-24  Bruno Haible  <bruno@clisp.org>
71940
71941         * modules/lock-tests: New file.
71942         * tests/test-lock.c: New file, from GNU gettext.
71943
71944 2005-08-24  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/lock.h: Add multiple inclusion guard.
71947         * lib/tls.h: Add multiple inclusion guard.
71948
71949 2005-08-24  Bruno Haible  <bruno@clisp.org>
71950
71951         * gnulib-tool: Add support for the --aux-dir option to
71952         --create-testdir, --create-megatestdir, --test, --megatest.
71953         (func_create_testdir, func_create_megatestdir): Optionally emit a
71954         AC_CONFIG_AUX_DIR directive.
71955         (create-testdir, create-megatestdir, test, megatest): Provide a
71956         default value for $auxdir.
71957
71958 2005-08-24  Bruno Haible  <bruno@clisp.org>
71959
71960         * gnulib-tool (import): Use compound statement instead of subshell
71961         where possible.
71962
71963 2005-08-24  Bruno Haible  <bruno@clisp.org>
71964
71965         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71966
71967 2005-08-24  Bruno Haible  <bruno@clisp.org>
71968
71969         * gnulib-tool (func_version): Update.
71970
71971 2005-08-24  Bruno Haible  <bruno@clisp.org>
71972
71973         * gnulib-tool (func_import, func_create_testdir,
71974         func_create_megatestdir): Quote all autoconf macro arguments.
71975
71976 2005-08-24  Bruno Haible  <bruno@clisp.org>
71977
71978         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71979         option --force, because --force causes the aclocal.m4 of each
71980         subdirectory to be newer than the corresponding config.h.in.
71981
71982 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71985         All contents moved to gl_REGEX.
71986         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71987         assume that it does.
71988
71989 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * lib/regex.h (REG_NOSYS)
71992         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71993         Define, since POSIX requires it as of 2001.
71994         (_REG_ENOSYS)
71995         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71996         New private symbol, used to keep the enum signed in all cases.
71997         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71998         Youngman in
71999         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72000
72001         * lib/regex_internal.c (re_string_skip_chars, register_state):
72002         (calc_state_hash):
72003         Remove forward decls; no longer needed now that we use prototypes.
72004         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72005         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72006         (clean_state_log_if_needed): Likewise.
72007
72008 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * config/srclist.txt: Add glibc bugs 1231-1233.
72011
72012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         Fix problems reported by Sam Steingold in
72015         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72016         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72017         assumed that reg_errcode_t is a signed type, which is not
72018         necessarily true if _XOPEN_SOURCE is not defined.
72019         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72020         since some compilers warn about it otherwise.
72021
72022 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72025         (init_word_char, create_initial_state, duplicate_node_closure):
72026         (fetch_token, peek_token_bracket, build_range_exp):
72027         (build_collating_symbol): Remove forward decls; no longer needed
72028         now that we use prototypes.
72029
72030         * lib/regcomp.c:
72031         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72032         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72033         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72034         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72035         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72036         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72037         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72038         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72039         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72040         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72041         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72042         (build_charclass, build_charclass_op, fetch_number, create_tree):
72043         (create_token_tree, mark_opt_subexp, duplicate_tree):
72044         Use prototypes rather than old-style definitions.
72045
72046         * lib/regex_internal.c:
72047         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72048         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72049         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72050         (re_string_reconstruct, re_string_peek_byte_case):
72051         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72052         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72053         (re_node_set_init_copy, re_node_set_add_intersect):
72054         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72055         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72056         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72057         (re_acquire_state, re_acquire_state_context, register_state):
72058         (create_ci_newstate, create_cd_newstate, free_state):
72059         Likewise.
72060         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72061         re_search_2):
72062         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72063         (re_search_internal, prune_impossible_nodes):
72064         (acquire_init_state_context, check_matching, static):
72065         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72066         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72067         (update_regs, sift_states_backward, build_sifted_states):
72068         (clean_state_log_if_needed, merge_state_array):
72069         (update_cur_sifted_state, add_epsilon_src_nodes):
72070         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72071         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72072         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72073         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72074         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72075         (check_arrival, check_arrival_add_next_nodes):
72076         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72077         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72078         (check_node_accept_bytes, check_node_accept, extend_buffers):
72079         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72080         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72081         (sift_ctx_init):
72082         Likewise.
72083
72084         * lib/regex_internal.h:
72085         (re_string_allocate, re_string_construct, re_string_reconstruct):
72086         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72087         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72088         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72089         (re_string_context_at, re_string_peek_byte_case):
72090         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72091         is defined, since we now use prototypes always.
72092
72093         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72094         C89 or better.  All uses removed.
72095
72096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72097
72098         * config/srclist.txt: Add glibc bugs 1220-1227.
72099
72100 2005-08-20  Jim Meyering  <jim@meyering.net>
72101
72102         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72103         of unused local, dfa.
72104
72105 2005-08-20  Bruno Haible  <bruno@clisp.org>
72106
72107         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72108
72109 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72112         (re_node_set_insert_last, re_dfa_add_node):
72113         Rename local variables to avoid GCC shadowing warnings.
72114
72115 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72118         [defined lint]: Suppress bogus uninitialized-variable warnings.
72119
72120         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72121         and let the caller return REG_ESPACE if out of space.  This
72122         removes an uninitialied-variable warning with GCC 4.0.1, and also
72123         avoids taking the address of a local variable.  All callers
72124         changed.
72125
72126 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72129         $LIBCSRC/posix/regexec.c.
72130         Add glibc bug 1217 for regcomp.c.
72131
72132 2005-08-19  Jim Meyering  <jim@meyering.net>
72133
72134         * lib/regexec.c (proceed_next_node): Redo local variables to
72135         avoid GCC shadowing warnings.
72136
72137 2005-08-18  Bruno Haible  <bruno@clisp.org>
72138
72139         * lib/strstr.c (strstr): Fix return value in multibyte case.
72140         * lib/strcasestr.c (strcasestr): Likewise.
72141
72142 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72145
72146 2005-08-17  Jim Meyering  <jim@meyering.net>
72147
72148         Make the %s format (seconds since the epoch) work for a negative
72149         number and when used with a zero-padded field width, e.g. %015s.
72150
72151         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72152         label so that it precedes the code to set `digits'.  Otherwise,
72153         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72154         print `00-22'.  Now, it prints `-0022', as it should.
72155
72156 2005-08-17  Bruno Haible  <bruno@clisp.org>
72157
72158         * modules/strstr (Files): Add m4/mbrtowc.m4.
72159         (Depends-on): Add mbuiter.
72160
72161 2005-08-17  Bruno Haible  <bruno@clisp.org>
72162
72163         * modules/strcasestr: New file.
72164         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72165         strcasestr.
72166
72167 2005-08-17  Bruno Haible  <bruno@clisp.org>
72168
72169         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72170
72171 2005-08-17  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/mbuiter: New file.
72174         * MODULES.html.sh (Extended multibyte and wide character utilities):
72175         Add mbuiter.
72176
72177 2005-08-17  Bruno Haible  <bruno@clisp.org>
72178
72179         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72180         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72181
72182 2005-08-17  Bruno Haible  <bruno@clisp.org>
72183
72184         * m4/strcasestr.m4: New file.
72185
72186 2005-08-17  Bruno Haible  <bruno@clisp.org>
72187
72188         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72189         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72190
72191 2005-08-17  Bruno Haible  <bruno@clisp.org>
72192
72193         * lib/strcasestr.h: New file.
72194         * lib/strcasestr.c: New file.
72195
72196 2005-08-17  Bruno Haible  <bruno@clisp.org>
72197
72198         * lib/strcasecmp.c: Use mbuiter.h.
72199
72200 2005-08-17  Bruno Haible  <bruno@clisp.org>
72201
72202         * lib/mbuiter.h: New file.
72203
72204 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72207         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72208         and gl_GETOPT are both invoked via different paths (as happens
72209         with GNU tar CVS because it uses both argp and getopt), the former
72210         wins.
72211
72212 2005-08-16  Bruno Haible  <bruno@clisp.org>
72213
72214         * modules/tls: New file.
72215         * MODULES.html.sh (Multithreading): Add tls.
72216
72217 2005-08-16  Bruno Haible  <bruno@clisp.org>
72218
72219         * modules/strnlen1: New file.
72220         * MODULES.html.sh (String handling): Add strnlen1.
72221
72222 2005-08-16  Bruno Haible  <bruno@clisp.org>
72223
72224         * modules/strcase (Files): Add m4/mbrtowc.m4.
72225         (Depends-on): Add strnlen1, mbchar.
72226
72227 2005-08-16  Bruno Haible  <bruno@clisp.org>
72228
72229         * modules/mbiter: New file.
72230         * MODULES.html.sh (Extended multibyte and wide character utilities):
72231         Add mbiter.
72232
72233 2005-08-16  Bruno Haible  <bruno@clisp.org>
72234
72235         * modules/mbfile: New file.
72236         * MODULES.html.sh (Extended multibyte and wide character utilities):
72237         Add mbfile.
72238
72239 2005-08-16  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/mbchar: New file.
72242         * MODULES.html.sh (Extended multibyte and wide character utilities):
72243         New section.
72244
72245 2005-08-16  Bruno Haible  <bruno@clisp.org>
72246
72247         * m4/tls.m4: New file, from GNU gettext.
72248
72249 2005-08-16  Bruno Haible  <bruno@clisp.org>
72250
72251         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72252         always.
72253         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72254
72255 2005-08-16  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/mbiter.m4: New file.
72258
72259 2005-08-16  Bruno Haible  <bruno@clisp.org>
72260
72261         * m4/mbfile.m4: New file.
72262
72263 2005-08-16  Bruno Haible  <bruno@clisp.org>
72264
72265         * m4/mbchar.m4: New file.
72266
72267 2005-08-16  Bruno Haible  <bruno@clisp.org>
72268
72269         * lib/tls.h: New file, from GNU gettext.
72270         * lib/tls.c: New file, from GNU gettext.
72271
72272 2005-08-16  Bruno Haible  <bruno@clisp.org>
72273
72274         * lib/strnlen1.h: New file.
72275         * lib/strnlen1.c: New file.
72276
72277 2005-08-16  Bruno Haible  <bruno@clisp.org>
72278
72279         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72280         (mbi_init): Update.
72281         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72282         NUL byte, not after it.
72283
72284 2005-08-16  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/strcase.h (strcasecmp): Add note in comments.
72287         * lib/strncasecmp.c: Use code from strcasecmp.c.
72288         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72289         (strcasecmp): Work correctly in multibyte locales.
72290
72291 2005-08-16  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/mbiter.h: New file.
72294
72295 2005-08-16  Bruno Haible  <bruno@clisp.org>
72296
72297         * lib/mbfile.h: New file.
72298
72299 2005-08-16  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/mbchar.h: New file.
72302         * lib/mbchar.c: New file.
72303
72304 2005-08-16  Bruno Haible  <bruno@clisp.org>
72305
72306         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72307         the valid ones. Makes the comparison operations transitive:
72308         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72309         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72310
72311 2005-08-15  Simon Josefsson  <jas@extundo.com>
72312
72313         * modules/ssize_t (License): Change to 'unlimited'.
72314
72315         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72316
72317 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72320         Add comments for each pending glibc patch.
72321
72322 2005-08-15  Bruno Haible  <bruno@clisp.org>
72323
72324         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72325         __cplusplus is defined.
72326
72327 2005-08-14  Jim Meyering  <jim@meyering.net>
72328
72329         Sync from coreutils.
72330
72331         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72332         Use the hash-table-based cycle-detection code not just when
72333         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72334         Reported by James Youngman in
72335         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72336         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72337         FTS_TIGHT_CYCLE_CHECK.
72338         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72339         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72340         once again.
72341         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72342         * lib/fts.c (fd_safer): Remove decl.
72343         Include fcntl--.h rather than unistd-safer.h
72344         (fts_safe_changedir): Don't call fd_safer; no longer needed
72345         now that we include fcntl--.h.
72346
72347 2005-08-12  Simon Josefsson  <jas@extundo.com>
72348
72349         * modules/getndelim2: Use ssize_t module.
72350         * modules/getnline: Likewise.
72351         * modules/safe-read: Likewise.
72352         * modules/xreadlink: Likewise.
72353
72354         * modules/ssize_t: New file.
72355
72356 2005-08-12  Simon Josefsson  <jas@extundo.com>
72357
72358         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72359
72360 2005-08-12  Simon Josefsson  <jas@extundo.com>
72361
72362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72363         ssize_t.
72364
72365 2005-08-12  Simon Josefsson  <jas@extundo.com>
72366
72367         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72368         readline, getdelim and check_version.
72369         (Support for systems lacking ISO C 99: Sizes of integer types):
72370         Add size_max.
72371
72372 2005-08-12  Bruno Haible  <bruno@clisp.org>
72373
72374         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72375
72376 2005-08-11  Simon Josefsson  <jas@extundo.com>
72377
72378         * modules/readline: New file.
72379
72380         * modules/strnlen (Files): Add strnlen.h.
72381
72382 2005-08-11  Simon Josefsson  <jas@extundo.com>
72383
72384         * m4/readline.m4: New file.
72385
72386 2005-08-11  Simon Josefsson  <jas@extundo.com>
72387
72388         * lib/readline.h, readline.c: New file.
72389
72390 2005-08-11  Simon Josefsson  <jas@extundo.com>
72391
72392         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72393         gl_AVOID.
72394
72395 2005-08-11  Bruno Haible  <bruno@clisp.org>
72396
72397         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72398
72399 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72400
72401         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72402
72403 2005-08-10  Simon Josefsson  <jas@extundo.com>
72404
72405         * tests/test-iconvme.c: New file.
72406
72407 2005-08-10  Simon Josefsson  <jas@extundo.com>
72408
72409         * m4/strnlen.m4: New file.
72410
72411         * m4/strndup.m4: Don't check for strnlen declaration, done in
72412         strnlen.m4.
72413
72414 2005-08-10  Simon Josefsson  <jas@extundo.com>
72415
72416         * lib/strndup.c: Use strnlen.h.
72417
72418         * lib/strnlen.h: New file.
72419
72420 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72421
72422         * README: Typos.
72423
72424 2005-08-02  Simon Josefsson  <jas@extundo.com>
72425
72426         * modules/readline: New file.
72427
72428 2005-08-02  Simon Josefsson  <jas@extundo.com>
72429
72430         * modules/getdelim: New file.
72431
72432         * modules/getline: Rewrite, don't use getndelim2.
72433
72434 2005-08-02  Simon Josefsson  <jas@extundo.com>
72435
72436         * m4/getline.m4: Separate out getdelim stuff into separate module.
72437
72438         * m4/getdelim.m4: New file.
72439
72440 2005-08-02  Simon Josefsson  <jas@extundo.com>
72441
72442         * lib/getline.h, getline.c: Rewrite.
72443
72444         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72445
72446 2005-07-31  Bruno Haible  <bruno@clisp.org>
72447
72448         * lib/lock.h (gl_lock_initializer): New macro.
72449         (gl_lock_define_initialized): Use it.
72450         (gl_rwlock_initializer): New macro.
72451         (gl_rwlock_define_initialized): Use it.
72452         (gl_recursive_lock_initializer): New macro.
72453         (gl_recursive_lock_define_initialized): Use it.
72454
72455 2005-07-30  Karl Berry  <karl@gnu.org>
72456
72457         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72458         Report from Ben Pfaff, regarding getopt.
72459
72460 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72463         normal way.
72464         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72465         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72466         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72467         (gl_GETOPT): Use the new macros.  Most of the implementation
72468         is moved to the new macros.  This is for programs like Emacs
72469         that don't want all the functionality of gl_GETOPT.
72470
72471 2005-07-26  Bruno Haible  <bruno@clisp.org>
72472
72473         * m4/lock.m4: Update from GNU gettext.
72474
72475 2005-07-26  Bruno Haible  <bruno@clisp.org>
72476
72477         * lib/lock.h: Update from GNU gettext.
72478         * lib/lock.c: Update from GNU gettext.
72479
72480 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72483         obsolescent AC_TRY_RUN.  Include the default includes files, for
72484         'exit'.
72485
72486 2005-07-24  Bruno Haible  <bruno@clisp.org>
72487
72488         * modules/visibility: New file.
72489         * MODULES.html.sh (Misc): Add visibility.
72490
72491 2005-07-24  Bruno Haible  <bruno@clisp.org>
72492
72493         * m4/visibility.m4: New file.
72494
72495 2005-07-24  Bruno Haible  <bruno@clisp.org>
72496
72497         * doc/visibility.texi: New file.
72498
72499 2005-07-22  Bruno Haible  <bruno@clisp.org>
72500
72501         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72502         $(ALLOCA_H), redundant through BUILT_SOURCES.
72503         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72504         redundant through BUILT_SOURCES.
72505         * modules/byteswap (Makefile.am): Remove explicit dependency on
72506         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72507         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72508         $(FNMATCH_H), redundant through BUILT_SOURCES.
72509         * modules/getopt (Makefile.am): Remove explicit dependency on
72510         $(GETOPT_H), redundant through BUILT_SOURCES.
72511         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72512         redundant through BUILT_SOURCES.
72513         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72514         redundant through BUILT_SOURCES.
72515         * modules/stdbool (Makefile.am): Remove explicit dependency on
72516         $(STDBOOL_H), redundant through BUILT_SOURCES.
72517         * modules/stdint (Makefile.am): Remove explicit dependency on
72518         $(STDINT_H), redundant through BUILT_SOURCES.
72519         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72520         Remove explicit dependency on $(SYSEXITS_H).
72521         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72522
72523 2005-07-18  Simon Josefsson  <jas@extundo.com>
72524
72525         * lib/check-version.c (check_version): Accept identical versions too.
72526
72527 2005-07-18  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/lock: New file.
72530         * MODULES.html.sh (Multithreading): New section.
72531
72532 2005-07-18  Bruno Haible  <bruno@clisp.org>
72533
72534         * m4/lock.m4: New file, from GNU gettext.
72535
72536 2005-07-18  Bruno Haible  <bruno@clisp.org>
72537
72538         * lib/lock.h: New file, from GNU gettext.
72539         * lib/lock.c: New file, from GNU gettext.
72540
72541 2005-07-18  Bruno Haible  <bruno@clisp.org>
72542
72543         * lib/lock.h (gl_once_t): New type.
72544         (gl_once_define, gl_once): New macros.
72545         * lib/lock.c (fresh_once): New variable.
72546         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72547         functions.
72548
72549 2005-07-16  Simon Josefsson  <jas@extundo.com>
72550
72551         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72552         workaround, suggested by Bruno.
72553
72554 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         * modules/xalloc (Depends-on): Add xalloc-die.
72557         * modules/xvasprintf (Depends-on): Add xalloc-die.
72558
72559 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72562         with a minor change.
72563
72564 2005-07-15  Bruno Haible  <bruno@clisp.org>
72565
72566         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72567         When using lib/poll.c, define poll as rpl_poll.
72568
72569 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72570
72571         * modules/argp (Depends-on): Remove unlocked-io.
72572
72573 2005-07-14  Derek Price  <derek@ximbiot.com>
72574
72575         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72576         for glob symlink bug.
72577
72578 2005-07-14  Bruno Haible  <bruno@clisp.org>
72579
72580         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72581         Instead, test for *_unlocked function declarations directly.
72582
72583 2005-07-11  Simon Josefsson  <jas@extundo.com>
72584
72585         * modules/size_max: New file.
72586
72587         * modules/xsize: Depend on size_max module for size_max.m4.
72588
72589 2005-07-11  Simon Josefsson  <jas@extundo.com>
72590
72591         * lib/size_max.h: New file.
72592
72593 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72596         copyright symbol and the year.
72597         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72598         (version_etc_va): Use parameterized copyright notice.
72599         Reword to conform to the current GNU coding standards.
72600
72601 2005-07-11  Karl Berry  <karl@gnu.org>
72602
72603         * doc/gnulib.texi (Quoting): new node.
72604         (Initial import): more info, from Patrice.
72605
72606 2005-07-11  Bruno Haible  <bruno@clisp.org>
72607
72608         * gnulib-tool (func_usage): Document option --avoid.
72609         (Command line options): Handle --avoid.
72610         (func_acceptable): New function.
72611         (func_modules_transitive_closure): Use it.
72612
72613 2005-07-11  Bruno Haible  <bruno@clisp.org>
72614
72615         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72616         Reported by Jim Meyering.
72617
72618 2005-07-10  Bruno Haible  <bruno@clisp.org>
72619
72620         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72621         Needed when size_t is smaller than 'unsigned int'.
72622         Reported by Paul Eggert.
72623
72624 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72625
72626         * modules/argp (Depends-on): Add unlocked-io
72627
72628 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72629
72630         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72631         block of defines.
72632
72633 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72634
72635         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72636         fix now.
72637
72638 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72639         and Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72642         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72643
72644 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * modules/regex (Files): Add lib/regex_internal.c,
72647         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72648         (Depends-on): Add extensions.
72649         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72650
72651 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72652
72653         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72654         pathconf.
72655         * m4/same.m4 (gl_SAME): Likewise.
72656         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72657
72658         * m4/regex.m4: Adjust to new libc regex implementation.
72659         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72660         all the .c and .h parts of (the new) regex.
72661         Quote the m4 stuff better.
72662         Check for RE_ICASE bug of old gnulib.
72663         Check for REG_STARTEND of recent libc.
72664         Rename local variables from jm_* to gl_*.
72665         Quote operand of "test -f".
72666         Say "recent enough" version of libc, not "version 2".
72667         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72668         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72669         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72670         Remove check for btowc, isascii.
72671         Require AM_LANGINFO_CODESET.
72672
72673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         * lib/regex.c, regex.h: Sync from libc.
72676         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72677         * lib/regexec.c:
72678         New files, synced from libc, except that regex_internal.h
72679         currently has a small porting fix.
72680
72681 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72682
72683         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72684         regex_internal.c, regexec.c.
72685         Add regex_internal.h too, but as a comment, since the libc version
72686         is currently broken in gnulib mode.
72687
72688 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72689
72690         Support programs like Emacs that use gnulib but not gettext.
72691         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72692         * modules/gettext-h: New file.
72693         * modules/gettext (Files): Remove lib/gettext.h.
72694         (Depends-on): Add gettext-h.
72695         (Makefile.am): Remove lib_SOURCES.
72696         * modules/argmatch, modules/c-stack, modules/closeout:
72697         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72698         * modules/execute, modules/file-type, modules/getaddrinfo:
72699         * modules/getopt, modules/human, modules/javacomp:
72700         * modules/javaexec, modules/mkdir-p, modules/obstack:
72701         * modules/openat, modules/pagealign_alloc, modules/pipe:
72702         * modules/quotearg, modules/regex, modules/rpmatch:
72703         * modules/unicodeio, modules/userspec, modules/version-etc:
72704         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72705         * modules/xsetenv:
72706         Depend on gettext-h, not gettext.
72707
72708 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * gnulib-tool (func_import): Add support for 'public domain' license.
72711         * modules/alloca, modules/atexit, modules/memmove:
72712         Now public domain, not GPL.
72713         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72714         * modules/realloc, modules/strerror, modules/strtod:
72715         Now LGPL, not GPL.
72716
72717 2005-07-05  Bruno Haible  <bruno@clisp.org>
72718
72719         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72720         autoconf CVS. Needed for mingw.
72721
72722 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72723
72724         Remove the dependency of the strftime module on the tzset module.
72725         * modules/strftime (Depends-on): Remove dependency on tzset.
72726
72727 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72728
72729         Remove the dependency of the strftime module on the tzset module.
72730         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72731         gl_FUNC_TZSET_CLOBBER.
72732
72733 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         Remove the dependency of the strftime module on the tzset module.
72736         * lib/strftime.c (my_strftime)
72737         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72738         Copy the input structure, to work around some of the bug with
72739         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72740         Solaris releases, you should also use the tzset module, but we won't
72741         require it as a dependency any more since we don't want LGPLed code
72742         to depend on GPLed code.
72743
72744 2005-07-02  Jim Meyering  <jim@meyering.net>
72745
72746         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72747         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72748         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72749         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72750
72751 2005-07-02  Jim Meyering  <jim@meyering.net>
72752
72753         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72754
72755 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72758         declares only 'struct timespec;' (!).
72759
72760 2005-07-01  Jim Meyering  <jim@meyering.net>
72761
72762         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72763         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72764         * lib/save-cwd.c, tempname.c:
72765         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72766         and don't include <sys/file.h>).
72767
72768 2005-06-29  Jim Meyering  <jim@meyering.net>
72769
72770         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72771         type name.  Use the variable name instead.
72772         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72773         Likewise.
72774
72775 2005-06-28  Simon Josefsson  <jas@extundo.com>
72776
72777         * modules/check-version (Files): Add check-version.m4.
72778
72779 2005-06-28  Simon Josefsson  <jas@extundo.com>
72780
72781         * m4/check-version.m4: New file, suggested by Jim Meyering
72782         <jim@meyering.net>.
72783
72784 2005-06-28  Simon Josefsson  <jas@extundo.com>
72785
72786         * lib/check-version.h, lib/check-version.c: New files.
72787
72788 2005-06-28  Simon Josefsson  <jas@extundo.com>
72789
72790         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72791         collision with global variable.  Better indentation.  Don't
72792         increment buffer pointer beyond buffer end.  Based on comments
72793         from Paul Eggert <eggert@cs.ucla.edu>.
72794
72795         * lib/base64.h: Indent.
72796
72797 2005-06-28  Simon Josefsson  <jas@extundo.com>
72798
72799         * doc/gnulib.texi (Library version handling): New section.
72800
72801 2005-06-28  Jim Meyering  <jim@meyering.net>
72802
72803         * check-module (find_included_lib_files): Hard-code another
72804         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72805         but modules/fts-lgpl (correctly) does not list those files.
72806
72807         * modules/canonicalize (Files): Add lib/pathmax.h.
72808
72809 2005-06-25  Simon Josefsson  <jas@extundo.com>
72810
72811         * modules/check-version: New file.
72812
72813 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72814
72815         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72816         initializer of struct addrinfo, as an indication that we don't
72817         care how many members the structure has.
72818
72819 2005-06-24  Derek Price  <derek@ximbiot.com>
72820         and Bruno Haible  <bruno@clisp.org>
72821
72822         Remove stat module & update lstat.
72823         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72825         * m4/stat.m4: Remove this file.
72826
72827 2005-06-24  Derek Price  <derek@ximbiot.com>
72828         and Bruno Haible  <bruno@clisp.org>
72829
72830         Remove stat module & update lstat.
72831         * lib/stat.c: Remove this file...
72832         (slash_aware_lstat): ...moving this content and its support...
72833         * lib/lstat.c (rpl_lstat): ...into here.
72834         * lib/lstat.h: New file.
72835
72836 2005-06-24  Derek Price  <derek@ximbiot.com>
72837         and Bruno Haible  <bruno@clisp.org>
72838
72839         Remove stat module & update lstat.
72840         * config/srclist.txt (libc sources): Remove stat.
72841
72842 2005-06-24  Derek Price  <derek@ximbiot.com>
72843         and Bruno Haible  <bruno@clisp.org>
72844
72845         Remove stat module & update lstat.
72846         * MODULES.html.sh (stat): Remove.
72847         * MODULES.html: Regenerated.
72848         * modules/lstat (Description): Correct function name.
72849         (Files): Add "lstat.h".
72850         (Depends-on): Remove stat, add xalloc, stat-macros.
72851         * modules/stat: Remove this file.
72852         (Include): Add "lstat.h", remove <sys/stat.h>.
72853
72854 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72857         (ranged_convert): Don't save conversion in a temporary struct.
72858         This causes a warning with GCC 4.0.0, and anyway in the typical
72859         case it's not worth the extra 100 bytes or so of code.
72860         (ranged_convert, __mktime_internal): When calling a function via a
72861         pointer P, use P () rather than (*P) (), as we now assume C89 or
72862         better.
72863
72864 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72867         "who -r" failed to give output.  Problem reported by Tim Waugh.
72868
72869         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72870         (xcalloc): Use it to avoid needless tests.
72871         Problem reported by Jim Meyering.
72872
72873 2005-06-20  Derek Price  <derek@ximbiot.com>
72874
72875         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72876         unnecessary for Autoconfs > 2.59c.
72877
72878 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72879
72880         * lib/argp.h (__option_is_short): Check upper limit of
72881         __key. Isprint() requires its argument to have the value
72882         of an unsigned char or EOF.
72883
72884 2005-06-16  Jim Meyering  <jim@meyering.net>
72885
72886         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72887         when either N or S is zero.
72888
72889 2005-06-16  Derek Price  <derek@ximbiot.com>
72890
72891         * m4/bison.m4: Declare YACC & YFLAGS precious.
72892
72893 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72894
72895         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72896         multibyte string or pattern, fall back on unibyte matching.
72897         Problem reported by James Youngman.
72898
72899 2005-06-08  Bruno Haible  <bruno@clisp.org>
72900
72901         * modules/csharpcomp: New file.
72902         * MODULES.html.sh (C#): Add csharpcomp.
72903
72904 2005-06-08  Bruno Haible  <bruno@clisp.org>
72905
72906         * m4/csharpcomp.m4: New file, from GNU gettext.
72907
72908 2005-06-08  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/csharpcomp.h: New file, from GNU gettext.
72911         * lib/csharpcomp.c: New file, from GNU gettext.
72912         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72913
72914 2005-06-08  Bruno Haible  <bruno@clisp.org>
72915
72916         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72917         warning on mingw.
72918
72919 2005-06-07  Derek Price  <derek@ximbiot.com>
72920
72921         Sync from CVS.
72922         * lib/glob_.h: Indent nested #ifdef.
72923
72924 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         Sync from coreutils.
72927         Use "file name" when talking about file names, instead of "filename"
72928         or "path", as per the GNU coding standards.
72929         * lib/mkdir-p.c: Renamed from makepath.c.
72930         (make_dir_parents): Renamed from make_path.  All callers changed.
72931         * lib/mkdir-p.h: Likewise.  All includers changed.
72932         * lib/filenamecat.c: Renamed from path-concat.c.
72933         (file_name_concat): Renamed from path_concat.  All callers changed.
72934         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72935         * lib/filenamecat.h: Likewise.  All includers changed.
72936         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72937         in comments or local variable names.
72938         * lib/basename.c: Likewise.
72939         * lib/canonicalize.c, canonicalize.h: Likewise.
72940         * lib/dirname.c, dirname.h: Likewise.
72941         * lib/euidaccess.c: Likewise.
72942         * lib/exclude.c: Likewise
72943         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72944         * lib/fsusage.c, fsuage.h: Likewise.
72945         * lib/fts.c, fts_.h: Likewise.
72946         * lib/getcwd.c: Likewise.
72947         * lib/getloadavg.c: Likewise.
72948         * lib/mkstemp.c: Likewise.
72949         * lib/mountlist.c, mountlist.h: Likewise.
72950         * lib/openat.c, openat.h: Likewise.
72951         * lib/readlink-stub.c: Likewise.
72952         * lib/readutmp.c, readutmp.h: Likewise.
72953         * lib/rename.c: Likewise.
72954         * lib/rmdir.c: Likewise.
72955         * lib/same.c: Likewise.
72956         * lib/savedir.c: Likewise.
72957         * lib/stripslash.c: Likewise.
72958         * lib/tempname.c: Likewise.
72959         * lib/xreadlink.c: Likewise.
72960         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72961         All uses changed.
72962         * lib/exclude.h: Likewise.
72963
72964         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72965         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72966         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72967         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72968         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72969         files have been getting away with it for years (MORE/BSD 4.3
72970         is extinct now).
72971         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72972         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72973
72974         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72975         Define to 256, not 255, as per modern POSIX.
72976
72977 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         Sync from coreutils.
72980         Use "file name" when talking about file names, instead of "filename"
72981         or "path", as per the GNU coding standards.
72982         * MODULES.html.sh: mkdir-p renamed from makepath.
72983         filenamecat renamed from path-concat.
72984         * modules/filenamecat: Renamed from modules/path-concat.
72985         (Files): filenamecat.h and filenamecat.c renamed from
72986         path-concat.h and path-concat.c.
72987         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72988         (Include): filenamecat.h, not path-concat.h.
72989         * modules/mkdir-p: Renamed from modules/makepath.
72990         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72991         makepath.c.
72992         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72993         (Include): mkdir-p.h, not makepath.h.
72994
72995 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72996
72997         Sync from coreutils.
72998         * m4/mkdir-p.m4: Renamed from makepath.m4.
72999         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73000         Rename files from makepath.c to mkdir-p.c, and from
73001         makepath.h to mkdir-p.h.
73002         * m4/filenamecat.m4: Renamed from path-concat.m4.
73003         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73004         Rename files from path-concat.c to filenamecat.c,
73005         and from path-concat.h to filenamecat.h.
73006         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73007         "file name" in local variables or comments.
73008         * m4/rename.m4: Likewise.
73009
73010 2005-06-01  Bruno Haible  <bruno@clisp.org>
73011
73012         * modules/csharpexec: New file.
73013         * MODULES.html.sh (C#): New section.
73014
73015 2005-06-01  Bruno Haible  <bruno@clisp.org>
73016
73017         * m4/csharp.m4: New file, from GNU gettext.
73018         * m4/csharpexec.m4: New file, from GNU gettext.
73019
73020 2005-06-01  Bruno Haible  <bruno@clisp.org>
73021
73022         * lib/csharpexec.h: New file, from GNU gettext.
73023         * lib/csharpexec.c: New file, from GNU gettext.
73024         * lib/csharpexec.sh.in: New file, from GNU gettext.
73025
73026 2005-05-31  Derek Price  <derek@ximbiot.com>
73027             Paul Eggert  <eggert@cs.ucla.edu>
73028
73029         Sync from cvs.
73030         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73031
73032 2005-05-31  Derek Price  <derek@ximbiot.com>
73033             Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         Sync from cvs.
73036         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73037
73038 2005-05-29  Derek Price  <derek@ximbiot.com>
73039
73040         * config/srclist.txt (glob_.h, glob.c): Add these files.
73041
73042 2005-05-29  Derek Price  <derek@ximbiot.com>
73043
73044         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73045         * modules/glob: New file.
73046         * modules/getlogin_r: Add link to POSIX spec in description.
73047
73048 2005-05-29  Derek Price  <derek@ximbiot.com>
73049             Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * m4/glob.m4: New file.
73052
73053 2005-05-29  Derek Price  <derek@ximbiot.com>
73054             Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * lib/glob_.h, lib/glob.c: New files.
73057
73058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73061         * modules/fts-lgpl (Depends-on): Remove gettext.
73062
73063 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73066         and don't require gt_INTTYPES_PRI.
73067
73068 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73071
73072         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73073         the configuration hassle isn't worth it.
73074         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73075         (LONGEST_MODIFIER, PRIuMAX): Remove.
73076
73077 2005-05-27  Bruno Haible  <bruno@clisp.org>
73078
73079         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73080
73081 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73084         _POSIX_PTHREAD_SEMANTICS for Solaris.
73085
73086 2005-05-25  Derek Price  <derek@ximbiot.com>
73087
73088         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73089
73090 2005-05-25  Derek Price  <derek@ximbiot.com>
73091             Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73094         * lib/getlogin_r.c, getlogin_r.h: New files.
73095
73096 2005-05-25  Bruno Haible  <bruno@clisp.org>
73097             Derek Price  <derek@ximbiot.com>
73098
73099         * lib/getlogin_r.h: Simplify API documentation.
73100
73101 2005-05-23  Derek Price  <derek@ximbiot.com>
73102
73103         * modules/minmax (Files): Add m4/minmax.m4.
73104         (configure.ac): Add gl_MINMAX.
73105
73106 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73109         so that unistd-safer.h (GPL'ed code) need not be included.
73110
73111 2005-05-22  Bruno Haible  <bruno@clisp.org>
73112
73113         * m4/minmax.m4: New file.
73114         Based on a patch by Derek Price <derek@ximbiot.com>.
73115
73116 2005-05-22  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73119         (INT64_MIN): Fix definition.
73120         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73121
73122         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73123         NEED_SIGNED_INT_TYPES.
73124
73125         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73126         HAVE_SYSTEM_INTTYPES.
73127
73128 2005-05-22  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73131         Also include <sys/param.h> if it defines MIN, MAX.
73132         Based on a patch by Derek Price <derek@ximbiot.com>.
73133
73134 2005-05-21  Jim Meyering  <jim@meyering.net>
73135
73136         * modules/fts (Files): Add m4/inttypes-pri.m4.
73137         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73138
73139 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73140
73141         New fts module.
73142         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73143         (setup_dir, free_dir): New functions.
73144         (enter_dir, leave_dir): Define trivial
73145         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73146         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73147         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73148         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73149         Move to fts-cycle.c.
73150         (fts_open): Use setup_dir.
73151         (fts_close): Use free_dir.
73152         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73153         This adds a label and some gotos, but the alternatives were messier.
73154         Check for memory allocation failure when entering a dir.
73155         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73156         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73157         (FTS): New member fts_cycle, that is a union that contains the
73158         old active_dir_ht and cycle_state.  All uses changed to mention
73159         fts_cycle.ht and fts_cycle.state.
73160         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73161         fts.c, with the following changes:
73162         (setup_dir, free_dir): New functions.
73163         (enter_dir): Now returns bool.  Return true if successful, false
73164         if memory exhausted.  All callers changed.
73165         Do not bother partly cleaning up on
73166         memory allocation failure; that is free_dir's job.
73167         However, free ad if hash_insert fails, to avoid memory leak.
73168         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73169         fts->fts_options to see which union member to use.
73170
73171 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73174         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73175
73176 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73179
73180 2005-05-20  Jim Meyering  <jim@meyering.net>
73181
73182         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73183         Now a macro, to pacify GCC.
73184
73185 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73186
73187         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73188         of -1.
73189
73190 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73191
73192         * lib/chown.c (rpl_chown): Return -1 on failure.
73193
73194 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73197         Don't check for stddef.h.
73198         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73199         don't use its results.
73200         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73201         since we include them unconditionally.  Don't require
73202         AM_STDBOOL_H, since stdbool is a prerequisite.
73203         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73204         since we assume C89 or better.
73205         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73206         as we don't use their results.
73207         Don't check for fchdir, memmove, memset, strrchr, as we use
73208         them unconditionally.
73209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73210         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73211
73212 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73215         Include <stddef.h> unconditionally, since we assume C89 now.
73216         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73217         * lib/fts.c: Include fts_.h first, to check interface.
73218         Do not include intprops.h; no longer needed.
73219         Include cycle-check.h and hash.h, since fts_.h no longer does.
73220         Remove unnecessary casts of closedir to void.
73221         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73222         decide whether to decrement nlinks.
73223         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73224         (FTS): Use struct hash_table * instead of Hash_table, so that
73225         we no longer need to include hash.h here.
73226
73227 2005-05-18  Jim Meyering  <jim@meyering.net>
73228
73229         * modules/dirfd (License): Change to LGPL.  Most of the code
73230         is already in the public domain.
73231
73232 2005-05-18  Jim Meyering  <jim@meyering.net>
73233
73234         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73235         Reported by Yoann Vandoorselaere.
73236
73237 2005-05-17  Jim Meyering  <jim@meyering.net>
73238
73239         * m4/fts.m4: New file, from coreutils.
73240
73241 2005-05-17  Jim Meyering  <jim@meyering.net>
73242
73243         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73244
73245 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         Sync from coreutils.
73248         * m4/unlinkdir.m4: New file.
73249
73250 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73251
73252         Sync from coreutils.
73253         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73254         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73255         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73256         White space changes only.
73257         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73258         special.
73259         * lib/yesno.c: Include getline.h, not ctype.h.
73260         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73261         Use getline to remove arbitrary restriction on response length.
73262
73263 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * config/srclist-update: Spell out "Street" in FSF postal
73266         mail address; this is the style the FSF seems to prefer.
73267
73268         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73269         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73270         this updates FSF postal mail address.
73271
73272         Sync from coreutils.
73273         * modules/unlinkdir: New file.
73274         * modules/yesno (Depends-on): Add getline.
73275         * MODULES.html.sh (File system functions): Add unlinkdir.
73276
73277 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73280         lib/strsep.h:
73281         Change the initial comment to refer to GPL, not LGPL.
73282         gnulib-tool will change it to LGPL as needed.
73283
73284         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73285         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73286         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73287         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73288         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73289         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73290         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73291         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73292         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73293         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73294         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73295         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73296         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73297         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73298         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73299         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73300         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73301         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73302         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73303         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73304         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73305         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73306         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73307         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73308         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73309         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73310         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73311         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73312         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73313         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73314         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73315         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73316         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73317         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73318         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73319         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73320         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73321         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73322         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73323         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73324         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73325         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73326         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73327         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73328         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73329         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73330         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73331         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73332         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73333         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73334         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73335         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73336         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73337         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73338         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73339         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73340         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73341         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73342         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73343         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73344         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73345         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73346         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73347         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73348         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73349         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73350         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73351         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73352         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73353         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73354         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73355         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73356         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73357         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73358         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73359         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73360         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73361         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73362         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73363         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73364         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73365         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73366         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73367         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73368         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73369         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73370         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73371         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73372         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73373         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73374         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73375         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73376         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73377         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73378         lib/yesno.c, lib/yesno.h:
73379         Update FSF postal mail address.
73380
73381 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73384         tests/test-memmem.c, tests/test-stpncpy.c:
73385         Update FSF postal mail address.
73386
73387 2005-05-13  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73390         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73391         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73392         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73393         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73394         Add support for 64-bit integers in the MSVC compiler.
73395
73396 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73397
73398         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73399
73400 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73401
73402         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73403
73404 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         * doc/getdate.texi (General date syntax): Don't say that date
73407         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73408         Problem reported by Nic Ferrier.
73409
73410 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73411
73412         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73413         specified in ai_socktype. Fix invalid ai_protocol
73414         check. ai_protocol is usually set to 0 or depending on
73415         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73416         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73417         ai_socktype / ai_protocol in the returned addrinfo structure.
73418
73419 2005-05-10  Simon Josefsson  <jas@extundo.com>
73420
73421         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73422         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73423
73424 2005-05-10  Karl Berry  <karl@gnu.org>
73425
73426         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73427         (from http://www.gnu.org/licenses).
73428         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73429         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73430         fdl.texi suffices.
73431
73432 2005-05-10  Karl Berry  <karl@gnu.org>
73433
73434         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73435         (COPYING.DOC): remove.
73436
73437         * config/srclist-update: new FSF address.
73438
73439 2005-05-10  Derek Price  <derek@ximbiot.com>
73440
73441         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73442         possible.
73443
73444 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73445             Bruno Haible  <bruno@clisp.org>
73446
73447         * modules/inet_ntop: New file.
73448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73449         inet_ntop.
73450
73451 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73452             Bruno Haible  <bruno@clisp.org>
73453
73454         * m4/inet_ntop.m4: New file.
73455
73456 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73457             Bruno Haible  <bruno@clisp.org>
73458
73459         * lib/inet_ntop.h: New file.
73460         * lib/inet_ntop.c: New file, from glibc with modifications.
73461
73462 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * modules/time_r (License): Change to LGPL.
73465         * modules/extensions (License): Change to LGPL.  Actually,
73466         the license is more permissive than that, but currently gnulib-tool
73467         doesn't know how to handle more-permissive licenses.
73468
73469         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73470         Problem reported by Dave Love.
73471
73472 2005-05-08  Jim Meyering  <jim@meyering.net>
73473
73474         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73475         blank.
73476
73477 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * modules/argmatch (Depends-on): Add stdbool.
73480         * modules/backupfile (Depends-on): Likewise.
73481         * modules/chdir-long (Depends-on): Likewise.
73482         * modules/closeout (Depends-on): Likewise.
73483         * modules/cycle-check (Depends-on): Likewise.
73484         * modules/dirname (Depends-on): Likewise.
73485         * modules/fnmatch (Depends-on): Likewise.
73486         * modules/fsusage (Depends-on): Likewise.
73487         * modules/fwriteerror (Depends-on): Likewise.
73488         * modules/getcwd (Depends-on): Likewise.
73489         * modules/getloadavg (Depends-on): Likewise.
73490         * modules/hard-locale (Depends-on): Likewise.
73491         * modules/makepath (Depends-on): Likewise.
73492         * modules/mountlist (Depends-on): Likewise.
73493         * modules/nanosleep (Depends-on): Likewise.
73494         * modules/posixtm (Depends-on): Likewise.
73495         * modules/quotearg (Depends-on): Likewise.
73496         * modules/readtokens (Depends-on): Likewise.
73497         * modules/readtokens0 (Depends-on): Likewise.
73498         * modules/readutmp (Depends-on): Likewise.
73499         * modules/save-cwd (Depends-on): Likewise.
73500         * modules/strftime (Depends-on): Likewise.
73501         * modules/userspec (Depends-on): Likewise.
73502         * modules/utimecmp (Depends-on): Likewise.
73503         * modules/xgetcwd (Depends-on): Likewise.
73504         * modules/xnanosleep (Depends-on): Likewise.
73505         * modules/xstrtod (Depends-on): Likewise.
73506         * modules/yesno (Depends-on): Likewise.
73507
73508 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73511         needless checks.
73512
73513 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73514
73515         Merge from coreutils.  Among other things,
73516         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73517         * lib/fd-safer.c: New file.
73518         * lib/fcntl-safer.h, open-safer.c: Remove.
73519         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73520         * lib/dup-safer.c: Include unistd-safer.h first.
73521         Don't include errno.h.
73522         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73523         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73524         * lib/file-type.c: Rely on file-type.h change.
73525         * lib/getloadavg.c: Include unistd-safer.h.
73526         (getloadavg): Use safer open.
73527         * lib/getusershell.c: Include "stdio-safer.h".
73528         (getusershell): Use safer fopen.
73529         * lib/long-options.c (long_options): Use NULL rather than 0.
73530         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73531         'free'.
73532         * lib/modechange.c: Likewise.
73533         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73534         (MODE_DONE): New constant.
73535         (struct mode_change): Remove 'next' member.
73536         (make_node_op_equals): New function; like the old one of the
73537         same name, except it allocates an array.
73538         (mode_compile, mode_create_from_ref): Use it.
73539         (mode_compile): Allocate result as an array, not a linked list.
73540         Parse octal string ourself, so that we catch mistakes like "+0".
73541         (mode_adjust): Arg is an array, not a linked list.
73542         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73543         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73544         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73545         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73546         Remove.  This is now stat-macros.h's job.
73547         (talloc): Remove.  All callers replaced by xalloc, so that
73548         our invokers don't have to worry about reporting memory failures.
73549         (make_node_op_equals): Remove.
73550         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73551         New constants.
73552         (struct mode_change): Moved here from modechange.h.
73553         (mode_append_entry): Remove.
73554         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73555         apps to have incorrect behavior.  Use simpler algorithm for head
73556         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73557         Detect more invalid usages rather than having somewhat-random behavior.
73558         Don't insert an "a=" action, as that leads to incorrect behavior.
73559         (mode_compile, mode_create_from_ref): Return NULL on error instead
73560         of an enum, since now there's only one way to have an error.  All
73561         callers changed.
73562         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73563         at the correct time.  Simplify calculation of "+u" and its ilk.
73564         Don't mishandle "+X".
73565         (mode_free): Remove "register" and localize decls.
73566         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73567         (struct mode_change): Move to modechange.c; callers don't
73568         need to see this stuff.
73569         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73570         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73571         (mode_change, mode_adjust): Reflect the new signatures noted above.
73572         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73573         that might redefine system include files.
73574         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73575         (my_usleep): Use NULL rather than (void *) 0.
73576         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73577         Use siginterrupt to specify that system calls should be interrupted.
73578         (rpl_nanosleep): Move initialization of suspended closer to call of
73579         my_usleep.
73580         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73581         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73582         (desirable_utmp_entry): New function.
73583         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73584         using x2nrealloc, to simplify logic.
73585         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73586         size calculation.  Do not assume utmp file is a regular file.
73587         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73588         (READ_UTMP_CHECK_PIDS): New constant.
73589         * lib/save-cwd.c: Include unistd-safer.h.
73590         (save_cwd): Use fd_safer.
73591         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73592         [!_LIBC] Include "stat-macros.h" instead.
73593         * lib/unistd-safer.h (fd_safer): New decl.
73594
73595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * modules/getloadavg (Depends-on): Add unistd-safer.
73598         * modules/getusershell (Depends-on): Add stdio-safer.
73599         * modules/lstat (Depends-on): Remove xalloc.
73600         * modules/mkstemp (Depends-on): Add stat-macros.
73601         * modules/modechange (Depends-on): Remove xstrtol.
73602         Add stat-macros, xalloc.
73603         * modules/save-cwd (Depends-on): Add unistd-safer.
73604         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73605         * modules/unistd-safer (Files): Add lib/fd-safer.c
73606         (Makefile.am): Remove lib_SOURCES.
73607
73608         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73609         Remove fcntl-safer; unistd-safer supersedes it.
73610
73611 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73614         AC_HEADER_STAT.
73615         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73616         (gl_PREREQ_CHOWN): Remove.
73617         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73618         it.  Don't require AC_HEADER_STAT.
73619         (gl_PREREQ_LSTAT): Remove.
73620         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73621         Don't require AC_HEADER_STAT.
73622         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73623         (gl_PREREQ_RMDIR): Remove.
73624         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73625         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73626         the stat-macros module a prerequisite.
73627         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73628         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73629         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73630         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73631         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73632         variable names.
73633         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73634         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73635         variable prefixes.
73636         * m4/fcntl-safer.m4: Remove.
73637         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73638         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73639         Invoke gl_PREREQ_FD_SAFER.
73640         (gl_PREREQ_FD_SAFER): New macro.
73641         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73642         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73643         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73644         Remove duplicate call to AC_LIBOBJ(readutmp).
73645         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73646
73647         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73648         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73649
73650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73651
73652         * MODULES.html.sh (Misc): Add byteswap.
73653
73654 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73655
73656         * modules/getcwd (Depends-on): Add extensions.
73657         * modules/openat (Depends-on): Likewise.
73658
73659 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73660
73661         * modules/byteswap: New file.
73662
73663 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73664
73665         * m4/byteswap.m4: New file.
73666
73667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73668
73669         * lib/byteswap_.h: New file.
73670
73671 2005-04-25  Karl Berry  <karl@gnu.org>
73672
73673         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73674
73675 2005-04-25  Albert Chin  <china@thewrittenword.com>
73676
73677         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73678         Toolkit C bug.
73679
73680 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73681
73682         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73683         (func_ln_if_changed): Remove forcibly for no error message
73684         in case file does not exist.
73685
73686 2005-04-19  Simon Josefsson  <jas@extundo.com>
73687
73688         * gnulib-tool (Options): Make --symlink mean --symbolic.
73689
73690 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73691
73692         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73693
73694 2005-04-16  Simon Josefsson  <jas@extundo.com>
73695
73696         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73697
73698 2005-04-15  Simon Josefsson  <jas@extundo.com>
73699
73700         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73701
73702 2005-04-15  Simon Josefsson  <jas@extundo.com>
73703
73704         * gnulib-tool: Rename --symlink to --symbolic.
73705
73706 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73707
73708         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73709         symbolic links to files instead of copying/moving.  Add --aux-dir,
73710         specifying directory relative --dir where auxiliary build tools
73711         are placed.
73712
73713 2005-04-14  Bruno Haible  <bruno@clisp.org>
73714
73715         * modules/allocsa (License): Change to LGPL.
73716         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73717
73718 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73719
73720         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73721         that "UTC +1 second" continues to work.  Problem reported
73722         by Dmitry V. Levin.
73723         (relunit_snumber): New rule.
73724         (relunit): Use it.
73725
73726 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * lib/getdate.y (universal_time_zone_table): New constant.
73729         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73730         universal_time_zone_table.
73731         (lookup_zone): Prefer universal_time_zone_table to
73732         local_time_zone_table, so that "GMT" time stamps are allowed in
73733         London during the summer.  Problem reported by Ian Abbott.
73734
73735 2005-04-12  Jim Meyering  <jim@meyering.net>
73736
73737         * lib/human.c (humblock): Set *options even when returning due to
73738         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73739         warning from gcc-4.
73740
73741 2005-04-09  Jim Meyering  <jim@meyering.net>
73742
73743         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73744         -Wuninitialized: initialize tm0.tm_year.
73745
73746 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73747
73748         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73749         count, since there's no maximum.  All uses changed.
73750         Add member dsts_seen.
73751         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73752         not being INT_MAX.
73753         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73754         Use pc_rels_seen to decide whther a date is absolute.
73755
73756         * lib/getdate.y (number): Don't overwrite year.
73757         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73758         check.
73759
73760 2005-04-02  Simon Josefsson  <jas@extundo.com>
73761
73762         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73763         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73764
73765 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73766
73767         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73768         where no absolute path name can be longer than PATH_MAX.
73769
73770 2005-03-27  Jim Meyering  <jim@meyering.net>
73771
73772         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73773
73774 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73775
73776         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73777         "one's complement" -> "ones' complement" in comment, as per Knuth.
73778         "value of type" -> "type or expression" in comment.
73779         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73780
73781 2005-03-26  Jim Meyering  <jim@meyering.net>
73782
73783         Comment nits.
73784         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73785         Correct typos: s/or/of/.
73786
73787 2005-03-26  Jim Meyering  <jim@meyering.net>
73788
73789         * modules/check-include-files: Move to ../ and rename to...
73790         * check-module: ...this.
73791
73792 2005-03-25  Jim Meyering  <jim@meyering.net>
73793
73794         * modules/xvasprintf (Files): Add xalloc.h.
73795
73796 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * modules/gettext (Files): config/config.rpath ->
73799         build-aux/config.rpath
73800         * modules/iconv (Files): Likewise.
73801         Problem reported by Oskar Liljeblad.
73802
73803 2005-03-23  Jim Meyering  <jim@meyering.net>
73804
73805         * modules/check-include-files: New script to check for
73806         missing dependencies, multiple includes, etc.
73807
73808         * modules/c-strtold (Depends-on): Add xalloc.
73809         * modules/c-strtod (Depends-on): Add xalloc.
73810         * modules/hash (Depends-on): Add xalloc.
73811         (Files): Remove lib/xalloc.h.
73812
73813         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73814         * modules/userspec (Files): Add lib/inttostr.h.
73815
73816 2005-03-23  Jim Meyering  <jim@meyering.net>
73817
73818         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73819
73820 2005-03-22  Jim Meyering  <jim@meyering.net>
73821
73822         * modules/stat-macros: New module.
73823         * modules/canonicalize, modules/euidaccess, modules/file-type,
73824         * modules/filemode, modules/lchown, modules/makepath,
73825         * modules/rmdir, modules/stat: Depend on new stat-macros module
73826         rather than listing lib/stat-macros.h manually.
73827         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73828
73829 2005-03-22  Jim Meyering  <jim@meyering.net>
73830
73831         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73832
73833 2005-03-22  Bruno Haible  <bruno@clisp.org>
73834
73835         * config/srclist.txt: Replace target directory 'config' with
73836         'build-aux'.
73837         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73838         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73839         ../build-aux/.
73840
73841 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * modules/chdir-long (Depends-on): Add mempcpy.
73844
73845         * modules/acl, modules/backupfile, modules/c-strtod,
73846         modules/c-strtold, modules/canon-host, modules/canonicalize,
73847         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73848         modules/exclude, modules/exitfail, modules/file-type,
73849         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73850         modules/getdate, modules/getline, modules/getpagesize,
73851         modules/getpass, modules/getugroups, modules/group-member,
73852         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73853         modules/inttostr, modules/long-options, modules/makepath,
73854         modules/md5, modules/memcasecmp, modules/memcoll,
73855         modules/modechange, modules/mountlist, modules/path-concat,
73856         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73857         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73858         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73859         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73860         modules/strftime, modules/strndup, modules/strverscmp,
73861         modules/timespec, modules/unlocked-io, modules/userspec,
73862         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73863         modules/yesno:
73864         Remove lib_SOURCES line from Makefile.am section, as this is now
73865         done automatically by the corresponding Autoconf macro.
73866
73867 2005-03-21  Jim Meyering  <jim@meyering.net>
73868
73869         Changes imported from coreutils.
73870
73871         * lib/cycle-check.c: Don't include xalloc.h.
73872
73873         * lib/path-concat.c: Don't include assert.h.
73874         (path_concat): Remove assertion that would have triggered
73875         for ABASE starting with more than one slash.
73876         Reported by Andreas Schwab.
73877
73878         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73879         properly when ABASE is an absolute file name.
73880         Correct the description of this function.
73881         Include <assert.h>.
73882         Add an assertion and a test driver.
73883         This fixes a bug introduced on 2004-07-02.
73884         Andreas Schwab reported the resulting failure of cp --parents:
73885         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73886
73887 2005-03-21  Jim Meyering  <jim@meyering.net>
73888
73889         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73891
73892 2005-03-21  Jim Meyering  <jim@meyering.net>
73893         and  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73896         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73897         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73898         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73899         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73900         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73901         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73902         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73903         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73904         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73905         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73906         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73907         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73908         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73909         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73910         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73911         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73912         for these modules.
73913
73914 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73917         (which shouldn't happen), generate nothing instead of returning 0
73918         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73919
73920 2005-03-16  Bruno Haible  <bruno@clisp.org>
73921
73922         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73923         HAVE_LONGLONG_64BIT.
73924
73925 2005-03-16  Bruno Haible  <bruno@clisp.org>
73926
73927         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73928         HAVE_LONGLONG_64BIT.
73929
73930 2005-03-16  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73933         HAVE_LONGLONG_64BIT.
73934
73935 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73936
73937         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73938         reliably distinguish strftime failure from empty output on POSIX
73939         hosts.
73940
73941 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73944         (iconv_string): Don't guess a size-zero buffer, as that might cause
73945         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73946         result would be 'too large', where 'too large' is (heuristically)
73947         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73948         overflow concerns.  This will prevent some unwanted malloc failures
73949         when the inputs are very large.
73950
73951 2005-03-15  Karl Berry  <karl@gnu.org>
73952
73953         * config/srclist.txt (config.rpath): from gettext.
73954         * config/config.rpath: update.
73955
73956 2005-03-15  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73959         to 'negate'.
73960
73961         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73962         variable.
73963
73964         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73965         results.
73966
73967 2005-03-14  Simon Josefsson  <jas@extundo.com>
73968
73969         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73970         <fx@gnu.org>.
73971
73972 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73975         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73976         intprops.h.
73977         * lib/strtol.c: Likewise.
73978
73979 2005-03-14  Jim Meyering  <jim@meyering.net>
73980
73981         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73982         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73983         to be nonzero so that we (and caller) can detect the difference
73984         between a valid zero-length expansion and an error return, even
73985         when the underlying strftime fails before writing anything into
73986         that location.
73987
73988 2005-03-14  Bruno Haible  <bruno@clisp.org>
73989
73990         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73991         Update from GNU gettext 0.14.3.
73992
73993 2005-03-10  Jim Meyering  <jim@meyering.net>
73994
73995         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73996
73997 2005-03-10  Jim Meyering  <jim@meyering.net>
73998
73999         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74000         so that this module works on systems without fchdir.
74001
74002 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         Factor int-properties macros into a single file, except for
74005         glibc-related files.
74006         * lib/intprops.h: New file.
74007         * lib/getloadavg.c: Include it instead of limits.h.
74008         (INT_STRLEN_BOUND): Remove.
74009         * lib/human.c: Include intprops.h.
74010         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74011         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74012         302/1000.
74013         * lib/inttostr.h: Include intprops.h instead of limits.h.
74014         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74015         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74016         for consistency with intprops.h.
74017         (time_t_is_integer, twos_complement_arithmetic): Use them.
74018         * lib/sig2str.h: Include <signal.h>, intprops.h.
74019         (INT_STRLEN_BOUND): Remove.
74020         * lib/strftime.c (TYPE_SIGNED): Remove.
74021         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74022         * lib/strtol.c: Adjust comments to match intprops.h.
74023         * lib/userspec.c: Include intprops.h.
74024         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74025         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74026         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74027         instead of rolling our own expressions.
74028         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74029
74030         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74031         instead of int.
74032         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74033         the right thing even if adding 1900 would overflow.  Similarly
74034         for tm_mon + 1 and tm_yday + 1.
74035         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74036         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74037         (DO_SIGNED_NUMBER): New macro.
74038         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74039
74040 2005-03-07  Bruno Haible  <bruno@clisp.org>
74041
74042         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74043
74044 2005-03-07  Bruno Haible  <bruno@clisp.org>
74045
74046         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74047
74048 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74049
74050         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74051         (func_import): Only replace files via --import when they have actually
74052         changed.
74053
74054 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74055
74056         * m4/mmap-anon.m4: New file.
74057         * m4/pagealign_alloc.m4: New file.
74058
74059 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74060             Bruno Haible  <bruno@clisp.org>
74061
74062         * modules/pagealign_alloc: New file.
74063         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74064
74065 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74066             Bruno Haible  <bruno@clisp.org>
74067
74068         * lib/pagealign_alloc.h: New file.
74069         * lib/pagealign_alloc.c: New file.
74070
74071 2005-03-03  Bruno Haible  <bruno@clisp.org>
74072
74073         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74074         Use an all-permissive copyright notice, recommended by RMS.
74075
74076 2005-03-02  Bruno Haible  <bruno@clisp.org>
74077
74078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74079         of AIX, the replacement has to be done only after <string.h> is
74080         included, therefore not in config.h. stpncpy.h does the replacement,
74081         and stpncpy.c uses it.
74082
74083 2005-03-02  Bruno Haible  <bruno@clisp.org>
74084
74085         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74086         stpncpy.c uses it.
74087
74088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74091         The workaround isn't strictly needed for POSIX conformance, and
74092         it's too much of a pain to configure and maintain.  We'll ask
74093         people to fix their kernels instead.
74094         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74095         (NANOSLEEP_BUG_WORKAROUND): Remove.
74096         (xnanosleep): Remove the workaround.
74097
74098 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74101         Reported by Derek Price.
74102         (Include): Add "timespec.h".
74103
74104         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74105
74106 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74109         to detect nanosleep bug.
74110
74111 2005-03-01  Bruno Haible  <bruno@clisp.org>
74112
74113         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74114
74115 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         * modules/gethrxtime: New file.
74118         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74119         (Depends-on): Add gethrxtime.
74120         (configure.ac): Add gl_XNANOSLEEP.
74121         (Makefile.am): Remove lib_SOURCES line.
74122
74123 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74126         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74127
74128 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74131         * lib/timespec.h (gettime): Return void, since it always
74132         succeeds now.  All uses changed.
74133         * lib/gettime.c (gettime): Likewise.
74134         [HAVE_NANOTIME]: Prefer nanotime.
74135         Assume gettimeofday succeeds, as POSIX requires.
74136         Assime time () succeeds, since other code already does.
74137         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74138         (timespec_subtract): Remove.
74139         (NANOSLEEP_BUG_WORKAROUND): New constant.
74140         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74141         things considerably.  Use it only on GNU/Linux hosts, since the
74142         workaround shouldn't be needed elsewhere.
74143
74144 2005-02-24  Bruno Haible  <bruno@clisp.org>
74145
74146         * modules/gettext (Files): Add m4/glibc2.m4.
74147
74148 2005-02-24  Bruno Haible  <bruno@clisp.org>
74149
74150         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74151         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74152         * m4/progtest.m4:
74153         Update from GNU gettext 0.14.2.
74154         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74155
74156 2005-02-24  Bruno Haible  <bruno@clisp.org>
74157
74158         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74159         * lib/config.charset: Update from GNU gettext 0.14.2.
74160
74161 2005-02-24  Bruno Haible  <bruno@clisp.org>
74162
74163         * lib/gettext.h: Update from GNU gettext 0.14.2.
74164
74165 2005-02-23  Simon Josefsson  <jas@extundo.com>
74166
74167         * m4/iconvme.m4: New file.
74168
74169 2005-02-23  Jim Meyering  <jim@meyering.net>
74170
74171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74172         change.
74173         Thanks to Bruno Haible for catching it.
74174
74175 2005-02-22  Simon Josefsson  <jas@extundo.com>
74176
74177         * modules/iconvme: New file.
74178
74179         * MODULES.html.sh: Add iconvme.
74180
74181 2005-02-22  Simon Josefsson  <jas@extundo.com>
74182
74183         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74184
74185 2005-02-22  Simon Josefsson  <jas@extundo.com>
74186
74187         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74188
74189 2005-02-22  Jim Meyering  <jim@meyering.net>
74190
74191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74192         s/ifndef/ifdef/.
74193
74194 2005-02-20  Neil Conway  <neilc@samurai.com>
74195
74196         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74197         returned by OSX/Darwin if the specified buffer is not large
74198         enough for the hostname.
74199
74200 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74201
74202         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74203         pass it to _help, otherwise the latter coredumps trying to
74204         dereference state.root_argp.
74205
74206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74207
74208         * modules/chdir-long (Depends-on): Add memrchr.
74209         * modules/memrchr (Files): Add lib/memrchr.h.
74210         (Include): "memrchr.h".
74211
74212 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74215
74216 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         * lib/memrchr.h: New file.
74219         * lib/chdir-long.c: Include it.
74220         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74221         Don't bother including stddef.h.
74222
74223 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74226         inclusion.
74227         Include <sys/types.h>, for dev_t.
74228         (ME_DUMMY, ME_REMOTE): Move from here....
74229         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74230         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74231         Dmitry V. Levin.
74232         Include mountlist.h first, to test the interface.
74233
74234 2005-01-29  Bruno Haible  <bruno@clisp.org>
74235
74236         * lib/progname.c (program_name): Initialize.
74237         Needed when linking statically on MacOS X.
74238
74239 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         Sync from coreutils.
74242         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74243         (Depends-on): Add c-strtod.
74244         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74245
74246 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         Sync from coreutils.
74249         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74250
74251         Remove files that are specific to coreutils.
74252         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74253
74254 2005-01-28  Bruno Haible  <bruno@clisp.org>
74255
74256         * modules/javacomp: New file.
74257         * MODULES.html.sh (Java): Add javacomp.
74258
74259 2005-01-28  Bruno Haible  <bruno@clisp.org>
74260
74261         * m4/javacomp.m4: New file, from GNU gettext.
74262
74263 2005-01-28  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/javacomp.sh.in: New file, from GNU gettext.
74266         * lib/javacomp.h: New file, from GNU gettext.
74267         * lib/javacomp.c: New file, from GNU gettext.
74268
74269 2005-01-26  Simon Josefsson  <jas@extundo.com>
74270
74271         * lib/gai_strerror.c: Use GPL in header.
74272
74273 2005-01-26  Bruno Haible  <bruno@clisp.org>
74274
74275         * modules/javaexec: New file.
74276         * MODULES.html.sh (Java): Add javaexec.
74277
74278 2005-01-26  Bruno Haible  <bruno@clisp.org>
74279
74280         * m4/javaexec.m4: New file, from GNU gettext.
74281
74282 2005-01-26  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/javaexec.sh.in: New file, from GNU gettext.
74285         * lib/javaexec.h: New file, from GNU gettext.
74286         * lib/javaexec.c: New file, from GNU gettext.
74287
74288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74289
74290         * modules/lchown (Depends-on): Remove lchown.h
74291
74292 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74293
74294         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74295         must be defined if the header file was not found, in order
74296         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74297
74298 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74299
74300         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74301         initializers for struct pentry_state.
74302         (__argp_error): Check return value of __asprintf
74303         (__argp_failure): Translate error message
74304
74305         * lib/argp-parse.c: Removed braces around the expansion of N_()
74306
74307 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74310         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74311         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74312         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74313         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74314         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74315         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74316         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74317         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74318         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74319         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74320         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74321         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74322         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74323         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74324         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74325         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74326         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74327         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74328         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74329         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74330         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74331         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74332         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74333         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74334         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74335         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74336         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74337         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74338         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74339         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74340         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74341         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74342         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74343         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74344         Use an all-permissive copyright notice, recommended by RMS.
74345
74346 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * modules/chdir-long (Depends-on): Remove mempcpy.
74349
74350 2005-01-21  Jim Meyering  <jim@meyering.net>
74351
74352         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74353         same value as for Solaris 9.
74354
74355         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74356         component length.  This included changing the parameter to be
74357         of type `char *' rather than `char const *'.
74358         * lib/chdir-long.h (chdir_long): Update prototype.
74359
74360         * lib/openat.c (fdopendir, fstatat): New functions.
74361         * lib/openat.h: Include headers required for use of DIR and struct
74362         stat.
74363         [AT_SYMLINK_NOFOLLOW]: Define.
74364         (fdopendir, fstatat): Add prototypes.
74365
74366 2005-01-21  Bruno Haible  <bruno@clisp.org>
74367
74368         * modules/classpath: New file.
74369         * MODULES.html.sh (Java): Add classpath.
74370
74371 2005-01-21  Bruno Haible  <bruno@clisp.org>
74372
74373         * lib/classpath.h: New file, from GNU gettext.
74374         * lib/classpath.c: New file, from GNU gettext.
74375
74376 2005-01-20  Simon Josefsson  <jas@extundo.com>
74377
74378         * modules/version-etc-fsf: New file.
74379
74380 2005-01-20  Simon Josefsson  <jas@extundo.com>
74381
74382         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74383         * lib/version-etc.c: Remove version_etc_copyright.
74384         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74385         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74386
74387 2005-01-20  Simon Josefsson  <jas@extundo.com>
74388
74389         * lib/base64.h (isbase64): Add.
74390
74391         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74392         using a unsigned prototype, don't inline.
74393         (base64_decode): Use it.
74394
74395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74398         it.
74399
74400 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * lib/save-cwd.c (save_cwd): Remove code to support the case
74403         where fchdir is missing or flaky.
74404
74405 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74408
74409 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74412         AC_LIBSOURCES now does this.
74413         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74414         with new ullong_max module.
74415
74416 2005-01-19  Bruno Haible  <bruno@clisp.org>
74417
74418         * modules/sh-quote: New file.
74419         * MODULES.html.sh (Executing programs): Add sh-quote.
74420
74421 2005-01-19  Bruno Haible  <bruno@clisp.org>
74422
74423         * lib/sh-quote.h: New file, from GNU gettext.
74424         * lib/sh-quote.c: New file, from GNU gettext.
74425
74426 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74427
74428         Merge from coreutils.
74429         * m4/ullong_max.m4: New file.
74430         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74431         (gl_MACROS): Assume localeconv exists.
74432
74433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         Merge changes from coreutils, as described below in several
74436         changelogs dated today.
74437
74438         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74439         (O_DIRECTORY): Remove; not needed here, since "." must be
74440         a directory.  All uses removed.
74441         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74442         universal on Suns, and we also need to test for IRIX.
74443         Revamp code to use 'if' rather than '#if'.
74444         Avoid unnecessary comparison of cwd->desc to 0.
74445
74446         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74447         for known valid error numbers rather than observed invalid ones.
74448
74449 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * modules/ullong_max: New file.
74452
74453         * modules/chdir-long, modules/openat: New files.
74454         * modules/save-cwd (Depends-on): Depend on chdir-long.
74455         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74456
74457 2005-01-18  Jim Meyering  <jim@meyering.net>
74458
74459         Merge from coreutils.
74460         * m4/chdir-long.m4, m4/openat.m4: New files.
74461         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74462         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74463         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74464         is sane and DOES follow symlinks.  Besides, testing 20 different
74465         systems found no broken chown implementations.
74466         Prompted by a change in rsync's copy of this macro.
74467         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74468
74469         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74470
74471         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74472         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74473         NULL-means-set-to-current-time semantics.
74474         Remove temporary file immediately, rather than waiting
74475         for configure's at-exit trap code to do it.
74476
74477 2005-01-18  Jim Meyering  <jim@meyering.net>
74478
74479         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74480
74481         * lib/utimens.c (futimens): Account for the fact that futimes
74482         can also fail with errno == ENOSYS or errno == ENOENT.
74483         Patch from Dmitry V. Levin.
74484
74485         Change the name of the robust chdir function from chdir to chdir_long.
74486         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74487         (restore_cwd): Use chdir_long, not chdir.
74488         * lib/chdir-long.c: Renamed from chdir.c.
74489         * lib/chdir-long.h: Renamed from chdir.h.
74490         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74491         Hurd.
74492
74493 2005-01-18  Bruno Haible  <bruno@clisp.org>
74494
74495         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74496         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74497         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74498         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74499         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74500         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74501         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74502         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74503         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74504         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74505         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74506         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74507         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74508         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74509         Use an all-permissive copyright notice, recommended by RMS.
74510
74511 2005-01-18  Bob Proulx  <bob@proulx.com>
74512
74513         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74514         simplify offsetof() macro construct to avoid compile failure with
74515         native HP-UX 11.0 ANSI C compiler.
74516
74517 2005-01-17  Bruno Haible  <bruno@clisp.org>
74518
74519         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74520         redundant because stpncpy.m4 takes care of it.
74521
74522 2005-01-17  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74525
74526 2005-01-17  Bruno Haible  <bruno@clisp.org>
74527
74528         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74529         used.
74530
74531 2005-01-17  Bruno Haible  <bruno@clisp.org>
74532
74533         * lib/fwriteerror.h (fwriteerror): Change specification to include
74534         fclose.
74535         * lib/fwriteerror.c: Include <stdbool.h>.
74536         (fwriteerror): At the end, close the file stream. Record whether
74537         stdout was already closed.
74538
74539 2005-01-17  Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/execute.c (environ): Declare if needed.
74542         * lib/pipe.c (environ): Likewise.
74543         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74544
74545 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74546
74547         * modules/argp: Depend on vsnprintf
74548
74549 2005-01-10  Jim Meyering  <jim@meyering.net>
74550
74551         * modules/closeout (Depends-on): Add atexit.
74552
74553 2005-01-06  Bruno Haible  <bruno@clisp.org>
74554
74555         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74556
74557 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74560         definitions to be after all include files, to avoid collisions.
74561         Problem reported by Bob Proulx.
74562
74563 2005-01-04  Jim Meyering  <jim@meyering.net>
74564
74565         Changes imported from coreutils.
74566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74567         as the mkstemp template, use a temporary directory and an
74568         8.3-friendly template to avoid trouble on systems like DJGPP.
74569         Reported by Juan M. Guerrero via Stepan Kasal.
74570         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74571         close. Remove the temporary directory right away, rather than waiting
74572         for configure's at-exit trap code to do it.
74573         Suggestion from Stepan Kasal.
74574
74575 2005-01-01  Simon Josefsson  <jas@extundo.com>
74576
74577         * gnulib-tool: Print #include directives when --import'ing.
74578
74579 2004-12-28  Simon Josefsson  <jas@extundo.com>
74580
74581         * tests/test-base64.c: Include required header files.  Remove
74582         unused variables.
74583
74584 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74585
74586         * modules/error (Depends-on): Remove gettext.
74587
74588 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74591         not needed.  This removes a dependency on the gettext module.
74592         [defined _LIBC]: Do not include <libintl.h>; not needed.
74593
74594 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74597         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74598
74599 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74600
74601         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74602         HAVE_DECL_STRTOLD.
74603
74604 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * modules/getdate (Depends-on): Remove alloca-opt.
74607
74608 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74611
74612 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * lib/argp-parse.c: Include <stddef.h>.
74615         (alignof, alignto): New macros.
74616         (parser_init): Don't assume that void * is aligned sufficiently
74617         for struct option.
74618
74619         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74620         need to extend the stack.
74621         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74622         large.
74623
74624 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74625
74626         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74627
74628 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74631         (2004-10-24) change.  Apparently this was a false alarm.
74632
74633         * modules/getdate: Depend on alloca-opt, not alloca.
74634
74635 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74638         Remove now-obsolete comment about AIX.
74639         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74640         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74641         (YYMAXDEPTH): New macro.
74642
74643 2004-12-18  Simon Josefsson  <jas@extundo.com>
74644
74645         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74646
74647 2004-12-18  Bruno Haible  <bruno@clisp.org>
74648
74649         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74650
74651 2004-12-18  Bruno Haible  <bruno@clisp.org>
74652
74653         * lib/fatal-signal.c (fatal_signals): Make non-const.
74654         (init_fatal_signals): New function.
74655         (uninstall_handlers, install_handlers): Ignore signals that were set to
74656         SIG_IGN.
74657         (at_fatal_signal): Call init_fatal_signals.
74658         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74659         SIG_IGN.
74660         Reported by Paul Eggert.
74661
74662 2004-12-18  Bruno Haible  <bruno@clisp.org>
74663
74664         * doc/alloca.texi: New file.
74665         * doc/alloca-opt.texi: New file.
74666
74667 2004-12-17  Jim Meyering  <jim@meyering.net>
74668
74669         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74670         Otherwise, install-sh could exit with improper exit status when
74671         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74672
74673 2004-12-16  Simon Josefsson  <jas@extundo.com>
74674
74675         * tests/test-base64.c: Add license.
74676
74677 2004-12-15  Stepan Kasal  <address@hidden>
74678
74679         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74680
74681 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * modules/getcwd (Files): Add m4/d-ino.m4.
74684         Suggested by Mark D. Baushke.
74685
74686 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         * lib/getdate.y (textint): New member "negative".
74689         (time_zone_hhmm): New function.
74690         Expect 14 shift-reduce conflicts, not 13.
74691         (o_colon_minutes): New rule.
74692         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74693         (yylex): Set the "negative" member of signed numbers.
74694
74695 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * doc/getdate.texi (Time of day items, Time zone items):
74698         Describe new formats +00:00, UTC+00:00.
74699
74700 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74703         spurious "-l"s.  Problem reported by Stepan Kasal.
74704
74705 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74708         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74709
74710 2004-12-04  Simon Josefsson  <jas@extundo.com>
74711
74712         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74713         Vandoorselaere <yoann@prelude-ids.org>.
74714
74715 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         Changes imported from coreutils.
74718         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74719         exist.
74720         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74721
74722 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         Changes imported from coreutils.
74725         * lib/hard-locale.c: Assume <locale.h> exists.
74726         Include "strdup.h".
74727         (GLIBC_VERSION): New macro.
74728         (hard_locale): Assume setlocale exists.
74729         Rewrite to avoid #ifdef.
74730         Use strdup rather than malloc + strcpy.
74731         * lib/human.c: Assume <locale.h> exists.
74732         (human_readable): Assume localeconv exists.
74733
74734 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * modules/hard-locale (Depends-on): Add strdup.
74737
74738 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74739
74740         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74741         convert T2, not T.  (Imported from libc.)
74742
74743 2004-11-30  Simon Josefsson  <jas@extundo.com>
74744
74745         * modules/restrict (License): Change to LGPL.
74746
74747 2004-11-30  Simon Josefsson  <jas@extundo.com>
74748
74749         * m4/restrict.m4: Add copyright and copying conditions.
74750
74751 2004-11-30  Simon Josefsson  <jas@extundo.com>
74752
74753         * m4/base64.m4: New file.
74754
74755 2004-11-30  Simon Josefsson  <jas@extundo.com>
74756
74757         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74758         base64.
74759
74760         * tests/test-base64.c: New file.
74761
74762         * modules/base64: New file.
74763
74764 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74767         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74768
74769         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74770
74771 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74774         (__getcwd.c): Don't restore errno; glibc doesn't.
74775         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74776         first, falling back to our code only if its results look suspicious.
74777         Ensure that the resulting buffer is only as large as necessary.
74778
74779         * lib/readutmp.c: Include readutmp.h first.
74780         Include <errno.h>, since readutmp.h no longer does that.
74781         * lib/readutmp.h: Don't include <errno.h>,
74782         <sys/param.h>, <time.h>; not needed to establish interface.
74783         (errno): Remove decl.
74784         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74785         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74786         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74787
74788 2004-11-28  Simon Josefsson  <jas@extundo.com>
74789
74790         * lib/base64.h, base64.c: New file.
74791
74792 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74795
74796 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74799         (Depends-on): Remove pathmax, same.  Add mempcpy.
74800         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74801         (Makefile.am): Append getcwd.h to lib_SOURCES.
74802         (Include): Add getcwd.h.
74803         (Maintainer): Change from Jim Meyering to "all, glibc",
74804         since getdate now uses intended-for-glibc code.
74805         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74806         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74807
74808 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74811         HP's ANSI C compiler.
74812         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74813         Declaring int functions causes warnings on some modern systems and
74814         shouldn't be needed to compile on ancient ones.
74815         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74816         defined.
74817
74818         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74819         with the following changes.
74820         (__set_errno): Parenthesize properly.
74821         Include <stdbool.h>.
74822         (MIN, MAX, MATCHING_INO): New macros.
74823         (__getcwd): Define with prototype, not K&R form.
74824         Use heuristics to allocate default buffer on stack if possible.
74825         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74826         behavior, and to avoid the PATH_MAX limit when computing
74827         ../../../../...
74828         Use MATCHING_INO to compare inode number to file.
74829         Check for arithmetic overflow in size calculations.
74830         Fix bug in reallocation of dot array that caused getcwd to fail
74831         on directories nested deeper than 75.
74832         Be more careful about saving errno on error.
74833         Do not use realloc; use only free+malloc, as this is a bit
74834         more flexible and avoids a needless copy operation.
74835         Do not inspect st_dev and st_ino for symbolic links; POSIX
74836         doesn't specify the latter.
74837         Check for closedir errors.
74838         Avoid needless casts.
74839         Use "#ifdef weak_alias" around weak_alias, to be like other
74840         glibc code.
74841         The following changes to getcwd.c have effect only when used in
74842         gnulib; they have no effect inside glibc proper.
74843         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74844         as alloca isn't used.
74845         (alloca, __alloca): Likewise.
74846         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74847         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74848         unconditionally, as gnulib assumes C89 or better.
74849         Do not include <sys/param.h>.
74850         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74851         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74852         better.
74853         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74854         Include <dirent.h> in a way that is compatible with modern Autoconf.
74855         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74856         New macros, if not already defined.
74857         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74858         Use "_LIBC", not "defined _LIBC", for consistency.
74859         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74860         a mempcpy module.
74861         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74862         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74863         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74864         credit only to Jim Meyering and adjust the copyright dates.
74865         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74866         <stdlib.h>, <unistd.h>, "pathmax.h".
74867         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74868         (INITIAL_BUFFER_SIZE): Remove.
74869         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74870
74871 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74874         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74875         Use the _ONCE methods, for efficiency.
74876         Check for fcntl.h.  In test program, include <errno.h>
74877         and <fcntl.h> if available.  Remove old K&R cruft from
74878         test program.  Check for common errors in GNU/Linux,
74879         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74880         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74881         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74882         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74883         name accordingly.
74884         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74885         accommodate new getcwd.c.
74886         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74887         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74888         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74889         that's all we need now.
74890
74891 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74892
74893         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74894         argp-parse.c depends on getopt internals, that means we should
74895         always use our getopt, to be on the safe side.
74896         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74897         order not to spoil the result of an eventual previous invocation
74898         of gl_GETOPT_SUBSTITUTE.
74899
74900 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74901
74902         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74903         redefinition warnings. To avoid them, include the defines
74904         in `#if !defined __need_getopt ... #endif'. The only place
74905         where __getopt_argv_const is used is in definitions
74906         of getopt_long and getopt_long_only below, which are as well
74907         protected by `#ifndef __need_getopt'.
74908         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74909         __need_getopt after including <stdio.h> and <unistd.h> These
74910         headers might have defined it.
74911
74912 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74915
74916 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74919         (futimens): New function, which uses futimes if available.
74920         (futimens, utimens): Support timespec==NULL, with same semantics
74921         as utime and utimens.
74922         * lib/utimens.h (futimens): New decl.
74923
74924 2004-11-23  Jim Meyering  <jim@meyering.net>
74925
74926         * lib/getopt_.h: Remove trailing blanks.
74927
74928 2004-11-23  Jim Meyering  <jim@meyering.net>
74929
74930         * lib/__fpending.c: Add comment.
74931
74932 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * modules/canonicalize (Depends-on): Add xreadlink.
74935         Problem reported by James Youngman.
74936
74937 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74940         New macros.
74941         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74942         optopt): Use them instead of invoking ## directly; otherwise, the
74943         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74944
74945 2004-11-19  Bruno Haible  <bruno@clisp.org>
74946
74947         * lib/strtok_r.c: Move comments from here...
74948         * lib/strtok_r.h: ... to here.
74949
74950 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74953         implementations that mishandle size_t overflow.
74954
74955 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74958         might fail.  Problem reported by Yoann Vandoorselaere.
74959         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74960         implementations that mishandle size_t overflow.
74961
74962 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * modules/canon-host (Depends-on): Add strdup.
74965
74966 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74969
74970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/canon-host.c: Include "strdup.h".
74973         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74974         Use strdup instead of malloc/strcpy to duplicate strings.
74975
74976         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74977         (human_space_before_unit): New constant.
74978         * lib/human.c (human_readable): Support it.
74979
74980         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74981         (xgetcwd): Set errno correctly when failing.
74982         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74983         the failure is actually due to a PATH_MAX problem.
74984
74985         Further getopt changes to make it more likely that glibc will
74986         buy the changes back.
74987         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74988         (getopt): Use it, so to preserve glibc semantic
74989         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74990         when compiling for libc.
74991         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74992         (getopt_long, getopt_long_only): Use it.
74993
74994         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74995         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74996         (getopt): Argv is now char * const *, as per standard.
74997         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74998         not char *__getopt_argv_const *.
74999         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75000         _getopt_long_only_r): Likewise.
75001         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75002         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75003         _getopt_long_r, _getopt_long_only_r): Likewise.
75004         * lib/getopt_.h (__getopt_argv_const): Remove.
75005         (getopt): Argv is now char * const *, as per standard.
75006
75007         * lib/getdate.y (tORDINAL): New token.
75008         (day, relunit): Allow it for relative times.
75009         (relative_time_table): Use tORDINAL for ordinals.
75010
75011 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75014         Document that "second" isn't allowed as an ordinal number.
75015
75016 2004-11-16  Jim Meyering  <jim@meyering.net>
75017
75018         * modules/closeout (Depends-on): Add fpending.
75019
75020 2004-11-15  Jim Meyering  <jim@meyering.net>
75021
75022         * lib/closeout.c: Include "__fpending.h" once again.
75023         Include <stdbool.h>.
75024         (close_stdout): Don't fail just because stdout was closed initially,
75025         since some programs don't write to stdout in the normal course of
75026         operation (other than --version and --help), and we don't want this
75027         function to make e.g. `touch file >&-' fail.
75028         But do fail if it was closed and someone has tried to write to it.
75029         E.g., `printf foo >&-' must fail.
75030
75031 2004-11-13  Jim Meyering  <jim@meyering.net>
75032
75033         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75034
75035 2004-11-12  Simon Josefsson  <jas@extundo.com>
75036
75037         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75038         small doc fix is still pending.
75039
75040 2004-11-11  Simon Josefsson  <jas@extundo.com>
75041
75042         * modules/strtok_r: New file.
75043
75044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75045         strtok_r.
75046
75047 2004-11-11  Simon Josefsson  <jas@extundo.com>
75048
75049         * m4/strtok_r.m4: New file.
75050
75051         * m4/getopt.m4: Replace opterr.
75052
75053 2004-11-11  Simon Josefsson  <jas@extundo.com>
75054
75055         * lib/strtok_r.h, strtok_r.c: New file.
75056
75057 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75060         of replacing opterr, getopt, etc.  This should handle the
75061         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75062
75063 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75066         we can stop lying to compilers about the constness of argv when we
75067         are compiled outside glibc.
75068         (getopt, getopt_long, getopt_long_only): Use it.
75069         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75070         _getopt_internal, getopt): Likewise.
75071         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75072         _getopt_long_only_r): Likewise.
75073         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75074         _getopt_long_r, _getopt_long_only_r): Likewise.
75075
75076         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75077         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75078         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75079         the other external symbols.
75080         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75081         declaration, since the above renaming now works around collisions.
75082
75083 2004-11-11  Jim Meyering  <jim@meyering.net>
75084
75085         * lib/linebreak.c: Remove trailing blanks.
75086         * lib/alloca_.h: Likewise.
75087         * lib/acosl.c: Likewise.
75088         * lib/euidaccess.c: Likewise.
75089         * lib/allocsa.h: Likewise.
75090
75091 2004-11-10  Simon Josefsson  <jas@extundo.com>
75092
75093         * m4/getaddrinfo.m4: New file.
75094
75095 2004-11-10  Simon Josefsson  <jas@extundo.com>
75096
75097         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75098
75099 2004-11-10  Simon Josefsson  <jas@extundo.com>
75100
75101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75102         getaddrinfo.
75103
75104         * modules/getaddrinfo: New file.
75105
75106 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75107
75108         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75109
75110 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * lib/mktime.c (SHR): New macro, which is a portable
75113         substitute for >> that should work even on Crays.
75114         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75115         Problem reported by Mark D. Baushke in
75116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75117         * lib/getdate.y (SHR): Likewise.
75118         (tm_diff): Use it.
75119         * lib/strftime.c (SHR): Likewise.
75120         (tm_diff): Use it.
75121         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75122         quote_these_too, so that right shifts are well defined.  All uses
75123         changed.
75124
75125 2004-11-10  Jim Meyering  <jim@meyering.net>
75126
75127         Ensure that no close failure goes unreported.
75128         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75129         return early when it seems there's nothing to flush.
75130         Don't include __fpending.h.
75131
75132 2004-11-10  Jim Meyering  <jim@meyering.net>
75133
75134         * modules/closeout (Depends-on): Remove fpending.
75135
75136 2004-11-10  Jim Meyering  <jim@meyering.net>
75137
75138         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75139
75140 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75141
75142         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75143         gl_FUNC_STRFTIME.
75144         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75145         and AC_REQUIRE when possible, to avoid duplicate checks.
75146         Check for <wchar.h>.
75147
75148 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75149
75150         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75151
75152 2004-11-09  Bruno Haible  <bruno@clisp.org>
75153
75154         * m4/sockpfaf.m4: New file.
75155
75156 2004-11-05  Bruno Haible  <bruno@clisp.org>
75157
75158         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75159         Reported by Mark D. Baushke <mdb@cvshome.org>.
75160
75161 2004-11-04  Bruno Haible  <bruno@clisp.org>
75162
75163         2004-09-11  Bruno Haible  <bruno@clisp.org>
75164                 * allocsa.valgrind: New file.
75165         2004-02-06  Bruno Haible  <bruno@clisp.org>
75166                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75167                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75168                 Reported by Christopher Seip <chris.seip@hp.com>.
75169
75170 2004-11-04  Bruno Haible  <bruno@clisp.org>
75171
75172         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75173         (Makefile.am): Distribute it.
75174
75175 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75178         with errno == ERANGE if the buffer is too small.
75179         Problem reported by Mark D. Baushke.
75180
75181 2004-11-03  Albert Chin  <china@thewrittenword.com>
75182             Paul Eggert  <eggert@cs.ucla.edu>
75183
75184         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75185         equivalent, substitute $ac_type for equivalent type rather than
75186         blindly using uint32_t *always* which won't work if uint32_t is not
75187         available.  Define _UINT32_T to work around typedef of uint32_t if
75188         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75189         2.5.1.
75190
75191 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * m4/jm-macros.m4: Sync from coreutils.
75194         (gl_MACROS): Check for mbrlen, for pathchk.
75195         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75196
75197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * lib/xreadlink.c (MAXSIZE): New macro.
75200         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75201         size does not exceed MAXSIZE.  Avoid cast.
75202         As suggested by Mark D. Baushke in
75203         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75204         if readlink fails with buffer size just under MAXSIZE, try again
75205         with MAXSIZE.
75206
75207 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75210
75211 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75212         and  Paul Eggert  <eggert@cs.ucla.edu>
75213
75214         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75215         (get_date): Overparenthesize to avoid GCC warning.
75216
75217 2004-11-02  Bruno Haible  <bruno@clisp.org>
75218
75219         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75220         returns void.
75221
75222 2004-11-02  Bruno Haible  <bruno@clisp.org>
75223
75224         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75225         function returns void.
75226
75227 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75230         fflush_unlocked, flockfile, funlockfile, funlockfile,
75231         fputs_unlocked, putc_unlocked.
75232
75233 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75236         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75237         already declared.
75238
75239 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         * modules/getdate (Files): Add doc/getdate.texi.
75242         (Depends-on): Add setenv, xalloc.
75243
75244 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         * lib/getdate.y: Add support for TZ="foo" within a date string.
75247         Fix some bugs near time_t boundaries.  Reject dates with
75248         out-of-range components, e.g., "Sept 31".
75249         Include <stdlib.h>, "setenv.h", "xalloc.h".
75250         (ISDIGIT_LOCALE): Remove; unused.
75251         Note that the TZ and time functions used here are not reentrant.
75252         (mktime_ok, get_tz): New functions.
75253         (TZBUFSIZE): New constant.
75254         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75255         This requires that we sometimes generate our own TZ="XXX..." setting.
75256
75257 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * doc/getdate.texi: New file, from coreutils with modifications for
75260         the new TZ parsing.
75261
75262 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75263
75264         * lib/mktime.c (not_equal_tm): Remove redundant check.
75265
75266 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * modules/regex (lib_SOURCES): Add regex.c.
75269         Reported by James Youngman in
75270         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75271
75272 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * lib/getdate.y: Use Bison 1.875 features, and some minor
75275         code cleanups.  This change does not affect semantics.
75276         Don't include <stdlib.h>; no longer needed.
75277         Don't include unlocked-io.h; only the "#if TEST" code uses
75278         stdio, and performance isn't crucial there.
75279         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75280         Bison 1.875 features as described below.
75281         All uses of "PC." replaced by "pc->".
75282         (YYSTYPE): Add a forward declaration.
75283         (yylex, yyerror): Use full prototypes in forward decls.
75284         Use "%pure-parser" rather than obsolescent "%pure_parser".
75285         Use %parse-param and %lex-param instead of obsolescent
75286         YYPARSE_PARAM and YYLEX_PARAM.
75287         (meridian_table, month_and_day_table, time_units_table,
75288         relative_time_table, time_zone_table, military_table,
75289         lookup_zone, lookup_word, get_date):
75290         Use NULL instead of 0 where appropriate.
75291         (to_hour): Avoid abort (), to avoid a dependency on
75292         stdlib.h.
75293         (yyerror, yylex): Now accepts parser_control * arg.
75294         (main) [TEST]: Use '\0' rather than 0 for char.
75295
75296 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75299
75300 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75303         It's now the caller's responsibility to handle the case where
75304         !HAVE_GETPAGESIZE && !defined getpagesize.
75305
75306         * lib/mktime.c (leapyear): Arg is long int, not int.
75307
75308 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75311
75312 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75315         missing.  Problem reported by James Youngman.
75316
75317 2004-10-16  Simon Josefsson  <jas@extundo.com>
75318
75319         * gnulib-tool: Fix comments.  Fix parse problem.
75320         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75321
75322 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75325         implementation of getopt_long.  Problem reported by Alexander Taler in:
75326         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75327
75328 2004-10-15  Bruno Haible  <bruno@clisp.org>
75329
75330         * gnulib-tool: Untabify. Initialize supplied_libname.
75331         (func_usage): More homogenous output.
75332         (func_modules_transitive_closure, func_modules_to_filelist,
75333         func_emit_lib_Makefile_am): New functions.
75334         (func_import): New function, extracted from big case statement. Use
75335         func_get_license, func_modules_transitive_closure,
75336         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75337         opt_lgpl. Don't use test -a, as it's not portable.
75338         (func_create_testdir): Use func_modules_transitive_closure,
75339         func_modules_to_filelist, func_emit_lib_Makefile_am.
75340
75341 2004-10-15  Bruno Haible  <bruno@clisp.org>
75342
75343         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75344
75345 2004-10-15  Bruno Haible  <bruno@clisp.org>
75346
75347         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75348         the portions belonging to each module.
75349         Suggested by Derek Robert Price <derek@ximbiot.com>.
75350
75351 2004-10-12  Simon Josefsson  <jas@extundo.com>
75352
75353         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75354         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75355         to real functions.
75356
75357 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75358
75359         * modules/vsnprintf: New file.
75360
75361 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75362
75363         * m4/vsnprintf.m4: New file.
75364
75365 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75366
75367         * lib/vsnprintf.h: New file.
75368         * lib/vsnprintf.c: New file.
75369
75370 2004-10-11  Bruno Haible  <bruno@clisp.org>
75371
75372         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75373         vsnprintf.
75374
75375 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75378
75379 2004-10-07  Bruno Haible  <bruno@clisp.org>
75380
75381         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75382         fits into the provided buffer.
75383
75384 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         * lib/diacrit.c, diacrit.h: Add GPL notice.
75387
75388         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75389         notice.
75390         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75391         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75392         This avoids a potential constant-folding bug.
75393
75394 2004-10-05  Bruno Haible  <bruno@clisp.org>
75395
75396         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75397         for the declaration of strsep.
75398
75399 2004-10-05  Bruno Haible  <bruno@clisp.org>
75400
75401         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75402
75403 2004-10-04  Simon Josefsson  <jas@extundo.com>
75404
75405         * modules/memmem: New file.
75406         * tests/test-memmem.c: New file.
75407         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75408
75409 2004-10-04  Simon Josefsson  <jas@extundo.com>
75410
75411         * m4/memmem.m4: New file.
75412
75413 2004-10-04  Simon Josefsson  <jas@extundo.com>
75414
75415         * lib/memmem.h: New file.
75416         * lib/memmem.c: New file, taken from glibc.
75417
75418 2004-10-04  Simon Josefsson  <jas@extundo.com>
75419
75420         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75421         '#ifdef USE_UNLOCKED_IO'.
75422
75423 2004-10-04  Simon Josefsson  <jas@extundo.com>
75424
75425         * config/srclist.txt: Add memmem from glibc.
75426
75427 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75430
75431         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75432         modules/exclude, modules/getdate, modules/getline,
75433         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75434         modules/getusershell, modules/linebuffer, modules/md5,
75435         modules/mountlist, modules/posixtm, modules/readtokens,
75436         modules/readutmp, modules/regex, modules/sha1,
75437         modules/version-etc, modules/yesno:
75438         Remove dependency on unlocked-io.
75439
75440 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75443
75444         * m4/unlocked-io.m4: Add copyright notice.
75445         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75446
75447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75450         * lib/xmalloc.c (xmemdup): Likewise.
75451         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75452         XFREE): Remove these long-obsolescent macros.
75453         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75454         * lib/xstrdup.c: Remove.
75455
75456         * lib/regex.c (re_comp): Cast gettext return value to char *,
75457         Problem reported by Martin Neitzel via Mark D. Baushke.
75458
75459 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75462         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75463         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75464         regex.c, sha1.c, version-etc.c, yesno.c:
75465         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75466         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75467         the includer's responsibility.
75468
75469         Sync from coreutils.
75470
75471         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75472         points to the start of a string, as the C Standard says the
75473         resulting behavior is undefined.
75474
75475         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75476         simple -> simple_backups, numbered_existing ->
75477         numbered_existing_backups, numbered -> numbered_backups
75478         to avoid shadowing problems.  All uses changed.
75479         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75480         * lib/backupfile.c (check_extension, numbered_backup):
75481         Rename locals to avoid shadowing 'basename'.
75482         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75483         once.
75484
75485         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75486         * lib/.cvsignore: Add getopt.h.
75487
75488 2004-10-04  Bruno Haible  <bruno@clisp.org>
75489
75490         * modules/README: New file.
75491         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75492         not a module.
75493
75494 2004-10-02  Jim Meyering  <jim@meyering.net>
75495
75496         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75497
75498 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75499
75500         * modules/strsep: New file.
75501
75502 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75503
75504         * m4/strsep.m4: New file.
75505
75506 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75507
75508         * lib/strsep.h: New file.
75509         * lib/strsep.c: New file.
75510
75511 2004-10-01  Simon Josefsson  <jas@extundo.com>
75512
75513         * lib/snprintf.c (snprintf): Handle size==0.
75514
75515 2004-10-01  Simon Josefsson  <jas@extundo.com>
75516             Bruno Haible  <bruno@clisp.org>
75517
75518         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75519         (snprintf): Declare 'args'.
75520
75521 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * lib/snprintf.c: Remove comments as to why each header is needed.
75524
75525 2004-10-01  Bruno Haible  <bruno@clisp.org>
75526
75527         * MODULES.html.sh: Add strsep.
75528
75529 2004-09-30  Simon Josefsson  <jas@extundo.com>
75530
75531         * modules/snprintf: New file.
75532
75533 2004-09-30  Simon Josefsson  <jas@extundo.com>
75534
75535         * m4/snprintf.m4: New file.
75536
75537 2004-09-30  Simon Josefsson  <jas@extundo.com>
75538
75539         * lib/snprintf.h, lib/snprintf.c: New files.
75540
75541 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75542
75543         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75544         (hol_entry_help): Never translate an empty string.
75545         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75546         * lib/argp.h (OPTION_NO_TRANS): New option.
75547
75548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75549
75550         * modules/argp (Maintainer): Replace Simon Josefsson
75551         by Sergey Poznyakoff.
75552
75553 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75556         changes merged back into glibc.
75557
75558 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75559
75560         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75561
75562 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75563
75564         * lib/xvasprintf.c: Include xalloc.h.
75565         (xvasprintf): Use xalloc_die, not xmalloc_die.
75566
75567 2004-09-29  Bruno Haible  <bruno@clisp.org>
75568
75569         * modules/alloca-opt: New file, derived from modules/alloca.
75570         * modules/allocsa: Depend on alloca-opt instead of alloca.
75571         * modules/setenv: Likewise.
75572         * modules/vasnprintf: Likewise.
75573         * MODULES.html.sh: Add alloca-opt.
75574
75575 2004-09-28  Simon Josefsson  <jas@extundo.com>
75576
75577         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75578         LGPL, and to replace license template from GPL to LGPL.
75579
75580 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         * modules/dummy: Change license to LGPL.
75583
75584 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75587
75588 2004-09-24  Simon Josefsson  <jas@extundo.com>
75589
75590         * modules/minmax (License): Change from GPL to LGPL.
75591
75592 2004-09-23  Simon Josefsson  <jas@extundo.com>
75593
75594         * gnulib-tool (--import): Typo.
75595
75596 2004-09-23  Simon Josefsson  <jas@extundo.com>
75597
75598         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75599
75600 2004-09-22  Bruno Haible  <bruno@clisp.org>
75601
75602         * modules/*: Add 'License' field.
75603         * gnulib-tool: Accept --extract-license option.
75604         (func_get_license): New function.
75605
75606 2004-09-21  Bruno Haible  <bruno@clisp.org>
75607
75608         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75609         Reported by Simon Josefsson.
75610
75611 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75614         gl_AC_TYPE_LONG_LONG.
75615
75616 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75619
75620 2004-09-18  Simon Josefsson  <jas@extundo.com>
75621         and  Paul Eggert  <eggert@cs.ucla.edu>
75622
75623         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75624         calls with autoreconf.  Define GL_LIB.
75625
75626 2004-09-14  Karl Berry  <karl@gnu.org>
75627
75628         * config/srclist.txt: unsync setenv.c, sigh.
75629
75630 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75633         Problem reported by Bruno Haible in:
75634         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75635
75636 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * config/srclist.txt: Comment out argp-pvh.c.
75639
75640 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75643         in case some system header has #define'd it.  Problem reported by
75644         Soeren D. Schulze in
75645         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75646
75647 2004-09-09  Karl Berry  <karl@gnu.org>
75648
75649         * regex.[ch]: delete from the root.  These were supposed to be
75650                 synced with emacs cvs, but this has not happened for about
75651                 a year, and anyway nothing else uses emacs regex.[ch].
75652                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75653                 lib/regex[.ch] is untouched.
75654
75655 2004-09-09  Bruno Haible  <bruno@clisp.org>
75656
75657         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75658
75659 2004-09-09  Bruno Haible  <bruno@clisp.org>
75660
75661         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75662         modifications.
75663         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75664
75665 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75666
75667         * modules/xvasprintf: New file.
75668         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75669
75670 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75671
75672         * lib/xvasprintf.h: New file.
75673         * lib/xvasprintf.c: New file.
75674         * lib/xasprintf.c: New file.
75675
75676 2004-09-08  Bruno Haible  <bruno@clisp.org>
75677
75678         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75679
75680 2004-09-08  Bruno Haible  <bruno@clisp.org>
75681
75682         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75683         length is > INT_MAX.
75684         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75685         more.
75686
75687 2004-09-08  Bruno Haible  <bruno@clisp.org>
75688
75689         * lib/stdint_.h: New file, taken from GNU clisp.
75690
75691 2004-09-08  Bruno Haible  <bruno@clisp.org>
75692             Oskar Liljeblad  <oskar@osk.mine.nu>
75693
75694         * modules/stdint: New file.
75695         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75696
75697 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         Import from coreutils.
75700         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75701         strings on unbounded length.  alloca's performance benefits aren't
75702         that important here.
75703         (V_STRDUP): Remove.
75704         (parse_with_separator): New function, with most of the internals
75705         of the old parse_user_spec.  Allow user to omit both user and group,
75706         for compatibility with FreeBSD.
75707         Clone only the user name, not the entire spec.
75708         Do not set *uid, *gid unless entirely successful.
75709         Avoid memory leak in some failing cases.
75710         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75711         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75712         (parse_user_spec): Rewrite to use parse_with_separator.
75713
75714 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75715
75716         * modules/userspec: Don't depend on alloca.
75717
75718 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75721
75722 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75725         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75726         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75727
75728 2004-08-16  Simon Josefsson  <jas@extundo.com>
75729
75730         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75731         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75732         Add --dry-run for --import.
75733         Let user provided command line parameters override configure.ac
75734         settings.
75735
75736 2004-08-12  Simon Josefsson  <jas@extundo.com>
75737
75738         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75739         as discussed with Paul Eggert in threads rooted at
75740         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75741         and
75742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75743         Before, the test was empty, and relied on ELIDE_CODE in source
75744         code.)
75745         (gl_PREREQ_GETOPT): New macro.
75746         (gl_GETOPT): Use them.
75747
75748 2004-08-12  Simon Josefsson  <jas@extundo.com>
75749
75750         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75751         * lib/getopt_.h: Renamed from getopt.h.
75752
75753 2004-08-12  Simon Josefsson  <jas@extundo.com>
75754
75755         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75756         Change default library name from libfoo to libgnu.
75757         Now, if you have a configure.ac that says:
75758                 gl_SOURCE_BASE(gl)
75759                 gl_M4_BASE(gl/m4)
75760                 gl_MODULES(error getopt etcetera)
75761                 gl_INIT
75762         you can import all you need by running:
75763                 ../gnulib/gnulib-tool --import
75764
75765         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75766         (Makefile.am): Rewrite, use logic from argz.
75767         (Include): Use <getopt.h> instead of "getopt.h".
75768
75769 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75770
75771         * modules/argp (Files): Add m4/unlocked-io.m4.
75772         (Depends-on): Add extensions.
75773
75774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75777         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75778         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75779         Check for program_invocation_name, program_invocation_short_name,
75780         flockfile, funlockfile, features.h, _getopt_long_only_r.
75781
75782 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75785         its complicated substitute.
75786         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75787         and program_invocation_name.
75788         (__argp_basename) [!_LIBC]: Remove; the only use was
75789         replaced by its body.
75790         (__argp_short_program_name): Change condition from
75791         !defined __argp_short_program_name to
75792         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75793         to match argp-namefrob.h.
75794         (__argp_failure): Don't assume strerror_r returns char *.
75795         * lib/argp-parse.c (N_): Define unconditionally.
75796         (argp_default_options): Fill out initializers with 0 to avoid
75797         gcc warnings.
75798
75799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75800
75801         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75802         getopt1.c.
75803
75804 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         Merge from coreutils.
75807
75808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75809
75810         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75811         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75812
75813 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         Merge from coreutils.
75816
75817         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75818         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75819         for Reliant Unix 5.43.
75820
75821         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75822         (union fooround): Use uintmax_t, not long int.
75823         The rest is a merge from libc:
75824         [defined _LIBC]: Include <shlib-compat.h>.
75825         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75826
75827         * lib/settime.c (settime): Recode to avoid warning with
75828         Sun Forte C 6U2.
75829
75830         * lib/strverscmp.c: Convert to UTF-8.
75831
75832 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75835         m4/uintmax_t.m4.
75836
75837 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * modules/xalloc-die: New file.
75840         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75841
75842         * modules/md5 (Files): Add m4/uint32_t.m4.
75843         * modules/sha1: Renamed from modules/sha.
75844         (Files):
75845         Rename lib/sha.h to lib/sha1.h.
75846         Rename lib/sha.c to lib/sha1.c.
75847         Rename m4/sha.m4 to m4/sha1.m4.
75848         (lib_SOURCES): Likewise.
75849         (configure.ac): Rename gl_SHA to gl_SHA1.
75850         (Include): sha.h -> sha1.h.
75851
75852 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75855         * m4/sha1.m4: Renamed from sha.m4.
75856         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75857
75858 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * lib/obstack.h (obstack_empty_p):
75861         Don't assume that chunk->contents is suitably aligned.
75862         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75863         Likewise. Problem reported by Benno in
75864         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75865
75866         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75867         readable.  This could be improved further but it'd take some work.
75868
75869 2004-08-08  Simon Josefsson  <jas@extundo.com>
75870
75871         * modules/xgethostname (Depends-on): Remove exit and error (not
75872         used).
75873
75874         * modules/getpass-gnu: Add getpass.h.
75875         (Depends-on): Add stdbool.
75876         * modules/getpass: Add getpass.h.
75877
75878 2004-08-08  Simon Josefsson  <jas@extundo.com>
75879
75880         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75881         Check getpass declaration.
75882
75883 2004-08-08  Simon Josefsson  <jas@extundo.com>
75884
75885         * lib/xgethostname.c: Don't include error.h (not used).
75886
75887         * lib/getpass.h: Add.
75888         * lib/getpass.c: Include getpass.h first.
75889
75890 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * lib/xalloc-die.c: New file.
75893         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75894         All uses removed.
75895         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75896         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75897         xalloc-die.c.
75898         (_, N_, xalloc_die): Move to xalloc-die.c.
75899         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75900         so that we needn't mess with xalloc_msg_memory_exhausted.
75901
75902         * lib/sha1.h: Renamed from sha.h.
75903         (SHA1_H): Renamed from _SHA_H.
75904         (sha1_ctx): Renamed from sha_ctx.
75905         (sha1_init_ctx): Renamed from sha_init_ctx.
75906         (sha1_process_block): Renamed from sha_process_block.
75907         (sha1_process_bytes): Renamed from sha_process_bytes.
75908         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75909         (sha1_read_ctx): Renamed from sha_read_ctx.
75910         (sha1_stream): Renamed from sha_stream.
75911         (sha1_buffer): Renamed from sha_buffer.
75912         * lib/sha1.c: Likewise; renamed from sha.c.
75913         Do not include <sys/types.h>.
75914         Include <stddef.h> rather than <stdlib.h>.
75915
75916 2004-08-08  Bruno Haible  <bruno@clisp.org>
75917
75918         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75919         FILESYSTEM_PREFIX_LEN.
75920         * lib/progreloc.c: Likewise.
75921         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75922
75923 2004-08-06  Simon Josefsson  <jas@extundo.com>
75924
75925         * modules/progname (Depends-on): Don't depend on stdbool.
75926
75927 2004-08-06  Simon Josefsson  <jas@extundo.com>
75928
75929         * modules/getsubopt: New file.
75930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75931         getsubopt.
75932
75933 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         More merge from coreutils.
75936
75937         * m4/utimens.m4, m4/utimecmp.m4: New files.
75938         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75939         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75940         prereq.m4, sha.m4: Import changes from coreutils.
75941
75942 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         More merge from coreutils.
75945         * modules/raise, modules/readtokens0, modules/utimens:
75946         * modules/utimecmp, module/xnanosleep: New files.
75947         * modules/strftime: Add lib/strftime.h.
75948         Change include from <time.h> to "strftime.h".
75949         * modules/yesno: Add lib/yesno.h.
75950         * modules/backupfile: Remove lib/addext.c.
75951         * modules/euidaccess: Add stat-macros.h.
75952         * modules/canonicalize, modules/euidaccess,
75953         modules/filemode, modules/lchown, modules/makepath,
75954         modules/rmdir, modules/stat: Likewise.
75955
75956 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         Merge from tar.
75959         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75960         SIZE_MAX is a valid preprocessor constant.
75961         (__argp_basename): Change from "#ifndef _LIBC"
75962         to "#ifndef __argp_short_program_name", so that
75963         we don't compile these functions for tar.
75964
75965         More merges from coreutils.
75966         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75967         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75968         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75969         * lib/addext.c: Remove; no longer needed.
75970         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75971         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75972         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75973         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75974         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75975         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75976         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75977         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75978         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75979         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75980         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75981         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75982         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75983         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75984         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75985         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75986         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75987         Import changes from coreutils.
75988
75989 2004-08-05  Simon Josefsson  <jas@extundo.com>
75990
75991         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75992
75993 2004-08-05  Simon Josefsson  <jas@extundo.com>
75994
75995         * m4/getsubopt.m4: New file.
75996
75997 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         Merge from coreutils.
76000
76001         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76002         * m4/getcwd-path-max.m4: New files.
76003
76004         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76005         FILESYSTEM_PREFIX_LEN ->
76006         FILE_SYSTEM_PREFIX_LEN.
76007         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76008         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76009         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76010         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76011
76012         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76013         prerequisite modules now handle the DOS stuff.
76014         Don't check for unistd.h.
76015
76016 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         Merge from coreutils.
76019
76020         * lib/.gdb-history: Remove; this doesn't belong here.
76021
76022         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76023         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76024         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76025         * lib/getcwd.c: New files.
76026
76027         * lib/dirname.h: Include <stdbool.h>.
76028         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76029         for consistency with POSIX terminology.  All uses changed.
76030         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76031         (strip_trailing_slashes): Use bool for booleans.
76032         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76033
76034         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76035         sometimes returns a positive errno value even when it succeeds.
76036         (print_errno_message) [!LIBC]: Fall back on strerror if
76037         __strerror_r fails.
76038
76039         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76040         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76041         (longest_relative_suffix): New function.
76042         (path_concat): Use it.  Assume first argument is not NULL.
76043         Port to DOS.  Omit redundant separators.
76044         Report an error instead of returning NULL.
76045         Use mempcpy instead of memcpy.
76046         (xpath_concat): Remove: not declared or used.
76047
76048         * lib/same.h: Include <stdbool.h>
76049         (same_name): Return bool, not int.
76050         * lib/same.c (same_name): Likewise.
76051         (errno): Don't declare; we assume C89 or better now.
76052
76053         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76054         if not already defined.
76055
76056         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76057         * lib/dup-safer.c (errno): Likewise.
76058
76059 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         Merge from coreutils.
76062         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76063         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76064         * modules/path-concat: Don't depend on strdup.
76065
76066 2004-08-03  Simon Josefsson  <jas@extundo.com>
76067
76068         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76069         * lib/progname.h: Don't include stdbool.h.
76070
76071 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76074         * MODULES.html.sh (func_all_modules): Remove fatal.
76075
76076 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76079
76080 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76083         working.
76084
76085 2004-08-02  Simon Josefsson  <jas@extundo.com>
76086
76087         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76088         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76089         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76090
76091 2004-08-01  Simon Josefsson  <jas@extundo.com>
76092
76093         * lib/xgetdomainname.c: Include stdlib.h, for free().
76094
76095 2004-07-19  Bruno Haible  <bruno@clisp.org>
76096
76097         * MODULES.html.sh (func_all_modules): Add dummy.
76098
76099 2004-07-16  Simon Josefsson  <jas@extundo.com>
76100
76101         * modules/dummy: New file.
76102
76103 2004-07-16  Simon Josefsson  <jas@extundo.com>
76104
76105         * lib/dummy.c: New file.
76106
76107 2004-07-16  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/backupfile.h: Add extern "C" for C++.
76110         * lib/closeout.h: Likewise.
76111         * lib/copy-file.h: Likewise.
76112         * lib/findprog.h: Likewise.
76113         * lib/full-write.h: Likewise.
76114         * lib/pathname.h: Likewise.
76115         * lib/progname.h: Likewise.
76116         * lib/stpcpy.h: Likewise.
76117         * lib/stpncpy.h: Likewise.
76118         * lib/strcase.h: Likewise.
76119         * lib/strstr.h: Likewise.
76120         * lib/xalloc.h: Likewise.
76121
76122         * lib/mbswidth.h: Add extern "C" for C++.
76123         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76124
76125 2004-07-13  Robert Millan  <robertmh@gnu.org>
76126
76127         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76128
76129 2004-07-09  Simon Josefsson  <jas@extundo.com>
76130
76131         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76132         failed without this.)
76133
76134 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         * modules/chown (Files): Add lib/fchown-stub.c, since
76137         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76138
76139 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * lib/fchown-stub.c: New file.
76142
76143 2004-06-24  Jim Meyering  <jim@meyering.net>
76144
76145         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76146
76147 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * modules/argz: Omit "#include".
76150
76151         * MODULES.html.sh (func_all_modules): Add calloc, to match
76152         2004-06-01 addition of calloc module.
76153
76154 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76155
76156         * m4/argz.m4: New file, which is autoupdated from libtool.
76157
76158 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76161         libtool.
76162
76163 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76164
76165         * config/srclist-update: Don't insist on "USA." before the
76166         close-comment, as libtool omits the period and puts the */ on a
76167         separate line.
76168         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76169         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76170
76171 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76172
76173         * modules/argz: New file.
76174         * MODULES.html.sh (func_all_modules): Add argz.
76175
76176 2004-06-12  Jim Meyering  <jim@meyering.net>
76177         and  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * modules/hash (Files): Add lib/xalloc.h.
76180         * modules/pipe (Depends-on): Add wait-process.
76181         * modules/stat (Depends-on): Add xalloc.
76182         * modules/userspec (Files): Add lib/userspec.h.
76183         * modules/xstrto
76184
76185         Upgrade from gettext-0.13.
76186         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76187         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76188         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76189
76190 2004-06-10  Jim Meyering  <jim@meyering.net>
76191
76192         * lib/calloc.c: New file.
76193
76194 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * lib/getdate.y (yylex): Allow space between sign and number.
76197         Problem reported by Dan Jacobson.
76198
76199 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         Merge from coreutils CVS.
76202
76203         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76204         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76205         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76206         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76207         xstrtol.m4: Fix copyright date and/or serial number.
76208
76209         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76210         See if we need an fchown replacement.
76211         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76212         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76213         and use the replacement function if we detect either defect.
76214
76215         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76216         gl_UTIMECMP.
76217
76218 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76219         and  Jim Meyering  <jim@meyering.net>
76220
76221         Merge from coreutils CVS.
76222
76223         * lib/stat-macros.h: New file, with contents from file-type.h
76224         and coreutils' system.h.
76225         * lib/file-type.c: Include "stat-macros.h".
76226         * lib/file-type.h (file_type): Move all macro definitions to new file,
76227         stat-macros.h.
76228
76229         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76230         Wrap old code with this conditional.
76231         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76232         function that does not dereference symlinks.
76233         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76234
76235         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76236         dependency problems.
76237         (xreadlink): Accept new arg SIZE, for efficiency.
76238         All decls and uses changed.
76239         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76240
76241         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76242         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76243
76244         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76245         sysexits.h.
76246
76247 2004-06-01  Jim Meyering  <jim@meyering.net>
76248
76249         * m4/calloc.m4: New file.
76250
76251 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76254         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76255         Also, fix a typo in a diagnostic.
76256
76257 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76258
76259         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76260         or AC_FUNC_REALLOC.
76261
76262 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76265         macros to be defined.
76266         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76267         the allocator returns NULL because the requested size is zero.
76268
76269 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76270
76271         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76272         var.  Add comment explaining why libc still defines it.  This
76273         merges the following patch from glibc:
76274         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76275
76276 2004-05-20  Andreas Schwab  <schwab@suse.de>
76277
76278         * m4/free.m4: Replace free if it not known to work, not the other
76279         way round.
76280
76281 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76284         present in glibc since revision 1.1 of this file.
76285         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76286         obstack_alignment_mask, obstack_alloc, obstack_base,
76287         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76288         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76289         obstack_grow0, obstack_init, obstack_int_grow,
76290         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76291         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76292         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76293         nonexistent functions.
76294
76295 2004-05-18  Karl Berry  <karl@gnu.org>
76296
76297         * config/srclist.txt: break link for vasnprintf.c.
76298
76299 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         Port obstack to the AS/400, where pointers are 16 bytes wide and
76302         you cannot cast an integer to a valid pointer.  This patch is
76303         currently waiting to be integrated into glibc; see
76304         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76305
76306         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76307         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76308         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76309         (struct obstack): temp member is now a union of a pointer and
76310         an integer, instead of an integer.  All integer uses changed.
76311         This does not affect the physical layout of struct obstack,
76312         except on hosts (like the AS/400) where the size or alignment of
76313         void * is greater than that of ptrdiff_t.
76314         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76315         __STDC__)]: Store temporary in pointer member of union, not
76316         integer member.
76317         * lib/obstack.c: Include <stddef.h>, for offsetof.
76318         (struct fooalign): Remove; it doesn't need a name.
76319         (union fooround): Change double to long double, and add void *.
76320         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76321         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76322         not a macro.  Hence the values are always int; so remove all
76323         casts-to-int in uses.
76324
76325 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76328         we can get this patch merged into glibc.
76329
76330 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76331             Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * m4/argp: Depend on alloca.
76334
76335 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76336             Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76339         freecoding.
76340
76341 2004-05-17  Bruno Haible  <bruno@clisp.org>
76342
76343         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76344         precision that consists of a '.' followed by an empty digit string.
76345         Patch by Tor Lillqvist <tml@iki.fi>.
76346
76347 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76350         for backward compatibility with older code.  We need our own
76351         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76352         it under some other name, and our alloca.h will define it.
76353
76354 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76355             Derek Price  <derek@ximbiot.com>
76356
76357         * lib/alloca.c: Include <alloca.h>, to get our interface.
76358         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76359         include <alloca.h> first.  Use C89 prototype for alloca; this
76360         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76361         Use #elif for simplicity, since we can assume C89 now.
76362         Don't try to source the system alloca.h since it will not be found
76363         and to prevent recursively including its replacement.
76364         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76365         * lib/regex.c: Likewise.
76366
76367 2004-05-16  Derek Price  <derek@ximbiot.com>
76368             Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         getline cleanup.  This changes the getndelim2 API: both order of
76371         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76372         no delimiter).
76373
76374         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76375         interface does that.
76376         (getline): Always use getdelim, so that we don't have two
76377         copies of this code.
76378         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76379         if available.
76380         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76381         (GETNDELIM2_MAXIMUM): New macro.
76382         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76383         instead of the old practice of delim2==0.  All callers changed.
76384         Return -1 on overflow, instead of returning junk.
76385         Do not set *linesize unless allocation succeeds.
76386         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76387         that we include sys/types.h.
76388         * lib/getnline.h: Likewise.
76389         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76390         (getndelim2): Reorder arguments.
76391         * lib/getnline.c (getnline, getndelim):
76392         Don't discard the NMAX argument.
76393         (getnline): Invoke getndelim, to avoid code duplication.
76394         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76395         of (size_t) -1 by callers of the getnline family.
76396
76397 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76398
76399         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76400         Check for gettimeofday.
76401         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76402         Check for settimeofday, stime.
76403
76404 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         * lib/nanosleep.c (suspended): Change its type from int to
76407         sig_atomic_t volatile.
76408         (first_call): Make it private to rpl_nanosleep, and have it
76409         be zero initially as that's a bit faster.
76410         (my_usleep): Round up fractional times instead of truncating them,
76411         as this is the usual meaning for 'sleep'.
76412
76413         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76414         doesn't work.
76415         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76416         (ENOSYS): Define if not defined.
76417         (settime): Fall back on stime if it exists and settimeofday fails.
76418         But don't bother with fallbacks if a method fails with errno == EPERM.
76419
76420 2004-05-11  Jim Meyering  <jim@meyering.net>
76421
76422         Prior to this change, the save_cwd caller required read access to the
76423         current directory on most systems (ones with the fchdir function).
76424
76425         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76426         fails, try write-only, and finally, resort to using xgetcwd.
76427
76428 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         * lib/obstack.c, obstack.h: Import changes from libc.
76431
76432 2004-04-28  Bruno Haible  <bruno@clisp.org>
76433
76434         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76435         also implicitly appends .exe to executables.
76436         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76437         accepts Windows pathnames.
76438         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76439         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76440         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76441         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76442         Reported by Derek Robert Price <derek@ximbiot.com>.
76443
76444 2004-04-21  Karl Berry  <karl@gnu.org>
76445
76446         * config/srclist.txt (localcharset.c): break sync.
76447
76448 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76449
76450         * m4/host-os.m4: Add a copyright notice.
76451
76452 2004-04-20  Jim Meyering  <jim@meyering.net>
76453
76454         Change UTILS_ to gl_ in AC_DEFINE'd names.
76455         Change utils_- and jm_-prefixed variables, too.
76456         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76457         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76459
76460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76461         Don't emit trailing blanks.
76462         Also rename jm_-prefixed variables to have gl_ prefix.
76463
76464         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76465         Also rename jm_-prefixed variables to have gl_ prefix.
76466
76467         * m4/jm-macros.m4: Reflect the renamings.
76468         * m4/prereq.m4: Likewise.
76469
76470 2004-04-20  Jim Meyering  <jim@meyering.net>
76471
76472         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76473         memory.
76474
76475 2004-04-20  Jim Meyering  <jim@meyering.net>
76476             Bruno Haible  <bruno@clisp.org>
76477
76478         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76479         memory when realloc fails.
76480
76481 2004-04-19  Jim Meyering  <jim@meyering.net>
76482
76483         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76484         now that readutmp.c may call `free (0)'.
76485
76486 2004-04-19  Bruno Haible  <bruno@clisp.org>
76487
76488         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76489         * m4/inttypes_h.m4: Likewise.
76490         * m4/stdint_h.m4: Likewise.
76491         * m4/intmax_t.m4: Likewise.
76492         * m4/uintmax_t.m4: Likewise.
76493
76494 2004-04-18  Jim Meyering  <jim@meyering.net>
76495
76496         * m4/prereq.m4: Don't forbid jm_ prefix.
76497
76498         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76499         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76500         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76501         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76502         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76503         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76504         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76505         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76506         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76507         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76508         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76509         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76510         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76511         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76512         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76513         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76514         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76515         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76516         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76517
76518 2004-04-18  Jim Meyering  <jim@meyering.net>
76519
76520         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76521         failure, don't leak memory and do call END_UTMP_ENT.
76522
76523 2004-04-16  Jim Meyering  <jim@meyering.net>
76524
76525         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76526         coreutils' stat program.
76527         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76528
76529 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76530
76531         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76532         C89.
76533         (CHAR_BIT): Remove, since we assume C89.
76534         Include <stdint.h> if available, as per current Autoconf CVS advice.
76535
76536 2004-03-31  Jim Meyering  <jim@meyering.net>
76537
76538         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76539         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76540         * m4/xalloc.m4: Likewise.
76541
76542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76543
76544         Merge from coreutils.
76545
76546         * m4/inttostr.m4: New file.
76547         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76548         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76549         Require gl_CLOCK_TIME.
76550         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76551
76552 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76553
76554         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76555         not bool, to be more consistent with Unix conventions.
76556         Suggested by Bruno Haible.
76557
76558         Merge from coreutils.
76559
76560         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76561         * lib/umaxtostr.c: New files.
76562
76563         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76564         the usual <time.h> dance.
76565         (get_date): Change signature to support fractional time stamps.
76566         All callers changed.
76567         * lib/getdate.y: Include "getdate.h" first, as we can now
76568         assume C89 and don't need to worry about 'const'.
76569         Similarly, include "unlocked-io.h" near start, not in middle.
76570         Include <limits.h>.
76571         (textint.value): Use long int rather than int.
76572         (textint.digits): Use size_t rather than int.
76573         (BILLION, LOG10_BILLION): New constants.
76574         (parser_control): New member rel_ns.  Members day_ordinal,
76575         time_zone, month, day, hour, minutes, rel_year, rel_month,
76576         rel_day, rel_hour, rel_minutes, rel_seconds
76577         are now long int, not int.  Member seconds is now struct timespec,
76578         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76579         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76580         not int.
76581         (%union.intval): Now long int, not int.
76582         New member timespec.
76583         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76584         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76585         (spec): Now is a timespec or an item list.
76586         (timespec, items): New nonterminals.
76587         (time, rel, relunit, number, get_date):
76588         Add support for fractional seconds.
76589         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76590         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76591         (to_hour): First arg is now long int, not int.
76592         (to_year): Returns long int, not int.
76593         Don't treat year -70 like 70.
76594         (tm_diff): Returns long int, not int.
76595         (lookup_word): Use bool instead of int when appropriate.
76596         (yylex): Use size_t for count, not int.
76597         Detect overflow when parsing large integer constants.
76598         Add support for fractions.
76599         (get_date): Make pointers 'const' if possible.
76600         Use more-portable code to detect integer overflow.
76601         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76602         Don't use ctime; it's not reliable if the year has >4 digits.
76603
76604         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76605         This is for compatibility with BSD.
76606
76607         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76608         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76609         From coreutils' system.h.
76610
76611         * lib/userspec.c: Don't include "posixver.h".
76612         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76613         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76614         compatible extension.  Simplify code by removing a boolean int
76615         that was always nonzero if a string was nonnull.
76616
76617 2004-03-30  Jim Meyering  <jim@meyering.net>
76618
76619         Merge from coreutils.
76620
76621         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76622         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76623         on some systems one must include <grp.h> before it.
76624         Reported by Christian Krackowizer.
76625
76626 2004-03-30  Jim Meyering  <jim@meyering.net>
76627
76628         Merge from coreutils.
76629
76630         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76631
76632         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76633         an empty input stream.
76634
76635         * lib/readtokens.c: Include <stdbool.h>.
76636         (readtoken): Use `size_t' rather than int/long.
76637         All callers adjusted.
76638         Use `bool' rather than `int' where appropriate.
76639         Use memset rather than an explicit loop.
76640         Use x2nrealloc rather than xrealloc.
76641         Allow the use of `\0' as a delimiter.
76642         (readtokens): Likewise.
76643         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76644
76645 2004-03-30  Jim Meyering  <jim@meyering.net>
76646
76647         * m4/realloc.m4: Remove file, since now it does no more than
76648         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76649         the `configure.ac' section of module/realloc.
76650         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76651
76652 2004-03-30  Bruno Haible  <bruno@clisp.org>
76653
76654         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76655         nonnull.
76656
76657 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76658
76659         Merge changes to getloadavg.c from coreutils and Emacs.
76660
76661         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76662         Define to an expression, not to the empty string.
76663         Include cloexec.h and xalloc.h.
76664         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76665         Use set_cloexec_flag rather than rolling our own.
76666         * lib/cloexec.c, lib/cloexec.h: New files.
76667
76668 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76669
76670         * m4/cloexec.m4: New file.
76671
76672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76673
76674         * lib/getopt.h: Sync with libc CVS.
76675
76676 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76677             Bruno Haible  <bruno@clisp.org>
76678
76679         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76680         mbswidth.
76681
76682 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76683             Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/mbswidth.h: Include <wchar.h> only if
76686         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76687         <wchar.h>.
76688         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76689
76690 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76691
76692         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76693         Sync with libc CVS.
76694         * lib/getopt_int.h: New file, also synced from libc.
76695
76696 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76697
76698         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76699         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76700         Bring back getopt.c, getopt.h, getopt1.c.
76701
76702 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76703
76704         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76705         All uses changed.  Check for sa_sigaction member; this fixes
76706         a bug first reported by Jason Andrade in
76707         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76708
76709 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76710
76711         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76712         '#if' expressions.  Unlike the code it replaces, it does not
76713         depend on (defined _SC_PAGESIZE).  However, it does depend on
76714         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76715         first reported by Jason Andrade in
76716         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76717
76718 2004-02-25  Simon Josefsson  <jas@extundo.com>
76719
76720         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76721
76722 2004-02-25  Simon Josefsson  <jas@extundo.com>
76723
76724         * lib/strdup.h: New file.
76725         * lib/strdup.c: Include it.
76726         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76727         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76728
76729 2004-02-23  Karl Berry  <karl@gnu.org>
76730
76731         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76732         (from fencepost.gnu.org:/gd/gnuorg).
76733
76734 2004-02-23  Karl Berry  <karl@gnu.org>
76735
76736         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76737         * config/srclist.txt: add maintain/standards documents.
76738
76739 2004-02-18  Bruno Haible  <bruno@clisp.org>
76740
76741         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76742         Reported by Derek Robert Price <derek@ximbiot.com>.
76743
76744 2004-02-16  Karl Berry  <karl@gnu.org>
76745
76746         * config/mkinstalldirs, install-sh: update from automake.
76747
76748 2004-02-06  Karl Berry  <karl@gnu.org>
76749
76750         * m4/po.m4: update from gettext 0.14.1.
76751
76752 2004-02-06  Karl Berry  <karl@gnu.org>
76753
76754         * lib/config.charset: update from gettext 0.14.1.
76755
76756 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76757
76758         Add comments and code, prompted by suggestions from Bruno Haible
76759         for sh-quote.
76760         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76761         describing the enum quoting_style values.
76762         * lib/quotearg.c (quotearg_alloc): New function.
76763         (quotearg_buffer_restyled): Treat lone { and } as special.
76764         Treat = as special.  Work around bug with older shells
76765         that "see" a '\' that is really the 2nd byte of a multibyte char.
76766         Quote empty string with shell_quoting_style.
76767
76768 2004-02-03  Bruno Haible  <bruno@clisp.org>
76769
76770         * m4/pipe.m4: New file, from GNU gettext.
76771
76772 2004-02-03  Bruno Haible  <bruno@clisp.org>
76773
76774         * lib/pipe.h: New file, from GNU gettext.
76775         * lib/pipe.c: New file, from GNU gettext.
76776
76777 2004-01-27  Bruno Haible  <bruno@clisp.org>
76778
76779         * m4/execute.m4: New file, from GNU gettext.
76780
76781 2004-01-27  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/execute.h: New file, from GNU gettext.
76784         * lib/execute.c: New file, from GNU gettext.
76785         * lib/w32spawn.h: New file, from GNU gettext.
76786
76787 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76788
76789         Merge from diffutils.
76790
76791         * lib/file-type.c (file_type): Add typed memory objects.
76792         * lib/file-type.h (S_TYPEISTMO): New macro.
76793
76794         * lib/c-stack.h (c_stack_action): Remove argv argument.
76795         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76796         (die): Don't calculate message unless segv_action returns.
76797         (get_stack_location, min_address_from_argv, max_address_from_argv,
76798         volatile stack_base, volatile_stack_size): Remove.
76799         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76800         that every segmentation violation is a stack overflow.  (Ouch!)
76801         See Debian bug 136249 (still outstanding) for more info about why
76802         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76803
76804 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76805
76806         Exit-status fix from coreutils.
76807
76808         Use exit_failure consistently in place of EXIT_FAILURE,
76809         so that program exit statuses are consistent on failure.
76810
76811         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76812         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76813         * lib/argmatch.h: Comment fix to match the above.
76814         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76815         Now a macro referring to exit_failure, instead of a separate
76816         variable.  Include "exitfail.h" to get it.
76817         * lib/xstrtol.h: Include "exitfail.h".
76818         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76819
76820         * lib/long-options.c (parse_long_options): Use prototype
76821         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76822         for clarity.
76823
76824 2004-01-21  Jim Meyering  <jim@meyering.net>
76825
76826         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76827         so as not to conflict with a different-sized __mktime_internal
76828         function in GNU libc.
76829         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76830         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76831
76832 2004-01-20  Karl Berry  <karl@gnu.org>
76833
76834         * config/config.guess: update from config.
76835
76836         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76837
76838 2004-01-20  Bruno Haible  <bruno@clisp.org>
76839
76840         Safer stack allocation.
76841         * lib/setenv.c: Include allocsa.h.
76842         (alloca): Remove fallback definition.
76843         (freea): Remove macro.
76844         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76845         instead of freea.
76846
76847 2004-01-20  Bruno Haible  <bruno@clisp.org>
76848
76849         * m4/eealloc.m4: New file, from GNU gettext.
76850
76851 2004-01-20  Bruno Haible  <bruno@clisp.org>
76852
76853         * m4/allocsa.m4: New file, from GNU gettext.
76854
76855 2004-01-20  Bruno Haible  <bruno@clisp.org>
76856
76857         * lib/xallocsa.h: New file, from GNU gettext.
76858         * lib/xallocsa.c: New file, from GNU gettext.
76859
76860 2004-01-20  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76863
76864 2004-01-20  Bruno Haible  <bruno@clisp.org>
76865
76866         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76867         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76868         specially.
76869
76870 2004-01-20  Bruno Haible  <bruno@clisp.org>
76871
76872         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76873         patch.
76874
76875 2004-01-20  Bruno Haible  <bruno@clisp.org>
76876
76877         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76878
76879 2004-01-20  Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/eealloc.h: New file.
76882
76883 2004-01-20  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/binary-io.h: Avoid warnings on Cygwin.
76886
76887 2004-01-20  Bruno Haible  <bruno@clisp.org>
76888
76889         * lib/allocsa.h: New file, from GNU gettext.
76890         * lib/allocsa.c: New file, from GNU gettext.
76891
76892 2004-01-18  Karl Berry  <karl@gnu.org>
76893
76894         * doc/gpl.texi, doc/lgpl.texi: new files.
76895
76896 2004-01-18  Karl Berry  <karl@gnu.org>
76897
76898         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76899         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76900
76901 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76902
76903         Merge from coreutils.
76904
76905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76906         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76907         (gl_DEFAULT_POSIX2_VERSION): Move
76908         the documentation from 'configure' into 'config.hin',
76909         so that 'configure --help' isn't burdened by it and
76910         we don't have to worry about its formatting there.
76911         Reword the documentation so that it's more succinct
76912         and can be run together into a single paragraph.
76913         * m4/same.m4 (gl_SAME): Check for pathconf.
76914
76915 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76916
76917         Merge from coreutils.
76918
76919         * lib/posixver.c: Include posixver.h.
76920
76921         * lib/same.c: Include <stdbool.h>, <limits.h>.
76922         (_POSIX_NAME_MAX): Define if not defined.
76923         (MIN): New macro.
76924         (same_name): If file names are silently truncated, report
76925         that the file names are the same if they are the same after
76926         the silent truncation.
76927
76928         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76929         conversion function.
76930         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76931         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76932         longer needed.
76933
76934 2004-01-15  Jim Meyering  <jim@meyering.net>
76935
76936         Merge from coreutils.
76937
76938         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76939         if no library is required.
76940         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76941         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76942         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76943         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76944         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76945         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76946         value, $ac_cv_search_crypt, if it's "none required".
76947         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76948         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76949         not gl_FUNC_GETLOADAVG.
76950         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76951         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76952
76953 2004-01-15  Jim Meyering  <jim@meyering.net>
76954
76955         Merge from coreutils.
76956
76957         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76958         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76959         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76960
76961         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76962         optional configure-time default.
76963
76964         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76965
76966         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76967
76968 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76969
76970         Merge from coreutils.
76971
76972         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76973         value, $ac_cv_search_nanosleep, if it's "none required".
76974
76975 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76976
76977         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76978         with like-named macro in fnmatch.c.
76979         (EXT): Use an internal constant instead.
76980
76981         Merge fnmatch patches from glibc.
76982         * lib/fnmatch.c (mbsinit): Remove define.
76983         Add libc_hidden_ver (__fnmatch, fnmatch).
76984         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76985         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76986
76987 2004-01-14  Karl Berry  <karl@gnu.org>
76988
76989         * config/install-sh: update from automake.
76990
76991 2004-01-13  Karl Berry  <karl@gnu.org>
76992
76993         * config/install-sh: update from automake.
76994
76995 2004-01-09  Karl Berry  <karl@gnu.org>
76996
76997         * config/install-sh: update from automake.
76998
76999 2004-01-05  Karl Berry  <karl@gnu.org>
77000
77001         * config/config.{sub,guess}: update from config.
77002
77003 2003-12-31  Karl Berry  <karl@gnu.org>
77004
77005         * config/depcomp: update from automake.
77006
77007 2003-12-14  Karl Berry  <karl@gnu.org>
77008
77009         * lib/config.charset: update from gettext-runtime.
77010
77011 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77012
77013         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77014         Bug reported by Alfred M. Szmidt.
77015
77016 2003-12-03  Bruno Haible  <bruno@clisp.org>
77017
77018         * m4/gettext.m4: Upgrade from gettext-0.13.
77019         * m4/po.m4: Upgrade from gettext-0.13.
77020         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77021         * m4/intmax.m4: New file, from gettext-0.13.
77022         * m4/printf-posix.m4: New file, from gettext-0.13.
77023
77024 2003-11-29  Karl Berry  <karl@gnu.org>
77025
77026         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77027
77028 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77029             Bruno Haible  <bruno@clisp.org>
77030
77031         * lib/printf-parse.h: Don't include sys/types.h.
77032         (ARG_NONE): New macro.
77033         (char_directive): Change type of *arg_index fields to size_t.
77034         * lib/printf-parse.c: Don't include sys/types.h.
77035         (SSIZE_MAX): Remove macro.
77036         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77037         Remove unnecessary overflow check.
77038         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77039         fields.
77040
77041 2003-11-25  Bruno Haible  <bruno@clisp.org>
77042
77043         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77044
77045 2003-11-25  Bruno Haible  <bruno@clisp.org>
77046
77047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77048         gt_TYPE_SSIZE_T.
77049
77050 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77051
77052         * modules/alloca: Remove dependency on xalloc.
77053
77054 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77055
77056         * lib/alloca.c: Remove dependency on xalloc module.
77057         (xalloc_die): Remove.
77058         (memory_full) [!defined emacs]: New macro.
77059         [!defined emacs]: Don't include xalloc.h.
77060         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77061         address arithmetic overflows.  Change datatypes a bit to avoid
77062         unnecessary casts.
77063
77064 2003-11-22  Jim Meyering  <jim@meyering.net>
77065
77066         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77067         s/size/size_t/.
77068
77069 2003-11-21  Karl Berry  <karl@gnu.org>
77070
77071         * config/config.{sub,guess}: update from config.
77072
77073 2003-11-18  Karl Berry  <karl@gnu.org>
77074
77075         * config/config.{sub,guess}: update from config.
77076
77077         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77078
77079 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77080
77081         * README: Mention that S+T cannot overflow if S is the size of
77082         an existing object and T is sufficiently small.
77083
77084 2003-11-17  Jim Meyering  <jim@meyering.net>
77085
77086         On systems without utime and without a utimes function capable of
77087         dealing with a NULL struct utimbuf* argument, this utime replacement
77088         could -- in unusual circumstances -- leak a file descriptor.
77089         * lib/utime.c: Include <unistd.h> and <errno.h>.
77090         (utime_null): Be sure to close `fd' and to preserve errno.
77091         Reported by Geoff Collyer via Arnold Robbins.
77092
77093 2003-11-17  Bruno Haible  <bruno@clisp.org>
77094
77095         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77096         (Depends-on): Add xsize.
77097
77098 2003-11-17  Bruno Haible  <bruno@clisp.org>
77099
77100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77101
77102 2003-11-17  Bruno Haible  <bruno@clisp.org>
77103
77104         * lib/vasnprintf.c (alloca): Remove fallback definition.
77105         (freea): Remove definition.
77106         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77107         Reported by Paul Eggert.
77108
77109 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77110             Bruno Haible  <bruno@clisp.org>
77111
77112         Protect against address arithmetic overflow.
77113         * lib/printf-args.h: Include stddef.h.
77114         (arguments): Change type of field 'count' to size_t.
77115         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77116         'unsigned int' where appropriate.
77117         * lib/printf-parse.h: Include sys/types.h.
77118         (char_directive): Change type of *arg_index fields to ssize_t.
77119         (char_directives): Change type of fields 'count', max_*_length to
77120         size_t.
77121         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77122         (SSIZE_MAX): Define fallback value.
77123         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77124         instead of 'int' where appropriate. Check a_allocated, d_allocated
77125         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77126         * lib/vasnprintf.c: Include xsize.h.
77127         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77128         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77129         overflow. Avoid wraparound when converting a width or precision from
77130         decimal to binary.
77131
77132 2003-11-16  Bruno Haible  <bruno@clisp.org>
77133
77134         Update from GNU gettext.
77135         * lib/printf-parse.c: Generalize to it can be compiled for wide
77136         strings.
77137         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77138         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77139         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77140         SNPRINTF): New macros.
77141         Don't include <alloca.h> if the file is used inside libintl.
77142         (local_wcslen): New function, for Solaris 2.5.1.
77143         (VASNPRINTF): Use it instead of wcslen.
77144
77145 2003-11-16  Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/xsize.h (xmax): New function.
77148         (xsum, xsum3, xsum4): Declare as "pure" functions.
77149
77150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77151
77152         * modules/xalloc (Files): Undo latest change, since xalloc.h
77153         no longer needs SIZE_MAX or PTRDIFF_MAX.
77154
77155 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77156
77157         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77158         gl_PTRDIFF_MAX.
77159
77160 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77161
77162         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77163         "return", to pacify some unknown compiler.  Problem reported
77164         by Joerg Schilling.
77165
77166 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77167
77168         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77169         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77170         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77171         heuristic is just as accurate as far as we know, and it removes a
77172         dependency on size_max.m4 and ptrdiff_max.m4.
77173
77174 2003-11-11  Bruno Haible  <bruno@clisp.org>
77175
77176         * modules/xsize (Files): Add m4/size_max.m4.
77177         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77178
77179 2003-11-11  Bruno Haible  <bruno@clisp.org>
77180
77181         * m4/size_max.m4: New file.
77182         * m4/ptrdiff_max.m4: New file.
77183         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77184         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77185         (gl_XALLOC): Invoke it.
77186
77187 2003-11-11  Bruno Haible  <bruno@clisp.org>
77188
77189         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77190         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77191         defined.
77192
77193 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77194
77195         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77196         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77197         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77198         From Bruno Haible.
77199         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77200         not (size_t) -1, since it's defined here.
77201
77202 2003-11-09  Karl Berry  <karl@gnu.org>
77203
77204         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77205
77206 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77207
77208         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77209         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77210         Reject sizes of exactly SIZE_MAX bytes.
77211         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77212         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77213
77214 2003-11-05  Bruno Haible  <bruno@clisp.org>
77215
77216         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77217         SIZE_MAX defined in <limits.h> on Solaris.
77218
77219 2003-11-04  Jim Meyering  <jim@meyering.net>
77220
77221         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77222         variable names, rather than @VAR@.
77223         * modules/poll: Likewise.
77224
77225 2003-11-04  Bruno Haible  <bruno@clisp.org>
77226
77227         * modules/xsize: New file.
77228         * modules/linebreak: Depend on xsize.
77229         * MODULES.html.sh (func_all_modules): Add xsize.
77230
77231 2003-11-04  Bruno Haible  <bruno@clisp.org>
77232
77233         * m4/xsize.m4: New file.
77234
77235 2003-11-04  Bruno Haible  <bruno@clisp.org>
77236
77237         * lib/xsize.h: New file.
77238         * lib/linebreak.c: Include xsize.h.
77239         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77240         argument for overflow.
77241         Suggested by Paul Eggert.
77242
77243 2003-11-03  Karl Berry  <karl@gnu.org>
77244
77245         * config/config.{guess,sub}: update from config.
77246
77247 2003-11-03  Jim Meyering  <jim@meyering.net>
77248
77249         * modules/userspec (lib_SOURCES): Add userspec.h.
77250         (Include): Add "userspec.h".
77251         Improve description.
77252
77253 2003-11-03  Jim Meyering  <jim@meyering.net>
77254
77255         * lib/userspec.c: Include "userspec.h".
77256         * lib/userspec.h: New file.
77257
77258 2003-11-03  Bruno Haible  <bruno@clisp.org>
77259
77260         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77261
77262 2003-11-03  Bruno Haible  <bruno@clisp.org>
77263
77264         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77265         available, to avoid (extremely rare) race condition.
77266         Suggested by Paul Eggert.
77267
77268 2003-11-02  Karl Berry  <karl@gnu.org>
77269
77270         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77271
77272 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77273
77274         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77275         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77276         (read_filesystem_list): Set and use me_type_malloced.
77277         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77278         whatever the type happens to be), for brevity and consistency.
77279         Check for size calculation overflow on Alphas running OSF/1.
77280
77281 2003-10-31  Jim Meyering  <jim@meyering.net>
77282
77283         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77284
77285         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77286
77287 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77288             Bruno Haible  <bruno@clisp.org>
77289
77290         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77291         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77292
77293 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77296         netbsd*-gnu*.  Suggested by Robert Millan.
77297
77298 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77299
77300         * modules/group-member: Depend on stdbool.
77301
77302 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77303
77304         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77305
77306 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77307
77308         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77309         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77310         after the 'gnu' in these cases.  This fixes some bugs in the
77311         previous change, and is based on suggestions by Robert Millan.
77312
77313 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77314
77315         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77316         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77317         no longer needed.
77318         * lib/quotearg.c (quotearg_n_options): Use it.
77319         * lib/group-member.c: Include <stdbool.h>.
77320         (free_group_info): Arg is now const *; don't free arg.
77321         (get_group_info): Now returns bool and accepts struct group_info *,
77322         rather than returning a malloc'ed struct group_info *.
77323         All uses changed.  Check for overflow in internal size calculation.
77324
77325         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77326         rather than xmalloc/xrealloc.
77327         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77328         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77329         conformance bug: the old code used a pointer after freeing the
77330         storage that it addressed.
77331         * lib/hash.c (hash_initialize): Simplify the code by using
77332         xalloc_oversized rather than doing it by hand.
77333         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77334         the buffer preserved.  Use free and xmalloc instead.
77335         * lib/quotearg.c (quotearg_n_options): Likewise.
77336         Use a simpler test for size overflow.  Don't use xalloc_oversized
77337         because unsigned int might be wider than size_t (!); this suggests
77338         that we should switch from unsigned int to size_t for slot numbers.
77339
77340 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77341
77342         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77343         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77344         NetBSD kernels.  Requested by Richard Stallman.
77345
77346 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77347
77348         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77349         to allocate the returned structure.  Do not allocate a subarray,
77350         as x2nrealloc will do that.
77351         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77352         instead of xnrealloc.
77353         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77354
77355 2003-10-27  Bruno Haible  <bruno@clisp.org>
77356
77357         * lib/stdbool_.h: Better support for BeOS.
77358
77359 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77360
77361         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77362         now uses inline.
77363
77364 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77365
77366         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77367         callers that want to do their own size-overflow checking.  Include
77368         <stdbool.h>, since xalloc_oversized returns bool.
77369         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77370         to use xalloc_oversized.
77371
77372         Add two functions x2realloc, x2nrealloc, for programs that grow
77373         arrays dynamically by doubling their sizes.
77374         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77375         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77376         New functions.
77377
77378         Port to C99 semantics for 'inline' of external functions.
77379         Bug reported by Bruno Haible.
77380         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77381         with the old contents of xnmalloc.
77382         (xnmalloc, xmalloc): Use it.
77383         (xnrealloc_inline): New static inline function,
77384         with the old contents of xnrealloc.
77385         (xnrealloc, xrealloc): Use it.
77386
77387         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77388         that.
77389
77390 2003-10-26  Karl Berry  <karl@gnu.org>
77391
77392         * config/srclist.txt (COPYING.DOC): no longer available from
77393         /gd/gnuorg; don't know where the ultimate source is.
77394
77395 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77396
77397         Fix several address-calculation bugs in the hash modules,
77398         plus some minor code cleanup.
77399
77400         * lib/hash.h: Include <stdbool.h>, for bool.
77401         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77402         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77403         hash_get_n_entries, hash_get_max_bucket_length,
77404         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77405         hash_rehash): Use size_t rather than unsigned.
77406         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77407         hash_get_n_buckets_used, hash_get_n_entries,
77408         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77409         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77410         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77411         Likewise.
77412         (SIZE_MAX): Define if not defined.
77413         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77414         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77415         hash_print):
77416         Use const * when possible.
77417         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77418         (check_tuning): Fix bug: if tuning parameters were very close to
77419         0 or 1, rounding errors could have caused subscript violations.
77420         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77421         (hash_initialize): Add 'fail:' label
77422         to free table and return NULL, and use it to simplify code.
77423         Use calloc rather than clearing the storage ourself.
77424         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77425         buffer size calculations.
77426         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77427         Include <stddef.h>, for size_t.
77428         * lib/hash-pjw.c (hash_pjw): Likewise.
77429         Switch to method described by Bruno Haible.
77430         Include <limits.h>, for CHAR_BIT.
77431         (SIZE_BITS): New macro.
77432
77433 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77434
77435         * m4/getline.m4 (AM_FUNC_GETLINE):
77436         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77437         hosts.  Problem reported by Derek Robert Price in
77438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77439         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77440         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77441
77442 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77443
77444         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77445         ceiling the allocation at NMAX bytes rather than silently
77446         discarding input bytes before NMAX is reached.  This makes
77447         a difference only if NMAX exceeds SIZE_MAX / 2.
77448
77449         * lib/obstack.c: Merge from glibc.
77450         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77451         Add libc_hidden_def (_obstack_newchunk).
77452         (_obstack_free) [! defined _LIBC]: Remove.
77453         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77454         a clone of the function body.
77455         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77456         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77457
77458         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77459         glibc.
77460         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77461         arg to memcpy.
77462
77463         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77464         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77465         Don't use lvalue casts, as GCC plans to remove support for them
77466         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77467         was also present in the non-GCC version, indicating that this
77468         code had always been buggy and had never been widely used.
77469         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77470         Use the fast variant of each macro, rather than copying the
77471         definiens of the fast variant; that way, we'll be more likely to
77472         catch future bugs in the fast variants.
77473
77474 2003-10-20  Bruno Haible  <bruno@clisp.org>
77475
77476         * modules/wait-process: New file.
77477         * MODULES.html.sh (func_all_modules): Add wait-process.
77478
77479 2003-10-20  Bruno Haible  <bruno@clisp.org>
77480
77481         * m4/wait-process.m4: New file.
77482
77483 2003-10-20  Bruno Haible  <bruno@clisp.org>
77484
77485         * lib/wait-process.h: New file, from GNU gettext.
77486         * lib/wait-process.c: New file, from GNU gettext.
77487
77488 2003-10-19  Jim Meyering  <jim@meyering.net>
77489
77490         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77491         HPUX 10.20.
77492
77493 2003-10-18  Karl Berry  <karl@gnu.org>
77494
77495         * config/config.guess: update from config.
77496
77497 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77498
77499         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77500         (getgroups): First arg is int, not size_t.
77501         Don't let 'free' mangle errno.
77502
77503 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77504
77505         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77506
77507 2003-10-16  Karl Berry  <karl@gnu.org>
77508
77509         * config/config.{guess,sub}: update from config.
77510
77511 2003-10-16  Jim Meyering  <jim@meyering.net>
77512
77513         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77514         memcpy.
77515
77516 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77517
77518         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77519         (SIZE_MAX): Remove.
77520         (new_exclude, add_exclude_file): Initial size no longer needs to
77521         be a power of 2.
77522         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77523         our own address arithmetic overflow checking.
77524
77525         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77526         (fnmatch): Do not alloca more than 2000 wide characters;
77527         instead, use malloc for large buffers.
77528         Check for address arithmetic overflow, and return -1
77529         with errno set to ENOMEM in that case.
77530         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77531         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77532         instead, return -1.  Check for address arithmetic overflow.
77533
77534 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77535
77536         Handle invalid suffixes and overflow independently, so that
77537         callers can treat them independently as needed.  Fix some bugs in
77538         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77539         suffix for a human-readable blocksize.  The major caller-visible
77540         change is the addition of a new
77541         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77542         that both overflow and suffix chars were found.
77543
77544         * lib/human.c (humblock): Don't check separately for invalid suffix
77545         char; that is xstrtoumax's job (now that its bug is fixed).
77546         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77547         INTMAX_MAX]: New macros.
77548         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77549         TYPE_MAXIMUM): New macros.
77550         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77551         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77552         if overflow occurs, as it's what __strtol does and it's more useful
77553         in practice.
77554         (__xstrtol): If __strtol reports some error other than ERANGE,
77555         reflect it to the caller as LONGINT_INVALID.  If it reports
77556         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77557         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77558         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77559         value.
77560         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77561         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77562         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77563         [defined UINTMAX_MAX]: New macros.
77564
77565 2003-10-14  Bruno Haible  <bruno@clisp.org>
77566
77567         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77568
77569 2003-10-14  Bruno Haible  <bruno@clisp.org>
77570
77571         * m4/sig_atomic_t: New file, from GNU gettext.
77572         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77573
77574 2003-10-14  Bruno Haible  <bruno@clisp.org>
77575
77576         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77577         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77578         Also use volatile where needed.
77579
77580 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77581
77582         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77583         Change maintainer from Bruno Haible to 'all'.
77584
77585 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77586
77587         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77588
77589 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77590
77591         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77592         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77593         and define in terms of the other primitives.
77594         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77595         (SIZE_MAX): Define if not already defined.
77596         (array_size_overflow): New function.
77597         (xalloc_die): Abort instead of exiting if 'error' returns.
77598         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77599         (xmalloc, xrealloc): Use them.
77600         (xcalloc): Check for address arithmetic overflow.
77601         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77602         a bit faster than strcpy.
77603
77604 2003-10-10  Simon Josefsson  <jas@extundo.com>
77605
77606         * modules/argp (Depends-on): Add restrict and strcase.
77607
77608 2003-10-10  Simon Josefsson  <jas@extundo.com>
77609
77610         * m4/argp.m4: Add AC_C_INLINE.
77611
77612 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77613
77614         Merge getpass from libc, plus a few fixes.
77615
77616         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77617         Include <stdbool.h>.
77618         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77619         __fsetlocking to empty.
77620         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77621         do include <bits/libc-lock.h>.
77622         Do not include <fcntl.h>; not needed.
77623         [_LIBC]: Include <wchar.h>.
77624         (NOTCANCEL_MODE): New macro.
77625         (flockfile, funlockfile) [_LIBC]: New macros.
77626         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77627         [!_LIBC]: New macros.
77628         (call_fclose): New function.
77629         (getpass): Use it.  Save tty stream separately; this simplifies the
77630         code and makes it more reliable if stdin happens to equal stdout.
77631         Invoke __fsetlocking on tty.
77632         Handle thread cancellation if needed.
77633         Namespace cleanup (use __tcgetattr, __getline).
77634         Use bool for Booleans.
77635         [USE_IN_LIBIO]: Handle wide streams.
77636         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77637         stream might go where.
77638
77639         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77640         doesn't have to include <stdio.h> before us.
77641         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77642         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77643         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77644         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77645         if not declared, so that we can use getpass.c code from libc without
77646         rewriting it.
77647         (flockfile, ftrylockfile, funlockfile): New macros.
77648
77649 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77650
77651         * modules/getpass: Depend on stdbool.
77652
77653 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77654
77655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77656
77657 2003-10-07  Karl Berry  <karl@gnu.org>
77658
77659         * config/config.{guess,sub}: update from config.
77660
77661 2003-10-06  Jim Meyering  <jim@meyering.net>
77662             Bruno Haible  <bruno@clisp.org>
77663
77664         This lets translators provide better translations for the
77665         "Written by ..." part of --version output.
77666         * lib/version-etc.h: Include stdarg.h.
77667         (version_etc_copyright): Declare as readonly.
77668         (version_etc): Make this function variadic with a NULL-terminated list
77669         of author name strings.
77670         (version_etc_va): New declaration.
77671         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77672         (version_etc_copyright): Declare as readonly.
77673         (version_etc_va): New function. Provide a different translatable string
77674         for each possible number of authors < 10. Abbreviate when there are 10
77675         authors or more.
77676         (version_etc): Make this function variadic. Call version_etc_va.
77677         Suggestion from Gary V. Vaughan.
77678
77679         * lib/long-options.h (parse_long_options): Change prototype: the
77680         authors string is moved to the end and becomes variadic.
77681         * lib/long-options.c: Include stdarg.h.
77682         (parse_long_options): Make this function variadic, too.
77683         Call version_etc_va, not version_etc.
77684
77685 2003-10-06  Bruno Haible  <bruno@clisp.org>
77686
77687         * modules/version-etc-2: Remove file.
77688         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77689
77690 2003-10-06  Bruno Haible  <bruno@clisp.org>
77691
77692         * modules/fatal-signal: New file.
77693         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77694
77695 2003-10-06  Bruno Haible  <bruno@clisp.org>
77696
77697         * m4/fatal-signal.m4: New file.
77698         * m4/signalblocking.m4: New file, from GNU gettext.
77699
77700 2003-10-06  Bruno Haible  <bruno@clisp.org>
77701
77702         * lib/version-etc-2.h: Remove file.
77703         * lib/version-etc-2.c: Remove file.
77704
77705 2003-10-06  Bruno Haible  <bruno@clisp.org>
77706
77707         * lib/fatal-signal.h: New file, from GNU gettext.
77708         * lib/fatal-signal.c: New file, from GNU gettext.
77709
77710 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77711
77712         * README: Rework advice for preventing empty .o files.
77713         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77714         not <sys/types.h>.
77715
77716 2003-10-04  Karl Berry  <karl@gnu.org>
77717
77718         * lib/argp*: update from libc.
77719
77720 2003-10-04  Karl Berry  <karl@gnu.org>
77721
77722         * config/config.{guess,sub}: update from config.
77723
77724 2003-10-02  Bruno Haible  <bruno@clisp.org>
77725
77726         * modules/lchown (Include): Add lchown.h.
77727         * modules/time_r (Include): Use "..." syntax.
77728         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77729
77730 2003-10-01  Simon Josefsson  <jas@extundo.com>
77731
77732         * MODULES.html.sh (func_all_modules): Move gethostname from section
77733         'based on' to section 'lacking' POSIX:2001.
77734
77735 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77736
77737         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77738         to output mode on the same stream.
77739
77740 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77741
77742         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77743         Fix arg typo in previous patch.
77744
77745 2003-09-28  Jim Meyering  <jim@meyering.net>
77746
77747         * lib/error.c: Correct cpp indentation.
77748
77749 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77750
77751         * modules/free: New file.
77752
77753 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77754
77755         * m4/free.m4: New file.
77756
77757 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77758
77759         * lib/minmax.h (MIN, MAX)
77760         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77761         Omit the special code that used __typeof__, since we worry that
77762         it could be more trouble than it's worth.  See:
77763         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77764         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77765
77766         * lib/free.c: New file.
77767
77768 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77769
77770         Trivial fixes to Makefile.am parts of module listings.
77771         * modules/strstr: Append strstr.h to lib_SOURCES.
77772         * modules/strcase: Likewise, for strcase.h.
77773
77774 2003-09-27  Karl Berry  <karl@gnu.org>
77775
77776         * config/mkinstalldirs: update from automake.
77777
77778 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77779
77780         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77781         (error_tail): Do not loop, reallocating temporary buffer, since
77782         the output cannot contain more wide characters than the input
77783         contains bytes, the size must be big enough already.  This avoids
77784         one potential size overflow calculation.  Check for size overflow
77785         when calculating temporary buffer size.  Free temporary buffer
77786         when done, if it was allocated with malloc; this plugs a memory
77787         leak.  Remove casts from void * to pointers, that are no longer
77788         needed now that we're assuming C89 or better.
77789
77790         Merge error changes from glibc.
77791
77792         * lib/error.c, error.h: Update copyright notice header to match glibc.
77793         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77794         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77795         Disable cancellation while printing error.
77796         * lib/error.h: Prepend __ to parameter names.
77797
77798 2003-09-26  Jim Meyering  <jim@meyering.net>
77799
77800         * lib/error.c (error_tail): Move some declarations
77801         into inner scope where the local variables are used.
77802
77803 2003-09-26  Bruno Haible  <bruno@clisp.org>
77804
77805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77806         stpncpy().
77807         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77808
77809 2003-09-26  Bruno Haible  <bruno@clisp.org>
77810
77811         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77812         (stpncpy): Define as alias for gnu_stpncpy.
77813         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77814
77815 2003-09-25  Simon Josefsson  <jas@extundo.com>
77816
77817         * lib/xgetdomainname.h: New file.
77818         * lib/xgetdomainname.c: New file.
77819
77820 2003-09-25  Simon Josefsson  <jas@extundo.com>
77821             Bruno Haible  <bruno@clisp.org>
77822
77823         * modules/getdomainname: New file.
77824         * modules/xgetdomainname: New file.
77825         * MODULES.html.sh (func_all_modules): Add getdomainname,
77826         xgetdomainname.
77827
77828 2003-09-25  Simon Josefsson  <jas@extundo.com>
77829             Bruno Haible  <bruno@clisp.org>
77830
77831         * m4/getdomainname.m4: New file.
77832
77833 2003-09-25  Simon Josefsson  <jas@extundo.com>
77834             Bruno Haible  <bruno@clisp.org>
77835
77836         * lib/getdomainname.h: New file.
77837         * lib/getdomainname.c: New file.
77838
77839 2003-09-25  Karl Berry  <karl@gnu.org>
77840
77841         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77842
77843 2003-09-25  Karl Berry  <karl@gnu.org>
77844
77845         * config/install-sh: update from automake.
77846
77847 2003-09-25  Bruno Haible  <bruno@clisp.org>
77848
77849         * modules/version-etc-2: New file, from modules/version-etc with
77850         modifications.
77851         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77852
77853 2003-09-25  Bruno Haible  <bruno@clisp.org>
77854
77855         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77856         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77857
77858 2003-09-24  Simon Josefsson  <jas@extundo.com>
77859
77860         * modules/xgethostname: Add xgethostname.h.
77861
77862 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77863
77864         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77865         the buffer associated with the argument.  Bug reported by
77866         Simon Josefsson.
77867
77868 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77869
77870         * README: Document assumptions that 'int' is at least 32 bits
77871         wide, that integer arithmetic is 2's complement without overflow,
77872         that there are no holes in integer values, that adding sizes of
77873         two nonoverlapping objects can't overflow, and that all-bits-zero
77874         yields scalar zero.  Fix spelling and capitalization typos.
77875
77876 2003-09-19  Karl Berry  <karl@gnu.org>
77877
77878         * lib/argp.h: update from libc.
77879
77880 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77881
77882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77883         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77884         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77885
77886 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77887
77888         * gnulib-tool: Use "test -h", not "test -L", for portability
77889         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77890         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77891         (sed_extract_prog): Issue s commands one-by-one, rather than
77892         using \| in one s command.
77893
77894 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77895
77896         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77897         input error, instead of returning NULL the next time we are called
77898         (and therefore losing track of errno).
77899
77900 2003-09-16  Bruno Haible  <bruno@clisp.org>
77901
77902         * gnulib-tool (func_create_testdir): Warn about duplicated
77903         dependencies.
77904
77905 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77906
77907         * modules/argmatch, modules/fatal, modules/obstack,
77908         modules/xalloc, modules/xgethostname: Sort dependencies by
77909         importance, not alphabetically.
77910
77911 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77912
77913         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77914         fails, so that the caller gets the proper errno.
77915
77916         * lib/readutmp.c (read_utmp): Likewise.
77917         Check for fstat error.  Close stream and free storage
77918         when failing.
77919
77920 2003-09-14  Karl Berry  <karl@gnu.org>
77921
77922         * config/srclist.txt (strdup.c): disable for c89 changes.
77923
77924 2003-09-14  Jim Meyering  <jim@meyering.net>
77925
77926         * lib/getloadavg.c: Correct cpp indentation.
77927         * lib/strdup.c: Likewise.
77928         * lib/vasnprintf.c: Likewise.
77929
77930 2003-09-14  Bruno Haible  <bruno@clisp.org>
77931
77932         * modules/fwriteerror: New file.
77933         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77934
77935 2003-09-14  Bruno Haible  <bruno@clisp.org>
77936
77937         * lib/fwriteerror.h: New file.
77938         * lib/fwriteerror.c: New file.
77939
77940 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77941
77942         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77943         modules/xgethostname, modules/xalloc: Depend on exit.
77944
77945 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77946
77947         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77948
77949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77950         and AC_MINIX, too, so that their extensions are available.
77951
77952         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77953         This macro has been superseded by gl_BACKUPFILE.
77954
77955         More patches to assume C89 or better.
77956
77957         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77958
77959         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77960         unconditionally.
77961         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77962         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77963         Include <string.h>, <stdlib.h> unconditionally.
77964         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77965         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77966         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77967         headers or for string.h.
77968         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77969         or strtoul.
77970
77971         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77972         headers.
77973         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77974         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77975         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77976         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77977         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77979         memcpy, memset.
77980         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77981         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77982         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77983         strtol.
77984         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77985         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77987         strtoul.
77988
77989 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77990
77991         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77992         * lib/obstack.c [!defined _LIBC]: Likewise.
77993         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77994         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77995         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77996
77997         More changes to assume C89 or better.
77998
77999         * lib/error.c (error_tail): Assume vprintf.
78000
78001         * lib/argmatch.c (getenv): Remove decl.
78002         * lib/progreloc.c (get_full_program_name): Define via prototype.
78003         * lib/setenv.c (clearenv): Likewise.
78004         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78005         needed.
78006         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78007         (malloc, memcpy): Remove decls.
78008         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78009         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78010         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78011         (memcpy): Remove macro.
78012         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78013         (__P): Remove.  All uses removed.
78014         (PTR): Remove.  All uses changed to void *.
78015         (CHAR_BIT, NULL): Remove.
78016         (spaces, zeros, memset_space, memset_zero)
78017         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78018         Remove.
78019         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78020         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78021         Define with prototype.
78022         Remove now-unnecessary prototype decl.
78023         (extra_args_spec): Assume ANSI C.  All uses changed.
78024         (extra_args_spec_iso): Remove.
78025         (my_strftime, emacs_strftimeu): Define via prototype.
78026         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78027         unconditionally.
78028         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78029         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78030         (strtoul, strtol): Remove decls.
78031         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78032         LONG_MAX): Remove.
78033         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78034         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78035         (LOCALE_PARAM_PROTO): New macro.
78036         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78037         (INTERNAL (strtol), strtol): Define with a prototype.
78038         (PARAMS): Remove.  All uses removed.
78039         * lib/tempname.c: Include <string.h> unconditionally.
78040         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78041         * lib/xgethostname.c (main): Define with a prototype.
78042         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78043         Include <stdlib.h> unconditionally.
78044         (calloc, malloc, realloc, free): Remove decls.
78045         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78046         Include <stdlib.h> unconditionally.  Sort include file names.
78047         (strtod): Remove.
78048         (xstrtod): Define with a prototype.
78049         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78050         (strtol, strtoul): Remove decls.
78051
78052 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78053
78054         More patches to assume C89 or better.
78055         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78056         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78057         string.h, memchr, STDC_HEADERS.
78058
78059 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78060
78061         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78062         Include <stdlib.h>, <string.h> unconditionally.
78063         Remove now-unnecessary cast to char *.
78064         * lib/strnlen.c: Include <string.h> unconditionally.
78065         * lib/yesno.c (yesno): Define with a prototype.
78066
78067 2003-09-11  Bruno Haible  <bruno@clisp.org>
78068
78069         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78070
78071 2003-09-10  Jim Meyering  <jim@meyering.net>
78072
78073         * lib/error.c: Correct indentation of cpp directives.
78074
78075 2003-09-10  Bruno Haible  <bruno@clisp.org>
78076
78077         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78078         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78079         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78080         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78081         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78082         <stdlib.h> and <string.h> checks.
78083         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78084         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78085
78086 2003-09-10  Bruno Haible  <bruno@clisp.org>
78087
78088         * lib/strcspn.c: Include <string.h> unconditionally.
78089         * lib/strpbrk.c: Include <string.h> unconditionally.
78090         * lib/strstr.c: Include <string.h> unconditionally.
78091         * lib/unicodeio.c: Include <string.h> unconditionally.
78092         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78093         * lib/unsetenv.c: Likewise.
78094         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78095         * lib/yesno.c: Include <stdlib.h> unconditionally.
78096         (rpmatch): Add prototype.
78097
78098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78099
78100         More patches to assume C89 or better.
78101         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78102         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78103         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78104         or for string.h.
78105         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78106         stdlib.h.
78107         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78108         C headers.
78109         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78110         string.h.
78111         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78112         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78113         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78114         or for string.h.
78115         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78116         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78117         C headers.
78118         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78119         memcpy.
78120         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78121         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78122         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78123         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78124         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78125         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78126         string.h, free.
78127         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78128         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78129         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78130         C headers, or for string.h.
78131         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78132         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78133         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78134         headers, memory.h, stdlib.h, string.h, strings.h.
78135         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78136         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78137         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78138         strchr.
78139         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78140         headers, memory.h, string.h.
78141         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78142         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78143         free.
78144         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78145         headers.
78146         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78147         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78148         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78149         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78150         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78151
78152 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78153
78154         More K&R removal.
78155
78156         * lib/acosl.c (main): Use a prototype.
78157         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78158         tanl.c: Likewise.
78159
78160         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78161
78162         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78163         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78164         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78165         with a prototype.
78166         * lib/getopt.c (const): Remove macro.
78167         Include <string.h> unconditionally.
78168         (my_index): Remove; all uses changed to strchr.
78169         (strlen): Remove decl.
78170         (exchange): Remove forward decl; no longer needed.
78171         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78172         Define with prototype.
78173         * lib/getopt1.c (const): Remove macro.
78174         (getopt_long, getopt_long_only, main): Define with prototype.
78175
78176         * lib/getugroups.c: Include <string.h> unconditionally.
78177
78178         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78179         (getusershell, setusershell, endusershell, readname, main):
78180         Define with prototypes.
78181
78182         * lib/group-member.c: Include group-member.h first.
78183         Include <stdlib.h> unconditionally.
78184
78185         * lib/hard-locale.c: Include hard-locale.h first.
78186         Include <stdlib.h>, <string.h> unconditionally.
78187
78188         * lib/hash.c (free, malloc): Remove decls.
78189         Include <stdlib.h> unconditionally.
78190
78191         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78192         (getenv): Do not declare.
78193
78194         * lib/idcache.c: Include <string.h> unconditionally.
78195
78196         * lib/long-options.c: Include long-options.h first, to test interface.
78197         Include <stdlib.h> unconditionally.
78198
78199         * lib/makepath.c: Include makepath.h first, to test interface.
78200         Include <stdlib.h> and <string.h> unconditionally.
78201
78202         * lib/linebuffer.c: Include <stdlib.h>.
78203         (free): Remove decl.
78204
78205         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78206         stddef.h. rpl_malloc returns void *, not char *.
78207         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78208         prototype.
78209
78210         * lib/md5.h: Include <limits.h> unconditionally.
78211         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78212         (__P): Remove; all uses removed.
78213         * lib/md5.c: Include "md5.h" first.
78214         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78215         md5_buffer, md5_process_bytes, md5_process_block):
78216         Define with prototypes.
78217         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78218         * lib/sha.c: Include "sha.h" first.
78219         Include <stdlib.h>, <string.h> unconditionally.
78220
78221         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78222         * lib/memcmp.c (__ptr_t): Likewise.
78223         * lib/memrchr.c (__ptr_t): Likewise.
78224         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78225         Include <string.h> unconditionally.
78226         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78227         * lib/memchr.c: Include <stdlib.h> unconditionally.
78228         * lib/memchr.c (LONG_MAX): Remove.
78229         * lib/memrchr.c (LONG_MAX): Likewise.
78230         * lib/memchr.c (__memchr): Define via a prototype.
78231         * lib/memrchr.c (__memrchr): Likewise.
78232         * lib/memcmp.c (__P): Remove, and remove all uses.
78233         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78234         Remove forward decls; no longer needed.
78235         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78236         Use types required by C89 in prototype.
78237
78238         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78239         * lib/savedir.c: Likewise.
78240         * lib/mkdir.c (free): Remove decl.
78241         * lib/rmdir.c (rmdir): Define with a prototype.
78242         * lib/savedir.c: Include savedir.h first, to test interface.
78243
78244         * lib/mktime.c (STDC_HEADERS): Remove.
78245         Include <stdlib.h>, <string.h> unconditionally.
78246
78247         * lib/modechange.c: Include <stdlib.h> unconditionally.
78248         (malloc): Remove decl.
78249
78250         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78251         (free): Remove decl.
78252
78253         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78254         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78255         (This type really should be intptr_t, but that's a C99ism.)
78256         (_obstack_memcpy): Remove: all uses changed to memcpy.
78257         Include <string.h> unconditionally.
78258         (struct obstack): Assume __STDC__ for types of members
78259         chunkfun, freefun, extra_arg.
78260         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78261         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78262         obstack_begin, obstack_specify_allocation,
78263         obstack_specify_allocation_with_arg, obstack_chunkfun,
78264         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78265         Remove unprototyped decls and the macros that use them.
78266         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78267         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78268         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78269         (defined __STDC__ && __STDC__)]:
78270         Remove nonprototyped code.
78271         Include <stdlib.h> unconditionally.
78272         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78273         _obstack_allocated_p, _obstack_free, obstack_free,
78274         _obstack_memory_used, print_and_abort):
78275         Define using prototypes.
78276         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78277         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78278         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78279         obstack_next_free, obstack_object_size, obstack_room) [0]:
78280         Remove unused, unprototyped code.
78281
78282         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78283
78284         * lib/physmem.c (physmem_total, physmem_available, main): Define
78285         with prototypes.
78286
78287         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78288         (main): Define with a prototype.
78289
78290         * lib/posixver.c (getenv): Remove decl.
78291
78292         * lib/putenv.c (malloc): Returns void *, not char *.
78293         Include <string.h> unconditionally.
78294         (strchr, memcpy, NULL): Do not define.
78295
78296         * lib/readtokens.c: Include readtokens.h first, to test interface.
78297         Include <stdlib.h>, <string.h> unconditionally.
78298         (init_tokenbuffer): Define with a prototype.
78299
78300         * lib/regex.c (PARAMS): Remove.  All uses removed.
78301         All uses of _RE_ARGS removed, too.
78302         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78303         unconditionally.
78304         (bzero): Assume memset exists.
78305         (memcmp, memcpy, NULL): Remove.
78306         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78307         char, or assignments to local vars of type signed char.
78308         (init_syntax_once, PREFIX(extract_number_and_incr),
78309         PREFIX(print_partial_compiled_pattern),
78310         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78311         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78312         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78313         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78314         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78315         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78316         wcs_compile_range, byte_compile_range, truncate_wchar,
78317         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78318         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78319         count_mbs_length, wcs_re_match_2_internal,
78320         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78321         PREFIX(alt_match_null_string_p),
78322         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78323         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78324         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78325         now-unnecessary declaration, if any.
78326         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78327         regcomp, regexec):
78328         Remove now-unnecessary casts among pointer types.
78329         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78330
78331         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78332         (free): Remove decl.
78333
78334         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78335
78336         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78337         (free): Remove decl.
78338
78339         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78340         * lib/xgetcwd.c: Likewise.
78341
78342         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78343         (free): Remove decl.
78344
78345         * lib/strchrnul.c (strchrnul): Define with a prototype.
78346         Fix bug: c_in was not converted to char before searching.
78347
78348         The following changes are not K&R related:
78349
78350         * lib/group-member.h: Include <sys/types.h>, so that this file is
78351         self-contained.
78352         * lib/makepath.h: Likewise.
78353
78354         * lib/getusershell.c (readname, default_index, line_size, readname):
78355         Use size_t, not int, for sizes.
78356         (readname): If the size overflows, report an error instead of
78357         looping forever.
78358
78359 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78360
78361         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78362         libc.
78363
78364 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78365
78366         * README: New section: portability guidelines.
78367
78368 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78369
78370         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78371         C89 spec.
78372
78373 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78374
78375         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78376
78377 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78378
78379         Assume C89 or better; remove K&R cruft.
78380         A few of these changes were first proposed by Derek Robert Price
78381         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78382
78383         * lib/addext.c: Include <string.h> unconditionally.
78384         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78385         Don't declare getenv or malloc.
78386
78387         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78388         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78389         (NULL): Remove.
78390         (find_stack_direction, alloca): Use prototypes.
78391
78392         * lib/atexit.c (atexit): Define using a prototype.
78393
78394         * lib/basename.c, dirname.c, stripslash.c:
78395         Include <string.h> unconditionally.
78396
78397         * lib/bcopy.c: Include <stddef.h>.
78398         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78399
78400         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78401
78402         * lib/error.h (error, error_at_line, error_print_progname)
78403         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78404         * lib/error.c: Include error.h first, to check interface.
78405         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78406         (VA_START): Remove; all uses changeed to va_start.
78407         (exit, strerror): Remove decls.
78408         (error_print_progname): Prototype uncondionally.
78409         Don't include <errno.h>; no longer needed.
78410         (private_strerror): Remove.
78411         (error_tail): Always define.
78412         (error, error_at_line): Assume C89 or better; always use prototypes.
78413         * lib/fatal.c: Include "fatal.h" first, to test interface.
78414         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78415         (VA_START): Remove; all uses changed to va_start.
78416         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78417         this case.
78418         (exit): Remove decl.
78419         (fatal): Prototype unconditionally.  Assume va_start works.
78420         Abort at end, to pacify gcc.
78421
78422         * lib/euidaccess.c (main): Define with a prototype.
78423
78424         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78425
78426         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78427
78428         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78429         prototypes.
78430         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78431         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78432         (getenv): Remove decl.
78433         (fnmatch): Define using a prototype.
78434         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78435         (FCT): Define using a prototype.
78436
78437         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78438
78439         * lib/gethostname.c: Include <stddef.h>.
78440         (gethostname): Define with prototype.  Length is size_t, not int.
78441
78442 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78443
78444         Assume C89 or better; remove K&R cruft.
78445         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78446         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78447         string.h, getenv, malloc.
78448         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78449         headers.
78450         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78451         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78452         do not check for strerror.
78453         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78454         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78455         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78456         do not check for doprnt or vprintf.
78457         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78458         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78459
78460 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78461
78462         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78463         getversion.c should have been removed then, but was accidentally
78464         preserved.
78465
78466         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78467         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78468
78469 2003-09-08  Karl Berry  <karl@gnu.org>
78470
78471         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78472                 config, forget about prep.
78473
78474         * config/depcomp, missing: update from automake.
78475
78476 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78477
78478         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78479         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78480
78481 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78482
78483         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78484         copy_tm_result.  Bug reported by Simon Josefsson in
78485         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78486
78487 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78488
78489         * m4/time_r.m4: New file.
78490         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78491         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78492         is. Check for timegm declaration.
78493         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78494         Do not check for gmtime_r.
78495         Replace mktime if __mktime_internal does not exist and if mktime
78496         hasn't been replaced already.
78497
78498 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78499
78500         * lib/time_r.c, lib/time_r.h: New files.
78501
78502         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78503         __localtime_r.
78504         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78505         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78506
78507         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78508         __gmtime_r.
78509         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78510         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78511         Include <time_r.h>.
78512
78513         * lib/timegm.c: Switch to glibc implementation, with the following
78514         changes:
78515         [defined HAVE_CONFIG_H]: Include <config.h>.
78516         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78517         (__mktime_internal) [!defined _LIBC]: New decl.
78518         (__gmtime_r) [!defined _LIBC]: New macro and function.
78519         (timegm): Use a prototype, since gnulib assumes C89.
78520         Do not bother declaring tmp to be const, as it's not really usefu.
78521         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78522         (timegm): Declare only if HAVE_DECL_TIMEGM.
78523
78524 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78525
78526         * MODULES.html.sh (func_all_modules): Add time_r.
78527         * modules/time_r: New file.
78528         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78529         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78530
78531 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78532
78533         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78534         Bug reported by Lute Kamstra in
78535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78536
78537         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78538         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78539         course with correspondingly smaller numbers for tomorrow and
78540         yesterday.  From Tadayoshi Funaba.  Originally installed into
78541         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78542         coreutils merge?).
78543
78544 2003-08-31  Simon Josefsson  <jas@extundo.com>
78545
78546         * modules/timegm: New file.
78547         * MODULES.html.sh (func_all_modules): Add timegm.
78548
78549 2003-08-31  Simon Josefsson  <jas@extundo.com>
78550
78551         * m4/timegm.m4: New file.
78552
78553 2003-08-31  Simon Josefsson  <jas@extundo.com>
78554
78555         * lib/timegm.h: New file.
78556         * lib/timegm.c: New file.  Based on
78557         wget-1.8.2/src/http.c:mktime_from_utc.
78558
78559 2003-08-31  Karl Berry  <karl@gnu.org>
78560
78561         * lib/argp.h: update from libc.
78562
78563 2003-08-28  Bruno Haible  <bruno@clisp.org>
78564
78565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78566         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78567         followed by '#define fnmatch fnmatch_posix' gives an error.
78568
78569 2003-08-28  Bruno Haible  <bruno@clisp.org>
78570
78571         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78572         warning on QNX, which defines O_BINARY to 000000.
78573
78574 2003-08-27  Jim Meyering  <jim@meyering.net>
78575
78576         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78577         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78578         would fail after 32.  Reported by Danny Levinson.  Details here:
78579         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78580
78581 2003-08-24  Bruno Haible  <bruno@clisp.org>
78582
78583         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78584         MSVC7 <stdio.h> is included later.
78585
78586 2003-08-22  Simon Josefsson  <jas@extundo.com>
78587
78588         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78589
78590 2003-08-20  Karl Berry  <karl@gnu.org>
78591
78592         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78593
78594 2003-08-20  Bruno Haible  <bruno@clisp.org>
78595
78596         * modules/progname: New file.
78597         * MODULES.html.sh (func_all_modules): Add progname.
78598
78599 2003-08-20  Bruno Haible  <bruno@clisp.org>
78600
78601         * lib/progname.h: New file, from GNU gettext.
78602         * lib/progname.c: New file, from GNU gettext.
78603         * lib/progreloc.c: New file, from GNU gettext.
78604
78605 2003-08-19  Jim Meyering  <jim@meyering.net>
78606
78607         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78608         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78609
78610 2003-08-19  Bruno Haible  <bruno@clisp.org>
78611
78612         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78613         more.
78614
78615 2003-08-19  Bruno Haible  <bruno@clisp.org>
78616
78617         * lib/xstrdup.c: Assume <string.h> exists.
78618
78619 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78620
78621         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78622         in makefile rules.
78623
78624 2003-08-18  Jim Meyering  <jim@meyering.net>
78625
78626         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78627         * m4/lib-ld.m4: Likewise.
78628
78629 2003-08-18  Jim Meyering  <jim@meyering.net>
78630
78631         * lib/setenv.h: Indent nested cpp directive.
78632         * lib/vasnprintf.c: Remove trailing blanks.
78633
78634 2003-08-17  Simon Josefsson  <jas@extundo.com>
78635
78636         * modules/xstrndup: New file.
78637         * MODULES.html.sh (func_all_modules): Add xstrndup.
78638
78639 2003-08-17  Simon Josefsson  <jas@extundo.com>
78640
78641         * modules/argp: Fix autoconf macro name. Add more dependencies.
78642
78643 2003-08-17  Simon Josefsson  <jas@extundo.com>
78644
78645         * m4/xstrndup.m4: New file.
78646
78647 2003-08-17  Simon Josefsson  <jas@extundo.com>
78648
78649         * m4/argp.m4: New file.
78650
78651 2003-08-17  Simon Josefsson  <jas@extundo.com>
78652             Bruno Haible  <bruno@clisp.org>
78653
78654         * lib/xstrndup.h: New file.
78655         * lib/xstrndup.c: New file.
78656
78657 2003-08-17  Bruno Haible  <bruno@clisp.org>
78658
78659         * modules/strndup (Files, Include): Add lib/strndup.h.
78660
78661 2003-08-17  Bruno Haible  <bruno@clisp.org>
78662
78663         * modules/euidaccess (Files): Add lib/euidaccess.h.
78664
78665 2003-08-17  Bruno Haible  <bruno@clisp.org>
78666
78667         * lib/strndup.h: New file.
78668
78669 2003-08-17  Bruno Haible  <bruno@clisp.org>
78670
78671         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78672         like AC_GNU_SOURCE.
78673         * modules/extensions (configure.ac): Comment out the invocation of
78674         gl_USE_SYSTEM_EXTENSIONS.
78675
78676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78677
78678         Merges from coreutils, etc.
78679         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78680         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78681         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78682         fixing a typo.
78683         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78684         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78685
78686 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78687
78688         Document merge from coreutils.
78689         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78690         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78691         * modules/utime: Add m4/utimes-null.m4.
78692
78693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78694
78695         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78696         space, undoing this 2003-08-12 change:
78697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78698
78699 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78700
78701         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78702         strtoul.c from libc, undoing this 2003-08-12 change:
78703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78704
78705 2003-08-16  Jim Meyering  <jim@meyering.net>
78706
78707         Merges from coreutils.
78708         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78709         prefix.  Adjust cache variables similarly.  Create 500 rather than
78710         just 300 files, to exercise bug on Darwin6.5, too.
78711         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78712         $missing_dir.
78713         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78714         AM_SYS_POSIX_TERMIOS.
78715         Reported by mkc@mathdogs.com.
78716         Also change use of $am_cv_sys_posix_termios
78717         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78718         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78719         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78720         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78721         in /proc/mounts until it finds one with matching device number.  This
78722         is unnecessary when the FILE argument *is* a mount point.  No stat call
78723         is necessary in that case.  So, disable the statvfs-testing code on
78724         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78725         as RedHat bug# 84846.
78726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78727         to 1MB, so as not to render systems with no stack size limit (e.g.,
78728         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78729         Include <unistd.h>.  On some systems,
78730         it is required for the definition of _SC_PAGESIZE.
78731
78732 2003-08-16  Jim Meyering  <jim@meyering.net>
78733
78734         Merge from coreutils.
78735         * lib/xstrtoimax.c: #else #if -> #elif.
78736         * lib/xstrtoumax.c: Likewise.
78737
78738 2003-08-16  Jim Meyering  <jim@meyering.net>
78739
78740         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78741         * m4/utimes.m4: Removed.
78742         * m4/utimes-null.m4: Renamed from utimes.m4.
78743
78744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78745         to 1MB, so as not to render systems with no stack size limit (e.g.,
78746         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78747         Include <unistd.h>.  On some systems,
78748         it is required for the definition of _SC_PAGESIZE.
78749
78750 2003-08-16  Jim Meyering  <jim@meyering.net>
78751         and Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         Merges from coreutils, etc.
78754
78755         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78756         using the latest version from cvs.  This avoids problems with #line
78757         directives using a vendor (Sun) compiler.
78758         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78759         Don't set GETGROUPS_LIB here; now it's
78760         done via getgroups.m4's wrapper function.
78761         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78762         rather than just in sh-util/configure.in, so that the
78763         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78764         same.
78765         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78766         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78767         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78768         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78769         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78770         Remove code that is now done by the newly-required macros.
78771         Append $(EXEEXT) to DF_PROG.
78772         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78773         Do not invoke or require the following here,
78774         since prereq.m4 or some gnulib .m4 now does this for us:
78775         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78776         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78777         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78778         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78779         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78780         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78781         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78782         AC_FUNC_OBSTACK.
78783         Do not replace the following functions, as this is now the job
78784         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78785         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78786         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78787         atexit getpass, strdup, getpagesize.
78788         Replace 'raise'.
78789         Do not check for the following functions, as this is now the job
78790         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78791         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78792         setregid.
78793         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78794         Check for sys/sysctl.h.
78795         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78796         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78797         of checking for ssize_t ourselves.
78798
78799         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78800         Require every macro that gnulib/modules/* suggests for us.
78801         (jm_PREREQ_ADDEXT): New macro.
78802         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78803         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78804
78805         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78806         (gl_PHYSMEM): Use it.
78807         Also check for `table' function.
78808         Check for new headers and functions.
78809         Add check for sys/sysmp.h.
78810         With suggestions from Kaveh Ghazi.
78811         Ignore headers that are present but cannot be compiled.  This
78812         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78813         C 5.4.
78814
78815 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78816
78817         Document merge from coreutils.
78818         * modules/userspec: Depend on posixver.
78819         * modules/strftime: Depend on tzset.
78820
78821 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78822
78823         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78824         rather than tab, after '#' in shell-script copyright notices.
78825         Suggested by Bruno Haible.
78826
78827 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78828
78829         * config/srclist-update: Use three spaces, rather than tab, after '#'
78830         in shell-script copyright notices.  Suggested by Bruno Haible.
78831         Remove unnecessary parenthesization in regular expression.
78832
78833 2003-08-15  Jim Meyering  <jim@meyering.net>
78834
78835         Merge from coreutils.
78836         * lib/xgethostname.c: Include <stdlib.h>.
78837         (xghostname): Don't exit for anything other than memory-related
78838         failure; just return NULL.
78839         * lib/userspec.c: Include "posixver.h".
78840         (parse_user_spec): Accept `.' as a separator only
78841         in pre-POSIX-200112 mode.
78842         * lib/strtoimax.c: Use #elif rather than #else #if.
78843         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78844         Remove function, now that we can rely on a working tzset function.
78845         [!_LIBC]: Ensure that the required autoconf test has been run.
78846         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78847         Use underlying_strftime for %r.
78848         * lib/sha.c: Merge in some clean-up and optimization changes from
78849         glibc.
78850         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78851         Ensure that it is a multiple of 64.
78852         Rearrange loop exit tests so as to avoid performing an
78853         additional fread after encountering an error or EOF.
78854         * lib/realloc.c: Update copyright date.
78855
78856 2003-08-15  Jim Meyering  <jim@meyering.net>
78857         and Paul Eggert  <eggert@twinsun.com>
78858
78859         Merge from coreutils.
78860         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78861         member but strut utmpx does not.  Needed for AIX 4.3.3.
78862         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78863
78864 2003-08-15  Jim Meyering  <jim@meyering.net>
78865         and Paul Eggert  <eggert@cs.ucla.edu>
78866
78867         Merges from coreutils, etc.
78868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78869         Require gl_FUNC_TZSET_CLOBBER.
78870         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78871         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78872         members.
78873
78874 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78875
78876         Help the merge from coreutils.
78877         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78878         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78879         * m4/tzset.m4: Use it too.
78880
78881 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78882
78883         * modules/tzset: New file.
78884
78885 2003-08-14  Jim Meyering  <jim@meyering.net>
78886
78887         Merges from coreutils.
78888         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78889         variable names, rather than @FNMATCH_H@.
78890         * modules/alloca: Likewise for $(ALLOCA_H).
78891
78892         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78893         the three copies of the literal target, `fnmatch.h'.
78894         * modules/alloca (alloca.h): Likewise.
78895
78896 2003-08-14  Jim Meyering  <jim@meyering.net>
78897
78898         Merge from coreutils.
78899         * m4/tzset.m4: New file.
78900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78901         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78902         otherwise, AIX 5.1 systems would end up using the latter.
78903         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78904         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78905         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78906         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78907
78908 2003-08-14  Jim Meyering  <jim@meyering.net>
78909
78910         Merge from coreutils.
78911         * lib/obstack.h: Whitespace changes.
78912         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78913         and xcalloc return values.
78914         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78915         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78916         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78917         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78918         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78919         error from mntctl.
78920         Use mntctl's return value to drive the entry-processing loop, since
78921         we can't rely on the value of the vmt_length member in the last
78922         entry.  On some systems doing so could result in exhausting
78923         virtual memory.  Based in part on a patch from Mike Jetzer.
78924
78925 2003-08-14  Jim Meyering  <jim@meyering.net>
78926         and Paul Eggert  <eggert@twinsun.com>
78927
78928         Merges from coreutils, plus other fixes.
78929         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78930         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78931         for credits and details.  Thanks to Kaveh Ghazi for helping
78932         to keep these files in sync.
78933         (ARRAY_SIZE): Define it.
78934         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78935         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78936         (memcasecmp): Don't assume size_t fits in unsigned int.
78937         Remove casts and duplicate code.
78938         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78939         (memcpy): Remove definition.
78940         Merge in some clean-up and optimization changes from glibc.
78941         [BLOCKSIZE]: Move definition to top of file.
78942         Ensure that it is a multiple of 64.
78943         Rearrange loop exit tests so as to avoid performing an
78944         additional fread after encountering an error or EOF.
78945         * lib/md5.h (md5_uintptr): Define.
78946         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78947         return to the initial working directory.  Preserve errno
78948         for caller.
78949         * lib/idcache.c: Include "xalloc.h".
78950         (xmalloc, xrealloc): Remove decls.
78951         (getuser): Remove casts no longer required in C89.
78952         * lib/human.c: Include stdio.h, for sprintf.
78953         * lib/group-member.c: Include "xalloc.h".
78954         (xmalloc, xrealloc): Remove decls.
78955         (get_group_info): Remove casts no longer required in C89.
78956         * lib/getusershell.c (readname): Remove casts no longer required in
78957         C89.
78958         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78959         * lib/getline.c: Whitespace fix, from coreutils.
78960
78961 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78962
78963         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78964         Check for isascii.
78965
78966         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78967         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78968         Undo previous (whitespace-only) change.
78969
78970 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78971
78972         * lib/exclude.c: Include <ctype.h>
78973         (IN_CTYPE_DOMAIN): New macro.
78974         (is_space): New fn.
78975         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78976         and empty lines.
78977
78978         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78979         Undo previous (whitespace-only) change.
78980
78981 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78982
78983         * config/srclist-update: Change update back to the old behavior,
78984         leaving whitespace alone.  Use one 'sed' command rather than a
78985         pipeline.
78986         (fixlicense): Now a variable, not a function.
78987         (remove_trailing_blanks): Remove.
78988         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78989         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78990         Undo previous (whitespace-only) change.
78991
78992 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78993
78994         Merge from coreutils.
78995         * modules/euidaccess: Add lib_SOURCES, include for new
78996         file euidaccess.h
78997
78998 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78999
79000         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79001         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79002         Normalize leading white space and remove trailing white space.
79003
79004         Merge from coreutils
79005         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79006
79007         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79008         0.12.1.  These files are now being upgraded automatically by
79009         ../config/srclist-update.
79010
79011 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79012
79013         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79014         Normalize leading white space and remove trailing white space.
79015         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79016         notice, as per ../config/srclist-update.
79017
79018         Merge from coreutils.
79019         * lib/euidaccess.h: New file.
79020         * lib/euidaccess.c: Include it.
79021         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79022         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79023         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79024
79025 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79026
79027         * config/srclist-update: Add copyright notice.
79028         (remove_id_lines, remove_trailing_blanks): New constants.
79029         (fixfile): Use them to normalize spacing a bit in copied files.
79030         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79031         Normalize leading white space and remove trailing white space.
79032
79033         * config/texinfo.tex: Sync with texinfo.
79034
79035         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79036         strtoul.c from libc, to merge coreutils whitespace changes.
79037
79038         * config/srclist.txt: Get the following m4 files from gettext:
79039         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79040         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79041         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79042         wint_t.m4.
79043
79044 2003-08-12  Karl Berry  <karl@gnu.org>
79045
79046         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79047         been made.
79048
79049 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79050
79051         * modules/gnu-source, m4/gnu-source.m4:
79052         Remove; we're assuming Autoconf 2.54 or later now.
79053         Suggested by Bruno Haible.
79054         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79055
79056 2003-08-11  Bruno Haible  <bruno@clisp.org>
79057
79058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79059
79060 2003-08-11  Bruno Haible  <bruno@clisp.org>
79061
79062         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79063         (vasnprintf): Use it instead of wcslen.
79064
79065 2003-08-11  Bruno Haible  <bruno@clisp.org>
79066
79067         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79068         value to ensure that _Bool promotes to int. Use #define for _Bool when
79069         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79070
79071 2003-08-10  Karl Berry  <karl@gnu.org>
79072
79073         * lib/regex.h: update from libc (whitespace fix).
79074
79075 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79076
79077         Merge some files from coreutils.  These changes were
79078         originally made by Jim Meyering.
79079         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79080         many older Unixes require this.
79081         * lib/alloca.c (alloca): Remove cast to argument of free;
79082         no longer needed in C89.
79083         * lib/alloca_.h, regex.h: Fix white space to match
79084         what GNU indent does.
79085
79086 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79087
79088         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79089         apparently Emacs's Unicode mode got confused before my 2003-08-05
79090         checkin.
79091
79092 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79093
79094         * m4/extensions.m4: New file.
79095         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79096         Require gl_USE_SYSTEM_EXTENSIONS.
79097         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79098         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79099
79100 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79101
79102         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79103         * modules/extensions, modules/gnu-source: New files.
79104         * modules/timespec, modules/unlocked-io: Depend on extensions.
79105
79106 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79107
79108         * modules/restrict: New file.
79109         * MODULES.html.sh (func_all_modules): Add restrict.
79110         * modules/regex: Depend on restrict.
79111
79112 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79113
79114         * m4/restrict.m4: New file.
79115         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79116
79117 2003-08-07  Bruno Haible  <bruno@clisp.org>
79118
79119         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79120         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79121
79122 2003-08-07  Bruno Haible  <bruno@clisp.org>
79123
79124         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79125         makes the module 'getndelim2' compatible with the module 'getline'.
79126
79127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79128
79129         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79130         byte with "\201" to avoid glitches when editing that source file
79131         with multi-gnome-terminal.
79132
79133 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79134
79135         * lib/bumpalloc.h: Remove.
79136
79137 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79138
79139         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79140         * modules/bumpalloc: Remove.
79141
79142 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79143
79144         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79145         GNU coding style.
79146
79147         Merge from coreutils.
79148         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79149         1. From glibc.
79150         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79151         from Karl Berry, implemented by Jim Meyering.
79152         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79153         from Dmitry V. Levin.
79154         Remove anachronistic cast of xrealloc.
79155         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79156         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79157         type. Otherwise, it wouldn't compile with at least /bin/cc on
79158         ymp-cray-unicos9.0.2.X.
79159         Combine two mostly-identical uses of alloca into one.
79160         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79161
79162 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79163
79164         [From Emacs.]
79165
79166         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79167         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79168         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79169         obsolete NLIST_NAME_UNION.
79170         [__GNU__]: Undef BSD and FSCALE.
79171         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79172
79173 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79174
79175         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79176         an enum type, so that it's guaranteed to promote to int.  See:
79177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79178
79179 2003-08-03  Karl Berry  <karl@gnu.org>
79180
79181         * config/depcomp: update from automake.
79182
79183 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79184
79185         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79186         (strerror): Don't assume that a printable int fits in 14 bytes.
79187
79188 2003-07-31  Bruno Haible  <bruno@clisp.org>
79189
79190         * modules/getpass-gnu: New file.
79191         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79192
79193 2003-07-31  Bruno Haible  <bruno@clisp.org>
79194
79195         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79196
79197 2003-07-24  Karl Berry  <karl@gnu.org>
79198
79199         * config/missing: update from automake.
79200
79201 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79202             Bruno Haible  <bruno@clisp.org>
79203
79204         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79205         * lib/getline.c (getline, getdelim): Likewise.
79206         Remove _GNU_SOURCE define; now it's defined in config.h through
79207         m4/getline.m4.
79208
79209 2003-07-23  Karl Berry  <karl@gnu.org>
79210
79211         * config/config.sub: update from prep.
79212
79213 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79214
79215         * modules/xalloc (Depends-on): Add exitfail.
79216         * modules/xmemcoll: Likewise.
79217
79218 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79219
79220         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79221         over-parenthesization in macros.
79222
79223         Sync with coreutils.
79224
79225         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79226         required by C99.
79227
79228         Use `exit_failure' for xalloc and xmemcoll instead of their own
79229         private exit-failure variables.
79230         * lib/xalloc.h (xalloc_exit_failure): Remove.
79231         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79232         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79233         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79234         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79235         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79236
79237 2003-07-20  Jim Meyering  <jim@meyering.net>
79238
79239         * modules/closeout (Depends-on): Add exitfail.
79240         Suggestion from Bruno Haible.
79241
79242 2003-07-19  Karl Berry  <karl@gnu.org>
79243
79244         * config/config.sub: update from prep.
79245
79246 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79247
79248         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79249         Remove.
79250         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79251         to test that it can stand by itself.  Include "exitfail.h".
79252         Clients should set exit_failure instead.
79253         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79254
79255 2003-07-18  Bruno Haible  <bruno@clisp.org>
79256
79257         * modules/getndelim2: New file.
79258         * modules/getline: Share files with module getndelim2.
79259         * modules/getnline: Depend on getndelim2 instead of sharing files with
79260         it. Add getnline.c to lib_SOURCES.
79261         * MODULES.html.sh (func_all_modules): Add getndelim2.
79262
79263 2003-07-18  Bruno Haible  <bruno@clisp.org>
79264
79265         * m4/getndelim2.m4: New file.
79266         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79267         invoke gl_PREREQ_GETNDELIM2.
79268         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79269         gl_PREREQ_GETNDELIM2.
79270         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79271         gl_GETNDELIM2.
79272
79273 2003-07-18  Bruno Haible  <bruno@clisp.org>
79274
79275         * lib/getndelim2.h: New file.
79276         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79277         getndelim2.h.
79278         (getndelim2): Make non-static. Change return type to ssize_t.
79279         * lib/getline.h: Change argument names.
79280         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79281         * lib/getnline.c: Include getndelim2.h.
79282
79283 2003-07-18  Andreas Schwab  <schwab@suse.de>
79284
79285         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79286
79287 2003-07-17  Karl Berry  <karl@gnu.org>
79288
79289         * config/config.sub: update from prep.
79290
79291 2003-07-17  Bruno Haible  <bruno@clisp.org>
79292
79293         * modules/getnline: New file.
79294         * modules/getline: Add lib/getndelim2.c to source file list.
79295         * MODULES.html.sh (func_all_modules): Add getnline.
79296
79297 2003-07-17  Bruno Haible  <bruno@clisp.org>
79298
79299         * m4/getnline.m4: New file.
79300
79301 2003-07-17  Bruno Haible  <bruno@clisp.org>
79302
79303         * m4/Makefile.am.in: Remove file.
79304         * m4/Makefile.am: Remove file.
79305         * m4/Makefile.in: Remove file.
79306
79307 2003-07-17  Bruno Haible  <bruno@clisp.org>
79308
79309         * lib/getnline.h: New file.
79310         * lib/getnline.c: New file.
79311         * lib/getndelim2.c: New file, extracted from getline.c.
79312         (getndelim2): Renamed from getdelim2, with added nmax argument.
79313         * lib/getline.c: Include getndelim2.c.
79314         (getdelim2): Moved out to getndelim2.c.
79315         (getline, getdelim): Update.
79316
79317 2003-07-17  Bruno Haible  <bruno@clisp.org>
79318
79319         * lib/Makefile.am: Remove file.
79320         * lib/Makefile.in: Remove file.
79321
79322 2003-07-17  Bruno Haible  <bruno@clisp.org>
79323
79324         * configure.in: Remove file.
79325         * Makefile.in: Remove file.
79326
79327 2003-07-17  Bruno Haible  <bruno@clisp.org>
79328
79329         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79330
79331 2003-07-16  Karl Berry  <karl@gnu.org>
79332
79333         * config/srclist-update: was running fixlicense twice, which caused
79334                 texinfo.tex to be nullified for some reason.  Simplify,
79335                 $gplsrc is no longer needed as far as I can see?
79336
79337 2003-07-16  Jim Meyering  <jim@meyering.net>
79338
79339         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79340
79341 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79342
79343         * config/srclist.txt: Get the following files from gettext-runtime/intl
79344         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79345         ref-del.sin.  From Bruno Haible.
79346         * config/srclist-update (fixfile): Change grep pattern again, since the
79347         previous fix didn't work (there was another trailing $).  Use
79348         '[$]' to escape the $s.
79349
79350 2003-07-15  Karl Berry  <karl@gnu.org>
79351
79352         * lib/vasnprintf.c: update from gettext.
79353
79354 2003-07-15  Karl Berry  <karl@gnu.org>
79355
79356         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79357         gets expanded when surrounded by '$'.
79358
79359 2003-07-15  Jim Meyering  <jim@meyering.net>
79360
79361         * modules/save-cwd: Don't depend on error.  From Derek Price.
79362
79363 2003-07-15  Jim Meyering  <jim@meyering.net>
79364
79365         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79366
79367 2003-07-14  Simon Josefsson  <jas@extundo.com>
79368
79369         * modules/mempcpy: New file.
79370         * MODULES.html.sh (func_all_modules): Add mempcpy.
79371
79372 2003-07-14  Simon Josefsson  <jas@extundo.com>
79373
79374         * m4/mempcpy.m4: New file.
79375
79376 2003-07-14  Simon Josefsson  <jas@extundo.com>
79377
79378         * lib/mempcpy.h: New file.
79379         * lib/mempcpy.c: New file.
79380
79381 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79382
79383         * modules/getdate, modules/posixtm: Depend on mktime.
79384
79385 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79386
79387         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79388         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79389         unicodeio.c, unicodeio.h, unlocked-io.h:
79390         Switch from LGPL to GPL.
79391
79392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79393
79394         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79395         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79396         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79397         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79398         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79399         updated automatically by ../config/srclist-update.  This changes
79400         their license from LPGL to GPL.
79401
79402 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79403
79404         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79405         assumed to refer to the root of the most recent stable gettext version.
79406         * config/srclistvars.sh: Add defaults for eggert.
79407         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79408         Match "This program" as well as "The program".  This is needed
79409         for gettext.
79410
79411 2003-07-14  Jim Meyering  <jim@meyering.net>
79412
79413         Don't emit diagnostics.  Let callers do that.
79414         * lib/save-cwd.c: Don't include "error.h".
79415         (save_cwd): Don't call error.  Ensure that errno is valid
79416         when returning nonzero.
79417
79418         * lib/save-cwd.h (restore_cwd): Update prototype.
79419         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79420         Simplify.  Don't call error upon failure.  Let callers do that.
79421         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79422         when auditing is enabled.  But don't bother updating the #if.
79423
79424 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79425
79426         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79427         it breaks C++ compilation.
79428         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79429
79430 2003-07-10  Simon Josefsson  <jas@extundo.com>
79431
79432         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79433
79434 2003-07-10  Jim Meyering  <jim@meyering.net>
79435
79436         * m4/clock_time.m4: Remove trailing blank.
79437         * m4/intmax_t.m4: Likewise.
79438
79439 2003-07-10  Jim Meyering  <jim@meyering.net>
79440
79441         * lib/vasnprintf.c: Remove trailing blanks.
79442         Make cpp indentation consistent.
79443
79444 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79445
79446         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79447         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79448         Switch from LGPL to GPL.
79449
79450 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79451
79452         * config/srclist.txt: Sort sublists.  Add
79453         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79454         that differ from gnulib for one reason or another; we'd like this list
79455         to be smaller but for now let's document what we have.
79456
79457 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79458
79459         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79460         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79461         and sweeter "eval x=$x".
79462         * config/srclist.txt: Get lib/argp* from glibc.
79463
79464 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79465
79466         * lib/mktime.c: Fix some boundary cases and remove need for floating
79467         point.
79468
79469         Issue a compile-time diagnostic if time_t is floating point, or if
79470         two's complement arithmetic is not in effect, or if arithmetic
79471         right shift does not propagate the sign.  These assumptions were
79472         all in the original code but they weren't checked.
79473
79474         (TIME_T_MIDPOINT, verify): New macros.
79475         (__isleap): Remove; it has integer overflow problems.
79476         (leapyear): New function, without those problems.
79477         (ydhms_tm_diff): Remove; splitting into two parts.
79478         (ydhms_diff): New function, containing the arithmetic part of
79479         the old ydhms_tm_diff function.  Issue a compile-time
79480         diagnostic if we are not using C99 integer division.
79481         Avoid casts when possible.
79482         (guess_time_tm): New function, containing the checking part of
79483         the old ydhms_tm_diff function.  Return the new value, rather than
79484         the difference between it and the old.  Accept a new argument T
79485         so that *T specifies the old value.  Check for overflow in the result.
79486
79487         (__mktime_internal): Use a time_t offset, not a long int offset.
79488         This undoes the 2003-06-04 change, which is no longer needed now
79489         that we have better overflow checking.
79490         (localtime_offset): Likewise.
79491
79492         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79493         and long are 64-bit but int is only 32-bit.
79494         (ydhms_diff): Use long int to store year1 and yday1.
79495         Issue a compile-time diagnostic if long int is not wide enough.
79496
79497         (__mktime_internal): Use long int to store adjusted year and yday.
79498         Use plain C rather than preprocessor commands, if that doesn't
79499         affect efficiency.
79500         Check for overflow (and try to repair) after each probe
79501         rather than checking only at the very end.  This avoids some bugs
79502         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79503         does not equal GMT offset at maximum time).
79504         Use integer to check for overflow rather than floating point; this
79505         is more portable to non-IEEE hosts, and is a tad faster.
79506         When we detect that we are oscillating between two values,
79507         don't check whether tm_isdst has the requested value, since
79508         we already know the answer.  When tm_isdst has the wrong value,
79509         use a different heuristic to find the right one, based on the
79510         extreme values actually observed in practice in tz2003a,
79511         rather than the (overly optimistic) "previous 3 calendar quarters".
79512
79513         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79514         "T const" to accommodate glibc style.
79515         (check_result): Use less-confusing report format.  "long" -> "long int.
79516         (main): Likewise.
79517         Don't loop if the iteration overflows time_t.
79518         Allow a negative step in the iteration.
79519
79520 2003-07-06  Karl Berry  <karl@gnu.org>
79521
79522         * config/depcomp: update from automake.
79523         * config/config.sub: update from prep.
79524
79525 2003-07-03  Karl Berry  <karl@gnu.org>
79526
79527         * config/config.guess: update from prep.
79528
79529 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79530
79531         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79532         xreadlink.c now includes it unconditionally.
79533
79534 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79535
79536         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79537         having it depend on HAVE_SYS_TYPES_H.
79538
79539 2003-07-01  Bruno Haible  <bruno@clisp.org>
79540
79541         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79542         <sys/types.h> should be sufficient.
79543         Reported by Paul Eggert.
79544
79545 2003-06-26  Karl Berry  <karl@gnu.org>
79546
79547         * config/depcomp: update from automake.
79548
79549 2003-06-26  Bruno Haible  <bruno@clisp.org>
79550
79551         * modules/human: Depend on module stdbool.
79552
79553 2003-06-25  Bruno Haible  <bruno@clisp.org>
79554
79555         * modules/readlink: New file.
79556         * modules/xreadlink: Depend on it.
79557         * MODULES.html.sh (func_all_modules): Add readlink.
79558
79559 2003-06-25  Bruno Haible  <bruno@clisp.org>
79560
79561         * m4/readlink.m4: New file.
79562
79563 2003-06-25  Bruno Haible  <bruno@clisp.org>
79564
79565         * lib/readlink.c: New file.
79566
79567 2003-06-22  Karl Berry  <karl@gnu.org>
79568
79569         * config/srclist.txt: update mkinstalldirs from automake.
79570         * config/mkinstalldirs: update.
79571
79572 2003-06-22  Bruno Haible  <bruno@clisp.org>
79573
79574         Portability to mingw32.
79575         * m4/ssize_t.m4: New file, from GNU gettext.
79576         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79577         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79578
79579 2003-06-22  Bruno Haible  <bruno@clisp.org>
79580
79581         * modules/safe-read: Add m4/ssize_t.m4.
79582         * modules/xreadlink: Add m4/ssize_t.m4.
79583
79584 2003-06-20  Bruno Haible  <bruno@clisp.org>
79585
79586         Assume C89, so PARAMS isn't needed.
79587         * lib/unicodeio.h (PARAMS): Remove.
79588         * lib/unicodeio.c: Don't use PARAMS.
79589
79590 2003-06-18  Karl Berry  <karl@gnu.org>
79591
79592         * config/config.{guess,sub}: update from prep.
79593
79594 2003-06-18  Jim Meyering  <jim@meyering.net>
79595
79596         Merge changes from coreutils.
79597         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79598         Remove explicit declarations of xmalloc and realloc.
79599         Include xalloc.h.
79600         (read_utmp): Remove anachronistic cast of xmalloc.
79601
79602 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79603
79604         Assume C89, so PARAMS isn't needed.
79605         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79606         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79607         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79608         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79609         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79610         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79611         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79612         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79613         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79614         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79615         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79616         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79617         no longer needed. Anyway, config.h should always be included before any
79618         other file.
79619
79620 2003-06-11  Simon Josefsson  <jas@extundo.com>
79621
79622         * modules/sysexits: New file.
79623         * MODULES.html.sh (func_all_modules): Add sysexits.
79624
79625 2003-06-11  Simon Josefsson  <jas@extundo.com>
79626
79627         * lib/sysexit_.h: New file.
79628
79629 2003-06-11  Derek Price  <derek@ximbiot.com>
79630
79631         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79632         necessary.
79633
79634 2003-06-11  Bruno Haible  <bruno@clisp.org>
79635
79636         * m4/sysexits.m4: New file.
79637
79638 2003-06-10  Simon Josefsson  <jas@extundo.com>
79639
79640         * lib/argp.h: New file, from glibc.
79641         * lib/argp-ba.c: New file, from glibc.
79642         * lib/argp-eexst.c: New file, from glibc.
79643         * lib/argp-fmtstream.c: New file, from glibc.
79644         * lib/argp-fmtstream.h: New file, from glibc.
79645         * lib/argp-fs-xinl.c: New file, from glibc.
79646         * lib/argp-help.c: New file, from glibc.
79647         * lib/argp-namefrob.h: New file, from glibc.
79648         * lib/argp-parse.c: New file, from glibc.
79649         * lib/argp-pv.c: New file, from glibc.
79650         * lib/argp-pvh.c: New file, from glibc.
79651         * lib/argp-xinl.c: New file, from glibc.
79652
79653 2003-06-10  Simon Josefsson  <jas@extundo.com>
79654
79655         * modules/strchrnul: New file.
79656
79657 2003-06-10  Simon Josefsson  <jas@extundo.com>
79658
79659         * modules/argp: New file.
79660
79661 2003-06-10  Simon Josefsson  <jas@extundo.com>
79662
79663         * m4/strchrnul.m4: New file.
79664
79665 2003-06-10  Simon Josefsson  <jas@extundo.com>
79666
79667         * lib/strchrnul.h: New file.
79668         * lib/strchrnul.c: New file.
79669
79670 2003-06-10  Bruno Haible  <bruno@clisp.org>
79671
79672         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79673
79674 2003-06-07  Karl Berry  <karl@gnu.org>
79675
79676         * config/config.{guess,sub}: update from prep.
79677
79678 2003-06-07  Jim Meyering  <jim@meyering.net>
79679
79680         * modules/strtod: Use $(...) notation, not @...@ for
79681         AC_REPLACE'd variables.
79682         * modules/localcharset: Likewise.
79683
79684 2003-06-07  Jim Meyering  <jim@meyering.net>
79685
79686         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79687         in place of my name in the copyright comment.
79688         Remove definition and uses of __P.
79689
79690         From coreutils.
79691         * lib/stat.c: Don't declare xmalloc explicitly.
79692         Instead, include "xalloc.h".
79693         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79694         xrealloc, and xcalloc return values.
79695         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79696         Improve comment.
79697         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79698
79699 2003-06-07  Bruno Haible  <bruno@clisp.org>
79700
79701         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79702         avoid AC_CONFIG_LINKS.
79703         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79704         fnmatch.h, to avoid AC_CONFIG_LINKS.
79705         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79706
79707 2003-06-07  Bruno Haible  <bruno@clisp.org>
79708
79709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79710         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79711         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79712         directory.
79713         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79714         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79715         directory.
79716
79717 2003-06-06  Jim Meyering  <jim@meyering.net>
79718
79719         Merge from coreutils.
79720         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79721         Consolidate declarations and initializations of *_base* locals.
79722
79723         Merge from coreutils.
79724         This avoids a core dump on systems without GNU putenv,
79725         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79726         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79727         (unsetenv): New static function, from GNU libc.
79728         (rpl_putenv): Use it.
79729
79730         * lib/modechange.c: Remove trailing blanks.
79731
79732         Merge from coreutils.
79733         * lib/fsusage.c: Remove declaration of statfs.
79734         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79735
79736         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79737
79738 2003-06-06  Jim Meyering  <jim@meyering.net>
79739
79740         * lib/stdbool_.h: Renamed from stdbool.h.in.
79741
79742 2003-06-06  Jim Meyering  <jim@meyering.net>
79743             Bruno Haible  <bruno@clisp.org>
79744
79745         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79746         Adjust Makefile.am snippet not to redirect directly to target.
79747         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79748
79749 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79750
79751         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79752         mismatch, look in future quarters as well as past.  This fixes a
79753         bug when processing fall-backwards gaps immediately after a long
79754         period of daylight-saving time.
79755
79756         * lib/mktime.c: Assume freestanding C89 or better.
79757         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79758         (__P): Remove; not used.
79759         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79760         (mktime, not_equal_tm, print_tm, check_result,
79761         main): Use prototypes.  Use const * where appropriate.
79762         (main): Fix typo in testing code that uncovered by above changes.
79763         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79764
79765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79766
79767         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79768         locale.h, localeconv.  This merges changes from coreutils.
79769
79770         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79771         It can be removed after the next Autoconf is released.
79772         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79773         needed.
79774
79775 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79776
79777         * lib/mktime.c: Fix Debian bug 177940
79778         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79779         (localtime_offset): Now long int, not time_t, because we want it
79780         to be guaranteed to be signed.  All uses changed.
79781         (__mktime_internal): If overflow would occur when adding offset,
79782         don't add it.
79783
79784         Merge 'human' changes from coreutils.  Rewrite to support
79785         locale-specific notations like thousands separators.
79786         * lib/human.c: Simplify authorship notice.
79787         Include human.h immediately after config.h.
79788         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79789         <limits.h>: Do not include, since human.h does.
79790         (SIZE_MAX, UINTMAX_MAX): New macros.
79791         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79792         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79793         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79794         (power_letter): Renamed from suffixes.
79795         (generate_suffix_backwards): Remove.
79796         (adjust_value): Now takes int style (because of human.h changes)
79797         and long double value (for greater precision on some platforms).
79798         (group_number): New function.
79799         (human_readable): Use it.  Use integer options, not enum.
79800         Put the options before the sizes in the arg list.
79801         Support all the new options.
79802         The old human_readable function has been removed;
79803         use inttostr.h instead.
79804         (human_readable, default_block_size, humblock):
79805         Use uintmax_t, not int, for block sizes.
79806         (human_readable_inexact, block_size_types): Remove.
79807         (block_size_opts): New constant.
79808         (human_options): Renamed from human_block_size, with new signature
79809         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79810         * lib/human.h: Add copyright and authorship notice.
79811         Include <limits.h> and <stdbool.h> unconditionally.
79812         (PARAMS): Remove.  All uses removed.
79813         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79814         (enum human_inexact_style): Remove tag; now a nameless enum.
79815         (human_floor, human_ceiling, human_round_to_even): Now have
79816         values 2, 0, 1 rather than -1, 1, 0.
79817         (human_group_digits, human_suppress_point_zero, human_autoscale,
79818         human_base_1024, human_SI, human_B): New constants.
79819         (human_readable_inexact, human_block_size): Remove.
79820         (human_readable): Size args are now uintmax_t, not int.
79821         (human_options): New decl.
79822
79823         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79824         unnecessary now that we assume C89 or better.  This change
79825         imported from coreutils.
79826
79827         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79828         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79829         in the 2003-05-30 sync from glibc.
79830
79831         .h files should stand alone, but we shouldn't include <sys/types.h>
79832         if we can get away with just <stddef.h>.
79833
79834         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79835         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79836         rather than <sys/types.h>, as we merely need size_t.
79837         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79838         to get size_t.
79839         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79840         Include <stdio.h>, to get FILE.
79841         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79842         memcasecmp.h has included <stddef.h> and all we need is size_t.
79843         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79844         our interface, instead of including <sys/types.h>
79845
79846 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79847
79848         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79849         now, as glibc mktime is buggy on non-glibc systems.
79850
79851 2003-06-03  Karl Berry  <karl@gnu.org>
79852
79853         * config/config.sub: update from prep.
79854
79855 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79856
79857         [from coreutils]
79858         Fix some minor time-related bugs with POSIX time arguments.
79859         Some valid time stamps were being rejected (notably -1, and
79860         time stamps before 1900 on 64-bit hosts).  And some invalid
79861         time stamps were being accepted, e.g. September 31.
79862
79863         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79864         that we can return (time_t) -1 successfully.
79865         * lib/posixtm.c: Likewise.
79866         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79867         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79868         (t): Remove static var.
79869         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79870         of static var.  All uses changed.
79871         (year): Do not reject years before 1900; they can occur with
79872         64-bit time_t.
79873         (posix_time_parse): Do not check for out-of-range components;
79874         that is now the caller's responsibility, since our checks were
79875         only approximations.
79876         (posixtime): Use mktime to check for out-of-range components,
79877         since it knows them exactly.
79878         If mktime returns (time_t) -1, check whether an error actually occurred
79879         by invoking localtime on -1.
79880         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79881         posixtime failures better.
79882         Improve the test data (in comments only).
79883
79884 2003-06-02  Karl Berry  <karl@gnu.org>
79885
79886         * config/mkinstalldirs (version): new variable.
79887         (--version): new option.
79888         (usage): improve message.
79889
79890 2003-05-30  Karl Berry  <karl@gnu.org>
79891
79892         * lib/mktime.c: update from libc.
79893
79894 2003-05-30  Bruno Haible  <bruno@clisp.org>
79895
79896         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79897         * config/config.rpath: Upgrade to gettext-0.12.1.
79898
79899 2003-05-30  Bruno Haible  <bruno@clisp.org>
79900
79901         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79902         * m4/nls.m4: New file, from gettext-0.12.1.
79903         * m4/po.m4: New file, from gettext-0.12.1.
79904         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79905
79906 2003-05-30  Bruno Haible  <bruno@clisp.org>
79907
79908         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79909         * lib/localcharset.h: Likewise.
79910         * lib/localcharset.c: Likewise.
79911
79912 2003-05-29  Karl Berry  <karl@gnu.org>
79913
79914         * config/config.rpath: update from gettext.
79915
79916 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79917
79918         Assume the headers required for C89 freestanding compilers.
79919         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79920         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79921         * m4/human.m4 (gl_HUMAN): Likewise.
79922         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79923         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79924         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79925         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79927         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79928
79929 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79930
79931         Assume the headers required for C89 freestanding compilers.
79932         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79933         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79934         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79935         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79936         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79937         define, since <limits.h> is guaranteed to do that.
79938         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79939         * lib/exclude.c: Include <stdbool.h> unconditionally.
79940         * lib/tempname.c: Include <stddef.h> unconditionally.
79941         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79942         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79943         <stddef.h> does that.
79944         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79945         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79946         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79947         needed.
79948         * lib/xstrtol.c: Likewise.
79949         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79950         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79951
79952         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79953         warnings on some platforms.
79954
79955         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79956         arbitrarily.
79957
79958 2003-05-26  Jim Meyering  <jim@meyering.net>
79959
79960         Merge in a change from coreutils:
79961         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79962         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79963         that condition, rather than `-1' which is slightly misleading.
79964         Change the name of the cache variable to have the gl_ prefix.
79965         Prompted by a patch from Richard Dawe for DJGPP.
79966
79967 2003-05-24  Karl Berry  <karl@gnu.org>
79968
79969         * config/config.guess: update from prep.
79970
79971 2003-05-22  Karl Berry  <karl@gnu.org>
79972
79973         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79974
79975 2003-05-20  Karl Berry  <karl@gnu.org>
79976
79977         * config/config.guess: update from prep.
79978
79979 2003-05-18  Karl Berry  <karl@gnu.org>
79980
79981         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79982         might actually be set by the user.
79983
79984         * config/depcomp, install-sh, mdate-sh: update from automake.
79985
79986 2003-05-17  Bruno Haible  <bruno@clisp.org>
79987
79988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79989         invalid expansion for AC_EGREP_CPP.
79990         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79991         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79992         Suggested by Akim Demaille <akim@epita.fr> in
79993         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79994
79995 2003-05-12  Jim Meyering  <jim@meyering.net>
79996
79997         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79998         the space-padded-by-default conversion specifiers, %e, %k, %l.
79999
80000 2003-05-12  Bruno Haible  <bruno@clisp.org>
80001
80002         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80003         the string is longer than 4 KB.
80004
80005 2003-05-11  Karl Berry  <karl@gnu.org>
80006
80007         * config/config.{guess,sub}: update from prep.
80008
80009 2003-05-09  Bruno Haible  <bruno@clisp.org>
80010
80011         * modules/error: Add m4/strerror_r.m4 to file list.
80012
80013 2003-05-03  Bruno Haible  <bruno@clisp.org>
80014
80015         Upgrade to Unicode-4.0.
80016         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80017         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80018         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80019         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80020         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80021         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80022         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80023         Change width of U+E0100..U+E01EF from 1 to 0.
80024
80025 2003-04-25  Jim Meyering  <jim@meyering.net>
80026
80027         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80028         of type size_t, not int.
80029
80030 2003-04-25  Bruno Haible  <bruno@clisp.org>
80031
80032         * lib/copy-file.c: Include <stddef.h>, for size_t.
80033
80034 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80035
80036         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80037         code which expansion is under static control.  Patch imported from
80038         Akim Demaille's patch to Bison; see
80039         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80040
80041 2003-04-14  Bruno Haible  <bruno@clisp.org>
80042
80043         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80044
80045 2003-04-11  Jim Meyering  <jim@meyering.net>
80046
80047         Merge changes from Coreutils.
80048
80049         2003-03-22  Jim Meyering  <jim@meyering.net>
80050
80051         * lib/strftime.c (widen): Cast alloca return value to proper type.
80052
80053         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80054
80055         From GNU libc.
80056         * lib/strftime.c (my_strftime): Handle very large width
80057         specifications for numeric values correctly.  Improve checks for
80058         overflow.
80059
80060         2003-01-19  Jim Meyering  <jim@meyering.net>
80061
80062         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80063         definitions.
80064         (nl_get_alt_digit) [! defined my_strftime]: Define.
80065         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80066         _nl_get_alt_digit and _nl_get_walt_digit.
80067
80068         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80069         libc. These changes have no effect outside of _LIBC.
80070
80071 2003-04-10  Bruno Haible  <bruno@clisp.org>
80072
80073         * modules/findprog: New file.
80074         * MODULES.html.sh (func_all_modules): Add it.
80075
80076 2003-04-10  Bruno Haible  <bruno@clisp.org>
80077
80078         * m4/findprog.m4: New file.
80079         * m4/eaccess.m4: New file.
80080
80081 2003-04-10  Bruno Haible  <bruno@clisp.org>
80082
80083         * lib/findprog.h: New file, from GNU gettext.
80084         * lib/findprog.c: New file, from GNU gettext.
80085
80086 2003-04-05  Jim Meyering  <jim@meyering.net>
80087
80088         Merge changes from Coreutils.
80089
80090         * lib/exclude.h (PARAMS): Remove definition and uses.
80091         * lib/exclude.c: Remove uses of `PARAMS'.
80092
80093         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80094         Add test-cases for DOS filenames. Declare program_name.
80095         (main): Set up program_name.  Patch by Rich Dawe.
80096
80097         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80098         error from mntctl.
80099         Use mntctl's return value to drive the entry-processing loop, since
80100         we can't rely on the value of the vmt_length member in the last
80101         entry.  On some systems doing so could result in exhausting
80102         virtual memory.  Based in part on a patch from Mike Jetzer.
80103
80104 2003-04-04  Bruno Haible  <bruno@clisp.org>
80105
80106         * modules/linebreak: New file.
80107         * MODULES.html.sh (func_all_modules): Add it.
80108
80109 2003-04-04  Bruno Haible  <bruno@clisp.org>
80110
80111         * m4/linebreak.m4: New file.
80112
80113 2003-04-04  Bruno Haible  <bruno@clisp.org>
80114
80115         * lib/linebreak.h: New file, from GNU gettext.
80116         * lib/linebreak.c: New file, from GNU gettext with slight
80117         modifications.
80118         * lib/lbrkprop.h: New file, from GNU gettext.
80119
80120 2003-04-03  Bruno Haible  <bruno@clisp.org>
80121
80122         * modules/utf8-ucs4: New file.
80123         * modules/utf16-ucs4: New file.
80124         * modules/ucs4-utf8: New file.
80125         * modules/ucs4-utf16: New file.
80126         * MODULES.html.sh (func_all_modules): Add them.
80127
80128 2003-04-03  Bruno Haible  <bruno@clisp.org>
80129
80130         * m4/utf-ucs4.m4: New file.
80131         * m4/ucs4-utf.m4: New file.
80132
80133 2003-04-03  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/utf8-ucs4.h: New file, from GNU gettext.
80136         * lib/utf16-ucs4.h: New file, from GNU gettext.
80137         * lib/ucs4-utf8.h: New file, from GNU gettext.
80138         * lib/ucs4-utf16.h: New file, from GNU gettext.
80139
80140 2003-04-02  Bruno Haible  <bruno@clisp.org>
80141
80142         * modules/binary-io: New file.
80143         * MODULES.html.sh (func_all_modules): Add it.
80144
80145 2003-04-02  Bruno Haible  <bruno@clisp.org>
80146
80147         * lib/binary-io.h: New file, from GNU gettext.
80148
80149 2003-04-01  Bruno Haible  <bruno@clisp.org>
80150
80151         * modules/pathname: New file.
80152         * MODULES.html.sh (func_all_modules): Add it.
80153
80154 2003-04-01  Bruno Haible  <bruno@clisp.org>
80155
80156         * lib/pathname.h: New file, from GNU gettext.
80157         * lib/concatpath.c: New file, from GNU gettext.
80158
80159 2003-03-30  Bruno Haible  <bruno@clisp.org>
80160
80161         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80162
80163 2003-03-30  Bruno Haible  <bruno@clisp.org>
80164
80165         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80166         function chown() doesn't exist.
80167
80168 2003-03-28  Bruno Haible  <bruno@clisp.org>
80169
80170         * modules/copy-file: New file.
80171         * MODULES.html.sh (func_all_modules): Add it.
80172
80173 2003-03-28  Bruno Haible  <bruno@clisp.org>
80174
80175         * m4/copy-file.m4: New file.
80176
80177 2003-03-28  Bruno Haible  <bruno@clisp.org>
80178
80179         * lib/copy-file.h: New file, from GNU gettext.
80180         * lib/copy-file.c: New file, from GNU gettext.
80181
80182 2003-03-18  Jim Meyering  <jim@meyering.net>
80183
80184         * lib/quote.c (quote_n): Fix typo in comment.
80185
80186 2003-03-18  Bruno Haible  <bruno@clisp.org>
80187
80188         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80189         checking.
80190         * m4/onceonly_2_57.m4: Likewise.
80191
80192 2003-03-17  Bruno Haible  <bruno@clisp.org>
80193
80194         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80195         (m4_quote): Remove macro.
80196         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80197
80198 2003-03-14  Jim Meyering  <jim@meyering.net>
80199
80200         Merge changes from Coreutils.
80201         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80202         to be const, in order to avoid warnings.
80203         (obstack_room): Likewise.
80204         (obstack_empty_p): Likewise.
80205
80206 2003-03-14  Bruno Haible  <bruno@clisp.org>
80207
80208         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80209         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80210
80211 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80212
80213         Merge changes from Bison.
80214         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80215         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80216         when compiling Bison 1.875's `bitset bset = obstack_alloc
80217         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80218         * lib/hash.c: Include <stdbool.h> unconditionally.
80219
80220 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80221
80222         * m4/onceonly.m4 (m4_quote): New macro.
80223         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80224         Quote AC_FOREACH variable-expansions properly.
80225
80226 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80227
80228         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80229
80230 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80231
80232         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80233         Reported by Bruce Becker; see:
80234         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80235
80236 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80237             Bruno Haible  <bruno@clisp.org>
80238
80239         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80240         Reported by John Hughes, see
80241         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80242
80243 2003-02-20  Bruno Haible  <bruno@clisp.org>
80244
80245         * MODULES.html.sh (func_all_modules): Add poll.
80246
80247 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80248
80249         * modules/poll: New file.
80250
80251 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80252
80253         * lib/poll_.h: New file.
80254         * lib/poll.c: New file.
80255
80256 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80257
80258         * m4/poll.m4: New file.
80259
80260 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80261
80262         * modules/mathl: New file.
80263
80264 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80265
80266         * lib/mathl.h: New file.
80267         * lib/acosl.c: New file.
80268         * lib/asinl.c: New file.
80269         * lib/atanl.c: New file.
80270         * lib/ceill.c: New file.
80271         * lib/cosl.c: New file.
80272         * lib/expl.c: New file.
80273         * lib/floorl.c: New file.
80274         * lib/frexpl.c: New file.
80275         * lib/ldexpl.c: New file.
80276         * lib/logl.c: New file.
80277         * lib/sincosl.c: New file.
80278         * lib/sinl.c: New file.
80279         * lib/sqrtl.c: New file.
80280         * lib/tanl.c: New file.
80281         * lib/trigl.c: New file.
80282         * lib/trigl.h: New file.
80283
80284 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80285
80286         * m4/mathl.m4: New file.
80287
80288 2003-02-18  Bruno Haible  <bruno@clisp.org>
80289
80290         * MODULES.html.sh (func_all_modules): Add mathl.
80291
80292 2003-02-17  Bruno Haible  <bruno@clisp.org>
80293
80294         * modules/mkdtemp: New module.
80295         * MODULES.html.sh (func_all_modules): Add it.
80296
80297 2003-02-17  Bruno Haible  <bruno@clisp.org>
80298
80299         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80300
80301 2003-02-17  Bruno Haible  <bruno@clisp.org>
80302
80303         * lib/mkdtemp.h: New file, from GNU gettext.
80304         * lib/mkdtemp.c: New file, from GNU gettext.
80305
80306 2003-02-02  Jim Meyering  <jim@meyering.net>
80307
80308         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80309         e.g. glibc-2.2.93.
80310
80311 2003-01-31  Bruno Haible  <bruno@clisp.org>
80312
80313         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80314         'rpl_rename'.
80315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80316         'rpl_strnlen'.
80317         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80318         'rpl_strtod'.
80319         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80320         'rpl_utime'.
80321
80322 2003-01-31  Bruno Haible  <bruno@clisp.org>
80323
80324         * lib/rename.c: #undef rename before defining rpl_rename.
80325         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80326
80327 2003-01-30  Bruno Haible  <bruno@clisp.org>
80328
80329         * modules/vasnprintf, modules/vasprintf: New modules.
80330         * MODULES.html.sh (func_all_modules): Add them.
80331
80332 2003-01-30  Bruno Haible  <bruno@clisp.org>
80333
80334         * m4/signed.m4: New file, from GNU gettext.
80335         * m4/longdouble.m4: New file, from GNU gettext.
80336         * m4/wchar_t.m4: New file, from GNU gettext.
80337         * m4/wint_t.m4: New file, from GNU gettext.
80338         * m4/vasnprintf.m4: New file.
80339         * m4/vasprintf.m4: New file.
80340
80341 2003-01-30  Bruno Haible  <bruno@clisp.org>
80342
80343         * lib/printf-args.h: New file, from GNU gettext.
80344         * lib/printf-args.c: New file, from GNU gettext.
80345         * lib/printf-parse.h: New file, from GNU gettext.
80346         * lib/printf-parse.c: New file, from GNU gettext.
80347         * lib/vasnprintf.h: New file, from GNU gettext.
80348         * lib/vasnprintf.c: New file, from GNU gettext.
80349         * lib/asnprintf.c: New file, from GNU gettext.
80350         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80351         * lib/vasprintf.c: New file, from GNU gettext.
80352         * lib/asprintf.c: New file, from GNU gettext.
80353
80354 2003-01-29  Bruno Haible  <bruno@clisp.org>
80355
80356         * modules/stpncpy: New module.
80357         * MODULES.html.sh (func_all_modules): Add it.
80358
80359 2003-01-29  Bruno Haible  <bruno@clisp.org>
80360
80361         * m4/stpncpy.m4: New file.
80362
80363 2003-01-29  Bruno Haible  <bruno@clisp.org>
80364
80365         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80366         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80367
80368 2003-01-28  Bruno Haible  <bruno@clisp.org>
80369
80370         * modules/c-ctype: New module.
80371         * MODULES.html.sh (func_all_modules): Add it.
80372
80373 2003-01-28  Bruno Haible  <bruno@clisp.org>
80374
80375         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80376         Paul Eggert.
80377         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80378         Paul Eggert.
80379
80380 2003-01-27  Bruno Haible  <bruno@clisp.org>
80381
80382         * modules/xsetenv: New module.
80383         * MODULES.html.sh (func_all_modules): Add it.
80384
80385 2003-01-27  Bruno Haible  <bruno@clisp.org>
80386
80387         * lib/xsetenv.h: New file, from GNU gettext.
80388         * lib/xsetenv.c: New file, from GNU gettext.
80389
80390 2003-01-23  Jim Meyering  <jim@meyering.net>
80391
80392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80393         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80394
80395 2003-01-23  Bruno Haible  <bruno@clisp.org>
80396
80397         * modules/minmax: New module.
80398         * MODULES.html.sh (func_all_modules): Add it.
80399
80400 2003-01-23  Bruno Haible  <bruno@clisp.org>
80401
80402         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80403         Eggert.
80404
80405 2003-01-22  Bruno Haible  <bruno@clisp.org>
80406
80407         * modules/exit: New module.
80408         * MODULES.html.sh (func_all_modules): Add it.
80409
80410 2003-01-22  Bruno Haible  <bruno@clisp.org>
80411
80412         * lib/exit.h: New file, from GNU gettext.
80413
80414 2003-01-19  Bruno Haible  <bruno@clisp.org>
80415
80416         * gnulib-tool: Recognize option --extract-maintainer.
80417         (func_get_maintainer): New function.
80418         * modules/*: Add Maintainer entry.
80419
80420 2003-01-16  Jim Meyering  <jim@meyering.net>
80421
80422         * m4/regex.m4: The `regex' struct is both input and output.
80423         Initialize it before each use.  Patch by Tim Waugh.
80424
80425 2003-01-16  Bruno Haible  <bruno@clisp.org>
80426
80427         * MODULES.html.sh: Add a table of contents. Add the module name as
80428         leftmost column. Add hyperlinks.
80429
80430 2003-01-15  Bruno Haible  <bruno@clisp.org>
80431
80432         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80433
80434 2003-01-15  Bruno Haible  <bruno@clisp.org>
80435
80436         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80438         suffix.
80439
80440 2003-01-15  Bruno Haible  <bruno@clisp.org>
80441
80442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80443
80444 2003-01-15  Bruno Haible  <bruno@clisp.org>
80445
80446         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80447         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80448
80449 2003-01-14  Jim Meyering  <jim@meyering.net>
80450
80451         * lib/same.c (same_name): Tweak a comment.
80452
80453 2003-01-14  Bruno Haible  <bruno@clisp.org>
80454
80455         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80456         when a string comparison is sufficient.
80457
80458 2003-01-14  Bruno Haible  <bruno@clisp.org>
80459
80460         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80461         'unsigned int'.
80462
80463 2003-01-14  Bruno Haible  <bruno@clisp.org>
80464
80465         * lib/hash-pjw.c: Add comment about low quality of this function.
80466
80467 2003-01-13  Bruno Haible  <bruno@clisp.org>
80468
80469         * modules/stpcpy: Distribute lib/stpcpy.h.
80470         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80471
80472 2003-01-13  Bruno Haible  <bruno@clisp.org>
80473
80474         * modules/*: Add a description.
80475         * modules/strpbrk: Fix Makefile.am snippet.
80476         * modules/strtoimax: Fix dependencies.
80477         * modules/strtoumax: Likewise.
80478
80479 2003-01-13  Bruno Haible  <bruno@clisp.org>
80480
80481         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80482         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80483         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80484
80485 2003-01-13  Bruno Haible  <bruno@clisp.org>
80486
80487         * gnulib-tool (func_create_testdir): Store config/* files in the main
80488         directory.
80489         * config.rpath: Move to ...
80490         * config/config.rpath: ... here.
80491         * modules/gettext: Contains config/config.rpath, not config.rpath.
80492         * modules/iconv: Likewise.
80493
80494 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80495
80496         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80497         to avoid collisions with libcurses and libreadline.
80498
80499         * m4/getstr.m4: Remove.
80500         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80501
80502 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80503
80504         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80505         to avoid collisions with libcurses and libreadline.
80506
80507         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80508         * lib/getstr.h, getstr.c: Remove.
80509         * lib/getline.c: Include "getline.h", to check interface.
80510         Move body of old getstr.c here: this defines MIN_CHUNK and
80511         declares getdelim2, which is renamed from getstr.
80512         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80513
80514         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80515         All uses changed.
80516         * lib/linebuffer.h: Likewise.
80517         (readline): Remove backward-compatibility macro.
80518
80519 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80520
80521         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80522         to avoid collisions with libcurses and libreadline.
80523         * getstr: Remove.
80524         * MODULES.html.sh: Remove getstr.
80525         * modules/getline: Depend on unlocked-io, not getstr.
80526
80527 2003-01-12  Jim Meyering  <jim@meyering.net>
80528
80529         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80530
80531 2003-01-10  Bruno Haible  <bruno@clisp.org>
80532
80533         * modules/alloca: Change Makefile.am requirements. Simplify Include
80534         requirements. Add lib/alloca_.h to file list.
80535
80536 2003-01-10  Bruno Haible  <bruno@clisp.org>
80537
80538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80539
80540 2003-01-10  Bruno Haible  <bruno@clisp.org>
80541
80542         * lib/alloca_.h: New file.
80543         * lib/getdate.y: Unconditionally include alloca.h.
80544         * lib/makepath.c: Likewise.
80545         * lib/setenv.c: Likewise.
80546         * lib/userspec.c: Likewise.
80547
80548 2003-01-09  Karl Berry  <karl@gnu.org>
80549
80550         * MODULES.html.sh: include `dirname $0` in PATH, to find
80551         gnulib-tool.
80552
80553 2003-01-09  Bruno Haible  <bruno@clisp.org>
80554
80555         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80556         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80557
80558 2003-01-09  Bruno Haible  <bruno@clisp.org>
80559
80560         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80561
80562 2003-01-09  Bruno Haible  <bruno@clisp.org>
80563
80564         * lib/stdbool.h.in: New file.
80565
80566 2003-01-09  Bruno Haible  <bruno@clisp.org>
80567
80568         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80569         * MODULES.html.sh: Likewise.
80570
80571 2003-01-08  Jim Meyering  <jim@meyering.net>
80572
80573         * lib/full-write.c: Undefine and define-away `const' after inclusion
80574         of errno.h, not before.  Suggestion from Bruno Haible.
80575
80576 2003-01-08  Bruno Haible  <bruno@clisp.org>
80577
80578         * modules/full-read: Depend on full-write.
80579
80580 2003-01-08  Bruno Haible  <bruno@clisp.org>
80581
80582         * lib/safe-read.c: Include specification header first, to ensure its
80583         selfcontainedness.
80584         * lib/full-write.c: Likewise.
80585
80586 2003-01-07  Jim Meyering  <jim@meyering.net>
80587
80588         * lib/full-write.c: Rework so that it may serve to define full_read,
80589         too.
80590         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80591
80592 2003-01-07  Bruno Haible  <bruno@clisp.org>
80593
80594         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80595         <inttypes.h>.
80596         * lib/xstrtol.h: Likewise.
80597         * lib/xstrtoimax.c: Likewise.
80598         * lib/xstrtoumax.c: Likewise.
80599         * lib/human.h: Likewise.
80600
80601         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80602         on systems that have <inttypes.h> but not <stdint.h>.
80603
80604 2003-01-07  Bruno Haible  <bruno@clisp.org>
80605
80606         * MODULES.html.sh: Add copyright notice.
80607         (missed_files): Omit CVS directory entries.
80608         (func_module): Make it work with sed-3.02.
80609         * MODULES.txt: Remove file.
80610
80611 2003-01-06  Jim Meyering  <jim@meyering.net>
80612
80613         * lib/version-etc.c: Update year in translatable copyright string.
80614
80615 2003-01-03  Karl Berry  <karl@gnu.org>
80616
80617         * config/config.{guess,sub}: update from prep.
80618
80619 2003-01-02  Karl Berry  <karl@gnu.org>
80620
80621         * doc/COPYING.DOC: belatedly updated to 1.2.
80622
80623 2003-01-01  Karl Berry  <karl@gnu.org>
80624
80625         * gnulib-tool (func_verify_module): report module name $module in
80626         error message, not $1.
80627         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80628         be created, only if it doesn't exist.
80629         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80630
80631 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80632
80633         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80634
80635 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80636
80637         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80638         memcmp if strcoll doesn't work.
80639
80640 2002-12-31  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80643         nonempty.
80644
80645 2002-12-31  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/memcoll.c (STRCOLL): New macro.
80648         (memcoll): Use it.
80649
80650 2002-12-31  Bruno Haible  <bruno@clisp.org>
80651
80652         * lib/localcharset.h: New file.
80653         * lib/localcharset.c: Include it.
80654         * lib/unicodeio.c: Likewise.
80655
80656 2002-12-31  Bruno Haible  <bruno@clisp.org>
80657
80658         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80659         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80660
80661 2002-12-31  Bruno Haible  <bruno@clisp.org>
80662
80663         * lib/getline.h: Include <stddef.h>, for size_t.
80664
80665         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80666         * lib/unicodeio.c: Don't include <stddef.h>.
80667
80668 2002-12-31  Bruno Haible  <bruno@clisp.org>
80669
80670         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80671         HAVE_TM_ZONE.
80672
80673 2002-12-24  Karl Berry  <karl@gnu.org>
80674
80675         * config/config.guess: update from prep.
80676
80677 2002-12-24  Bruno Haible  <bruno@clisp.org>
80678
80679         General infrasructure.
80680         * m4/README: Rewritten.
80681         * m4/onceonly.m4: New file.
80682         * m4/onceonly_2_57.m4: New file.
80683
80684         Module atexit.
80685         * m4/atexit.m4: New file.
80686
80687         Module strtod.
80688         * m4/strtod.m4: New file.
80689
80690         Module strtol.
80691         * m4/strtol.m4: New file.
80692
80693         Module strtoul.
80694         * m4/strtoul.m4: New file.
80695
80696         Module memchr.
80697         * m4/memchr.m4: New file.
80698
80699         Module memcmp.
80700         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80701         (jm_FUNC_MEMCMP): Invoke it.
80702
80703         Module memcpy.
80704         * m4/memcpy.m4: New file.
80705
80706         Module memmove.
80707         * m4/memmove.m4: New file.
80708
80709         Module memset.
80710         * m4/memset.m4: New file.
80711
80712         Module strcspn.
80713         * m4/strcspn.m4: New file.
80714
80715         Module strpbrk.
80716         * m4/strpbrk.m4: New file.
80717
80718         Module strstr.
80719         * m4/strstr.m4: New file.
80720
80721         Module strerror.
80722         * m4/strerror.m4: New file.
80723
80724         Module mktime.
80725         * m4/mktime.m4: Renamed from jm-mktime.m4.
80726         (gl_PREREQ_MKTIME): New macro.
80727         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80728
80729         Module malloc.
80730         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80731         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80732         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80733
80734         Module realloc.
80735         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80736         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80737         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80738
80739         Module strftime.
80740         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80742         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80743         gl_TM_GMTOFF.
80744         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80745
80746         Module xalloc.
80747         * m4/xalloc.m4: New file.
80748
80749         Module alloca.
80750         * m4/alloca.m4: New file.
80751
80752         Module putenv.
80753         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80754         (jm_FUNC_PUTENV): Invoke it.
80755
80756         Module setenv.
80757         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80758         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80759         when invoked twice.
80760         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80761         gt_FUNC_SETENV.
80762
80763         Module memrchr.
80764         * m4/memrchr.m4: New file.
80765
80766         Module stpcpy.
80767         * m4/stpcpy.m4: New file.
80768
80769         Module strcase.
80770         * m4/strcase.m4: New file.
80771
80772         Module strdup.
80773         * m4/strdup.m4: New file.
80774
80775         Module strnlen.
80776         * m4/strnlen.m4: New file.
80777
80778         Module strndup.
80779         * m4/strndup.m4: New file.
80780
80781         Module xstrtod.
80782         * m4/xstrtod.m4: New file.
80783
80784         Module xstrtol.
80785         * m4/xstrtol.m4: New file.
80786
80787         Module getdate.
80788         * m4/getdate.m4: New file.
80789
80790         Module unlocked-io.
80791         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80792         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80793         * m4/jm-glibc-io.m4n: Remove file.
80794
80795         Module long-options.
80796         * m4/long-options.m4: New file.
80797
80798         Module md5.
80799         * m4/md5.m4: New file.
80800
80801         Module sha.
80802         * m4/sha.m4: New file.
80803
80804         Module getstr.
80805         * m4/getstr.m4: New file.
80806
80807         Module getline.
80808         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80809         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80810         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80811         simply getline. Infoke gl_PREREQ_GETLINE.
80812
80813         Module obstack.
80814         * m4/obstack.m4: New file.
80815
80816         Module hash.
80817         * m4/hash.m4: New file.
80818
80819         Module readtokens.
80820         * m4/readtokens.m4: New file.
80821
80822         Module strverscmp.
80823         * m4/strverscmp.m4: New file.
80824
80825         Module stdbool.
80826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80827         OSF/1.
80828
80829         Module strtoll.
80830         * m4/strtoll.m4: New file.
80831
80832         Module strtoull.
80833         * m4/strtoull.m4: New file.
80834
80835         Module strtoimax.
80836         * m4/strtoimax.m4: New file.
80837
80838         Module strtoumax.
80839         * m4/strtoumax.m4: New file.
80840
80841         Module xstrtoimax.
80842         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80843         jm_AC_PREREQ_XSTRTOIMAX.
80844         Moved the strtol prerequisites to strtol.m4.
80845         Moved the strtoll prerequisites to strtoll.m4.
80846         Moved the strtoimax prerequisites to strtoimax.m4.
80847
80848         Module xstrtoumax.
80849         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80850         jm_AC_PREREQ_XSTRTOUMAX.
80851         Moved the strtoul prerequisites to strtoul.m4.
80852         Moved the strtoull prerequisites to strtoull.m4.
80853         Moved the strtoumax prerequisites to strtoumax.m4.
80854
80855         Module chown.
80856         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80857         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80858
80859         Module dup2.
80860         * m4/dup2.m4: New file.
80861
80862         Module ftruncate.
80863         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80864         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80865
80866         Module getgroups.
80867         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80868         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80869
80870         Module gettimeofday.
80871         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80872         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80873         gl_PREREQ_GETTIMEOFDAY.
80874
80875         Module mkdir.
80876         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80877         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80878
80879         Module mkstemp.
80880         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80881         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80882         jm_AC_TYPE_UINTMAX_T.
80883         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80884
80885         Module stat.
80886         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80887         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80888
80889         Module lstat.
80890         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80891         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80892
80893         Module timespec.
80894         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80895         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80896         * m4/st_mtim.m4: Indentation.
80897
80898         Module nanosleep.
80899         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80900         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80901         gl_PREREQ_NANOSLEEP.
80902
80903         Module regex.
80904         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80905         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80906         (gl_REGEX): New macro.
80907
80908         Module rename.
80909         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80910         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80911
80912         Module rmdir.
80913         * m4/rmdir.m4: New file.
80914
80915         Module utime.
80916         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80917         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80918         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80919
80920         Module dirname.
80921         * m4/dirname.m4: New file.
80922
80923         Module getopt.
80924         * m4/getopt.m4: New file.
80925
80926         Module unistd-safer.
80927         * m4/unistd-safer.m4: New file.
80928
80929         Module fnmatch.
80930         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80931         declaration.
80932         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80933         (gl_FUNC_FNMATCH_POSIX): New macro.
80934         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80935         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80936         simply fnmatch.
80937
80938         Module exclude.
80939         * m4/exclude.m4: New file.
80940
80941         Module human.
80942         * m4/human.m4: New file.
80943
80944         Module acl.
80945         * m4/acl.m4: Nop.
80946
80947         Module backupfile.
80948         * m4/backupfile.m4: New file.
80949         * m4/d-ino.m4: Indentation.
80950
80951         Module fsusage.
80952         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80953         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80954         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80955
80956         Module dirfd.
80957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80958         requirements.
80959
80960         Module euidaccess.
80961         * m4/euidaccess.m4: New file.
80962
80963         Module file-type.
80964         * m4/file-type.m4: New file.
80965
80966         Module fileblocks.
80967         * m4/fileblocks.m4: New file.
80968
80969         Module filemode.
80970         * m4/filemode.m4: New file.
80971
80972         Module isdir.
80973         * m4/isdir.m4: New file.
80974
80975         Module lchown.
80976         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80977         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80978
80979         Module makepath.
80980         * m4/makepath.m4: New file.
80981
80982         Module modechange.
80983         * m4/modechange.m4: New file.
80984
80985         Module mountlist.
80986         * m4/mountlist.m4: New file.
80987         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80988         Indentation.
80989
80990         Module path-concat.
80991         * m4/path-concat.m4: New file.
80992
80993         Module pathmax.
80994         * m4/pathmax.m4: New file.
80995
80996         Module same.
80997         * m4/same.m4: New file.
80998
80999         Module save-cwd.
81000         * m4/save-cwd.m4: New file.
81001
81002         Module savedir.
81003         * m4/savedir.m4: New file.
81004
81005         Module xgetcwd.
81006         * m4/xgetcwd.m4: New file.
81007         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81008
81009         Module xreadlink.
81010         * m4/xreadlink.m4: New file.
81011
81012         Module safe-read.
81013         * m4/safe-read.m4: New file.
81014
81015         Module safe-write.
81016         * m4/safe-write.m4: New file.
81017
81018         Module closeout.
81019         * m4/closeout.m4: New file.
81020
81021         Module stdio-safer.
81022         * m4/stdio-safer.m4: New file.
81023
81024         Module getpass.
81025         * m4/getpass.m4: New file.
81026
81027         Module getugroups.
81028         * m4/getugroups.m4: New file.
81029
81030         Module group-member.
81031         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81032         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81033
81034         Module idcache.
81035         * m4/idcache.m4: New file.
81036
81037         Module userspec.
81038         * m4/userspec.m4: New file.
81039
81040         Module gettime.
81041         * m4/clock_time.m4: New file.
81042         * m4/gettime.m4: New file.
81043
81044         Module settime.
81045         * m4/settime.m4: New file.
81046
81047         Module posixtm.
81048         * m4/posixtm.m4: New file.
81049
81050         Module gethostname.
81051         * m4/gethostname.m4: New file.
81052
81053         Module canon-host.
81054         * m4/canon-host.m4: New file.
81055
81056         Module gettext.
81057         * m4/codeset.m4: New file, from gettext-0.11.5.
81058         * m4/gettext.m4: New file, from gettext-0.11.5.
81059         * m4/glibc21.m4: New file, from gettext-0.11.5.
81060         * m4/iconv.m4: New file, from gettext-0.11.5.
81061         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81062         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81063         * m4/inttypes.m4: New file, from gettext-0.11.5.
81064         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81065         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81066         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81067         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81068         * m4/lib-link.m4: New file, from gettext-0.11.5.
81069         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81070         * m4/progtest.m4: New file, from gettext-0.11.5.
81071         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81072         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81073         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81074
81075         Module localcharset.
81076         * m4/localcharset.m4: New file.
81077
81078         Module hard-locale.
81079         * m4/hard-locale.m4: New file.
81080
81081         Module mbswidth.
81082         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81083         onceonly macros.
81084         * m4/mbrtowc.m4: Add comment.
81085
81086         Module memcasecmp.
81087         * m4/memcasecmp.m4: New file.
81088
81089         Module memcoll.
81090         * m4/memcoll.m4: New file.
81091
81092         Module unicodeio.
81093         * m4/unicodeio.m4: New file.
81094
81095         Module rpmatch.
81096         * m4/rpmatch.m4: New file.
81097
81098         Module yesno.
81099         * m4/yesno.m4: New file.
81100
81101         Module exitfail.
81102         * m4/exitfail.m4: New file.
81103
81104         Module c-stack.
81105         * m4/c-stack.m4 (gl_C_STACK): New macro.
81106         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81107
81108         Module error.
81109         * m4/error.m4 (gl_ERROR): New macro.
81110         (jm_PREREQ_ERROR): Use onceonly macros.
81111
81112         Module fatal.
81113         * m4/fatal.m4: New file.
81114
81115         Module getloadavg.
81116         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81117         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81118
81119         Module getpagesize.
81120         * m4/getpagesize.m4: New file.
81121
81122         Module getusershell.
81123         * m4/getusershell.m4: New file.
81124
81125         Module physmem.
81126         * m4/physmem.m4: New file.
81127
81128         Module posixver.
81129         * m4/posixver.m4: New file.
81130
81131         Module quotearg.
81132         * m4/quotearg.m4: New file.
81133
81134         Module quote.
81135         * m4/quote.m4: New file.
81136
81137         Module readutmp.
81138         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81139
81140         Module sig2str.
81141         * m4/sig2str.m4: New file.
81142
81143         Other.
81144         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81145         ulonglong.m4.
81146         * m4/intmax_t.m4: New file.
81147         * m4/d-type.m4: Indentation.
81148         * m4/jm-macros.m4: Update.
81149         * m4/prereq.m4 (jm_PREREQ): Update.
81150         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81151         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81152         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81153         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81154         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81155         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81156         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81157         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81158         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81159         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81160         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81161         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81162         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81163         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81164         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81165         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81166         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81167         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81168         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81169
81170 2002-12-24  Bruno Haible  <bruno@clisp.org>
81171
81172         * MODULES.txt: Update according to m4/ changes.
81173
81174         Module gettext.
81175         * config.rpath: New file, from gettext-0.11.5.
81176
81177         * modules/*: New module descriptions.
81178         * gnulib-tool: New file.
81179         * MODULES.html.sh: New file.
81180
81181 2002-12-21  Karl Berry  <karl@gnu.org>
81182
81183         * doc/fdl.texi: update to version 1.2.
81184
81185 2002-12-19  Karl Berry  <karl@gnu.org>
81186
81187         * config/config.guess: update from prep.
81188
81189 2002-12-18  Bruno Haible  <bruno@clisp.org>
81190
81191         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81192         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81193
81194 2002-12-17  Bruno Haible  <bruno@clisp.org>
81195
81196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81197         stdlib.h, string.h.
81198
81199 2002-12-17  Bruno Haible  <bruno@clisp.org>
81200
81201         * lib/canon-host.c (strdup): Remove unused declaration.
81202
81203         * lib/fsusage.c: Include full_read.h.
81204         (get_fs_usage): Use full_read instead of safe_read.
81205
81206         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81207
81208 2002-12-12  Karl Berry  <karl@gnu.org>
81209
81210         * config/config.guess: update from prep.
81211
81212 2002-12-11  Bruno Haible  <bruno@clisp.org>
81213
81214         * m4/setenv.m4: New file, from gettext-0.11.5.
81215
81216 2002-12-11  Bruno Haible  <bruno@clisp.org>
81217
81218         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81219         not unsetenv().
81220         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81221         modifications:
81222
81223         2002-12-11  Bruno Haible  <bruno@clisp.org>
81224
81225                 * setenv.c (alloca): Fall back to malloc.
81226                 (freea): New macro.
81227                 (setenv): Use freea() to free memory allocated with alloca().
81228
81229         2002-11-13  Bruno Haible  <bruno@clisp.org>
81230
81231                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81232                 function declarations.
81233                 * unsetenv.c (unsetenv): Likewise.
81234
81235         2002-03-04  Bruno Haible  <bruno@clisp.org>
81236
81237                 Portability to AIX 4.3.3.
81238                 * unsetenv.c: New file, extracted from setenv.c.
81239                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81240
81241         2001-12-20  Bruno Haible  <bruno@clisp.org>
81242
81243                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81244                 use malloc instead. For SunOS 4.
81245
81246         2001-12-11  Bruno Haible  <bruno@clisp.org>
81247
81248                 * setenv.c: Declare alloca.
81249                 (compar_fn_t): New typedef.
81250                 (KNOWN_VALUE, STORE_VALUE): Use it.
81251
81252         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81253         setenv.h.
81254
81255 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81256
81257         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81258         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81259         Choose values that are less likely to collide with system fnmatch
81260         options.
81261         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81262         defined (e.g., a pure POSIX system).
81263         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81264         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81265
81266 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81267
81268         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81269         a pain in practice to deal with generated m4 files.  This change
81270         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81271
81272         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81273         and jm-glibc-io.m4, as they are no longer a special case.
81274         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81275         kludge and the auto-generation stuff.  Check only whether the
81276         functions are declared, not whether they exist, since older hosts
81277         that don't declare the functions can't use the optimization anyway.
81278
81279 2002-12-06  Jim Meyering  <jim@meyering.net>
81280
81281         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81282
81283         Merge in changes from libc's misc/error.c, in preparation
81284         for the merge of gnulib's changes back into libc.
81285
81286         * lib/error.c (_): Define only if not already defined.
81287         Move definition to follow all #include directives.
81288         Include unlocked-io.h only if !_LIBC.
81289         [_LIBC]: Include <libio/libioP.h>.
81290         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81291         (fflush): Tweak definition to use INTUSE.
81292         (putc): Define.
81293
81294 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81295
81296         * lib/alloca.c [defined emacs]: Include "lisp.h".
81297         (xalloc_die) [defined emacs]: New macro.
81298         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81299         [! defined emacs]: Include <xalloc.h>.
81300         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81301         (pointer): Typedef to POINTER_TYPE *.
81302         (malloc): Remove decl; we now always use xmalloc.
81303         (alloca): Use old-style definition, since Emacs needs this.
81304         Check for arithmetic overflow when computing combined size.
81305
81306 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81307
81308         Do not generate unlocked-io.h automatically, since it's easier to
81309         maintain it by hand.
81310
81311         * lib/unlocked-io.h: New file, from GNU diffutils,
81312         but with proper copyright notice and attribution.
81313         * lib/gen-uio: Remove.
81314         * lib/Makefile.am: Add copyright notice.
81315         (libfetish_a_SOURCES): Add unlocked-io.h.
81316         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81317         (DISTCLEANFILES, io_functions): Remove macros.
81318         (EXTRA_DIST): Remove gen_uio.
81319         (unlocked-io.h): Remove rule.
81320
81321 2002-12-04  Jim Meyering  <jim@meyering.net>
81322
81323         Reflect the fact that stat.c and lstat.c are no longer generated.
81324         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81325         (DISTCLEANFILES): Likewise.
81326         (EXTRA_DIST): Likewise.
81327         (all_local): Don't depend on stat.c or lstat.c.
81328         (stat.c, lstat.c): Remove rules.
81329         (EXTRA_DIST): Remove xstat.in.
81330
81331         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81332         * lib/stat.c: New file.  Contents mostly from xstat.in.
81333         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81334         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81335
81336         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81337         too.
81338         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81339
81340 2002-12-03  Jim Meyering  <jim@meyering.net>
81341
81342         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81343         but not semantics, to minimize the differences between these two files.
81344         (safe_read): Change comment to mention SAFE_READ_ERROR.
81345
81346         * lib/safe-read.c (IS_EINTR): Define.
81347         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81348
81349 2002-12-02  Jim Meyering  <jim@meyering.net>
81350
81351         * lib/safe-read.c (EINTR): Define.
81352         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81353         (INT_MAX): Provide fallback.
81354         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81355
81356         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81357
81358 2002-12-02  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81361         Define, taken from safe-read.c.
81362         (INT_MAX): Provide fallback.
81363         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81364         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81365
81366         * lib/safe-read.c (EINTR): Remove definition.
81367         (safe_read): Don't use EINTR if it is absent.
81368
81369 2002-12-01  Jim Meyering  <jim@meyering.net>
81370
81371         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81372         zero.
81373         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81374
81375 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81376
81377         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81378         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81379         with `if (! (value < limit)) abort ();', for readability.
81380
81381 2002-11-26  Karl Berry  <karl@gnu.org>
81382
81383         * lib/strdup.c: copy from libc again, with jim's ok.
81384         * lib/.cppi-disable: re-add strdup.c
81385
81386 2002-11-25  Karl Berry  <karl@gnu.org>
81387
81388         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81389         instead of "strtol.c".
81390
81391 2002-11-25  Karl Berry  <karl@gnu.org>
81392
81393         * config/install-sh: update from automake for variable quoting, $0 in
81394         error msgs, etc.
81395
81396         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81397         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81398         entry.
81399
81400 2002-11-25  Jim Meyering  <jim@meyering.net>
81401
81402         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81403
81404 2002-11-24  Karl Berry  <karl@gnu.org>
81405
81406         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81407         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81408
81409 2002-11-24  Jim Meyering  <jim@meyering.net>
81410
81411         Update from coreutils:
81412
81413         * lib/mktime.c: Merge in changes from libc.
81414
81415         Avoid a link-time failure on some Linux systems.
81416         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81417         (otherwise).
81418         (__mon_yday): Declare with the STATIC attribute.
81419         (__mktime_internal): Likewise.
81420         Based on a report from Greg Schafer.
81421
81422 2002-11-23  Jim Meyering  <jim@meyering.net>
81423
81424         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81425         Use `unsigned', not `int', as type of index.
81426
81427         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81428
81429         * lib/fsusage.c: Remove unneeded parentheses around operands of
81430         `defined'.
81431
81432 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81433
81434         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81435         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81436         so that we can be included first.
81437         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81438         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81439         No need to include stddef.h or sys/types.h any more.
81440         Surround local include files with "", not "<>".
81441         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81442         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81443         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81444         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81445         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81446         (ISPRINT): Remove; no longer needed now that we assume C89.
81447
81448         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81449         Preserve errno.
81450
81451         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81452         quotearg_char): Use SIZE_MAX rather than
81453         (size_t) -1 when we are talking about "infinity".
81454
81455         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81456
81457 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81458
81459         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81460         hint that one should use `if (! x) abort ();' rather than `assert
81461         (x);', and anyway it's one less thing to worry about configuring.
81462         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81463         hash_rehash, hash_insert): Use abort rather than assert.
81464
81465 2002-11-22  Bruno Haible  <bruno@clisp.org>
81466
81467         * lib/safe-read.h: Assume C89. Add comments.
81468         (safe_read): Change return type to size_t.
81469         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81470         byte counts > SSIZE_MAX correctly.
81471         * lib/safe-write.h: New file.
81472         * lib/safe-write.c: New file.
81473         * lib/full-read.h: New file.
81474         * lib/full-read.c: New file.
81475         * lib/full-write.h: Assume C89. Add comments.
81476         * lib/full-write.c: Include safe-write.h.
81477         (full_write): Rewritten to use safe_write.
81478         Suggested by Jim Meyering and Paul Eggert.
81479
81480 2002-11-21  Jim Meyering  <jim@meyering.net>
81481
81482         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81483
81484         Merge in changes from the coreutils.
81485
81486         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81487         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81488         <stdint.h>.
81489         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81490         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81491         int.  Work more efficiently if X is the same width as uintmax_t.
81492         Do not compare X to -1, to avoid bogus compiler warning.
81493         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81494         Don't assume that f_frsize and f_bsize are the same type.
81495
81496         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81497         warning on FreeBSD.
81498
81499         * lib/makepath.c (make_path): Restore umask *before* creating the final
81500         component.
81501         (make_path): Minor reformatting.
81502
81503         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81504         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81505         HAVE_MALLOC/HAVE_REALLOC.
81506
81507         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81508         dummy ones.  At least on GNU/Linux systems, `auto' means something
81509         else.
81510         From Michael Stone.
81511
81512 2002-11-21  Bruno Haible  <bruno@clisp.org>
81513
81514         Remove case insensitive option matching.
81515         * lib/argmatch.h (argcasematch): Remove declaration.
81516         (ARGCASEMATCH): Remove macro.
81517         (__xargmatch_internal): Remove case_sensitive argument.
81518         (XARGMATCH): Update.
81519         (XARGCASEMATCH): Remove macro.
81520         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81521         case_sensitive argument.
81522         (argcasematch): Remove function.
81523         (__xargmatch_internal): Remove case_sensitive argument.
81524         (main): Use XARGMATCH instead of XARGCASEMATCH.
81525
81526         * lib/xmalloc.c: Change compile-time error message. Add comment about
81527         required autoconf version.
81528
81529 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81530
81531         Merge argmatch cleanups from Bison.  Assume C89.
81532
81533         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81534         Include stdlib.h, for EXIT_FAILURE.
81535         Always include <string.h>, since we assume C89.
81536         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81537         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81538         Include <stddef.h> instead, since it's all we need for size_t.
81539         (PARAMS): Remove.  All uses removed.
81540         (ARRAY_CARDINALITY): Do not bother to #undef.
81541         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81542         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81543         Remove unnecessary parentheses.
81544         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81545         Insert necessary parentheses.
81546         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81547         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81548
81549 2002-11-19  Bruno Haible  <bruno@clisp.org>
81550
81551         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81552         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81553
81554         * lib/mbswidth.h (PARAMS): Remove macro.
81555         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81556         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81557
81558         * lib/gcd.h (PARAMS): Remove macro.
81559         (gcd): Use ANSI C function declarations.
81560         * lib/gcd.c (gcd): Likewise.
81561
81562 2002-11-15  Bruno Haible  <bruno@clisp.org>
81563
81564         * lib/strcspn.c: Include <stddef.h>.
81565         (strcspn): Use ANSI C function declaration. Change return type to
81566         size_t. Use NULL.
81567         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81568         (strpbrk): Use NULL.
81569         * lib/strpbrk.h (PARAMS): Remove macro.
81570         (strpbrk): Use ANSI C function declaration.
81571         * lib/strstr.c: Don't include <sys/types.h>.
81572         * lib/strstr.h (PARAMS): Remove macro.
81573         (strstr): Use ANSI C function declarations.
81574
81575 2002-11-14  Karl Berry  <karl@gnu.org>
81576
81577         * config/mkinstalldirs: `do' on separate line, instead of
81578         `for var; do'.
81579
81580 2002-11-06  Bruno Haible  <bruno@clisp.org>
81581
81582         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81583         * lib/gcd.c (gcd): Likewise.
81584
81585 2002-11-05  Bruno Haible  <bruno@clisp.org>
81586
81587         * lib/gcd.h: New file, from gettext-0.11.5.
81588         * lib/gcd.c: New file, from gettext-0.11.5.
81589
81590 2002-11-05  Bruno Haible  <bruno@clisp.org>
81591
81592         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81593         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81594         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81595         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81596
81597         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81598         <libintl.h>.
81599         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81600         <libintl.h>.
81601
81602         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81603         * lib/human.c: Include gettext.h instead of <libintl.h>.
81604         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81605         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81606         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81607         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81608         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81609         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81610         (textdomain): Remove definition.
81611         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81612
81613         * lib/long-options.c: Remove include of <libintl.h> and definition of
81614         _.
81615         * lib/same.c: Remove include of <libintl.h> and definition of _.
81616
81617 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81618
81619         * lib/config.charset: A few additions for Solaris.
81620
81621 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81622
81623         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81624         * lib/localcharset.c (locale_charset): Declare as extern "C".
81625
81626 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81627
81628         * lib/config.charset: msdos in uk_UA uses CP1125.
81629
81630 2002-11-04  Bruno Haible  <bruno@clisp.org>
81631
81632         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81633         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81634         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81635         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81636         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81637
81638 2002-11-04  Bruno Haible  <bruno@clisp.org>
81639
81640         * lib/localcharset.c (locale_charset): Don't return an empty string.
81641
81642 2002-11-04  Bruno Haible  <bruno@clisp.org>
81643
81644         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81645         aliases.
81646
81647 2002-11-04  Bruno Haible  <bruno@clisp.org>
81648
81649         * lib/config.charset: Update for newest glibc. Add canonical names
81650         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81651
81652 2002-11-04  Bruno Haible  <bruno@clisp.org>
81653
81654         * lib/config.charset: Add support for NetBSD.
81655
81656 2002-11-04  Bruno Haible  <bruno@clisp.org>
81657
81658         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81659
81660 2002-11-01  Bruno Haible  <bruno@clisp.org>
81661
81662         * configure.in: Add AC_CONFIG_AUX_DIR call.
81663         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81664         test/Makefile.
81665         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81666
81667 2002-09-28  Karl Berry  <karl@gnu.org>
81668
81669         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81670         installed automake until the next release, since changes have been
81671         made.
81672
81673 2002-09-25  Karl Berry  <karl@gnu.org>
81674
81675         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81676         * lib/getopt*: copy from libc/posix.
81677         * lib/gettext.h: copy from gettext.
81678         * lib/.cppi-disable: add strdup.c, gettext.h.
81679
81680 2002-09-25  Karl Berry  <karl@gnu.org>
81681
81682         * config/srclist.txt: enable gettext.h check.
81683         * config/config.{guess,sub}: update from prep.
81684         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81685                 from automake 1.6.3.
81686         See srclist*.
81687
81688 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81689
81690         * regex.c (PATFETCH): Remove the translating fetch.
81691         (PATFETCH_RAW): Rename to PATFETCH.
81692         (set_image_of_range): New fun.
81693         (SET_RANGE_TABLE_WORK_AREA): Use it.
81694         (regex_compile): Don't translate the pattern chars so eagerly.
81695         Only do it when inserting an `exactn' bytecode or when handling
81696         a char-range.
81697         (mutually_exclusive_p): Avoid empty statement.
81698
81699 2002-07-06  Jim Meyering  <meyering@lucent.com>
81700
81701         * m4/README: Don't mention Makefile.am.in.
81702         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81703
81704 2002-07-01  Jim Meyering  <meyering@lucent.com>
81705
81706         * lib/c-stack.c: Include sys/time.h.
81707         From Volker Borchert.
81708
81709 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81710
81711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81712
81713 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81714
81715         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81716         New macro.  Use it uniformly instead of
81717         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81718         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81719         reported by Vin Shelton.
81720
81721 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81722
81723         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81724         Do not assume SA_SIGINFO behavior.
81725         Bug reported by Jim Meyering on NetBSD 1.5.2.
81726
81727 2002-06-22  Jim Meyering  <meyering@lucent.com>
81728
81729         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81731
81732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81733         now that configure.ac uses AC_GNU_SOURCE.
81734         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81735         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81736
81737         Update to latest tools.  Suggestions from Paul Eggert.
81738         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81739         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81740         * m4/fnmatch.m4: Likewise.
81741         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81742         to AC_HEADER_STDBOOL
81743
81744 2002-06-22  Jim Meyering  <meyering@lucent.com>
81745
81746         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81747         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81748
81749 2002-06-22  Jim Meyering  <meyering@lucent.com>
81750
81751         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81752
81753         * lib/exitfail.c, exitfail.h: Likewise.
81754         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81755
81756         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81757         of fnmatch.h.
81758         (EXTRA_DIST): Add fnmatch_loop.c.
81759         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81760
81761         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81762         * lib/fnmatch.c: Update from diffutils-2.8.2.
81763         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81764         * lib/fnmatch.h: Remove file.
81765
81766 2002-06-21  Jim Meyering  <meyering@lucent.com>
81767
81768         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81769         * m4/mbrtowc.m4: Likewise.
81770
81771         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81772         * m4/mbswidth.m4: Reflect name change:
81773         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81774         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81775
81776         * m4/lib-link.m4: Update from gettext-0.11.2.
81777         * m4/gettext.m4: Likewise.
81778
81779         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81780         From Alfred M. Szmidt.
81781
81782 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81783
81784         * lib/file-type.h: Report an error if neither S_ISREG nor
81785         S_IFREG is defined, instead of using a test specific to glibc
81786         2.2.  This should be safe, since POSIX requires S_ISREG and
81787         Unix Version 7 had S_IFREG.  We don't need to check for
81788         <sys/types.h> since we don't use any symbols that it defines.
81789
81790 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81791
81792         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81793         $@-t, so that each temporary file name is unique and valid in the first
81794         8 characters, for operation under DOS.
81795
81796 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81797
81798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81799
81800 2002-06-15  Jim Meyering  <meyering@lucent.com>
81801
81802         Work even with DJGPP 2.03, which lacks support for symlinks.
81803         From Richard Dawe.
81804         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81805         is defined.
81806         * lib/lchown.c (S_ISLNK): Likewise.
81807
81808 2002-06-15  Jim Meyering  <meyering@lucent.com>
81809
81810         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81811         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81812         have been included before this file.
81813
81814 2002-06-14  Jim Meyering  <meyering@lucent.com>
81815
81816         * lib/file-type.h: Use the version from diffutils-2.8.2.
81817         * lib/file-type.c: Likewise.
81818
81819 2002-06-07  Jim Meyering  <meyering@lucent.com>
81820
81821         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81822         They're needed at least for NetBSD 1.5.2.
81823         ($statxfs_includes): Include those same headers.
81824         ($statxfs_includes): Include sys/vfs.h if available.
81825         ($statxfs_includes): Likewise for sys/statvfs.h.
81826         Check for the following members in both structs statfs and statvfs:
81827         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81828
81829 2002-06-01  Jim Meyering  <meyering@lucent.com>
81830
81831         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81832         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81833
81834 2002-05-28  Jim Meyering  <meyering@lucent.com>
81835
81836         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81837         Reported by Volker Borchert.
81838
81839 2002-05-27  Jim Meyering  <meyering@lucent.com>
81840
81841         Fix a problem seen only on nonconforming systems whereby ls.c's
81842         use of localtime, and then of gettimeofday would cause trouble:
81843         the localtime call used to initialize rpl_gettimeofday's save
81844         mechanism would clobber ls's current local time information so
81845         that in any long listing the first file would always be listed
81846         with date 1970-01-01.  Analysis by Volker Borchert.
81847
81848         * lib/gettimeofday.c (localtime): Undefine.
81849         (rpl_localtime): New function.
81850
81851 2002-05-27  Jim Meyering  <meyering@lucent.com>
81852
81853         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81854         localtime.
81855
81856         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81857         use the replacement function; it wouldn't resolve at link time.
81858         Reported by Volker Borchert.
81859
81860 2002-05-22  Jim Meyering  <meyering@lucent.com>
81861
81862         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81863         file-type.h.
81864         * lib/file-type.h: New file.
81865         * lib/file-type.c (file_type): New file/function.  Extracted from
81866         diffutils.
81867
81868 2002-04-30  Jim Meyering  <meyering@lucent.com>
81869
81870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81871
81872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81873
81874         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81875
81876 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81877
81878         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81879         Do not check for alloca.h (no longer used) or stdbool.h (was never
81880         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81881
81882 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81883
81884         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81885
81886 2002-04-29  Jim Meyering  <meyering@lucent.com>
81887
81888         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81889         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81890         Use AC_FUNC_STRNLEN here instead.
81891
81892         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81893         With autoconf-2.53a, it's part of AC_PROG_CC.
81894
81895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81896
81897         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81899
81900 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81901
81902         * lib/sig2str.h, lib/sig2str.c: New files.
81903         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81904
81905 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81906
81907         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81908         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81909         of 127, since 64 is the largest conceivable number for ancient
81910         nonstandard hosts.
81911         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81912
81913 2002-04-28  Jim Meyering  <meyering@lucent.com>
81914
81915         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81916
81917 2002-04-24  Jim Meyering  <meyering@lucent.com>
81918
81919         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81920         (jm_PREREQ): Use it.
81921
81922         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81923         mach/mach.h fcntl.h.
81924         Check for this function: setlocale.
81925
81926 2002-04-24  Jim Meyering  <meyering@lucent.com>
81927
81928         * lib/gettext.h: New file, from Gettext.
81929         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81930         (libfetish_a_SOURCES): Add gettext.h.
81931
81932 2002-04-16  Jim Meyering  <meyering@lucent.com>
81933
81934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81935         ut_pid, ut_id, ut_exit.
81936
81937 2002-04-16  Jim Meyering  <meyering@lucent.com>
81938
81939         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81940         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81941         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81942
81943 2002-04-12  Jim Meyering  <meyering@lucent.com>
81944
81945         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81946         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81947         existence of the getmntinfo function.  Needed for Darwin 5.3.
81948
81949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81950         This is necessary at least on Darwin 5.3.
81951
81952         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81953         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81954         strnlen.o in the library, and that makes some versions of ranlib
81955         object.
81956
81957 2002-04-12  Jim Meyering  <meyering@lucent.com>
81958
81959         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81960
81961 2002-04-09  Jim Meyering  <meyering@lucent.com>
81962
81963         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81964         to be more precise.  Rather than saying we're checking whether the
81965         function `works', say what we're testing.
81966         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81967         Reported by Bruno Haible.
81968
81969 2002-03-10  Jim Meyering  <meyering@lucent.com>
81970
81971         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81972         Suggestion from Santiago Vila.
81973
81974 2002-03-08  Jim Meyering  <meyering@lucent.com>
81975
81976         * lib/rename.c: Mention that this wrapper is needed also on
81977         mips-dec-ultrix4.4 systems.
81978
81979 2002-03-02  Jim Meyering  <meyering@lucent.com>
81980
81981         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81982         not HAVE_CLOCK_SETTIME.
81983
81984 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81985
81986         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81987         Check for clock_settime.
81988
81989 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81990
81991         * lib/nanosleep.h: Rename to....
81992         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81993
81994         * lib/gettime.c: New file.
81995         * lib/settime.c: New file.
81996         * lib/stime.c: Remove.
81997
81998         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81999         timespec.h.  Remove nanosleep.h.
82000
82001 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82002
82003         * m4/acl.m4: New file.
82004         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82005         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82006
82007 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82008
82009         * lib/acl.c, lib/acl.h: New files.
82010         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82011
82012 2002-02-24  Jim Meyering  <meyering@lucent.com>
82013
82014         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82015         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82016         cause trouble.  Reported by Nelson Beebe.
82017
82018 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82019
82020         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82021         compilers that don't know that xalloc_die never returns.
82022
82023 2002-02-20  Jim Meyering  <meyering@lucent.com>
82024
82025         * lib/getdate.c: Regenerate using bison-1.33.
82026
82027 2002-02-17  Jim Meyering  <meyering@lucent.com>
82028
82029         * config/config.guess (main): Don't use `head -1'; it's no longer
82030         portable. Use `sed 1q' instead.
82031
82032 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82033
82034         * m4/codeset.m4: Upgrade to gettext-0.11.
82035         * m4/gettext.m4: Upgrade to gettext-0.11.
82036         * m4/glibc21.m4: Upgrade to gettext-0.11.
82037         * m4/iconv.m4: Upgrade to gettext-0.11.
82038         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82039         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82040         * m4/lib-ld.m4: New file, from gettext-0.11.
82041         * m4/lib-link.m4: New file, from gettext-0.11.
82042         * m4/lib-prefix.m4: New file, from gettext-0.11.
82043         * m4/progtest.m4: Upgrade to gettext-0.11.
82044
82045 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82046
82047         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82048         (jm_PREREQ): Use it.
82049
82050 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82051
82052         * lib/posixver.c, lib/posixver.h: New files.
82053         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82054
82055 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82056             Bruno Haible  <bruno@clisp.org>
82057
82058         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82059         (fwrite_success_callback): New declaration.
82060         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82061         print_unicode_char. Call failure callback instead of error.
82062         (fwrite_success_callback): New function.
82063         (exit_failure_callback): New function.
82064         (fallback_failure_callback): New function.
82065         (print_unicode_char): Call unicode_to_mb.
82066
82067 2002-01-26  Jim Meyering  <meyering@lucent.com>
82068
82069         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82070         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82071
82072 2002-01-26  Jim Meyering  <meyering@lucent.com>
82073
82074         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82075
82076 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82077
82078         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82079
82080 2002-01-22  Jim Meyering  <meyering@lucent.com>
82081
82082         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82083         Otherwise, some versions of automake would omit the rule that makes
82084         Makefile from Makefile.in.
82085
82086 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82087
82088         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82089         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82090         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82091         (memcoll): Set errno to zero if there is no error.
82092
82093         * lib/quotearg.c (quotearg_buffer_restyled):
82094         Fix bug with quoting buffers containing NUL when backslashing escapes.
82095         This bug was exposed by the other changes in this patch.
82096         (quotearg_n_options): New arg ARGSIZE.
82097         All callers changed.
82098         (quoting_options_from_style): New function.
82099         (quotearg_n_style): Use it.
82100         (quotearg_n_style_mem): New function.
82101
82102         * lib/quotearg.h (quotearg_n_style_mem): New function.
82103
82104 2002-01-19  Jim Meyering  <meyering@lucent.com>
82105
82106         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82107         Remove useless quotes: DF_PROG="df".
82108         * m4/strnlen.m4: New file.
82109
82110 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82111
82112         * lib/backupfile.c (ISDIGIT): Comment fix.
82113         * lib/getdate.y (ISDIGIT): Likewise.
82114         * lib/posixtm.c (ISDIGIT, year): Likewise.
82115         * lib/strverscmp.c (ISDIGIT): Likewise.
82116         * lib/userspec.c (ISDIGIT): Likewise.
82117
82118 2002-01-16  Jim Meyering  <meyering@lucent.com>
82119
82120         * lib/getdate.y: Add three semicolons, each just before a closing
82121         brace. Bison (as of version 1.31) no longer papers over that mistake.
82122
82123 2002-01-05  Jim Meyering  <meyering@lucent.com>
82124
82125         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82126
82127 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82128
82129         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82130         not silently exit merely because the output buffer happens to
82131         have nothing pending.
82132
82133 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82134
82135         See the big note in ../ChangeLog.
82136         * lib/human.c (suffixes): Prefer K to k for 1024.
82137         (generate_suffix_backwards): New function.
82138         (human_readable_inexact): Use it.
82139         * lib/xstrtol.c (__xstrtol): If there is no number but there
82140         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82141         Accept 'K' as well as 'k'.
82142
82143 2001-12-15  Jim Meyering  <meyering@lucent.com>
82144
82145         * lib/regex.h (__restrict_arr): Update from libc.
82146
82147         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82148         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82149         (STREQ): Define.
82150
82151 2001-12-14  Jim Meyering  <meyering@lucent.com>
82152
82153         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82154         Suggestion from Bruno Haible.
82155
82156 2001-12-10  Jim Meyering  <meyering@lucent.com>
82157
82158         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82159         xrealloc, Instead, include "xalloc.h".
82160         (initbuffer): Don't cast xmalloc return value to char*.
82161         (readline): Reword comment.
82162         Don't cast xrealloc return value to char*
82163         Return NULL, not 0.
82164
82165 2001-12-09  Jim Meyering  <meyering@lucent.com>
82166
82167         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82168         about `signed and unsigned type in conditional expression'.
82169         * lib/posixtm.c (posix_time_parse): Likewise.
82170
82171         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82172
82173         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82174         to avoid a pedantic warning.
82175
82176         * lib/getstr.c: Don't include assert.h.
82177         (getstr): Remove warning-evoking assertions.
82178         Return -1 if offset parameter is out of bounds.
82179         Change the type of a local from int to size_t.
82180
82181         * lib/strftime.c (my_strftime_localtime_r): Include this function
82182         definition in the `#if ! HAVE_TM_GMTOFF' block.
82183
82184         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82185         Include xalloc.h instead.
82186
82187 2001-12-02  Jim Meyering  <meyering@lucent.com>
82188
82189         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82190         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82191         included.
82192
82193         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82194         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82195
82196 2001-11-30  Akim Demaille  <akim@epita.fr>
82197
82198         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82199         before being defined.
82200
82201 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82202
82203         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82204         First arg is int, not unsigned.
82205         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82206         (SIZE_MAX, UINT_MAX): New macros.
82207         (quotearg_n_options): Abort if N is negative.
82208         Avoid overflow check on hosts where size_t is 64 bits and int
82209         is 32 bits, as overflow is impossible there.
82210         Fix off-by-one typo that caused unnecessary reallocation.
82211
82212 2001-11-27  Jim Meyering  <meyering@lucent.com>
82213
82214         * lib/tempname.c: Merge with version from libc.
82215         * lib/regex.c: Likewise.
82216
82217         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82218         systems for which STDC_HEADERS is 0, it was not included, resulting in
82219         a warning about an integer-to-pointer conversion problem with getenv.
82220         Reported by Volker Borchert.
82221
82222 2001-11-26  Jim Meyering  <meyering@lucent.com>
82223
82224         * lib/gtod.h: Remove file.
82225         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82226         * lib/gettimeofday.c: Don't include gtod.h.
82227         (GTOD_init): Remove function.
82228         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82229         Suggestion from Volker Borchert.
82230
82231 2001-11-23  Jim Meyering  <meyering@lucent.com>
82232
82233         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82234         it.
82235         * lib/hash.c (struct hash_table): Define it here instead.
82236
82237 2001-11-22  Jim Meyering  <meyering@lucent.com>
82238
82239         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82240
82241 2001-11-20  Jim Meyering  <meyering@lucent.com>
82242
82243         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82244         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82245
82246 2001-11-19  Jim Meyering  <meyering@lucent.com>
82247
82248         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82249         directory.  Use "conftestXXXXXX" as the template.
82250         Suggestion from Paul Eggert.
82251
82252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82253         immediately, so the test doesn't mistakenly hit the max-open-files
82254         limit.
82255
82256 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82257
82258         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82259         (TEMPORARIES): New macro.
82260         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82261         removes an artificial limitation (e.g. HP-UX 10.20, where
82262         TMP_MAX is 17576).
82263
82264 2001-11-18  Jim Meyering  <meyering@lucent.com>
82265
82266         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82267
82268 2001-11-18  Jim Meyering  <meyering@lucent.com>
82269
82270         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82271         on SunOS 4.
82272
82273         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82274         files will be created before anything else.
82275
82276 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82277
82278         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82279         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82280
82281 2001-11-17  Jim Meyering  <meyering@lucent.com>
82282
82283         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82284         Prompted by a report from Bob Proulx.
82285
82286         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82287         Instead, require UTILS_FUNC_MKSTEMP.
82288
82289 2001-11-17  Jim Meyering  <meyering@lucent.com>
82290
82291         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82292         Now, that's done as part of AC_FUNC_STRTOD.
82293
82294 2001-11-17  Jim Meyering  <meyering@lucent.com>
82295
82296         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82297         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82298         rather than group writable.  Patch by Juan F. Codagnone.
82299
82300         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82301         xrealloc, Instead, include "xalloc.h".
82302
82303         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82304         Remove explicit declarations of xmalloc, xrealloc,
82305         and xstrdup.  Instead, include "xalloc.h".
82306
82307         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82308         unlocked-io.h.
82309         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82310         Likewise.
82311         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82312
82313         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82314         Reported by Padraig Brady.
82315
82316         * lib/mkstemp.c: #undef mkstemp.
82317         Include config.h.
82318         (rpl_mkstemp): Rename from mkstemp.
82319         Protoize.
82320
82321 2001-11-16  Jim Meyering  <meyering@lucent.com>
82322
82323         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82324         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82325         determine the amount of total physical memory, use pstat_getstatic.
82326         HPUX-11 doesn't define _SC_PHYS_PAGES.
82327         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82328         If sysconf couldn't be used to determine the amount of available
82329         physical memory, use both pstat_getstatic and pstat_getdynamic.
82330         Based on a patch from Bob Proulx.
82331
82332 2001-11-10  Jim Meyering  <meyering@lucent.com>
82333
82334         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82335         (jm_PREREQ): Use it.
82336
82337 2001-11-09  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/jm-macros.m4: Require autoconf-2.52f.
82340         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82341         Use these AC_-prefixed names, not the AM_-prefixed ones.
82342
82343         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82344
82345 2001-11-05  Jim Meyering  <meyering@lucent.com>
82346
82347         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82348
82349 2001-11-04  Jim Meyering  <meyering@lucent.com>
82350
82351         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82352         $DEFS.
82353
82354 2001-11-03  Jim Meyering  <meyering@lucent.com>
82355
82356         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82357         of AC_DEFUN.
82358
82359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82360         know the name of the variable in the macro definition.
82361
82362 2001-11-03  Jim Meyering  <meyering@lucent.com>
82363
82364         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82365         in argmatch_to_argument call.
82366
82367         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82368         argument.
82369
82370         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82371         e.g., a fault due to an attempt to free a NULL pointer.
82372
82373 2001-11-01  Jim Meyering  <meyering@lucent.com>
82374
82375         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82376         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82377
82378 2001-11-01  Jim Meyering  <meyering@lucent.com>
82379
82380         * lib/dirfd.c, lib/dirfd.h: New files.
82381         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82382
82383         * lib/hash.c (hash_print) [TESTING]: Clean up.
82384
82385 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82386
82387         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82388         to avoid a warning if -Wall.
82389
82390 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82391
82392         * README: New file
82393         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82394         (per RMS's instructions, this is now the canonical source)
82395         * lgpl/, gpl/: New directories.
82396
82397 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82398
82399         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82400
82401 2001-10-21  Jim Meyering  <meyering@lucent.com>
82402
82403         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82404         this code would end up calling gettext even in packages built
82405         with --disable-nls.
82406         * lib/getopt.c (_): Likewise.
82407         * lib/regex.c (_): Likewise.
82408
82409 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82410
82411         * m4/error.m4 (jm_PREREQ_ERROR):
82412         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82413         AC_FUNC_STRERROR_R does that.
82414         Check for strerror declaration.
82415
82416         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82417         are supposed to have them these days.
82418         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82419         Merge changes from latest Autoconf CVS.
82420         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82421         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82422         POSIX decided to standardize on the int flavor of strerror_r.
82423
82424 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82425
82426         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82427         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82428         Use strerror_r that is only a macro, even if it is not a function.
82429         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82430         (private_strerror): Use prototypes, not old-style function definition.
82431         (print_errno_message): New function.
82432         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82433         char*-flavored one.
82434         (error_tail, error, error_at_line): Use it.
82435
82436 2001-10-11  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82439         and quote_n (1, ... to avoid clobbering a buffer.
82440
82441 2001-10-05  Jim Meyering  <meyering@lucent.com>
82442
82443         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82444         hash-pjw.h.
82445         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82446         * lib/hash-pjw.h: New file.
82447
82448 2001-09-30  Jim Meyering  <meyering@lucent.com>
82449
82450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82451         `struct fsstat' has the `f_fstypename' member.
82452         Use that to define FS_TYPE, which is now used to make
82453         the getfsstat link test tighter.
82454
82455 2001-09-30  Jim Meyering  <meyering@lucent.com>
82456
82457         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82458         Include <sys/ucred.h>, for Apple Darwin.
82459         Include sys/mount.h and sys/fs_types.h only if available.
82460         (FS_TYPE): Define.
82461         (read_filesystem_list): Use FS_TYPE.
82462
82463 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82464
82465         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82466         a boolean context.
82467
82468 2001-09-29  Jim Meyering  <meyering@lucent.com>
82469
82470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82471         [one-argument getmntent function]): Include stdio.h before mntent.h.
82472         SunOS 4.1.x needs it for the declaration of `FILE'.
82473         Patch by Volker Borchert.
82474
82475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82476         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82477         sys/fs_types.h, and make the link-test for getfsstat guard #include
82478         directives with appropriate #if HAVE_*_H tests so that we can
82479         detect getfsstat on Apple Darwin1.3.7 systems.
82480         Reported by Nelson Beebe.
82481         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82482
82483 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82484
82485         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82486         #defines strtoimax.  Also treat the other strto* functions
82487         like strtoimax.
82488
82489         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82490         Check for strtoul and strtoumax,
82491         as those declarations are made even in the signed case.
82492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82493         Likewise, for strtol and strtoimax.
82494
82495 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82496
82497         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82498         #defines strtoimax.  Also treat the other strto* functions
82499         like strtoimax.
82500
82501         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82502         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82503         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82504
82505 2001-09-26  Jim Meyering  <meyering@lucent.com>
82506
82507         Most macros in unlocked-io.h had the wrong number of arguments.
82508         * lib/gen-uio: New script.
82509         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82510         * lib/unlocked-io.hin: Remove file.
82511         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82512         rather than trying to embed it here.
82513         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82514         Reported by Padraig Brady.
82515
82516 2001-09-25  Volker Borchert  <bt@teknon.de>
82517
82518         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82519         `result'.
82520
82521 2001-09-24  Jim Meyering  <meyering@lucent.com>
82522
82523         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82524
82525 2001-09-23  Jim Meyering  <meyering@lucent.com>
82526
82527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82528         instead of the mere test for existence of mntent.h.  The latter
82529         would get a false-positive on AIX 3.4 systems.
82530         In the outer getmntent if-block, don't die if neither of the getmntent
82531         tests succeeds.  Instead, just fall through and continue with the
82532         remaining tests.
82533
82534 2001-09-23  Jim Meyering  <meyering@lucent.com>
82535
82536         * lib/mountlist.c: Remove useless parentheses in #if directives.
82537         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82538         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82539
82540 2001-09-22  Jim Meyering  <meyering@lucent.com>
82541
82542         * m4/gettext.m4: New file.  From gettext.
82543         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82544         * m4/progtest.m4: Likewise
82545         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82546         * m4/glibc21.m4: Likewise.
82547
82548         * m4/libintl.m4: Remove.  No longer used.
82549
82550 2001-09-22  Jim Meyering  <meyering@lucent.com>
82551
82552         * lib/localcharset.c: Update from latest gettext.
82553         * lib/config.charset: Likewise.
82554
82555 2001-09-20  Jim Meyering  <meyering@lucent.com>
82556
82557         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82558         strtoimax.
82559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82560         strtoumax.
82561
82562 2001-09-20  Jim Meyering  <meyering@lucent.com>
82563
82564         * lib/xstrtol.c (strtoimax): Guard declaration with
82565         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82566         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82567         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82568         (strtoumax): Likewise, for completeness (it wasn't necessary).
82569
82570 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82571
82572         * lib/strtoimax.c (HAVE_LONG_LONG):
82573         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82574         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82575         to work around bug in IBM C compiler.
82576
82577 2001-09-17  Jim Meyering  <meyering@lucent.com>
82578
82579         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82580         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82581         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82582         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82583         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82584         whenever the right hand side need not be expanded by the shell.
82585
82586 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82587
82588         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82589         library.  It's not correct, as some older glibcs are buggy.
82590         fnmatch wasn't fixed until glibc 2.2.
82591
82592         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82593         special shell magic here.
82594
82595 2001-09-16  Jim Meyering  <meyering@lucent.com>
82596
82597         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82598         * m4/jm-macros.m4: Require it.
82599
82600 2001-09-16  Jim Meyering  <meyering@lucent.com>
82601
82602         * lib/mkdir.c: New file.
82603
82604 2001-09-15  Jim Meyering  <meyering@lucent.com>
82605
82606         * m4/jm-macros.m4: Check for help2man.
82607
82608 2001-09-11  Jim Meyering  <meyering@lucent.com>
82609
82610         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82611         The body, by Paul Eggert, was moved here from configure.in.
82612         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82613
82614 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82615
82616         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82617         (jm_PREREQ): Use it.
82618
82619 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82620
82621         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82622         Use ssize_t, not int, to store result of readlink.
82623         Check for ssize_t overflow as well as size_t overflow,
82624         as POSIX says the result of readlink is implementation-defined
82625         when ssize_t overflows.
82626         Remove unnecessary cast to char*.
82627         Use free+malloc instead of realloc, as the storage doesn't need
82628         to be preserved and it's clearer and can be more efficient that way.
82629         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82630         * lib/xreadlink.h (xreadlink): Update prototype.
82631
82632 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82633
82634         * lib/xgetcwd.c: Revert some of the previous change; intead,
82635         fix the HAVE_GETCWD_NULL code to behave more like the
82636         !HAVE_GETCWD_NULL code used to.
82637
82638         Include "xalloc.h".
82639         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82640         invoke xalloc_die.
82641
82642 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82643
82644         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82645         sys/param.h, as pathmax.h includes them.
82646
82647 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82648
82649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82650         (jm_PREREQ_XGETCWD): New macro.
82651
82652         * m4/getcwd.m4: New file.
82653
82654 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82655
82656         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82657         like the HAVE_GETCWD_NULL code.
82658         Include pathmax.h if not HAVE_GETCWD.
82659         Do not include xalloc.h.
82660         (INITIAL_BUFFER_SIZE): New symbol.
82661         Do not use xmalloc / xrealloc, since the caller is responsible for
82662         handling errors.  Preserve errno around `free' during failure.
82663         Do not overrun buffer when using getwd.
82664
82665 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82666
82667         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82668         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82669         getcwd (NULL, 0).
82670
82671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82672
82673         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82674         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82675         spotted by Jim Meyering.
82676
82677 2001-09-03  Jim Meyering  <meyering@lucent.com>
82678
82679         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82680         failure.
82681
82682 2001-09-02  Jim Meyering  <meyering@lucent.com>
82683
82684         * lib/error.c: Update from GNU libc.
82685
82686 2001-09-01  Jim Meyering  <meyering@lucent.com>
82687
82688         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82689         Used by df.
82690
82691 2001-09-01  Jim Meyering  <meyering@lucent.com>
82692
82693         * lib/xreadlink.c: New file.
82694         * lib/xreadlink.h: New file.
82695         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82696         xreadlink.h.
82697
82698         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82699         doesn't conflict with sparc Solaris 7's definition in
82700         /usr/include/sys/int_types.h.
82701
82702         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82703         files.
82704         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82705         and strncasecmp as r-values.  Unixware didn't have declarations.
82706
82707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82708
82709         * lib/xstrtol.h: Add copyright notice.
82710         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82711         LONGINT_INVALID_SUFFIX_CHAR.
82712
82713 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82714
82715         * lib/xstrtol.c (strtoimax): New decl.
82716
82717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82718
82719         * lib/xgetcwd.c: Don't include pathmax.h.
82720         Include stdlib.h and unistd.h if available.
82721         Include xalloc.h.
82722         (xmalloc, xstrdup, free): Remove decls.
82723         (xgetcwd): Don't assume sizes fit in unsigned.
82724         Check for overflow when computing sizes.
82725         Simplify reallocation code.
82726
82727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82728
82729         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82730         a directory's st_size can have an arbitrary value, so the old
82731         usage could waste an arbitrary amount of memory.  All uses
82732         changed.
82733         * lib/savedir.h: Update prototype.
82734
82735 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82736
82737         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82738
82739         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82740         old strtoimax.c.
82741
82742         Also, make the following further changes to make this file's
82743         configuration more similar to that of strtol.c:
82744         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82745         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82746         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82747         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82748         changed to signed values.
82749
82750         And make the following changes as well:
82751         Fix copyright notice, as 1999 was missing.
82752         (verify): New macro.
82753         (strtoimax): Check sizes at compile-time, not run-time.
82754         Prefer strtol to strtoll if both work.
82755         (main): Remove; it was not that useful and was a pain to maintain.
82756
82757         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82758
82759 2001-08-31  Jim Meyering  <meyering@lucent.com>
82760
82761         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82762         Use an initial, malloc'd, buffer of length 128 rather than
82763         a statically allocated one of length 1024.
82764
82765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82766
82767         Simplify code, partly by assuming autoconf 2.52 semantics.
82768
82769         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82770
82771         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82772         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82773         All uses removed.
82774         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82775         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82776         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82777         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82778         jm_AC_HEADER_INTTYPES_H.
82779         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82780
82781         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82782
82783         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82784         Quote first arg of AC_DEFUN.
82785         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82786         since they are needed to parse the include file even if we need
82787         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82789         but with opposite signedness.
82790
82791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82792
82793         Merge 'exclude' changes from tar 1.13.22.
82794         This fixes one or two unlikely storage allocation overflow bugs,
82795         but doesn't change user-visible behavior otherwise.
82796
82797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82798
82799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82800         (jm_PREREQ_EXCLUDE): New macro.
82801
82802 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82803
82804         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82805         tm to be declared.
82806
82807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82808
82809         * lib/hash.c: Remove '2001' from copyright notice.
82810
82811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82812
82813         * lib/full-write.h: New file.
82814         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82815         * lib/full-write.c: Correct credits, as cccp.c no longer
82816         exists and anyway it was so heavily changed from the old cccp
82817         code as to be unrecognizable.  Include full-write.h.
82818         (full_write): Return size_t, with short writes meaning failure.
82819         All callers changed.  This fixes a bug with large buffers
82820         on 64-bit hosts.
82821         * lib/utime.c: Include full-write.h.
82822
82823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82824
82825         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82826         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82827         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82828         Include if available.
82829         (<xalloc.h>): Include
82830         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82831         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82832         collide with FNM macros.
82833         (struct patopts): New struct.
82834         (struct exclude): Use it, as exclude patterns now come with options.
82835         (new_exclude): Support above changes.
82836         (new_exclude, add_exclude_file):
82837         Initial size must now be a power of two to simplify overflow checking.
82838         (free_exclude, fnmatch_no_wildcards): New function.
82839         (excluded_filename): No longer requires options arg, as the options
82840         are determined by add_exclude.  Now returns bool, not int.
82841         (excluded_filename, add_exclude):
82842         Add support for the fancy new exclusion options.
82843         (add_exclude, add_exclude_file): Now takes int options arg.
82844         Check for arithmetic overflow when computing sizes.
82845         (add_exclude_file): xrealloc might modify errno, so don't
82846         realloc until after errno might be used.
82847
82848         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82849         New macros.
82850         (free_exclude): New decl.
82851         (add_exclude, add_exclude_file): Now takes int options arg.
82852         (excluded_filename): No longer requires options arg, as the options
82853         are determined by add_exclude.  Now returns bool, not int.
82854
82855 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82856
82857         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82858
82859 2001-08-27  Jim Meyering  <meyering@lucent.com>
82860
82861         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82862
82863         * lib/version-etc.c (N_): Remove definition.
82864         Revert most of last change.
82865         Instead, simply don't mark the `Copyright...' string for translation.
82866         Based on advice from Paul Eggert.
82867
82868         * lib/strtoxmax.c: Tweak comment.
82869
82870 2001-08-26  Jim Meyering  <meyering@lucent.com>
82871
82872         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82873
82874         * m4/xstrtoimax.m4: New file.
82875         * m4/xstrtoumax.m4: Add comments explaining why we
82876         AC_REPLACE_FUNCS(strtol).
82877
82878 2001-08-26  Jim Meyering  <meyering@lucent.com>
82879
82880         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82881         of copyright with `%s' so translators don't get an untranslated
82882         message in 2002.
82883         (COPYRIGHT_YEAR): Define.
82884         (version_etc): Use fprintf rather than fputs.
82885         Suggestion from Ulrich Drepper.
82886
82887         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82888
82889         * lib/strtoll.c: New file, from GNU libc.
82890         * lib/xstrtoimax.c: New file.
82891
82892         * lib/xstrtol.h: Add xstrtoimax.
82893         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82894         * lib/strtoimax.c: New file.  Likewise, but first define
82895         STRTOUXMAX_SIGNED.
82896
82897         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82898         ...
82899         * lib/strtoxmax.c: ... then renamed to this.
82900
82901 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82902
82903         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82904         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82905         (jm_AC_TYPE_INTMAX_T): New macro.
82906         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82907
82908         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82909
82910         * m4/longlong.m4: Renamed from ulonglong.m4.
82911         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82912         * m4/uintmax_t.m4: Removed.
82913
82914 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82915
82916         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82917         Port to Solaris 8, where 'sed' requires a space after the 'r'
82918         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82919         Redirect output to $tmp just once.
82920
82921 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82922
82923         * lib/addext.c (<errno.h>): Include.
82924         (errno): Declare if not defined.
82925         (addext): Work correctly when pathconf returns -1 and leaves
82926         errno alone because there is no limit.  Also, work even if
82927         pathconf returns a value greater than SIZE_MAX.
82928
82929 2001-08-12  Jim Meyering  <meyering@lucent.com>
82930
82931         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82932         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82933         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82934         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82935         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82936         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82937         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82938         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82939         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82940         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82941         utime.m4, utimes.m4, xstrtoumax.m4:
82942         Quote the first argument in each use of AC_DEFUN.
82943
82944 2001-08-12  Jim Meyering  <meyering@lucent.com>
82945
82946         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82947         Simply `return getcwd (NULL, 0);'.
82948         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82949         Use 1300 as initial value for length, not PATH_MAX.
82950
82951         * lib/pathmax.h: Clean up cpp syntax.
82952
82953 2001-08-12  Jim Meyering  <meyering@lucent.com>
82954
82955         * lib/gettimeofday.c: New file.
82956         * lib/gtod.h: New file.
82957         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82958
82959 2001-08-05  Jim Meyering  <meyering@lucent.com>
82960
82961         * m4/jm-macros.m4: Require autoconf-2.52.
82962
82963 2001-08-04  Jim Meyering  <meyering@lucent.com>
82964
82965         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82966         stmt, to get in sync with glibc.
82967
82968 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82969
82970         The following changes are from gettext 0.10.39 as maintained by
82971         Bruno Haible.
82972
82973         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82974         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82975         with inverted sense.  All uses changed.
82976
82977         * lib/mbswidth.c: Don't include <limits.h>.
82978         Include <stdlib.h> and <string.h> unconditionally.
82979         (iswcntrl, mbsinit, ISCNTRL): New macros.
82980         (mbsnwidth): Use K&R style function declarations.
82981         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82982         can optimize it when MB_CUR_MAX == 1.
82983         The width of control characters is zero, not 1.
82984
82985 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82986
82987         The following changes are from gettext 0.10.39 as maintained by
82988         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82989
82990         * m4/codeset.m4: Upgrade to serial AM1.
82991         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82992         all uses changed.  Quote first arg of AC_DEFUN.
82993         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82994
82995         * m4/iconv.m4: Upgrade to serial AM2.
82996         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82997         Add --with-libconv-prefix.
82998         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82999         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83000         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83001         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83002         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83003
83004         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83005         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83006         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83007         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83008         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83009         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83010         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83011         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83012         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83013
83014         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83015         string.h any more.
83016
83017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83018         not the default value.
83019
83020         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83021         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83022         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83023         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83024         Also check for iswcntrl, used for wcwidth fallback.
83025         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83026         to Autoconf 2.13.
83027
83028 2001-08-03  Jim Meyering  <meyering@lucent.com>
83029
83030         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83031         as it was in the original.  Reported by Paul Eggert.
83032
83033 2001-07-16  Jim Meyering  <meyering@lucent.com>
83034
83035         * m4/gettimeofday.m4: New file.
83036         Prompted by a report from Bernhard Baehr.
83037
83038 2001-07-15  Jim Meyering  <meyering@lucent.com>
83039
83040         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83041         stuff. Now it's in ../Makefile.cfg.
83042
83043 2001-07-15  Jim Meyering  <meyering@lucent.com>
83044
83045         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83046         (BUILT_SOURCES): Add unlocked-io.h.
83047         (io_functions): Define.
83048         (unlocked-io.h): New rule.
83049         (DISTCLEANFILES): Add unlocked-io.h.
83050         (all-local): Depend on unlocked-io.h, to ensure it is created.
83051
83052         * lib/unlocked-io.hin: New file
83053
83054         * lib/regex.c: Update from glibc.
83055
83056 2001-07-05  Jim Meyering  <meyering@lucent.com>
83057
83058         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83059         recommendation.
83060         (libfetish_a_SOURCES): Put all .h files here instead.
83061         Remove a thus-exposed (better checks in automake) duplicate and
83062         two unnecessary .h files.
83063
83064 2001-07-04  Jim Meyering  <meyering@lucent.com>
83065
83066         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83067         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83068         distcheck failure.
83069
83070 2001-07-02  Jim Meyering  <meyering@lucent.com>
83071
83072         The following changes were prompted by suggestions from Bruno Haible.
83073
83074         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83075         is now generated.
83076         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83077         definition of EXTRA_DIST.
83078         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83079         ensure that the generated file is created/updated whenever the list
83080         of $(unlocked_functions) is changed.
83081         (jm-glibc-io.m4): New rule.
83082         (unlocked-io.h): New rule -- currently unused.
83083
83084 2001-06-24  Jim Meyering  <meyering@lucent.com>
83085
83086         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83087         unmatched right bracket, rather than kludging it with an extra,
83088         falsely-matching quote in a comment.  Patch by Akim Demaille.
83089
83090 2001-06-11  Jim Meyering  <meyering@lucent.com>
83091
83092         * lib/regex.c: Update from GNU libc.
83093
83094 2001-05-27  Jim Meyering  <meyering@lucent.com>
83095
83096         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83097         Check for ut_type in struct utmp.
83098
83099 2001-05-27  Jim Meyering  <meyering@lucent.com>
83100
83101         * lib/readutmp.h (UT_TYPE): Define.
83102
83103 2001-05-24  Jim Meyering  <meyering@lucent.com>
83104
83105         * lib/argmatch.c: Include "quote.h".
83106         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83107         quote function.  Reported by Göran Uddeborg.
83108
83109 2001-05-22  Jim Meyering  <meyering@lucent.com>
83110
83111         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83112         now that we use the package-supplied version unconditionally.
83113         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83114
83115 2001-05-21  Jim Meyering  <meyering@lucent.com>
83116
83117         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83118         shell syntax errors.
83119
83120 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83121
83122         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83123
83124 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83125
83126         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83127         Don't bother to check library strftime, since
83128         we'll be using our own my_strftime function anyway.
83129         Define my_strftime instead of strftime.
83130
83131 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83132
83133         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83134         which is not yet declared.
83135
83136 2001-05-15  Jim Meyering  <meyering@lucent.com>
83137
83138         * m4/regex.m4: Use proper quoting so brackets appear in the test
83139         program.
83140         Reported by, and with help from, Bruno Haible.
83141
83142 2001-05-13  Jim Meyering  <meyering@lucent.com>
83143
83144         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83145         undefined.
83146
83147 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83148
83149         dirname code cleanup.  base_name now behaves more compatibly
83150         with POSIX basename when given file names that have trailing
83151         slashes, and similarly for dir_name.  Add new primitives
83152         base_len and dir_len.  Put the directory-name-related decls
83153         into dirname.h.
83154
83155         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83156         * lib/backupfile.c (base_name): Likewise.
83157         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83158         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83159         * lib/makepath.c (strip_trailing_slashes): Likewise.
83160         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83161         ISSLASH): Likewise.
83162         * lib/rename.c (strip_trailing_slashes): Likewise.
83163         * lib/same.c (base_name): Likewise.
83164         * lib/stripslash.c (ISSLASH): Likewise.
83165
83166         * lib/addext.c: Include <dirname.h> after size_t is defined.
83167         * lib/backupfile.c: Likewise.
83168
83169         * lib/addext.c (addext): Use base_len to trim redundant
83170         trailing slashes instead of doing it ourselves.
83171         But do not trim the last slash if it is not redundant.
83172
83173         * lib/backupfile.c (find_backup_file_name,
83174         max_backup_version): Use base_len instead of rolling it ourselves.
83175         Handle the case of "" and (on DOS) "C:" correctly.
83176
83177         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83178         needed. Include <string.h>, <dirname.h>.
83179         (base_name): Allow file names ending in slashes, other than names
83180         that are all slashes.  In this case, return the basename followed
83181         by the slashes.  This is more general, and can be used in places
83182         where the original base_name purposely had an assertion failure.
83183         (base_len): New function.
83184
83185         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83186         Do not include <assert.h>; no longer needed.
83187         Include xalloc.h.
83188         (memrchr): Remove decl.
83189         (dir_name_r): Remove.
83190         (dir_len): Renamed from dirlen.  All callers changed.
83191         Rewrite in terms of base_name, for simplicity and consistency.
83192         (dir_name): Never return NULL.  All callers changed.
83193         Do not include <stdlib.h> in test program; no longer needed.
83194         return 0; is fine for test program.
83195
83196         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83197         New macros.
83198         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83199
83200         * lib/path-concat.c (path_concat): Use base_len to compute
83201         base length, not strlen; this means we cannot rely on memcpy
83202         to null-terminate.
83203
83204         * lib/same.c (STREQ): Remove.
83205         (same_name): Handle the case where the basename ends in trailing '/'.
83206
83207         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83208         a slash was stripped.  Do not strip the last slash after a
83209         file system prefix.
83210
83211 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83212
83213         * lib/Makefile.am (libfetish_a_SOURCES):
83214         Add strftime.c, since we now compile it on all hosts.
83215
83216         * lib/strftime.c (my_strftime):
83217         Define to nstrftime if emacs, but only if my_strftime is not defined.
83218         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83219         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83220         Add one more extra argument: a nanoseconds value.
83221         All uses changed.
83222         (ns): New macro.
83223         (my_strftime function): Add %N format.
83224         (emacs_strftimeu): Renamed from emacs_strftime,
83225         with extra ut argument.
83226
83227 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83228
83229         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83230
83231 2001-04-21  Jim Meyering  <meyering@lucent.com>
83232
83233         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83234         doesn't interfere.
83235
83236 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83237
83238         * m4/ftruncate.m4: Check for chsize.
83239         Link with ftruncate.o unconditionally if ftruncate is missing.
83240         This was required when cross-compiling to i586-mingw32msvc.
83241
83242 2001-04-08  Jim Meyering  <meyering@lucent.com>
83243
83244         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83245         recomputed; that's necessary when the offset spans a DST transition.
83246         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83247
83248 2001-04-02  Jim Meyering  <meyering@lucent.com>
83249
83250         * lib/regex.h, regex.c: Update from GNU libc.
83251
83252 2001-03-24  Jim Meyering  <meyering@lucent.com>
83253
83254         * m4/jm-macros.m4: Require autoconf-2.49d.
83255
83256 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83257
83258         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83259
83260 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83261
83262         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83263
83264 2001-03-17  Jim Meyering  <meyering@lucent.com>
83265
83266         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83267         now that the version in autoconf is equivalent.
83268         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83269
83270         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83271         Suggestion from Akim Demaille.
83272
83273         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83274         (jm_PREREQ_TEMPNAME): New function.
83275
83276 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83277
83278         * lib/tempname.c (uint64_t): Define to uintmax_t if
83279         not defined, and if UINT64_MAX is not defined.
83280         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83281         Reported by John David Anglin.
83282
83283 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83284
83285         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83286         resolve alias if codeset is empty.
83287         * lib/config.charset (BeOS): Use wildcard syntax.
83288
83289 2001-03-13  Jim Meyering  <meyering@lucent.com>
83290
83291         * lib/path-concat.c (path_concat)
83292         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83293         concatenating e.g., `C:' and `foo'.
83294         From Bruno Haible.
83295
83296 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83297
83298         * lib/localcharset.c (locale_charset): Don't use
83299         setlocale(LC_CTYPE,NULL). Don't return NULL.
83300         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83301
83302 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83303
83304         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83305         support for DOS/DJGPP.
83306
83307 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83308
83309         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83310         lacks mkstemp.  Compile our own tempname.c if we compile our own
83311         mkstemp.c, as mkstemp relies on tempname.
83312
83313 2001-03-01  Jim Meyering  <meyering@lucent.com>
83314
83315         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83316         AH_VERBATIM really does output its argument verbatim.
83317
83318 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83319
83320         * lib/Makefile.am (libfetish_a_SOURCES):
83321         Add dup-safer.c, fopen-safer.c.
83322         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83323
83324         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83325         * lib/unistd-safer.h: New files.
83326
83327 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83328
83329         The mkstemp replacement is taken from glibc 2.2.2, with some
83330         portability fixes for use outside glibc, as follows:
83331
83332         * lib/tempname.c (struct_stat64): New macro.
83333         (direxists, __gen_tempname): Use it.
83334         This avoids a portability problem with Solaris 8.
83335
83336         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83337         (<stddef.h>, <stdint.h>, <string.h>):
83338         Include only if STDC_HEADERS || _LIBC.
83339         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83340         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83341         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83342         (__set_errno): Define this macro if <errno.h> doesn't.
83343         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83344         Define these macros if <stdio.h> doesn't.
83345         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83346         Define these macros if <sys/stat.h>
83347         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83348         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83349         __xstat64): Define if not _LIBC.
83350         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83351         (__gen_tempname): Invoke gettimeofday only if
83352         HAVE_GETTIMEOFDAY || _LIBC;
83353         otherwise, fall back on plain "time".
83354         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83355
83356         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83357
83358         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83359
83360 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83361
83362         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83363
83364 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83365
83366         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83368         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83370
83371 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83372
83373         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83374         Remove workaround macros for hosts that have mbrtowc but not
83375         mbstate_t, as we now insist on proper declarations for both
83376         before using mbrtowc.
83377
83378 2001-02-17  Jim Meyering  <meyering@lucent.com>
83379
83380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83381         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83382         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83383         UnixWare 7.1.1.
83384
83385         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83386         rather than AC_CACHE_VAL.
83387
83388 2001-02-17  Jim Meyering  <meyering@lucent.com>
83389
83390         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83391         around included file name.
83392
83393         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83394
83395         * lib/strftime.c: Update from GNU libc (the only changes were to
83396         comments).
83397
83398 2001-02-17  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/regex.c: Update from libc.
83401
83402 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83403
83404         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83405         clash.
83406
83407 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83408
83409         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83410         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83411         Reported by Mark Hounschell via Paul Eggert.
83412
83413 2001-02-07  Jim Meyering  <meyering@lucent.com>
83414
83415         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83416
83417 2001-02-05  Jim Meyering  <meyering@lucent.com>
83418
83419         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83420         it includes the patch required for `large file' support with at least
83421         HP-UX's 10.20 /bin/cc.
83422
83423 2001-02-03  Jim Meyering  <meyering@lucent.com>
83424
83425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83426         AS_IF, now that it works once again (mysteriously).
83427         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83428
83429 2001-01-30  Jim Meyering  <meyering@lucent.com>
83430
83431         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83432         * m4/chown.m4: Rename conftestchown to conftest.chown.
83433         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83434         s/conftestdir2/conftest.d2/.
83435         * m4/utimes.m4: s/conftestdata/conftest.data/
83436         Inspired by Pavel Roskin's change in autoconf.
83437
83438 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83439
83440         * lib/config.charset: Update for FreeBSD 4.2.
83441
83442 2001-01-27  Jim Meyering  <meyering@lucent.com>
83443
83444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83445         a use of AS_IF.
83446         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83447
83448 2001-01-26  Jim Meyering  <meyering@lucent.com>
83449
83450         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83451         quotearg.c includes it.
83452
83453 2001-01-26  Jim Meyering  <meyering@lucent.com>
83454
83455         * lib/quotearg.c: Include stddef.h.
83456         * lib/quote.c: Include stddef.h.
83457         Reported by Axel Kittenberger.
83458
83459         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83460         line in double quotes so that it evokes a better diagnostic.
83461         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83462         Reported by Axel Kittenberger.
83463
83464 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83465
83466         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83467         as if it was a `charset'.
83468
83469 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83470
83471         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83472         has const.
83473
83474 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83475
83476         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83477         to avoid a warning.  Add back 'const' to inptr.
83478
83479 2001-01-20  Jim Meyering  <meyering@lucent.com>
83480
83481         Be sure that headers are checked before used in code compiled
83482         for the type checks.
83483         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83484         In place of that, invoke jm_CHECK_ALL_TYPES.
83485         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83486         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83487         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83488         The check for ssize_t was mistakenly run before the test for unistd.h.
83489
83490         The configure-time check for stdbool.h was missing.
83491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83492         (jm_PREREQ_HASH): New function.
83493
83494 2001-01-17  Jim Meyering  <meyering@lucent.com>
83495
83496         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83497         for autoconf-2.49c.
83498         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83499
83500 2001-01-16  Jim Meyering  <meyering@lucent.com>
83501
83502         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83503         From Bruno Haible.
83504
83505 2001-01-14  Jim Meyering  <meyering@lucent.com>
83506
83507         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83508         foo and bar.  Create conftestdir/ in the script, not in the C code.
83509         Remove directories in the script, not in the C code.
83510         Remove conftestdir{,2} before trying to create the directory.
83511         Make the entire configure script fail if the mkdir fails.
83512
83513 2001-01-14  Jim Meyering  <meyering@lucent.com>
83514
83515         * lib/rename.c: New file.  From Volker Borchert.
83516         Include stdlib.h, string.h or strings.h, and xalloc.h.
83517         Use strip_trailing_slashes rather than open-coding it.
83518
83519 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83520
83521         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83522
83523 2001-01-03  Jim Meyering  <meyering@lucent.com>
83524
83525         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83526         of local `inptr' to avoid warning with some system declarations of
83527         iconv.
83528
83529 2001-01-02  Volker Borchert  <bt@teknon.de>
83530
83531         * m4/rename.m4: New file.
83532         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83533
83534 2001-01-01  Jim Meyering  <meyering@lucent.com>
83535
83536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83537         even on systems with utmpx.h.  It's necessary for the declaration of
83538         utmp's ut_user member.  Reported by Andreas Jaeger.
83539
83540         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83541         available. They are required for the declarations of getgrgid and
83542         getpwuid resp.
83543         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83544         Reported by Andreas Jaeger.
83545
83546 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83547
83548         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83549         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83550         so `make install' also works in VPATH builds.
83551
83552 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83553
83554         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83555         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83556         can be used in subdirectories.
83557
83558 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83559
83560         * lib/modechange.c: Do not assume that mode_t uses the
83561         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83562         the other-execute bit of FOO even if S_IXOTH != 1.
83563
83564         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83565         WOTH, XOTH, ALLM): New macros.
83566         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83567          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83568         Use them.
83569         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83570         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83571         (mode_compile):
83572         No need to use uintmax_t; unsigned long is long enough.
83573         Don't bother to get suffix since we don't use it.
83574
83575 2000-12-26  Jim Meyering  <meyering@lucent.com>
83576
83577         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83578         better with autoheader.
83579
83580 2000-12-24  Jim Meyering  <meyering@lucent.com>
83581
83582         * lib/hash.c (is_prime): Return explicit boolean values.
83583         (hash_get_first): Return NULL to appease Irix5.6's 89.
83584         Reported by Nelson Beebe.
83585
83586 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83587
83588         * lib/localcharset.c (locale_charset): Add support for Win32.
83589
83590 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83591
83592         * lib/physmem.h, lib/physmem.c: New files.
83593
83594         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83595         (noinst_HEADERS): Add physmem.h.
83596
83597         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83598         't' for compatibility with Solaris 8 sort.
83599
83600 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83601
83602         * lib/config.charset: Add support for BeOS.
83603
83604 2000-12-17  Jim Meyering  <meyering@lucent.com>
83605
83606         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83607         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83608
83609 2000-12-16  Jim Meyering  <meyering@lucent.com>
83610
83611         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83612         N and M) would have treated it like `chown N:N FILE'.
83613
83614         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83615
83616 2000-12-16  Jim Meyering  <meyering@lucent.com>
83617
83618         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83619         SHELLS_FILE to a file name that's useful on djgpp systems.
83620         Include stdlib.h.
83621         (ADDITIONAL_DEFAULT_SHELLS): Define.
83622         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83623         Based mostly on a patch from Prashant TR.
83624
83625 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83626
83627         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83628         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83629         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83630
83631 2000-12-08  Andreas Schwab  <schwab@suse.de>
83632
83633         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83634         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83635
83636 2000-12-07  Jim Meyering  <meyering@lucent.com>
83637
83638         * lib/stripslash.c (ISSLASH): Define.
83639         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83640         `/'.
83641         From Prashant TR.
83642
83643         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83644         (dir_name_r): Declare this function as static.
83645         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83646         manifest itself on a name containing a mix of slashes and
83647         backslashes.
83648         Make this function work with names starting with a DOS-style
83649         drive letter and colon prefix.
83650         (dir_name): Append `.' if necessary.
83651         Based mostly on patches from Prashant TR and Eli Zaretskii.
83652
83653         * lib/dirname.h (dir_name_r): Remove prototype.
83654
83655 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83656
83657         * m4/off_t-format.m4: Remove this file.
83658         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83659
83660 2000-12-06  Jim Meyering  <meyering@lucent.com>
83661
83662         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83663         replacement strtoull, we may well need the replacement strtoul, too.
83664         Check for declarations of strtoul and strtoull.
83665         Check for strtol.  Mainly as a cue to cause automake to include
83666         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83667         Check for limits.h -- strtol.c needs it.
83668
83669 2000-12-05  Jim Meyering  <meyering@lucent.com>
83670
83671         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83672
83673 2000-12-04  Jim Meyering  <meyering@lucent.com>
83674
83675         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83676         Also include memory.h, stdlib.h, unistd.h if appropriate.
83677         Reported by Andreas Jaeger (conflicting declaration of malloc).
83678
83679 2000-12-02  Jim Meyering  <meyering@lucent.com>
83680
83681         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83682         * m4/jm-macros.m4 (jm_MACROS): require it.
83683
83684 2000-12-02  Jim Meyering  <meyering@lucent.com>
83685
83686         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83687
83688 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83689
83690         * lib/memrchr.c: Include <config.h> before any system include file.
83691
83692 2000-11-30  Jim Meyering  <meyering@lucent.com>
83693
83694         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83695
83696 2000-11-30  Jim Meyering  <meyering@lucent.com>
83697
83698         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83699
83700 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83701
83702         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83703
83704 2000-11-26  Jim Meyering  <meyering@lucent.com>
83705
83706         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83707
83708 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83709
83710         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83711         size of (size_t) -1; it's not portable.
83712
83713 2000-11-17  Jim Meyering  <meyering@lucent.com>
83714
83715         * lib/strstr.c: Update from GNU libc.
83716
83717 2000-11-17  Akim Demaille  <akim@epita.fr>
83718
83719         * lib/obstack.h: Formatting changes.
83720         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83721         prevent type checking.
83722         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83723         cast the value to (void *): assigning a `foo *' to a `void *'
83724         variable is valid.
83725         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83726
83727 2000-11-16  Jim Meyering  <meyering@lucent.com>
83728
83729         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83730
83731 2000-11-11  Jim Meyering  <meyering@lucent.com>
83732
83733         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83734
83735 2000-11-10  Jim Meyering  <meyering@lucent.com>
83736
83737         * lib/obstack.h: Update from GNU libc.
83738         * lib/obstack.c: Likewise.
83739
83740 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83741
83742         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83743
83744 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83745
83746         * lib/getusershell.c (setusershell): Use rewind rather than
83747         fseek/fseeko, to avoid configuration hassles with fseeko.
83748         Don't bother opening SHELLS_FILE if shellstream is NULL;
83749         it's not necessary.
83750
83751 2000-11-05  Jim Meyering  <meyering@lucent.com>
83752
83753         * lib/makepath.h (make_dir): Declare.
83754         * lib/makepath.c (make_dir): Remove `static' attribute.
83755         Tweak a comment.
83756
83757 2000-11-04  Jim Meyering  <meyering@lucent.com>
83758
83759         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83760
83761 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83762
83763         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83764         last one in a bucket, advance to the next bucket.
83765
83766 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83767
83768         * lib/fnmatch.c: Do not comment out all the code if we are using
83769         the GNU C library, because in some cases we are replacing buggy
83770         code in the GNU C library itself.
83771
83772 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83773
83774         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83775         (regex_compile): Catch bogus \(\1\).
83776
83777 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83778
83779         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83780         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83781         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83782
83783 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83784
83785         * lib/error.h, getline.h, modechange.h:
83786         Remove "2000" from Copyright line, as the file hasn't been
83787         changed this year other than in the copyright notice.
83788
83789         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83790         was changed this year.
83791
83792 2000-10-29  Jim Meyering  <meyering@lucent.com>
83793
83794         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83795         renaming.
83796         * m4/ls-mntd-fs.m4: Likewise
83797
83798 2000-10-29  Jim Meyering  <meyering@lucent.com>
83799
83800         * lib/xstat.in: Fix grammar in comment.
83801
83802 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83803
83804         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83805         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83806         doesn't define __restrict_arr.
83807
83808 2000-10-28  Jim Meyering  <meyering@lucent.com>
83809
83810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83811         (jm_PREREQ_MEMCHR): New function.
83812
83813 2000-10-28  Jim Meyering  <meyering@lucent.com>
83814
83815         * lib/memchr.c: Update from libc.
83816         Adjust for portability:
83817         [HAVE_STDLIB_H]: Include stdlib.h.
83818         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83819         Undef __memchr, too.
83820         [!weak_alias]: Define __memchr to memchr.
83821
83822         * lib/regex.c: Update from libc.
83823         * lib/regex.h: Likewise.
83824         * lib/getopt1.c: Likewise.
83825         * lib/memcmp.c: Likewise.
83826
83827         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83828         Avoid using fseek, when possible -- it's broken by design.
83829         Patch by Ulrich Drepper.
83830
83831 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83832
83833         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83834         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83835         Giving in to popular pressure to shut up the compiler with casts.
83836
83837 2000-10-26  Jim Meyering  <meyering@lucent.com>
83838
83839         * lib/strftime.c: Update from libc.
83840
83841 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83842
83843         * regex.c: More `unsigned char' -> `re_char' changes.
83844         Also change several `int' into `re_wchar_t'.
83845         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83846         (PUSH_FAILURE_POINTER): Don't cast any more.
83847         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83848         We want GCC to complain, since this piece of code makes
83849         re_match non-reentrant, which *should* be fixed.
83850         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83851         (EXTEND_BUFFER): Use RETALLOC.
83852         (SET_LIST_BIT): Don't cast.
83853         (re_wchar_t): New type.
83854         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83855         that those two functions will always properly return.
83856         (IMMEDIATE_QUIT_CHECK): Cast to void.
83857         (analyse_first): Use recursion rather than an explicit stack.
83858         (re_compile_fastmap): Can't fail anymore.
83859         (re_search_2): Don't check re_compile_fastmap for failure.
83860         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83861         Now also sets the new value (passed in a new argument).
83862         (re_match_2_internal): Use it.
83863         Also, use a new var `reg' of type size_t when looping through regs
83864         rather than reuse the inappropriate `mcnt'.
83865
83866 2000-10-25  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/obstack.c: Update from libc.
83869
83870 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83871
83872         * regex.c (regex_compile): Change the way of handling a range from
83873         a char less than 256 to a char not less than 256.
83874
83875 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83876
83877         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83878         NT-Emacs only.
83879         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83880         so that re_search functions only quit when callers expect them to.
83881
83882 2000-10-23  Jim Meyering  <meyering@lucent.com>
83883
83884         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83885         wrong.  That set_locale call must not have any side effects.
83886         From Paul Eggert.
83887
83888 2000-10-22  Jim Meyering  <meyering@lucent.com>
83889
83890         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83891         [CYCLIC]: Remove now-unused definition.
83892
83893         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83894         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83895         Suggestion from Ulrich Drepper.
83896
83897 2000-10-21  Jim Meyering  <meyering@lucent.com>
83898
83899         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83900         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83901         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83902
83903 2000-10-21  Jim Meyering  <meyering@lucent.com>
83904
83905         * lib/dirname.c (memrchr): Declare if necessary.
83906         (dir_name): Remove the restriction that there be no
83907         trailing slashes.  Now, this code skips past them, effectively
83908         ignoring them.
83909         [TEST_DIRNAME] (main): New unit tests.
83910
83911         * lib/memrchr.c: New file from GNU libc.
83912         Undef __memrchr, too.
83913         [!weak_alias]: Define __memrchr to memrchr.
83914         Guard weak_alias use with `#ifdef weak_alias'.
83915
83916 2000-10-21  Jim Meyering  <meyering@lucent.com>
83917
83918         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83919         (dir_name): Use dir_name_r.
83920         * lib/dirname.h (dir_name_r): Declare it.
83921
83922 2000-10-17  Jim Meyering  <meyering@lucent.com>
83923
83924         * lib/quote.h (PARAMS): Define and use.
83925         Reported by Akim Demaille.
83926
83927         * lib/getopt.c: Update from libc.
83928
83929 2000-10-16  Jim Meyering  <meyering@lucent.com>
83930
83931         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83932         setlocale.
83933         From Jan Fedak.
83934
83935 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83936
83937         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83938
83939 2000-09-25  Jim Meyering  <meyering@lucent.com>
83940
83941         * lib/md5.h (rol): Define (from GnuPG).
83942
83943         * lib/sha.c: Give credit (GnuPG) where due.
83944         (M): Use rol rather than open-coding it.
83945         Add a FIXME comment.
83946
83947 2000-09-21  Jim Meyering  <meyering@lucent.com>
83948
83949         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83950         Reported by Michael Stone.
83951
83952 2000-09-20  Jim Meyering  <meyering@lucent.com>
83953
83954         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83955         (noinst_HEADERS): Add sha.h.
83956         Based on code from Scott G. Miller and from GnuPG.
83957
83958 2000-09-18  Jim Meyering  <meyering@lucent.com>
83959
83960         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83961         LIBS. Otherwise, everyone ends up linking with -lelf for some
83962         configurations.
83963         Reported by Mike Stone.
83964
83965 2000-09-15  Jim Meyering  <meyering@lucent.com>
83966
83967         * lib/regex.c: Update from libc.
83968
83969 2000-09-10  Jim Meyering  <meyering@lucent.com>
83970
83971         * lib/getopt.c (_getopt_internal): Update from glibc.
83972
83973 2000-09-09  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83976         think it should be used as a general replacement for isascii.
83977         * lib/fnmatch.c: Likewise.
83978         * lib/mbswidth.c: Likewise
83979         * lib/regex.c: Likewise.
83980
83981         Don't use atoi.
83982         * lib/userspec.c: Include sys/param.h and limits.h.
83983         Include xstrtol.h.
83984         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83985         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83986         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83987         UID, GID.  Check range.
83988
83989 2000-09-06  Jim Meyering  <meyering@lucent.com>
83990
83991         * lib/getopt.c (_getopt_internal): Update from glibc.
83992
83993 2000-08-30  Jim Meyering  <meyering@lucent.com>
83994
83995         * lib/strftime.c: Merge in changes from GNU libc.
83996
83997 2000-08-26  Jim Meyering  <meyering@lucent.com>
83998
83999         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84000         * m4/fpending.m4: New file.
84001
84002 2000-08-26  Jim Meyering  <meyering@lucent.com>
84003
84004         * lib/closeout.c: Include "__fpending.h".
84005         (close_stdout_status): Return right away if there's nothing to flush.
84006
84007         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84008         * lib/__fpending.c: New file.
84009         * lib/__fpending.h: New file.
84010
84011 2000-08-20  Jim Meyering  <meyering@lucent.com>
84012
84013         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84014         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84015         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84016
84017 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84018
84019         Improve fileutils installation on systems where running
84020         programs (like install) can't be unlinked.
84021         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84022         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84023
84024 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84025
84026         Standardize on "memory exhausted" instead of "Memory exhausted"
84027         or "virtual memory exhausted".
84028         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84029         "virtual memory exhausted".
84030         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84031         our own message.
84032         * lib/userspec.c (parse_user_spec): Likewise.
84033         * lib/bumpalloc.h: comment fix
84034         * lib/same.c, userspec.c: Include xalloc.h.
84035
84036         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84037         not char *const and pointing to a constant array.
84038         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84039         (xrealloc): Comment fix.
84040
84041         * lib/userspec.c (parse_user_spec):
84042         Don't translate a message until just before returning,
84043         to avoid unnecessary translation.
84044
84045 2000-08-07  Jim Meyering  <meyering@lucent.com>
84046
84047         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84048         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84049         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84050         getgroups.c, gethostname.c, getopt.h, group-member.c,
84051         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84052         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84053         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84054         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84055         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84056         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84057         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84058         yesno.c: Back out Copyright date changes for each file with no change
84059         this year.  This eases coordination with other programs using the same
84060         source code modules.  From Paul Eggert.
84061
84062 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84063
84064         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84065         not char, for compatibility with glibc 2.1.3 strftime.c.
84066
84067 2000-08-03  Greg McGary  <greg@mcgary.org>
84068
84069         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84070         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84071         (EXTEND_BUFFER): Use them.
84072
84073 2000-08-01  Jim Meyering  <meyering@lucent.com>
84074
84075         * lib/dirname.c (ISSLASH): Define.
84076         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84077         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84078         both `\' and `/' may be use as path separators.
84079         Based on a patch from Prashant TR.
84080
84081 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84082
84083         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84084         slot vector a constant, since it might get modified.
84085
84086 2000-07-31  Jim Meyering  <meyering@lucent.com>
84087
84088         * lib/xmalloc.c: Use `virtual memory exhausted', not
84089         `Memory exhausted'.
84090         * lib/obstack.c (print_and_abort): Likewise.
84091
84092 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84093
84094         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84095         buffer, so that the caller can always quote one small
84096         component of a "memory exhausted" message in slot 0.
84097         From a suggestion by Jim Meyering.
84098
84099 2000-07-30  Jim Meyering  <meyering@lucent.com>
84100
84101         * lib/makepath.c (make_path): Quote the other instance, too.
84102
84103         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84104         (STATIC_BUF_SIZE): Define.
84105         (quotearg_n_options): Use only statically allocated storage when
84106         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84107         than STATIC_BUF_SIZE.
84108
84109 2000-07-29  Jim Meyering  <meyering@lucent.com>
84110
84111         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84112         * lib/dirname.c (dir_name): Likewise.
84113
84114         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84115         `/'.
84116
84117         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84118         (dir_name): Assert that there are no trailing slashes.
84119
84120 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84121
84122         * lib/mbswidth.h (mbswidth): Add a flags argument.
84123         (mbswidth): New declaration.
84124         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84125         * lib/mbswidth.c (mbswidth): Add a flags argument.
84126         (mbsnwidth): New function.
84127
84128 2000-07-24  Jim Meyering  <meyering@lucent.com>
84129
84130         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84131
84132 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84133
84134         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84135
84136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84137
84138         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84139         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84140         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84141         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84142         invoke multibyte primitives.
84143
84144 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84145
84146         * lib/quotearg.c:
84147         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84148         so that mbstate_t is always defined.
84149
84150         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84151         be 1 in at least one GCC installation, and this configuration
84152         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84153         performance on hosts that have mbrtowc but have only unibyte
84154         locales, but I assume these hosts are rare.
84155
84156 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84157
84158         * lib/mbswidth.c (_XOPEN_SOURCE):
84159         Don't define; this causes problems on Solaris 7.
84160         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84161
84162 2000-07-23  Jim Meyering  <meyering@lucent.com>
84163
84164         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84165         too: getgrgid, getpwuid, getuid.
84166
84167 2000-07-23  Jim Meyering  <meyering@lucent.com>
84168
84169         * lib/basename.c (base_name): Add an assertion.
84170
84171 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84172
84173         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84174         shadow its mbsinit function.
84175
84176 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84177
84178         * lib/mbswidth.h: New file.
84179         * lib/mbswidth.c: New file.
84180         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84181         (noinst_HEADERS): Add mbswidth.h.
84182
84183 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84184
84185         * lib/config.charset: Add support for FreeBSD. Improve support for
84186         HP-UX and IRIX 6.
84187
84188 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84189
84190         * m4/mbswidth.m4: New file.
84191         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84192
84193 2000-07-15  Jim Meyering  <meyering@lucent.com>
84194
84195         * lib/makepath.c: Include quote.h.
84196         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84197         corresponding argument in a `quote (...)' call.
84198         Give better diagnostics.
84199
84200         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84201         (noinst_HEADERS): Add quote.h.
84202
84203         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84204         from tar's src/misc.c.
84205         * lib/quote.h: New file.  Prototypes for same.
84206
84207 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84208
84209         From a suggestion by Bruno Haible.
84210         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84211         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84212         to decide whether to define the BeOS workaround macro;
84213         this adjusts to the change to AC_MBSTATE_T.
84214
84215 2000-07-14  Jim Meyering  <meyering@lucent.com>
84216
84217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84218         jm_AC_TYPE_UINTMAX_T.
84219
84220 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84221
84222         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84223
84224         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84225         quotearg_buffer_restyled): Add support for
84226         clocale_quoting_style.  Undo previous change to
84227         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84228         and "{RIGHT QUOTATION MARK}" msgids.
84229
84230 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84231
84232         From a suggestion by Bruno Haible.
84233         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84234         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84235         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84236         and mbstate_t, to a single-part test that simply defines mbstate_t.
84237         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84238         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84239
84240 2000-07-10  Jim Meyering  <meyering@lucent.com>
84241
84242         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84243
84244         * m4/gnu-source.m4: Output to confdefs.h directly.
84245         Suggestion from Akim Demaille.
84246
84247 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84248
84249         The old behavior of quoting `like this' doesn't look good with
84250         newer, ISO-style fonts.  See:
84251         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84252
84253         Instead, quote "like this" by default.  Let the translator
84254         tailor the locale-specific quoting behavior by providing
84255         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84256
84257         * lib/quotearg.c (N_): New macro.
84258         (gettext_default): New function.
84259         (quotearg_buffer_restyled): Use
84260         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84261         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84262
84263 2000-07-09  Jim Meyering  <meyering@lucent.com>
84264
84265         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84266         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84267
84268         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84270
84271 2000-07-09  Jim Meyering  <meyering@lucent.com>
84272
84273         * lib/Most files: Update copyright dates to include 2000.
84274
84275 2000-07-08  Jim Meyering  <meyering@lucent.com>
84276
84277         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84278         if not defined.
84279         (xgethostname): Remove now-unnecessary #ifdef.
84280         Move declaration of `err' into loop where it's used.
84281
84282 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84283         and Bruno Haible  <haible@clisp.cons.org>
84284
84285         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84286         only if the test for an object-type mbstate_t fails.  This
84287         prevents us from mistakenly reporting that mbstate_t is a
84288         system object type after we "#define mbstate_t int" to work
84289         around its lack.
84290
84291 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84292         and Bruno Haible  <haible@clisp.cons.org>
84293
84294         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84295
84296 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84297
84298         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84299         to strerror_r.
84300         Include <ctype.h> for use of isalpha.
84301
84302 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84303
84304         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84305         by allocating a larger buffer. Test the gethostname return value for
84306         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84307         returns an error and ENAMETOOLONG isn't defined.
84308
84309 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84310
84311         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84312         dimension.
84313
84314 2000-07-04  Jim Meyering  <meyering@lucent.com>
84315
84316         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84317         of the deprecated AC_CHECKING.
84318
84319 2000-07-04  Jim Meyering  <meyering@lucent.com>
84320
84321         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84322         Reported by Bruno Haible.
84323
84324 2000-07-04  Jim Meyering  <meyering@lucent.com>
84325
84326         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84327         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84328         lacks mbrtowc.
84329
84330 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84331
84332         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84333         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84334
84335 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84336         and Bruno Haible  <haible@clisp.cons.org>
84337
84338         * lib/quotearg.c (mbrtowc):
84339         Assign to *pwc, and return 1 only if result is nonzero.
84340         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84341
84342 2000-07-03  Jim Meyering  <meyering@lucent.com>
84343
84344         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84345
84346 2000-07-03  Jim Meyering  <meyering@lucent.com>
84347
84348         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84349         This is necessary to get a definition of e.g., UTMP_FILE on
84350         HP-UX 10.20.
84351         From Bob Proulx.
84352
84353 2000-07-02  Jim Meyering  <meyering@lucent.com>
84354
84355         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84356
84357         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84358         AC_LIBOBJ(function_name).
84359         * m4/chown.m4: Likewise.
84360         * m4/fnmatch.m4: Likewise.
84361         * m4/ftruncate.m4: Likewise.
84362         * m4/getgroups.m4: Likewise.
84363         * m4/getline.m4: Likewise.
84364         * m4/group-member.m4: Likewise.
84365         * m4/jm-macros.m4: Likewise.
84366         * m4/lstat.m4: Likewise.
84367         * m4/malloc.m4: Likewise.
84368         * m4/memcmp.m4: Likewise.
84369         * m4/nanosleep.m4: Likewise.
84370         * m4/putenv.m4: Likewise.
84371         * m4/realloc.m4: Likewise.
84372         * m4/regex.m4: Likewise.
84373         * m4/stat.m4: Likewise.
84374         * m4/strftime.m4: Likewise.
84375
84376 2000-07-02  Jim Meyering  <meyering@lucent.com>
84377
84378         * lib/quotearg.c (mbstate_t): Don't define here.
84379
84380 2000-07-02  Jim Meyering  <meyering@lucent.com>
84381
84382         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84383
84384 2000-07-01  Jim Meyering  <meyering@lucent.com>
84385
84386         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84387
84388 2000-07-01  Jim Meyering  <meyering@lucent.com>
84389
84390         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84391         problem.
84392
84393 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84394
84395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84396         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84397
84398 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84399
84400         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84401         per change in ../m4/ls-mntd-fs.m4.
84402         (read_filesystem_list): Ignore symbolic links.
84403
84404 2000-06-29  Jim Meyering  <meyering@lucent.com>
84405
84406         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84407         for declaration of strcmp.
84408
84409         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84410
84411         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84412         Avoid warning by casting result to `char *' to remove `const'.
84413
84414 2000-06-28  Jim Meyering  <meyering@lucent.com>
84415
84416         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84417         included by quotearg.c, for which we perform this test.  From
84418         Bruno Haible.
84419
84420 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84421
84422         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84423         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84424         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84425
84426 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84427
84428         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84429
84430 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84431
84432         savedir now sets errno on failure and invokes xmalloc to get memory.
84433         Fix a couple of other minor bugs while we're at it.
84434
84435         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84436         (NAMLEN): Remove macro.
84437         (malloc, realloc): Remove decls.
84438         (stpcpy): Likewise.
84439         ("xalloc.h"): Include.
84440         (NAME_SIZE_DEFAULT): New macro.
84441         (savedir): Use xmalloc / xrealloc to allocate memory.
84442         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84443         Skip "" directory entries.
84444         Use strlen to calculate directory entry length, since the old method
84445         is rarely used these days and isn't worth supporting.
84446         Don't use a pointer after freeing it.
84447         Check for integer overflow when calculating allocation size.
84448         Use memcpy to copy entries, instead of stpcpy.
84449         Set errno properly when returning NULL.
84450         Check for readdir error.
84451
84452 2000-06-26  Jim Meyering  <meyering@lucent.com>
84453
84454         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84455
84456 2000-06-25  Jim Meyering  <meyering@lucent.com>
84457
84458         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84459         Linux header bug when _XOPEN_SOURCE is defined to 500.
84460
84461 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84462
84463         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84464         deficiency.
84465
84466 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84467
84468         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84469         Include xalloc.h.
84470         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84471
84472 2000-06-24  Jim Meyering  <meyering@lucent.com>
84473
84474         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84475         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84476         for which strerror does return char*, but which lacks a conveniently
84477         accessible declaration of the function.  If the compile-test says
84478         strerror_r doesn't work, then resort to a `run'-test that works on
84479         BeOS and segfaults on DEC Unix.
84480
84481 2000-06-24  Jim Meyering  <meyering@lucent.com>
84482
84483         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84484
84485 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84486
84487         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84489
84490 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84491
84492         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84493         (mbrtowc, mbstate_t): Define substitutes if
84494         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84495         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84496         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84497
84498 2000-06-23  Jim Meyering  <meyering@lucent.com>
84499
84500         * m4/afs.m4: Add missing AC_MSG_RESULT.
84501         Reported by Bruno Haible.
84502
84503         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84504         Suggestion from Bruno Haible.
84505
84506 2000-06-23  Jim Meyering  <meyering@lucent.com>
84507
84508         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84509
84510 2000-06-21  Jim Meyering  <meyering@lucent.com>
84511
84512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84513
84514 2000-06-21  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84517         (noinst_HEADERS): Add getstr.h.
84518
84519         * lib/getline.c (getstr): Move into a separate file.
84520         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84521         the following changes: new parameter, delim2; both delim[12]
84522         parameters have type `int', not `char'.  The latter would lose
84523         with 8-bit delimiters.
84524         * lib/getstr.h: New file.
84525
84526 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84527
84528         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84529         than 1024, return a memory chunk of least possible size, instead
84530         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84531         Use free/xmalloc instead of xrealloc to avoid copying for very long
84532         paths.
84533
84534 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84535
84536         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84537         the empty string.
84538
84539 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84540
84541         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84542         address, not strdup.  Include <stdlib.h> and don't declare free().
84543
84544 2000-06-19  Jim Meyering  <meyering@lucent.com>
84545
84546         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84547
84548 2000-06-18  Jim Meyering  <meyering@lucent.com>
84549
84550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84551
84552         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84553         `checking whether...' message to be consistent with that of the
84554         lstat test.
84555
84556 2000-06-18  Jim Meyering  <meyering@lucent.com>
84557
84558         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84559         Besides, these days every porting target provides a mkdir function.
84560
84561         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84562         needed. (this snippet comes from src/system.h).
84563
84564 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84565
84566         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84567
84568 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84569
84570         * lib/human.c (adjust_value): New function.
84571         (human_readable_inexact): Apply rounding style even when
84572         printing approximate values.
84573
84574 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84575
84576         * lib/human.c (human_readable_inexact): Allow an input block
84577         size that is not a multiple of the output block size, and vice versa.
84578         Reported by Piergiorgio Sartor.
84579
84580 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84581
84582         * lib/getdate.y (get_date): Apply relative times after time
84583         zone indicator, not before.  Reported by Todd A. Jacobs.
84584
84585 2000-06-13  Jim Meyering  <meyering@lucent.com>
84586
84587         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84588
84589         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84590
84591 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84592
84593         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84594
84595 2000-06-12  Jim Meyering  <meyering@lucent.com>
84596
84597         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84598         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84599         optional argument.
84600         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84601         the optional argument, `lib'.
84602
84603 2000-06-08  Jim Meyering  <meyering@lucent.com>
84604
84605         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84606
84607 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84608
84609         Rewrite largefile configuration so that we don't need to run
84610         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84611         AC_CANONICAL_HOST in configure.in -- jmm]
84612
84613         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84614         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84615         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84616         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84617         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84618         All uses changed.
84619         Instead of inspecting the output of getconf, try to compile the
84620         test program without and with the macro definition.
84621         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84622         for getconf.  Instead, check for the needed flags by compiling
84623         test programs.
84624
84625 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84626
84627         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84628
84629 2000-06-04  Jim Meyering  <meyering@lucent.com>
84630
84631         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84632         SunOS 4.1.4 for which gid_t is an unsigned type.
84633
84634 2000-06-03  Jim Meyering  <meyering@lucent.com>
84635
84636         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84637         now that autoconf requires that.
84638
84639         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84640         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84641         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84642
84643 2000-06-03  Jim Meyering  <meyering@lucent.com>
84644
84645         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84646
84647 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84648
84649         * m4/glibc21.m4: New file.
84650         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84651
84652 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84653
84654         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84655         newer, don't install charset.alias.
84656         * lib/config.charset: Change the Linux/glibc rules so they become empty
84657         on glibc-2.1 or newer.
84658
84659 2000-06-02  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/mountlist.c: Back out last change.  Instead, do this...
84662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84663         me_dummy member using the same `ignore'-testing code.
84664         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84665         fs_type strings.
84666         From Mark D. Roth.
84667
84668 2000-05-29  Jim Meyering  <meyering@lucent.com>
84669
84670         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84671         mounts with the `ignore' attribute.  Based on a patch from
84672         Mark D. Roth.
84673
84674 2000-05-28  Jim Meyering  <meyering@lucent.com>
84675
84676         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84677         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84678         * m4/stat.m4: Likewise.
84679         * m4/lstat.m4: Likewise.
84680         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84681
84682         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84683         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84684
84685 2000-05-26  Jim Meyering  <meyering@lucent.com>
84686
84687         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84688
84689 2000-05-24  Jim Meyering  <meyering@lucent.com>
84690
84691         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84692         autoconf requires that.
84693         * m4/lib-check.m4: Likewise.
84694         * m4/jm-macros.m4: Likewise.
84695         * m4/strftime.m4: Likewise.
84696
84697         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84698         AC_CHECK_DECLS, now that autoconf requires that.
84699
84700 2000-05-22  Jim Meyering  <meyering@lucent.com>
84701
84702         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84703         * m4/lstat.m4: Likewise.
84704
84705 2000-05-22  Jim Meyering  <meyering@lucent.com>
84706
84707         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84708
84709 2000-05-20  Jim Meyering  <meyering@lucent.com>
84710
84711         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84712         (jm_PREREQ): Use it.
84713
84714 2000-05-18  Jim Meyering  <meyering@lucent.com>
84715
84716         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84717         back, too, since it may have been modified by allocate_entry.
84718         (hash_delete): Rewrite to use neither the assignment operator
84719         nor the comma operator in an if-expression.
84720
84721 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84722
84723         * lib/closeout.c:
84724         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84725         Remove; no longer needed.
84726         "quotearg.h": Add include.
84727         (file_name): Do not bother to explicitly initialize to NULL; it's less
84728         efficient on some hosts.
84729         (close_stdout_status): Remove test as to whether stdout was already
84730         closed; it breaks for the case "echo x | sort >&-".
84731         Quote file name colons.
84732         Do not assume that _("write error") lacks format strings.
84733
84734 2000-05-15  Jim Meyering  <meyering@lucent.com>
84735
84736         * lib/version-etc.c (version_etc_copyright): Update the copyright
84737         string used in all --version output.
84738
84739 2000-05-14  Jim Meyering  <meyering@lucent.com>
84740
84741         * lib/closeout.c (close_stdout_set_file_name): New function.
84742         (close_stdout_status): Use new file-scoped global.
84743         Return right away if fstat says the stdout file descriptor is invalid.
84744         * lib/closeout.h (close_stdout_set_file_name): Declare.
84745
84746 2000-05-10  Jim Meyering  <meyering@lucent.com>
84747
84748         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84749         (close_stdout_set_status): New function.
84750         * lib/closeout.h (close_stdout_set_status): Declare.
84751
84752 2000-05-09  Jim Meyering  <meyering@lucent.com>
84753
84754         * m4/gettext.m4: Rename this...
84755         * m4/libintl.m4: ...to this.
84756
84757 2000-05-08  Jim Meyering  <meyering@lucent.com>
84758
84759         * lib/long-options.c: Don't include closeout.h.
84760         (parse_long_options): Don't call close_stdout for --version.
84761
84762 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84763
84764         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84765         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84766         2.1.3 bug.  This avoids a clash when files like regex.c define
84767         _GNU_SOURCE.
84768
84769 2000-05-06  Jim Meyering  <meyering@lucent.com>
84770
84771         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84772         (AC_REPLACE_FUNCS): Add strnlen.
84773
84774         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84775         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84776
84777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84778         AC_SEARCH_LIBS call for nanosleep.
84779         (LIB_NANOSLEEP): Set and AC_SUBST.
84780
84781 2000-05-06  Jim Meyering  <meyering@lucent.com>
84782
84783         * lib/strnlen.c: Undefine __strnlen and strnlen.
84784         [!weak_alias]: Define __strnlen to strnlen.
84785
84786         * lib/atexit.c: New file, from libiberty.
84787
84788 2000-05-06  Jim Meyering  <meyering@lucent.com>
84789
84790         * lib/closeout.c (close_stdout_status): Also check for errors on the
84791         stderr stream.
84792
84793 2000-05-05  Jim Meyering  <meyering@lucent.com>
84794
84795         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84796         AC_SEARCH_LIBS call for clock_gettime.
84797         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84798
84799         * m4/search-libs.m4: Update from autoconf.
84800
84801         su doesn't work on Solaris 2.6.
84802         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84803         <shadow.h>.  Reported by Dragos Harabor.
84804
84805 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84806
84807         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84808         memcpy instead of xmalloc, xrealloc, path_concat.
84809         (locale_charset): Treat empty environment variables as absent.
84810         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84811
84812 2000-05-04  Jim Meyering  <meyering@lucent.com>
84813
84814         * lib/getopt.c: Update from glibc.
84815         * lib/obstack.c: Likewise.
84816         * lib/obstack.h: Likewise.
84817         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84818         file
84819
84820         * lib/regex.h: Likewise.
84821         * lib/strndup.c: Likewise.
84822         * lib/strnlen.c: New file, from glibc.
84823
84824 2000-05-03  Jim Meyering  <meyering@lucent.com>
84825
84826         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84827
84828 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84829
84830         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84831         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84832         compile-time test, rather than inspecting host and OS, to
84833         decide whether to define _LARGEFILE_SOURCE.
84834
84835 2000-05-01  Jim Meyering  <meyering@lucent.com>
84836
84837         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84838
84839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84840         Based on a patch from Bruno Haible.
84841
84842 2000-05-01  Jim Meyering  <meyering@lucent.com>
84843
84844         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84845
84846 2000-04-29  Jim Meyering  <meyering@lucent.com>
84847
84848         * lib/path-concat.c: Declare strdup only if it's not defined.
84849         * lib/canon-host.c: Likewise.
84850
84851 2000-04-28  Jim Meyering  <meyering@lucent.com>
84852
84853         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84854         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84855         is included first, then limits.h is included by locale.h by libintl.h.
84856         From John David Anglin.
84857
84858 2000-04-25  Jim Meyering  <meyering@lucent.com>
84859
84860         * lib/makepath.c (S_IRWXUGO): Define.
84861         (make_path): Always perform explicit chmod if MODE specifies any
84862         of the `special' permission bits.  Prompted by a bug report against
84863         install from Mate Wierdl and Joost van Baal.
84864
84865 2000-04-18  Jim Meyering  <meyering@lucent.com>
84866
84867         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84868         (jm_PREREQ): Use it.
84869
84870 2000-04-18  Jim Meyering  <meyering@lucent.com>
84871
84872         * lib/README: New file.
84873
84874         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84875         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84876
84877 2000-04-17  Jim Meyering  <meyering@lucent.com>
84878
84879         Get it right :-)
84880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84881         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84882         Suggestion from Akim Demaille.
84883
84884 2000-04-17  Jim Meyering  <meyering@lucent.com>
84885
84886         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84887         the definition of it to rpl_strftime also defined-away the system's
84888         declaration.
84889
84890 2000-04-15  Jim Meyering  <meyering@lucent.com>
84891
84892         Use `C' to denote so-called `contiguous' files, the same way
84893         that tar does.
84894         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84895         (ftypelet): Use S_ISCTG.
84896         From Michael Deutschmann.
84897
84898 2000-04-14  Jim Meyering  <meyering@lucent.com>
84899
84900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84901         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84902         clobbered.
84903
84904 2000-04-14  Jim Meyering  <meyering@lucent.com>
84905
84906         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84907
84908 2000-04-13  Jim Meyering  <meyering@lucent.com>
84909
84910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84911         AH_VERBATIM to insert required #ifndef into config.h.in.
84912         Suggestion from Akim Demaille.
84913
84914 2000-04-12  Jim Meyering  <meyering@lucent.com>
84915
84916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84917         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84918         Christian Krackowizer.
84919
84920         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84921         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84922         (AC_SYS_LARGEFILE): Require.
84923         (AM_C_PROTOTYPES): Require.
84924
84925 2000-04-08  Jim Meyering  <meyering@lucent.com>
84926
84927         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84928         names don't conflict.  Reported by Eli Zaretskii.
84929
84930 2000-04-07  Jim Meyering  <meyering@lucent.com>
84931
84932         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84933         sys/types.h, to work around system header problems on AIX 3.2.5.
84934         From Bruno Haible.
84935
84936 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84937
84938         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84939         bug.  Deal with the different error behavior of Irix iconv.
84940
84941 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84942
84943         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84944         IRIX if the installer said otherwise.
84945
84946 2000-04-05  Jim Meyering  <meyering@lucent.com>
84947
84948         Portability tweaks required for ultrix4.3.
84949         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84950         (jm_CHECK_DECLS): Add getutent to the list of functions.
84951         (_jm_DECL_HEADERS): Add utmpx.h.
84952         From John David Anglin.
84953
84954         * m4/strftime.m4: Back out the 2000-04-02 change.
84955         Instead of that change, simply undefine putenv in the test program.
84956
84957 2000-04-05  Jim Meyering  <meyering@lucent.com>
84958
84959         Portability tweaks required for ultrix4.3.
84960         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84961         getutent.
84962         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84963         * lib/canon-host.c: Declare strdup.
84964         * lib/path-concat.c: Likewise.
84965         From John David Anglin.
84966
84967 2000-04-04  Jim Meyering  <meyering@lucent.com>
84968
84969         Be more DOS 8.3-friendly.
84970         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84971         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84972         * lib/Makefile.am: Reflect renaming.
84973         Reported by Eli Zaretskii.
84974
84975         Use a temporary file name that won't clash with `charset.alias'
84976         in the DOS 8.3 name space.
84977         * lib/Makefile.am (charset_tmp): Define.
84978         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84979         (uninstall-local): Likewise.
84980         Reported by Eli Zaretskii.
84981
84982 2000-04-03  Jim Meyering  <meyering@lucent.com>
84983
84984         * m4/gettext.m4: Fix typo in comment.
84985
84986         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84987         textutils/configure.in).  Suggestion from Paul Eggert.
84988         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84989
84990 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84991
84992         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84993         variable in the shell rather than using putenv, which isn't
84994         portable.  This avoids the configure-time inter-test dependency
84995         on the potentially-renamed putenv function.
84996
84997 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84998
84999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85000         before checking struct stat.st_blksize, so that
85001         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85002
85003 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85004
85005         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85006         since strftime.c uses HAVE_STRFTIME to decide whether to use
85007         the underlying strftime.
85008
85009 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85010
85011         * lib/time/strftime.c (my_strftime): Make sure we call the system
85012         strftime, not ourselves, when invoking the underlying strftime.
85013
85014 2000-03-24  Jim Meyering  <meyering@lucent.com>
85015
85016         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85017         (charset_alias): Define.
85018         (install-exec-local): Factor out common code.
85019         (uninstall-local): Split lines longer than 80.
85020         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85021         (SUFFIXES): Define.
85022         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85023         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85024
85025 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85026
85027         * lib/config.charset: Output a line containing "Packages using this
85028         file".
85029         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85030         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85031         ref-del.sed): New rules.
85032
85033 2000-03-17  Jim Meyering  <meyering@lucent.com>
85034
85035         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85036         Otherwise, include <strings.h>
85037
85038 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85039
85040         * lib/unicodeio.c (utf8_wctomb): New function.
85041         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85042         format instead of in UCS-4 with platform dependent endianness.
85043
85044 2000-03-10  Jim Meyering  <meyering@lucent.com>
85045
85046         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85047         From Marco Franzen.
85048
85049 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85050
85051         * lib/savedir.c (savedir): Work even if directory size is
85052         negative; this can happen with some screwy NFS configurations.
85053
85054 2000-03-06  Jim Meyering  <meyering@lucent.com>
85055
85056         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85057         if it's NULL (because we ran out of memory).  From Bruno Haible.
85058
85059 2000-03-05  Jim Meyering  <meyering@lucent.com>
85060
85061         * lib/localcharset.c ("path-concat.h"): Include.
85062         (get_charset_aliases): Use path_concat instead of ANSI string
85063         concatenation.
85064
85065         * lib/unicodeio.h (PARAMS): Define.
85066         Use it to guard prototype.
85067
85068 2000-03-04  Jim Meyering  <meyering@lucent.com>
85069
85070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85071         for lib/localcharset.c.
85072
85073 2000-03-04  Jim Meyering  <meyering@lucent.com>
85074
85075         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85076         installing into it.
85077         (uninstall-local): Uncomment this rule so `make distcheck' works
85078         once again.
85079
85080         * lib/unicodeio.c (<errno.h>): Include it.
85081         (errno): Declare if not defined.
85082
85083         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85084
85085         * lib/config.charset: New version, incorporating remarks from a linux
85086         i18n mailing list.  From Bruno Haible.
85087
85088 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85089
85090         * m4/codeset.m4: New file.
85091         * m4/iconv.m4: New file.
85092         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85093
85094 2000-03-03  Jim Meyering  <meyering@lucent.com>
85095
85096         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85097
85098 2000-03-02  Jim Meyering  <meyering@lucent.com>
85099
85100         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85101         the messages come out on separate lines.
85102
85103         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85104         rather than jm_CHECK_DECLARATIONS.
85105         * m4/decl.m4: Remove now-unused file.
85106
85107         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85108         geteuid.
85109
85110 2000-03-02  Jim Meyering  <meyering@lucent.com>
85111
85112         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85113
85114 2000-03-01  Jim Meyering  <meyering@lucent.com>
85115
85116         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85117         * lib/unicodeio.c: Likewise.
85118
85119 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85120
85121         * lib/config.charset: New file.
85122         * lib/localcharset.c: New file.
85123         * lib/unicodeio.h, lib/unicodeio.c: New files.
85124         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85125         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85126         (noinst_HEADERS): Add unicodeio.h.
85127         (all-local, install-exec-local, charset.alias): New targets.
85128
85129 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85130
85131         * lib/quotearg.c (ALERT_CHAR): New macro.
85132         (quotearg_buffer_restyled): Use it.
85133
85134 2000-02-27  Jim Meyering  <meyering@lucent.com>
85135
85136         * m4/check-decl.m4: Add getenv to the list.
85137
85138 2000-02-27  Jim Meyering  <meyering@lucent.com>
85139
85140         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85141         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85142
85143         * lib/backupfile.c: Guard inclusion of stdlib.h with
85144         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85145         Declare malloc if needed.
85146
85147         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85148         `#ifndef HAVE_DECL..'
85149         now that autoconf always defines the HAVE_DECL_ symbols.
85150         * lib/human.c: Likewise.
85151         * lib/same.c: Likewise.
85152         * lib/strtoumax.c: Likewise.
85153
85154         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85155         declaration check was not run.
85156         * lib/hash.c: Likewise.
85157         * lib/human.c: Likewise.
85158         * lib/same.c: Likewise.
85159         * lib/strtoumax.c: Likewise.
85160
85161         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85162         `.', then first look up the entire `.'-containing string as a login
85163         name.
85164
85165 2000-02-23  Jim Meyering  <meyering@lucent.com>
85166
85167         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85168         in place of my hack.
85169
85170 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85171
85172         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85173         (textint): New typedef.
85174         (parser_control): Member year changed from int to textint.
85175         All uses changed.
85176         (YYSTYPE): Removed; replaced by %union with int and textint members.
85177         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85178         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85179         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85180         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85181         (date, number, to_year): Use width of number in digits, not its value,
85182         to determine whether it's a 2-digit year, or a 2-digit time.
85183         (yylex): Store number of digits of numeric tokens.
85184         Reported by John Kendall.
85185
85186         (parser_control): Changed from struct parser_control to typedef (for
85187         consistency).  All uses changed.
85188
85189         (tID): Removed; not used.
85190         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85191
85192 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85193
85194         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85195         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85196
85197 2000-02-12  Jim Meyering  <meyering@lucent.com>
85198
85199         * lib/userspec.c (ISDIGIT): Define it.
85200         (isdigit): Remove definition.
85201         (is_number): Use ISDIGIT, not isdigit.
85202         <libintl.h>: Include.
85203         (_ and N_): Define.
85204         (parse_user_spec): Mark translatable strings.
85205
85206 2000-02-10  Jim Meyering  <meyering@lucent.com>
85207
85208         With these changes, nanosleep.[ch] are finally enough like the other
85209         lib/* replacement files to compile on a few more losing systems.
85210
85211         * lib/nanosleep.h: Don't include config.h.
85212         Remove prototype from declaration of nanosleep.
85213         (PARAMS): Remove now-unneeded definition.
85214         * lib/nanosleep.c: #undef nanosleep.
85215         (rpl_nanosleep): Rename from nanosleep.
85216
85217 2000-02-10  Jim Meyering  <meyering@lucent.com>
85218
85219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85220         gnu_nanosleep to rpl_nanosleep.
85221
85222 2000-02-09  Jim Meyering  <meyering@lucent.com>
85223
85224         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85225         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85226
85227 2000-02-08  Akim Demaille  <akim@epita.fr>
85228
85229         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85230         `[' and `]' and remove uses of `changequote'.
85231         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85232         (AC_SYS_LARGEFILE): Likewise.
85233         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85234         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85235         of changequote.
85236         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85237         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85238         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85239         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85240
85241 2000-02-05  Jim Meyering  <meyering@lucent.com>
85242
85243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85244         Remove explicit use of AC_HEADER_TIME.  It is required by
85245         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85246         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85247         in autoconf whereby the expansion of the latter ended up preceding
85248         the expansion of its prerequisite, AC_HEADER_TIME.
85249         Reported by Volker Borchert.
85250
85251 2000-02-03  Jim Meyering  <meyering@lucent.com>
85252
85253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85254
85255 2000-02-03  Jim Meyering  <meyering@lucent.com>
85256
85257         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85258         rather than with `#if HAVE_UTMPNAME'.
85259
85260 2000-02-02  Jim Meyering  <meyering@lucent.com>
85261
85262         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85263         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85264         Reported by Eli Zaretskii.
85265
85266 2000-02-01  Jim Meyering  <meyering@lucent.com>
85267
85268         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85269
85270 2000-01-31  Jim Meyering  <meyering@lucent.com>
85271
85272         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85273         functions.  Add the time.h and sys/time.h headers along with the
85274         AC_REQUIRE'ment of AC_HEADER_TIME.
85275
85276 2000-01-31  Jim Meyering  <meyering@lucent.com>
85277
85278         * lib/nanosleep.h (nanosleep): Guard declaration with
85279         `#if ! HAVE_DECL_NANOSLEEP'.
85280         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85281         the declaration in that vendor's sys/timers.h.
85282         Reported by Christian Krackowizer.
85283
85284         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85285         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85286         (ISPRINT): Likewise.
85287         Reported by Tom Tromey.
85288
85289 2000-01-30  Jim Meyering  <meyering@lucent.com>
85290
85291         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85292
85293         * m4/prereq.m4 (utmp_includes): Define.
85294         Check for ut_user and ut_name members in both struct utmpx
85295         and struct utmp.
85296
85297 2000-01-30  Jim Meyering  <meyering@lucent.com>
85298
85299         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85300         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85301         header files where only utmpx.ut_user is declared.
85302
85303         * lib/readutmp.h (UT_USER): Define.
85304
85305 2000-01-29  Jim Meyering  <meyering@lucent.com>
85306
85307         * m4/lib-check.m4: New file containing library-related checks from
85308         fileutils and sh-utils (textutils had none).
85309
85310 2000-01-28  Jim Meyering  <meyering@lucent.com>
85311
85312         * m4/perl.m4: Change format of warning message to look more like that
85313         from the missing script.  Suggestion from François Pinard.
85314
85315 2000-01-25  Jim Meyering  <meyering@lucent.com>
85316
85317         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85318         well as time.h in the compile check.
85319         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85320         Fix typo in cross-compiling case: s/yes/no/.
85321
85322 2000-01-23  Jim Meyering  <meyering@lucent.com>
85323
85324         * m4/jm-macros.m4: Move df-related tests here from
85325         fileutils/configure.in
85326
85327         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85328         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85329
85330         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85331         s/space/ac_fsusage_space/.
85332         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85333
85334         * m4/ftruncate.m4: New file (derived from part of
85335         fileutils/configure.in).
85336         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85337         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85338
85339         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85340         AC_SUBST these here, rather than just in sh-util/configure.in, so
85341         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85342         all the same.
85343         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85344         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85345         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85346         (AC_SUBST(POW_LIBM)): Likewise.
85347         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85348
85349 2000-01-23  Jim Meyering  <meyering@lucent.com>
85350
85351         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85352         obstack.c.
85353
85354 2000-01-22  Jim Meyering  <meyering@lucent.com>
85355
85356         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85357
85358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85359
85360         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85361         configure.in
85362         (AC_CHECK_HEADERS): Likewise for sh-utils.
85363         (AC_CHECK_HEADERS): Likewise for textutils.
85364         Merge the three lists of headers.
85365
85366         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85367         from fileutils' configure.in.
85368
85369         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85370         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85371         check-decl.m4.
85372
85373         * m4/check-decl.m4: Use #if rather than #ifdef.
85374         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85375         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85376         (_jm_DECL_HEADERS): Define new function.
85377         (jm_CHECK_DECLARATIONS): Require it.
85378
85379 2000-01-22  Jim Meyering  <meyering@lucent.com>
85380
85381         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85382         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85383         Required for some AIX systems.  Reported by Christian Krackowizer.
85384         [TESTING] (main): New function.
85385
85386         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85387         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85388         letters.
85389
85390         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85391         iswprint.
85392
85393         * lib/strverscmp.c (ISDIGIT): Define.
85394         (strverscmp): Use ISDIGIT, not isdigit.
85395
85396 2000-01-19  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85399         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85400         defines `struct timespec' in <sys/time.h>
85401
85402         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85403         Thanks to Akim for explaining.
85404
85405 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85406
85407         * lib/nanosleep.c (nanosleep):
85408         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85409         POSIX.1 doesn't require SA_INTERRUPT and some systems
85410         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85411         it's been part of POSIX.1 since day 1 (in 1988).
85412
85413 2000-01-17  Jim Meyering  <meyering@lucent.com>
85414
85415         * lib/interlock: Remove unused file.  Reported by François Pinard.
85416
85417 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85418
85419         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85420         alert, backslash, formfeed, and vertical tab unnecessarily in
85421         shell quoting style.
85422
85423 2000-01-16  Jim Meyering  <meyering@lucent.com>
85424
85425         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85426         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85427         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85428         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85429
85430 2000-01-16  Jim Meyering  <meyering@lucent.com>
85431
85432         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85433         because the latter didn't work.
85434
85435 2000-01-15  Jim Meyering  <meyering@lucent.com>
85436
85437         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85438         (AC_REPLACE_FUNCS): Add memcpy and memset.
85439         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85440         Add strpbrk.
85441         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85442
85443 2000-01-12  Jim Meyering  <meyering@lucent.com>
85444
85445         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85446         (jm_PREREQ): Use it.
85447         (jm_PREREQ_READUTMP): New macro.
85448         (jm_PREREQ): Use it.
85449
85450 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85451
85452         Quote multibyte characters correctly.
85453         * m4/c-bs-a.m4: New file.
85454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85455         (jm_PREREQ): Use it.
85456
85457 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85458
85459         * m4/uintmax_t.m4: Port to autoconf 2.13.
85460
85461 2000-01-08  Jim Meyering  <meyering@ascend.com>
85462
85463         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85464         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85465
85466 2000-01-04  Jim Meyering  <meyering@ascend.com>
85467
85468         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85469         jm_STRUCT_DIRENT_D_TYPE.
85470         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85471         jm_STRUCT_DIRENT_D_INO.
85472         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85473         jm_STRUCT_UTIMBUF.
85474         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85475         renamings.
85476         * m4/utime.m4: Likewise.
85477
85478         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85479         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85480
85481 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85482
85483         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85484         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85485
85486 2000-01-02  Jim Meyering  <meyering@ascend.com>
85487
85488         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85489         remember if this is necessary.
85490
85491 1999-12-26  Jim Meyering  <meyering@ascend.com>
85492
85493         * m4/jm-macros.m4: Use it here.
85494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85495
85496 1999-12-23  Jim Meyering  <meyering@ascend.com>
85497
85498         * m4/jm-macros.m4: Check for clock_gettime (moved from
85499         fileutils/configure.in)
85500         Check for gettimeofday.
85501
85502 1999-12-20  Jim Meyering  <meyering@ascend.com>
85503
85504         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85505         autoconf-2.14a-1999-12-20.
85506
85507 1999-12-19  Jim Meyering  <meyering@ascend.com>
85508
85509         * m4/lstat-slash.m4: New file.
85510         * m4/jm-macros.m4: Use the new macro:
85511         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85512
85513 1999-12-07  Jim Meyering  <meyering@ascend.com>
85514
85515         * m4/perl.m4: Require that File::Compare be available, too.
85516         Too many systems seem to lack it.
85517
85518         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85519         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85520
85521 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85522
85523         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85524         problem with the QNX 4.25 shell, which doesn't propagate exit
85525         status of failed commands inside shell assignments.
85526
85527 1999-11-17  Jim Meyering  <meyering@ascend.com>
85528
85529         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85530
85531 1999-11-07  Jim Meyering  <meyering@ascend.com>
85532
85533         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85534
85535 1999-11-06  Jim Meyering  <meyering@ascend.com>
85536
85537         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85538         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85539
85540 1999-11-05  Jim Meyering  <meyering@ascend.com>
85541
85542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85543         configure.in of textutils, fileutils, and sh-utils into this one
85544         (shared between those packages) file.
85545         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85546         AC_STRUCT_ST_BLKSIZE.
85547
85548 1999-11-03  Jim Meyering  <meyering@ascend.com>
85549
85550         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85551         of AC_CHECK_TYPE checks includes unistd.h.
85552         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85553         Suggestion from Akim Demaille.
85554
85555 1999-10-30  Jim Meyering  <meyering@ascend.com>
85556
85557         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85558         m4-quoted string.
85559         * m4/ls-mntd-fs.m4: Likewise.
85560         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85561         * m4/jm-winsz1.m4: Likewise.
85562
85563         * m4/const.m4: Remove file, since the fix made it into the experimental
85564         version of autoconf.
85565         * m4/mktime.m4: Likewise.
85566
85567         * m4/check-type.m4: Remove file, now that the latest version of
85568         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85569
85570         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85571         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85572         AC_CHECK_TYPE.
85573
85574 1999-10-04  Jim Meyering  <meyering@ascend.com>
85575
85576         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85577
85578 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85579
85580         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85581         2.95.1 bug with HP-UX 10.20.
85582
85583 1999-09-17  Jim Meyering  <meyering@ascend.com>
85584
85585         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85586         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85587         due to missing strdup (against sh-utils-2.0).
85588
85589 1999-08-29  Jim Meyering  <meyering@ascend.com>
85590
85591         * m4/jm-macros.m4: Require jm_BISON.
85592         * m4/bison.m4: New file.
85593
85594 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85595
85596         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85597         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85598
85599 1999-08-05  Jim Meyering  <meyering@ascend.com>
85600
85601         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85602         to avoid conflicts with `conftest' on 8+3 filesystems.
85603         Suggestion from Eli Zaretskii.
85604
85605 1999-08-04  Jim Meyering  <meyering@ascend.com>
85606
85607         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85608         fileutils and sh-utils (textutils's getline test was inadequate).
85609         (AM_FUNC_GETLINE): Run this test.
85610         (AC_CHECK_FUNCS): Check for getdelim.
85611         Reported by Bob Proulx.
85612
85613 1999-08-02  Jim Meyering  <meyering@ascend.com>
85614
85615         * m4/jm-macros.m4: Add a comment.
85616
85617 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85618
85619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85620         <inttypes.h> defines strtoumax as a macro (and not as a
85621         function).
85622
85623 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85624
85625         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85626         that we can shift, multiply and divide unsigned long long
85627         values; Ultrix cc can't do it.
85628
85629 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85630
85631         * m4/mktime.m4: New file, which is a preview of what should appear
85632         in the next public autoconf release.
85633
85634 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85635
85636         * m4/lfs.m4: Remove this file.
85637         * m4/largefile.m4: New file.  It contains the old contents of
85638         lfs.m4, except that all names with prefix AC_LFS have been
85639         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85640         compatible with future autoconf versions.  Also, some minor m4
85641         quoting problems have been fixed.
85642
85643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85644
85645         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85646         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85647         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85648         and simplify the shell code.
85649
85650 1999-08-01  Jim Meyering  <meyering@ascend.com>
85651
85652         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85653         m4.
85654
85655 1999-07-20  Jim Meyering  <meyering@ascend.com>
85656
85657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85658
85659 1999-07-15  Jim Meyering  <meyering@ascend.com>
85660
85661         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85662
85663 1999-05-22  Jim Meyering  <meyering@ascend.com>
85664
85665         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85666
85667 1999-05-20  Jim Meyering  <meyering@ascend.com>
85668
85669         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85670         Add a colon after each `then' in case $4 is empty.
85671
85672 1999-05-16  Jim Meyering  <meyering@ascend.com>
85673
85674         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85675
85676 1999-05-10  Jim Meyering  <meyering@ascend.com>
85677
85678         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85679
85680         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85681         AC_FUNC_MKTIME.
85682
85683 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85684
85685         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85686
85687 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85688
85689         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85690         not CPPFLAGS, so that linking works correctly in IRIX.
85691
85692 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85693
85694         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85695
85696 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85697
85698         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85699         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85701         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85702         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85703
85704         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85705
85706 1999-04-20  Jim Meyering  <meyering@ascend.com>
85707
85708         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85709         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85710         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85711
85712 1999-04-18  Jim Meyering  <meyering@ascend.com>
85713
85714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85715         * m4/jm-macros.m4: Use it.
85716
85717 1999-04-06  Jim Meyering  <meyering@ascend.com>
85718
85719         * m4/strftime.m4: Remove test for %f.
85720
85721 1999-03-29  Jim Meyering  <meyering@ascend.com>
85722
85723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85724         superset of the AC_TYPE_* checks in the textutils, fileutils,
85725         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85726         AC_TYPE_PID_T.
85727
85728 1999-03-28  Jim Meyering  <meyering@ascend.com>
85729
85730         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85731         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85732         replaced e.g., in the *.sh files of the sh-utils.
85733
85734 1999-03-20  Jim Meyering  <meyering@ascend.com>
85735
85736         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85737         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85738         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85739
85740 1999-03-19  Jim Meyering  <meyering@ascend.com>
85741
85742         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85743
85744 1999-03-12  Jim Meyering  <meyering@ascend.com>
85745
85746         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85747
85748 1999-03-07  Jim Meyering  <meyering@ascend.com>
85749
85750         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85751         declared.
85752
85753 1999-02-17  Jim Meyering  <meyering@ascend.com>
85754
85755         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85756         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85757
85758 1999-02-07  Jim Meyering  <meyering@ascend.com>
85759
85760         * m4/group-member.m4: New file -- extracted from sh-utils'
85761         configure.in.
85762
85763         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85764         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85765
85766 1999-02-06  Jim Meyering  <meyering@ascend.com>
85767
85768         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85769         * m4/fnmatch.m4: Likewise.
85770         * m4/getgroups.m4: Likewise.
85771         * m4/lstat.m4: Likewise.
85772         * m4/malloc.m4: Likewise.
85773         * m4/putenv.m4: Likewise.
85774         * m4/realloc.m4: Likewise.
85775         * m4/regex.m4: Likewise.
85776         * m4/stat.m4: Likewise.
85777         * m4/strftime.m4: Likewise.
85778         Suggestion from Alain Magloire.
85779
85780         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85781         * m4/fnmatch.m4: Likewise.
85782         * m4/getgroups.m4: Likewise.
85783         * m4/getline.m4: Likewise.
85784         * m4/lstat.m4: Likewise.
85785         * m4/malloc.m4: Likewise.
85786         * m4/memcmp.m4: Likewise.
85787         * m4/putenv.m4: Likewise.
85788         * m4/realloc.m4: Likewise.
85789         * m4/regex.m4: Likewise.
85790         * m4/stat.m4: Likewise.
85791         * m4/strftime.m4: Likewise.
85792         Suggestion from Alain Magloire.
85793
85794         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85795         an argument.
85796
85797         * m4/regex.m4: Add a run-time Test for proper operation of
85798         re_compile_pattern.
85799
85800 1999-01-31  Jim Meyering  <meyering@ascend.com>
85801
85802         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85803
85804 1999-01-30  Jim Meyering  <meyering@ascend.com>
85805
85806         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85807
85808         * m4/jm-mktime.m4: Make this a wrapper around the official
85809         AM_FUNC_MKTIME rather than my private copy, now that the official one
85810         is up to date.
85811         * m4/mktime.m4: Remove file.
85812
85813         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85814         * m4/uptime.m4: Likewise.
85815         * m4/uintmax_t.m4: Likewise.
85816
85817 1999-01-28  Jim Meyering  <meyering@ascend.com>
85818
85819         * m4/jm-macros.m4: Use jm_AFS.
85820         * m4/afs.m4: New file (from fileutils' configure.in).
85821
85822         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85823         * m4/chown.m4: Likewise.
85824         * m4/d-ino.m4: Likewise.
85825         * m4/d-type.m4: Likewise.
85826         * m4/fnmatch.m4: Likewise.
85827         * m4/getgroups.m4: Likewise.
85828         * m4/gettext.m4: Likewise.
85829         * m4/jm-mktime.m4: Likewise.
85830         * m4/jm-winsz2.m4: Likewise.
85831         * m4/lcmessage.m4: Likewise.
85832         * m4/ls-mntd-fs.m4: Likewise.
85833         * m4/malloc.m4: Likewise.
85834         * m4/memcmp.m4: Likewise.
85835         * m4/putenv.m4: Likewise.
85836         * m4/realloc.m4: Likewise.
85837         * m4/st_mtim.m4: Likewise.
85838         * m4/strftime.m4: Likewise.
85839
85840 1999-01-16  Jim Meyering  <meyering@ascend.com>
85841
85842         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85843         (ARGMATCH_DIE_DECL): Define.
85844
85845 1999-01-12  Jim Meyering  <meyering@ascend.com>
85846
85847         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85848         Reported by Lars Hecking.
85849
85850 1999-01-10  Jim Meyering  <meyering@ascend.com>
85851
85852         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85853         gross kludge.
85854         * m4/inttypes_h.m4: Likewise.
85855         * m4/lstat.m4: Likewise.
85856         * m4/malloc.m4: Likewise.
85857         * m4/readdir.m4: Likewise.
85858         * m4/realloc.m4: Likewise.
85859         * m4/st_dm_mode.m4: Likewise.
85860         * m4/stat.m4: Likewise.
85861         * m4/utimbuf.m4: Likewise.
85862         * m4/utimes.m4: Likewise.
85863
85864         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85865         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85866         comments in config.h.in are meaningful.
85867
85868         * m4/jm-macros.m4: Require autoconf-2.13 here.
85869
85870         * m4/regex.m4: By default, don't use the included regex.c on systems
85871         with glibc 2.  Suggestion from Uli Drepper.
85872
85873 1999-01-02  Jim Meyering  <meyering@ascend.com>
85874
85875         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85876
85877 1998-12-18  Jim Meyering  <meyering@ascend.com>
85878
85879         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85880         Based on a suggestion from Lars Hecking.
85881
85882 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85883
85884         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85885
85886 1998-11-16  Jim Meyering  <meyering@ascend.com>
85887
85888         * m4/lfs.m4: Double-quote the `uname...` expression.
85889
85890 1998-11-14  Jim Meyering  <meyering@ascend.com>
85891
85892         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85893         * m4/stat.m4: Likewise.
85894
85895 1998-11-03  Jim Meyering  <meyering@ascend.com>
85896
85897         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85898         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85899
85900 1998-10-18  Jim Meyering  <meyering@ascend.com>
85901
85902         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85903
85904 1998-10-17  Jim Meyering  <meyering@ascend.com>
85905
85906         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85907         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85908         calls for those previously hard-coded headers.  Instead, take a new
85909         parameter.
85910         (jm_CHECK_DECLARATIONS): Reflect interface change.
85911         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85912         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85913
85914         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85915
85916 1998-10-14  Jim Meyering  <meyering@ascend.com>
85917
85918         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85919         instead of "TZ=America/Vancouver".  From Paul Eggert.
85920
85921 1998-10-11  Jim Meyering  <meyering@ascend.com>
85922
85923         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85924         This adds a test for a recently added compatibility fix for mktime.c.
85925         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85926
85927 1998-09-27  Jim Meyering  <meyering@ascend.com>
85928
85929         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85930
85931         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85932         ../configure.in, including a change from Gordon Matzigkeit to allow
85933         cross-compiling for the Hurd.
85934
85935         * m4/glibc.m4: New file/macro to test for the GNU C Library
85936         versions 1 and 2.  From Gordon Matzigkeit.
85937         Indent.
85938
85939 1998-09-21  Jim Meyering  <meyering@ascend.com>
85940
85941         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85942
85943 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85944
85945         Port nanosecond-resolution times to UnixWare 2.1.2 and
85946         pedantic Solaris 2.6.
85947
85948         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85949         AC_STRUCT_ST_MTIM.
85950         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85951         Generate name of ns member, instead of just 1 or undef.
85952         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85953
85954 1998-08-15  Jim Meyering  <meyering@ascend.com>
85955
85956         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85957         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85958         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85959         instead of jm_TYPE_SSIZE_T.
85960
85961 1998-08-12  Jim Meyering  <meyering@ascend.com>
85962
85963         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85964
85965 1998-08-02  Jim Meyering  <meyering@ascend.com>
85966
85967         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85968         in acconfig.h manually.
85969
85970 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85971
85972         * m4/st_mtim.m4: New file.
85973
85974 1998-07-28  Jim Meyering  <meyering@ascend.com>
85975
85976         * m4/utimes.m4: Undef stat.
85977
85978 1998-07-25  Jim Meyering  <meyering@ascend.com>
85979
85980         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85981         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85982
85983 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85984
85985         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85986         uid and gid actually remain unchanged.
85987
85988 1998-07-07  Jim Meyering  <meyering@ascend.com>
85989
85990         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85991
85992 1998-07-04  Jim Meyering  <meyering@ascend.com>
85993
85994         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85995         to prove that this macro can be used in packages without regex.c.
85996
85997 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85998
85999         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86000         is to be used.
86001
86002 1998-07-03  Jim Meyering  <meyering@ascend.com>
86003
86004         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86005
86006         * m4/gettext.m4: New file -- from gettext-0.10.35.
86007         * m4/lcmessage.m4: Likewise.
86008         * m4/progtest.m4: Likewise.
86009
86010         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86011         * m4/jm-macros.m4: Require the new macro.
86012
86013 1998-06-29  Jim Meyering  <meyering@ascend.com>
86014
86015         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86016         for the definition of NGROUPS (used in a system header included
86017         by sys/mount.h).
86018
86019 1998-06-28  Jim Meyering  <meyering@ascend.com>
86020
86021         * m4/ls-mntd-fs.m4: New file.
86022         * m4/fstypename.m4: New file.
86023
86024         * m4/jm-macros.m4: Require the new macro.
86025         * m4/jm-glibc-io.m4: New file.
86026
86027 1998-05-19  Jim Meyering  <meyering@ascend.com>
86028
86029         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86030         * m4/lchown.m4: New file.
86031
86032         * m4/Makefile.am.in: New file.
86033         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86034
86035 1998-05-14  Jim Meyering  <meyering@ascend.com>
86036
86037         * m4/Makefile.am (EXTRA_DIST): Add them.
86038         * m4/jm-macros.m4: New file.
86039         * m4/utimbuf.m4: New file.
86040
86041 1998-05-12  Jim Meyering  <meyering@ascend.com>
86042
86043         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86044
86045 1998-05-11  Jim Meyering  <meyering@ascend.com>
86046
86047         * m4/isc-posix.m4: New file.
86048
86049 1998-05-10  Jim Meyering  <meyering@ascend.com>
86050
86051         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86052
86053 1998-05-09  Jim Meyering  <meyering@ascend.com>
86054
86055         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86056         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86057         with automake.
86058
86059         * m4/ssize_t.m4: New file.
86060         * m4/mktime.m4: Remove file -- the new automake has this now.
86061
86062 1998-04-26  Jim Meyering  <meyering@ascend.com>
86063
86064         * m4/assert.m4: New file.
86065         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86066
86067 1998-04-05  Jim Meyering  <meyering@ascend.com>
86068
86069         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86070         (jm_PREREQ): Use it here.
86071
86072 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86073
86074         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86075         in acconfig.h.
86076
86077 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86078
86079         * m4/prereq.m4: New file.
86080         * m4/error.m4: New file.
86081         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86082
86083 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86084
86085         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86086         cache-check for the same variable -- that defeated the purpose of
86087         the test; the test program was never run.  This was a problem only
86088         on systems with losing getline functions -- HP-UX 10.20 is one.
86089         Reported by Bjorn Helgaas.
86090
86091 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86092
86093         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86094
86095 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86096
86097         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86098
86099         * m4/const.m4: New file.  Use an initializer in this declaration
86100         typedef int charset[2]; const charset x;
86101         Reported by Bob Glickstein.
86102
86103 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86104
86105         * m4/chown.m4: Fix reversed types on -1 args to chown.
86106         From Kaveh Ghazi.
86107
86108 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86109
86110         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86111         Add lseek and memchr.
86112
86113         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86114         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86115         have a 20-character limit on names.
86116
86117 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86118
86119         * m4/inttypes_h.m4: New file.
86120         * m4/uintmax_t.m4: New file.
86121         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86122
86123
86124         -----
86125
86126         Local Variables:
86127         coding: utf-8
86128         End:
86129
86130         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86131
86132         Copying and distribution of this file, with or without
86133         modification, are permitted provided the copyright notice
86134         and this notice are preserved.